content
stringlengths
5
1.05M
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
-- The drone ship loaded and managed by sample.arcadeshooter stage. Fires lasers -- at long intervals and moves in a pattern, oriented by the stage to stay in -- formation with other ships. ship = nil world = nil constants = nil fireOffset = nil direction = nil fireInterval = 25 function init(shipArg, worldArg) shi...
-- functional.lua -- functional module -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) local do_nothing = function() end local identity = function(...) return ... end -- TODO: Backport advanced version with caching for primitive types local inva...
setenv("TACC_SYSTEM","stampede") setenv("TACC_DOMAIN","stampede") append_path("PATH",".") append_path("MANPATH","/usr/local/man")
--[[ More Blocks: Stairs+ Copyright © 2011-2019 Hugo Locurcio and contributors. Licensed under the zlib license. See LICENSE.md for more information. --]] -- Copy recipe for furnace (the regular recipe must exist at this point!) local function copy_cooking_recipe(category, alternate, modname, subname, recipeitem) lo...
-- Licensed to the public under the Apache License 2.0. local rad2 = require "luci.controller.radicale2" local fs = require("nixio.fs") local util = require("luci.util") local m = Map("radicale2", translate("Radicale 2.x"), translate("A lightweight CalDAV/CardDAV server")) local s = m:section(NamedSection, "a...
function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end function GPSGUI() if gps_window then if guiGetVisible ( gps_window ) t...
local Overlay Overlay.__index = Overlay function Overlay:draw() love.graphics.rectangle("fill", 100, 100, 50, 50) end
-- Copyright 2013 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header$ local key = require 'pgf.gd.doc'.key loc...
add_defines("TEST") add_requires("fmt", "vcpkg::magic-enum", "ctre") target("Machine-test") set_default(false) set_kind("binary") set_group("test") add_includedirs("$(curdir)/include") add_files("$(curdir)/test/Machine/*.cc") add_files("$(curdir)/src/**.cc") remove_files("$(curdir)/src/M...
local M = {} M.on_attach = function(client, bufnr) vim.api.nvim_buf_set_option(bufnr, "omnifunc", "v:lua.vim.lsp.omnifunc") local opts = { noremap = true, silent = true } local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end -- Mappings. buf_set_keymap("n", "gD", "<Cmd>lua vim.lsp....
--[[ Copyright (C) 2021-2022 Sub-Zero Interactive All rights reserved. Permission is hereby granted, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software with 'All rights reserved'. Even if 'All rights reserved' is very clear : You sh...
function love.conf(t) t.version = "0.10.2" end
local window = require("prox.window") local mouse = {} local wheel = { x = 0, y = 0 } local state = { down = {}, pressed = {}, released = {} } function mouse.wasPressed(...) for i,v in ipairs({...}) do if state.pressed[v] == true then return true end end return false end function mouse.wasReleased(...) ...
local unicorn = require 'unicorn' local uc_const = require 'unicorn.unicorn_const' local regs_const = require 'unicorn.registers_const' local x86 = require 'unicorn.x86_const' describe('Register tests', function () it('[x86] Read one register', function () local uc = unicorn.open(uc_const.UC_ARCH_X86, uc_const....
local server = {} local http = require 'llae.http' local url = require 'net.url' local router = require 'router' local json = require 'llae.json' local class = require 'llae.class' local template = require "resty.template" template.caching(false) local function readfile(path) local file = io.open(path, "rb") ...
-- -- This is file `ltluatex.lua', -- generated with the docstrip utility. -- -- The original source files were: -- -- ltluatex.dtx (with options: `lua') -- -- This is a generated file. -- -- The source is maintained by the LaTeX Project team and bug -- reports for it can be opened at https://latex-project.org/bugs....
datasets = {} http = require("socket.http") https = require 'ssl.https' utf8 = require('utf8') require('json') require('lfs') cjson = require('cjson') -- Math helper functions include('../datasets/util/math.lua') -- For reading word embeddings, image features, and captions include('../datasets/util/Vocab.lua') includ...
local BLOCKSIZE = 16 local function get_blockpos(pos) return { x = math.floor(pos.x/BLOCKSIZE), y = math.floor(pos.y/BLOCKSIZE), z = math.floor(pos.z/BLOCKSIZE)} end local function get_nodefromblock(block) return { x = block.x*BLOCKSIZE, y = block.y*BLOCKSIZE, z = block.z*BLOCKSIZE} end local force_lo...
local Noise2D = {} Noise2D.__index = Noise2D local band = bit32.band local function lerp(a, b, v) return a * (1 - v) + b * v end local function smooth(v) return v * v * (3 - 2 * v) end local function random_gradient() local v = math.random() * math.pi * 2.0 return {x = math.cos(v), y = math.sin(v)} end local f...
object_draft_schematic_dance_prop_prop_ribbon_spark_l_s05 = object_draft_schematic_dance_prop_shared_prop_ribbon_spark_l_s05:new { } ObjectTemplates:addTemplate(object_draft_schematic_dance_prop_prop_ribbon_spark_l_s05, "object/draft_schematic/dance_prop/prop_ribbon_spark_l_s05.iff")
local d = require "luci.dispatcher" local _api = require "luci.model.cbi.passwall.api.api" local appname = "passwall" m = Map(appname) -- [[ Other Settings ]]-- s = m:section(TypedSection, "global_other") s.anonymous = true o = s:option(MultiValue, "nodes_ping", "Ping") o:value("auto_ping", translate("Auto Ping"), t...
-- client part local _={} --obsolete: _.load_pins_from_dto --[[ -- на клиенте загрузиться из серверных данных _.set_state=function(pin_dtos) -- wip log("pin service client set state wip") end ]]-- return _
vim.filetype.add({ extension = { timer = "systemd", service = "systemd", automount = "systemd", mount = "systemd", target = "systemd", path = "systemd", }, pattern = { [".*/etc/systemd/.*.%.socket"] = "systemd", [".*/etc/systemd/.*.%.swap"] = "systemd", [".*/etc/systemd/.*.%.conf"] = "systemd", [...
--- === hs.spoons === --- --- Utility and management functions for Spoons --- Spoons are Lua plugins for Hammerspoon. --- See http://www.hammerspoon.org/Spoons/ for more information local module={} module._keys = {} local fs = require("hs.fs") local hotkey = require("hs.hotkey") local logger = require("hs.logger") lo...
----------------------------------- -- Area: The Shrine of Ru'Avitau -- Mob: Defender ----------------------------------- require("scripts/globals/regimes") ----------------------------------- function onMobSpawn(mob) mob:setLocalVar("petCount", 1) end function onMobFight(mob, target) local auraGear = GetMob...
local fn = vim.fn -- Automatically install packer local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then PACKER_BOOTSTRAP = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) print("Installing pa...
---------------------------- -- Bunny Hop -- -- Created by Skeyler.com -- ---------------------------- local function PlayerHullMax(ply) if( ply:Crouching() ) then return Vector(16, 16, 45) else return Vector(16, 16, 62) end end local function PlayerViewOffset(ply) if( ply:Crouching() ) then ...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
include '../utils/shortcut.lua' local function insert_label(name, label) local pos = name:rfind('.') return name:sub(1, pos-1) .. label .. name:sub(pos) end local function recover(train_file, valid_file, test_file, map_file) local map = torch.load(map_file) local train_file_out = insert_label(train_file, '.o...
return Def.ActorFrame{ Def.Quad{ InitCommand=function(s) s:stretchto(0,0,SCREEN_WIDTH,SCREEN_HEIGHT) end, OnCommand=function(s) s:diffusealpha(1):linear(0.3):diffusealpha(0) end } }
require "crypto" require "aeslua" require "base64" local json = require "json" pubnub = {} local LIMIT = 1700 function pubnub.new(init) local self = init local subscriptions = {} -- SSL ENABLED? if self.ssl then self.origin = "https://" .. self.origin else self.ori...
---------------------------------------------------------------------------------------------------- -- This is a class to manage the layout of the widget. -- Please get an instance from the widget module. -- -- <h4>Extends:</h4> -- <ul> -- <li><a href="flower.EventDispatcher.html">EventDispatcher</a><l/i> -- </ul> -...
-- Copyright 2018 sirpdboy (herboy2008@gmail.com) require("luci.util") local o,t,e if luci.sys.call("pidof iperf3 >/dev/null") == 0 then status = translate("<strong><font color=\"green\">iperf3 服务端运行中</font></strong>") else status = translate("<strong><font color=\"red\">iperf3 服务端已停止</font></strong>") end o = Map...
--------------------------------- --- @file headerc.lua --- @brief Structures and functions (checksum computation) related to headers --------------------------------- local ffi = require "ffi" ffi.cdef[[ //Contains code from these files: //rte_ip.h //rte_icmp.h //rte_udp.h //rte_tcp.h //rte_sctp.h //-------------...
local line = require("lualine") line.setup({ options = { theme = "nightfox", disabled_filetypes = { "dashboard", "startify", "NvimTree", "packer" }, }, sections = { lualine_a = { "mode" }, lualine_b = { "branch" }, lualine_c = { { "filename", path = 1 }, { "diagnostics", sources =...
local hc = require "httpc" local hc_multi_request = hc.multi_request local class = require "class" local ua = require "httpc.ua" local protocol = require "httpc.protocol" local sock_new = protocol.sock_new local sock_recv = protocol.sock_recv local sock_send = protocol.sock_send local sock_connect = protocol.sock_con...
local LOG = require "logging" local aio = require "aio" local cf = require "cf" require "utils" local function run(func_name, ...) local ret, err = aio[func_name](...) return ret, err end --[[ 众所周知! 线程之间是"并行执行"的. 当mkdir与rmdir运行在不同的协程后, 即使是最简单工作, 我们也不保证哪个协程先运行, 哪个任务先结束. 如果你需要aio库进行串行化的工作时, 请至少将aio的方法按顺序写在同一...
-- This provides the nodes we over use for the game grid local S = minetest.get_translator("battleship_terrain") -- In more official versions -- Remove the groups from these nodes or change them so they can't be accessed by default hands -- Our lighter colored block (For lines) minetest.register_node("battleship_te...
local LoseGameRenderer = tiny.processingSystem() LoseGameRenderer.draw = true LoseGameRenderer.filter = tiny.requireAll('score') function LoseGameRenderer:process(entity) love.graphics.setColor(209,196,73) love.graphics.setFont(entity.title_font) love.graphics.printf("You Lose!", 0, 0, love.window.getWid...
-- models/MenuItem.lua : An entry in the menu local Model = require('models.Model') local model = Model:new() function model:new(label, target) local obj = { label = label, target = target, isHighlighted = false, } self.__index = self return setmetatable(obj, self) end functi...
local lunatest = require "lunatest" local assert_equal = lunatest.assert_equal local assert_true = lunatest.assert_true local database = require "luchia.database" local tests = {} local db local database_name function tests.setup() database_name = "test_" .. tostring(math.random(1000000)) db = database:new() loca...
#!/usr/bin/luajit -- Using: -- curl localhost:8090/api/state -- or -- http localhost:8090/api/state -- Examples: -- curl -d '{"username":"admin", "password":"admin"}' -H "Content-Type: application/json" -X POST localhost:8090/login -- curl localhost:8090/api/v1/getList -H "Content-Type: application/json" -H "Aut...
--[[ GET 30 RINGS! State management system for Love2D. ]] local state = {} -- Callbacks function call(self, functionName, ...) local stack = self.stack for i=1, #stack, 1 do -- if the function is enabled (by either a setting not being present or being set to true) and it...
mystical_agriculture.register_normal_ore_crop("edoylerite_bar","exoticores:edoylerite_bar","Edoylerite",5,2,mystical_agriculture.get_inv_image("exoticores:edoylerite_bar")) mystical_agriculture.register_normal_ore_crop("cobaltominite_bar","exoticores:cobaltominite_bar","Cobaltominite",5,2,mystical_agriculture.get_inv_...
local math_floor = math.floor local string_gmatch = string.gmatch local string_gsub = string.gsub local draw_WordBox = draw.WordBox local EDITOR = {} -- CPU hint box local oldpos, haschecked = {0,0}, false function EDITOR:Think() local caret = self:CursorToCaret() local startpos, word = self:getWordStart( caret, ...
local export = {} -- Standard transcription local common_rules = { ['𐌀'] = 'a', ['𐌁'] = 'b', ['𐌂'] = 'c', ['𐌃'] = 'd', ['𐌄'] = 'e', ['𐌅'] = 'v', ['𐌆'] = 'z', ['𐌇'] = 'h', ['𐌈'] = 'θ', ['𐌉'] = 'i', ['𐌊'] = 'k', ['𐌋'] = 'l', ['𐌌'] = 'm', ['𐌍'] = 'n', ['𐌎'] = 'š', ['𐌏'] = 'o', ['𐌐'] = 'p...
-- 公共数据接口 local ngx = require "ngx" local cjson = require "cjson.safe" local asynclock = require "resty.lock" local redis = require "resty.redis" local ffi = require "ffi" local ffi_cast = ffi.cast local C = ffi.C ffi.cdef[[ typedef unsigned char u_char; uint32_t ngx_murmur_hash2(u_char *data, size_t len...
local AtlasLoot = _G.AtlasLoot local LibBabble = {} AtlasLoot.LibBabble = LibBabble -- lua local LibStub = LibStub local setmetatable = setmetatable local format = format local FORMAT_STRING = "%s \"%s\" ERROR" function LibBabble:Get(typ) local rettab = {} local tab = LibStub(typ):GetBaseLookupTable() local loctab...
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local cjson = require "include.cjson" local config = require "login.server" local geturl = require "include.geturl" local cidMgr = require "manager.cidMgr" local process_error = function(code,msg) ...
local M = {} local WorkingDir = {} WorkingDir.__index = WorkingDir M.WorkingDir = WorkingDir function WorkingDir.new(find_dir, find_marker) vim.validate({ find_dir = { find_dir, "function", true }, find_marker = { find_marker, "function", true }, }) local marker if find_marker then marker = find_...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
-- -- GUI -- Authored by Gordon Alexander MacPherson local vector2 = require("Vector2") local vector3 = require("Vector3") local UISkin = require("GUISkin") local GUI = {} local rectF = love.graphics.rectangle; -- function to check if mouse is between the bounds of the specified element. GUI.MouseBounds = function...
-- // rTestPanel - Drag -- // zork - 2013 ----------------------------- -- INIT ----------------------------- --get the addon namespace local addon, ns = ... --variables local UIP = UIParent local CF = CreateFrame local _G = _G --get the config local cfg = ns.cfg ---...
function PowerUpBomb.main() end function PowerUpBomb.OnPickedUp(_ARG_0_) end
-- Copyright (c) 2017-present, Facebook, Inc. -- All rights reserved. -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. local ShiftNet, Cont...
local playsession = { {"MovingMike", {503957}}, {"rjdunlap", {389313}}, {"Llzzard", {364103}}, {"HYPPS", {498358}}, {"Bartell", {385586}}, {"625dennis", {447731}}, {"Vogrov", {299205}}, {"Knugn", {414447}}, {"KKnD", {1169}}, {"jackazzm", {266947}}, {"moltov", {5671}}, {"Tony3D", {1070}}, {"Maxboul", {3799}...
local Property = require "battlefield2.component.Property" local EntityBag = require "battlefield2.component.EntityBag" local Skill = require "battlefield2.component.Skill" local Pet = require "battlefield2.component.Pet" local PetHealth = require "battlefield2.component.PetHealth" local Force = require ...
return { summary = 'Apply an animation to the pose of the Model.', description = [[ Applies an animation to the current pose of the Model. The animation is evaluated at the specified timestamp, and mixed with the current pose of the Model using the alpha value. An alpha value of 1.0 will completely ov...
local running = 0 bot.add_command("markov", { description = "Generate a random sentence using Markov", aliases = { "m" }, args = { { key = "input", name = "INPUT", description = "Input for start of sentence", } }, callback = function(ctx) ...
local lg = love.graphics local li = love.image local Grid = require("lib.image.grid") ---If grid is not provided, it will be created with default quad size: 4x4. --- ---`marks` can be used in `grid.grid_pos` to shift grid between marked regions: --- ---```lua ---grid.grid_pos = skin.marks["red"] ---``` ---@class src.p...
add_rules("mode.debug", "mode.release") target("demo") add_rules("qt.console") add_files("src/*.cpp")
--[[ TTT End Round Music -> Songs (ServerSide) by Tassilo (https://github.com/TASSIA710) --]] TassiloEndRoundMusic.Songs = { -- Add your songs, use the following format -- { -- Author = "ABBA", -- Title = "Dancing Queen", -- URL = "http://yourwebserver.xyz/path/to/sounds/ABBA%20-%20Dancing%20Queen.mp3" -- ...
--*********************************************************** --** ROBERT JOHNSON ** --*********************************************************** ---@class ISBSFurnace : ISBuildingObject ISBSFurnace = ISBuildingObject:derive("ISStoneFurnace"); --********************************...
return function() local get_hex = require("cokeline/utils").get_hex local space = {text = " "} require("cokeline").setup( { mappings = { cycle_prev_next = true, }, buffers = { -- A function to filter out unwanted buffers. It takes t...
local Data = require('__stdlib__/stdlib/data/data') Data {type = 'custom-input', name = 'picker-dude-wheres-my-car', key_sequence = 'CONTROL + SHIFT + J'} Data {type = 'custom-input', name = 'picker-toggle-train-control', key_sequence = 'J'} Data {type = 'custom-input', name = 'picker-goto-station', key_sequence = 'J'...
EXPORTS["medkit"] = { }; EXPORTS["medkit"].Name = "Medkit"; EXPORTS["medkit"].Desc = "Tend to the injuries of you or your teammates."; EXPORTS["medkit"].Secondary = true; EXPORTS["medkit"].Price = 5350; EXPORTS["medkit"].Model = "models/weapons/w_medkit.mdl"; EXPORTS["medkit"].W = 2; EXPORTS["medkit"].H = 2; EXPORTS["...
local tree_cb = require("nvim-tree.config").nvim_tree_callback -- following options are the default -- each of these are documented in `:help nvim-tree.OPTION_NAME` require("nvim-tree").setup { disable_netrw = true, hijack_netrw = true, open_on_setup = false, ignore_ft_on_setup = {}, auto_close = f...
local M = { go = { server_id = "gopls", lsp = { settings = { gopls = { buildFlags = { "-tags=wireinject" }, }, }, }, debugger = "go_delve", linters = { "golangcilint", }, }, lua = { server_id = "sumneko_lua", lsp = { settings = { Lua = { runtime = { -- LuaJIT ...
--- Represents a list. -- The functions could be used for Lua tables. -- @module jls.util.List -- @pragma nostrip --- A List class. -- @type List return require('jls.lang.class').create(function(list, _, List) local function previous(l, index) index = index - 1 if index > 0 then return index, l[ind...
print("But for that I have to make some demo files");
Dntgtest_Duration = { FishPath = { Path = { { Id = 0, Duration = 1729 }, { Id = 1, Duration = 1729 }, { Id = 2, Duration = 1081 }, { Id = 3, Duration = 1081 }, { Id = 4, Duration = 1729 }, { Id = 5, Duration = 1729 }, { Id = 6...
fx_version 'adamant' games {'gta5'}; author 'Chef#6502' description 'Automatic Driving by ChefFivem' version '1.0' client_scripts { 'keys.lua', 'main.lua', }
slot0 = class("SnapshotShipCard") slot0.TypeCard = 1 slot0.TypeTrans = 2 slot1 = pg.ship_data_group slot0.Ctor = function (slot0, slot1) slot0.go = slot1 slot0.tr = slot1.transform slot0.btn = GetOrAddComponent(slot1, "Button") slot0.content = findTF(slot0.tr, "content").gameObject setActive(findTF(slot0.content...
{data={name="", author="Maguns siiftun1857 Frankline"}, blocks={ {0x133850, {4.182, -1.847}}, {0x133857, {12.842, -11.848}}, {0x133857, {4.182, -16.847}}, {0x133853, {21.502, -21.848}}, {0x133856, {-1.591, -21.847}}, {0x133858, {-8.808, 0.652}, -1.047}, {0x133851, {21.502, -1.847}, -1.047},...
-- Implements spawn protection for Cuberite local function IsInSpawn(X, Y, Z, WorldName) local ProtectRadius = WorldsSpawnProtect[WorldName] if ProtectRadius > 0 then local World = cRoot:Get():GetWorld(WorldName) local SpawnArea = cBoundingBox(Vector3d(World:GetSpawnX() - ProtectRadius, -1000, World:GetSpawnZ...
-- Strategy profile initialization routine -- Defines Strategy profile properties and Strategy parameters -- TODO: Add minimal and maximal value of numeric parameters and default color of the streams function Init() strategy:name("Trend and Range Strategy"); strategy:description("Trades trends and ranges based ...
object_ship_kihraxz_tier6 = object_ship_shared_kihraxz_tier6:new { } ObjectTemplates:addTemplate(object_ship_kihraxz_tier6, "object/ship/kihraxz_tier6.iff")
#!/usr/bin/env tarantool local test = require("sqltester") test:plan(14) --!./tcltestrunner.lua -- 2001 September 15 -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgi...
-- -- Created by IntelliJ IDEA. -- User: Stijn -- Date: 29/05/2016 -- Time: 11:46 -- To change this template use File | Settings | File Templates. -- include( "shared.lua" )
local print = print local table = table local assert = assert local setmetatable = setmetatable local Package = {min=0, max=-1} setfenv(1,Package) function Package:new(o) o = o or {} setmetatable(o, self) self.__index = self o.idSet={} o.inUse={} for id = o.max, o.min, -1 do table.insert(o.idSet, id) ...
screen_left = 0 screen_right = 1024 screen_bottom = 0 screen_top = 768 low_health_threshold = 0.3 high_health_threshold = 0.6
-- This file compares the output of a collection of test suits agains a pre- -- generated and pre-validated file. Basically it ensures that -- `stdout==checkfile.txt` -- Configuration -- ------------- local CHECKFILE_NAME = debug.getinfo(2, "S").source:sub(2):sub(1,-4).."txt" -- If the checkfile has to be regenerate...
AddCSLuaFile() ENT.Type = "anim" ENT.PrintName = "Cook Coffee Vendor" ENT.Author = "Black Tea" ENT.Spawnable = true ENT.AdminOnly = false ENT.Category = "NutScript - CityRP" ENT.RenderGroup = RENDERGROUP_BOTH ENT.defaultPrice = 250 if (CLIENT) then local EFFECT = {} function EFFECT:Init( data ) self.pos = data...
tinker_march_of_the_machines_lua = class({}) LinkLuaModifier( "modifier_tinker_march_of_the_machines_lua_thinker", "lua_abilities/tinker_march_of_the_machines_lua/modifier_tinker_march_of_the_machines_lua_thinker", LUA_MODIFIER_MOTION_NONE ) -----------------------------------------------------------------------------...
------------------------------------------------------------------- --------------------------- widget:Electric Meter --------------- ------------------------------------------------------------------- --[[ Electric Meter Widget Elements: wd_emeter.setval (zona, on, busy) -- set Emeter status...
#!snabb/src/snabb snsh io.stdout:setvbuf'no' io.stderr:setvbuf'no' --L2TP IP-over-IPv6 tunnelling program for testing. local function assert(v, ...) if v then return v, ... end error(tostring((...)), 2) end local ffi = require'ffi' local S = require'syscall' local C = ffi.C local htons = require'...
SwimmerController = {} function SwimmerController.new(level, swimmer) local self = setmetatable({}, {__index = SwimmerController}) self.keyboard_ = MOAIInputMgr.device.keyboard self.pointer_ = MOAIInputMgr.device.pointer self.button_ = MOAIInputMgr.device.mouseLeft self.swimmer_ = swimmer self.level_ = lev...
--menu west_side 22.03.22 function run_youtube_portal() m_simpleTV.Control.ExecuteAction(37) local tt={ {"YouTube главная страница","https://www.youtube.com","./luaScr/user/show_mi/menuYT.png",' - автор Nexterr'}, {"YouTube список подписок >>","https://www.youtube.com/feed/channels","./luaScr/user/show_mi/me...
ITEM.base = "base_weapons" ITEM.name = "ArcCW Grenade" ITEM.category = "ArcCW Grenades" ITEM.weaponCategory = "grenade" ITEM.isArcCW = true ITEM.isArcCWGrenade = true ITEM.isGrenade = true ITEM.isWeapon = true if (CLIENT) then function ITEM:CanStack(combineItem) return true end function ITEM:PaintOver(itemObj,...
insulate("hussar.source.fake", function() local away = require "away" local Debugger = require "away.debugger" local mocks = require "away.debugger.mocks" local fake = require "hussar.source.fake" it("can be created as a object", function() local obj = fake:create() assert.is.truthy(...
local autopairs = require("nvim-autopairs") local Rule = require("nvim-autopairs.rule") local cond = require("nvim-autopairs.conds") autopairs.setup({ check_ts = true, }) -- vim.g.completion_confirm_key = "" autopairs.add_rule(Rule("$$", "$$", "tex")) autopairs.add_rules({ Rule("$", "$", { "tex", "latex", "markdow...
ITEM.name = "P90" ITEM.desc = "A Weapon." ITEM.model = "models/weapons/w_smg_p90.mdl" ITEM.class = "nut_cs_p90" ITEM.weaponCategory = "primary" ITEM.width = 3 ITEM.height = 2 ITEM.price = 3700 ITEM.iconCam = { ang = Angle(-1.7068501710892, 271.58676147461, 0), fov = 9.780103254469, pos = Vector(-5, 200, .5) }
local typedefs = require "kong.db.schema.typedefs" return { name = "header-based-rate-limiting", fields = { { consumer = typedefs.no_consumer }, { config = { type = "record", fields = { { redis_host = { type = "string", required = true, default = "localhost" } }, ...
function OnModPreInit() print("Mod - OnModPreInit()") -- first this is called for all mods end function OnModInit() print("Mod - OnModInit()") -- after that this is called for all mods end function OnModPostInit() print("Mod - OnModPostInit()") -- then this is called for all mods end function OnPlayer...
global_var = 25.93 -- the float 25.93 itself only appears in the main method constants list -- the string "global_var" appears in the other two constants lists function first_function() local var_1 = -50 local var_2 = 100 local var_3 = -200 print(global_var) function second_function() -- I have three upvalues re...
--[[------------------------------------------------------------------------- Copyright 2017 - 2021 viral32111 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LIC...
return function() itSKIP("SOC-6353 - These unit tests need to be moved from LuaApp", function() end) end
local opts = {noremap = true, silent = true} -- Telescope vim.api.nvim_set_keymap('n', '<c-p>', "<cmd>lua require('telescope.builtin').find_files()<cr>", opts) -- Window movement vim.api.nvim_set_keymap('n', '<leader>h', ':wincmd h', opts) vim.api.nvim_set_keymap('n', '<leader>j', ':wincmd j', opts) vim.api.nvim_set_...
-- Copyright (c) 2016 Thermo Fisher Scientific -- -- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files -- (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, -- merge, ...