content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
--[[ Network architectures used in tests. ]] local function additional_network_architectures(network_list) local network_list = network_list or {} -- LSTM network_list['vgg16-lstm'] = paths.dofile('vgg16_lstm.lua') network_list['vgg16-lstm2'] = paths.dofile('vgg16_lstm2.lua') network_list['vg...
nilq/small-lua-stack
null
local allowCountdown = false; function onCreate() makeLuaSprite('black', 'stages/intros/black', 0,0); setObjectCamera('black', 'camother'); addLuaSprite('black', false); makeLuaSprite('circle', 'stages/intros/CircleTooSlow', 1280,0); setObjectCamera('circle', 'camother'); addLuaSprite...
nilq/small-lua-stack
null
local Keys = { ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKS...
nilq/small-lua-stack
null
-- Copyright (C) idevz (idevz.org) local _M = { _VERSION = "0.1.0" } local mt = {__index = _M} function _M.new(self, opts) local response = { request_id = opts.request_id or nil, value = opts.value or nil, exception = opts.exception or nil, process_time = opts.process_time or ...
nilq/small-lua-stack
null
--======================================= -- filename: entities/enemies/turret.lua -- author: Shane Krolikowski -- created: Apr, 2018 -- description: Turret enemy entity. --======================================= local Enemy = require 'entities.enemies.enemy' local Turret = Enemy:extend() function Turret...
nilq/small-lua-stack
null
--Let's define some colors... duh... orange = {255, 129, 74, 255} darkorange = {169, 115, 90, 255} white = {255, 255, 255, 255} blueblack = { 4, 4, 4, 255} purple = { 40, 0, 32, 255} s3top = {111, 60, 103, 255} s3bot = {250, 190, 120, 255} fogyellow = {250, 190, 120, 90} red =...
nilq/small-lua-stack
null
mysql = exports.mysql function playerDeath() if getElementData(source, "adminjailed") then spawnPlayer(source, 263.821807, 77.848365, 1001.0390625, 270, getElementModel(source), 6, getElementData(source, "playerid")+65400, getPlayerTeam(source)) setCameraInterior(source, 6) setCameraTarget(source) fade...
nilq/small-lua-stack
null
local PANEL = {} AccessorFunc( PANEL, "m_strModelName", "ModelName" ) AccessorFunc( PANEL, "m_iSkin", "SkinID" ) AccessorFunc( PANEL, "m_strBodyGroups", "BodyGroup" ) AccessorFunc( PANEL, "m_strIconName", "IconName" ) function PANEL:Init() self:SetDoubleClickingEnabled( false ) self:SetText( "" ) self.Icon = ...
nilq/small-lua-stack
null
-- *************************************************************** -- -- Copyright 2016 by Sean Conner. All Rights Reserved. -- -- This library is free software; you can redistribute it and/or modify it -- under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either ...
nilq/small-lua-stack
null
require("lfs") local function dot_git_exists() local path = "./.git" if (lfs.attributes(path, "mode") == "directory") then return true end return false end if dot_git_exists() then branch = '-branch' else branch = '-📁' --branch = '-  ' end local function get_var(my_var_name) return vim.api.nvim...
nilq/small-lua-stack
null
terrain_mat = { passes = { base = { queue='opaque', shader='terrain' }, depthPrepass = { vertex='depth_prepass_terrain', fragment='depth_prepass', } }, resources = { [0] = { name="heightmap", resType='texture2D', uv='clamp', texFormat='r16f', storeData=true, useMipMap...
nilq/small-lua-stack
null
local FrameStatGraphic = require("FrameStatGraphic") local function app(params) local win1 = WMCreateWindow(params) local gr = FrameStatGraphic:new({width = params.frame.width, height=20}) win1:add(gr) win1:show() while true do win1:draw() yield(); end end return app
nilq/small-lua-stack
null
function love.draw() if screen == "playing" then renderBoard() elseif screen == "lost" then renderScore() elseif screen == "start" then setColor("white") gfx.printf("Press 1 for lazy,\n2 for easy,\n3 for medium,\n4 for hard, and\n"..controls.menu.." for the keyconfig", 0, screenH2-28, screenW, "center") elseif ...
nilq/small-lua-stack
null
--[[ ModuleName : Path : service/main.lua Author : jinlei CreateTime : 2020-09-30 19:41:06 Description : --]] local skynet = require "skynet" require "skynet.manager"--------- import skynet.register local config_system = require "config_system" local config_server = config_system.server local config_login = config_syst...
nilq/small-lua-stack
null
local IAspect = require("api.IAspect") local flags = { absorbed_charges = "number", -- gAbsorbCharge has_shield_bash = "boolean", -- cPowerBash is_married = "boolean", -- cMarry is_being_escorted_sidequest = "boolean", -- cGuardTemp has_given_token_of_fr...
nilq/small-lua-stack
null
Config = {} Config.okokNotify = true -- Put on false if you don't have okokNotify. Config.ems = { enable = true, label = "LSFD", label2 = "Global Announce", message = "We are in service, remember that you can call us for any emergency or go to the hospital!", time = 7500, job = "ambulance" } Config.mechani...
nilq/small-lua-stack
null
local numStages = SL.Global.Stages.PlayedThisGame local page = 1 local pages = math.ceil(numStages/4) local t = Def.ActorFrame{ CodeMessageCommand=function(self, param) if param.Name == "Screenshot" then -- organize Screenshots taken using Simply Love into directories, like... -- ./Screenshots/Sim...
nilq/small-lua-stack
null
local server_table={} luci.model.uci.cursor():foreach("bypass","servers",function(s) if (s.type=="ss" and not nixio.fs.access("/usr/bin/ss-local")) or (s.type=="ssr" and not nixio.fs.access("/usr/bin/ssr-local")) or s.type=="socks5" or s.type=="tun" then return end if s.alias then server_table[s[".name"]]="[%s]:...
nilq/small-lua-stack
null
require('torch') require('nn') require 'spatial-pooling/WeldonPooling' require 'spatial-pooling/GlobalMaxPooling' require 'spatial-pooling/GlobalAveragePooling' require 'spatial-pooling/LogSumExpPooling' require 'spatial-pooling/GlobalkMaxPooling'
nilq/small-lua-stack
null
object_tangible_collection_reward_col_resource_harvest_reward_meat = object_tangible_collection_reward_shared_col_resource_harvest_reward_meat:new { } ObjectTemplates:addTemplate(object_tangible_collection_reward_col_resource_harvest_reward_meat, "object/tangible/collection/reward/col_resource_harvest_reward_meat.iff...
nilq/small-lua-stack
null
local DataDump = require 'table_dumper' -- ---------------------- -- 解析命令行 -- ---------------------- local argparse = require 'argparse' local arg_parse = argparse('dxbc_reader') arg_parse:argument('input', 'input file') arg_parse:option('-o --output', 'output file', false) arg_parse:option('-d --debug', 'p...
nilq/small-lua-stack
null
function onCreate() -- background shit makeLuaSprite('BGmansion', 'BGmansion', -600, -300); setScrollFactor('BGmansion', 0.9, 0.9); addLuaSprite('BGmansion', false); close(true); --For performance reasons, close this script once the stage is fully loaded, as this script won't be used anymore after loading...
nilq/small-lua-stack
null
function Str(str) local start, excls, ref, finish = string.match(str.text, "^(.*)%[(%!+)(.+)%](.*)$") if not ref then return end local origRef = ref ref = string.lower(ref) local latex = "" if excls == "!" then print("transforming " .. ref .. " to cleverref") local isUpper = string.match(origRef...
nilq/small-lua-stack
null
local function DoEquipmentFoleySounds(inst) for k, v in pairs(inst.components.inventory.equipslots) do if v.foleysound ~= nil then inst.SoundEmitter:PlaySound(v.foleysound, nil, nil, true) end end end local function DoFoleySounds(inst) DoEquipmentFoleySounds(inst) if inst.fo...
nilq/small-lua-stack
null
vim.g.EasyMotion_do_mapping = 0
nilq/small-lua-stack
null
Config = {} Config.DrawDistance = 10.0 Config.Locale = 'fr' Config.Zones = {} Config.OrangeFarms = { {x=273.503, y=6507.40, z=29.3984}, {x=263.927, y=6506.20, z=29.6686}, {x=262.265, y=6516.62, z=29.7228}, {x=272.459, y=6519.20, z=29.4504}, {x=281.37, y=6518.92, z=29.1644}, {x=28...
nilq/small-lua-stack
null
module(...,package.seeall); function ExistsLua(file) return ml.FileSystem.Exists(file..".lua"); end
nilq/small-lua-stack
null
SCRIPT_TYPE = "CA" TAGS = { {0, "Empty"}, {1, "Red car"}, {2, "Blue car"} } NEIGHBORS_POS = { {1, 0}, {-1, 0}, {0, 1}, {0, -1}, {-1, -1} } STATES_NUM = 3 right = 1 left = 2 up = 3 down = 4 down_left = 5 empty = 0 red_car = 1 blue_car = 2 function get_next_state (neighbors, state) if state == red_...
nilq/small-lua-stack
null
require(script:GetCustomProperty("LinkedList")) -- Sets _G.LinkedList require(script:GetCustomProperty("UIAnimation")) -- Sets _G.UIAnimation require(script:GetCustomProperty("AnimationManager")) -- Sets _G.SharedAnimationManager local manager = _G.SharedAnimationManager local Anim = _G.UIAnimation local function s...
nilq/small-lua-stack
null
package.path = package.path .. ";../external/?.lua" inspect = require("inspect") json = require("json") pt = require("perceptron") TRAIN_FILE = "./conll2003/train.json" TEST_FILE = "./conll2003/valid.json" function to_json(filename) local file = io.open(filename, "r") local sents = file.read(file, "*a") fi...
nilq/small-lua-stack
null
AddCSLuaFile( "cl_init.lua" ); AddCSLuaFile( "shared.lua" ); include( "shared.lua" ); function ENT:Think() if( self.TripmineOnTime and CurTime() >= self.TripmineOnTime ) then self.TripmineOnTime = nil; self:SetTripmineOn( true ); self:EmitSound( Sound( "buttons/button16.wav" ) ); self.StartExpl = CurTime() ...
nilq/small-lua-stack
null
clsAsMaker = clsMakerBase:Inherit() function clsAsMaker:GetTableSerialzeFunc() return LuaTable2AsSerialize end
nilq/small-lua-stack
null
local M = {} -- Return an iterator that generates all integers starting at from -- and ending at to, inclusive. function M.fromto(from, to) return function(last, cur) from = cur + 1 if from > last then return nil end return from end, to, from - 1 end -- Partial binds the provided arguments to function...
nilq/small-lua-stack
null
env = require('test_run') test_run = env.new() test_run:cmd("create server tx_man with script='box/tx_man.lua'") test_run:cmd("start server tx_man") test_run:cmd("switch tx_man") s1 = box.schema.space.create('s1') s2 = box.schema.space.create('s2') _ = s1:create_index('pk') _ = s2:create_index('pk') -- Insert into th...
nilq/small-lua-stack
null
-- 一度もsave dataが作成されていない場合に読み込まれる。 return {is_first_boot=true,}
nilq/small-lua-stack
null
-- TODO -- Add error filtering here! local e=epoe local Tag=e.Should_TagHuman -- or "EPOE" --------------- -- Clientside Console UI --------------- local epoe_filtering=CreateClientConVar("epoe_filtering", "1", true, false) local epoe_filtering_dbg=CreateClientConVar("epoe_filtering_dbg", "0", true, false) e.filters...
nilq/small-lua-stack
null
local community_pin_map = require("qnFiles/qnPlist/hall/community_pin"); local friendMainLayout= { name="friendMainLayout",type=0,typeName="View",time=0,x=0,y=0,width=1016,height=540,visible=1,nodeAlign=kAlignTopLeft,fillParentWidth=0,fillParentHeight=0, { name="topTabView",type=0,typeName="View",time=96117341,x=0,...
nilq/small-lua-stack
null
----------------------------------------------------------------------------------------------------------------------- -- RedFlat grid layout -- --------------------------------------------------------------------------------...
nilq/small-lua-stack
null
local data = {10, 90, 30, 120, 50, 60, 70, 80} local count = 0 local function binary_search(array, item) local min = 0 local max = #(array) while min <= max do count = count + 1 local mid = math.ceil((min + max) / 2) local guess = data[mid] if guess == item then r...
nilq/small-lua-stack
null
return {'laesie','laetare','laetitia','laer','laenen','laeven','laemers','laesies','laetitias'}
nilq/small-lua-stack
null
local dpdk = require "dpdk" local mg = require "moongen" local memory = require "memory" local device = require "device" local ts = require "timestamping" local filter = require "filter" local hist = require "histogram" local stats = require "stats" local timer = require "timer" local arp = require "pr...
nilq/small-lua-stack
null
--[[ sh_menu.lua MrGrimm --]] Menu = Menu or {} -- In case of in-game refresh Menu.Width = 1536 Menu.Height = 837 Menu.LogoURL = "http://thecookiex.com/img/cxlogo.png" Menu.LogoWidth = 400 Menu.LogoHeight = 100 Menu.Enum = { INFO = 1, CHANGETEAM = 1, SCOREBOARD = 2, OPTIONS = 3, ADMIN = ...
nilq/small-lua-stack
null
local database = {} local function databaseReceive( tab ) database = tab end net.Receive("database", function(len) local datatable = net.ReadTable() databaseReceive( datatable ) end) function databaseTable() return database end function databaseGetValue( name ) local d = databaseTable() return d[name] end
nilq/small-lua-stack
null
function test_assert() -- begin skip assert_true(true) if false then -- end skip assert_true(false) -- this should be true. This is how you write comments in Lua -- begin skip end -- end skip end function test_assert_with_message() -- begin skip assert_true(true, 'This should be true') if false ...
nilq/small-lua-stack
null
local bidi = require('bidi') local ucdn = require('ucdn') describe("bidi module", function() local L = ucdn.UCDN_BIDI_CLASS_L local B = ucdn.UCDN_BIDI_CLASS_B local O = ucdn.UCDN_BIDI_PAIRED_BRACKET_TYPE_OPEN local C = ucdn.UCDN_BIDI_PAIRED_BRACKET_TYPE_CLOSE local N = ucdn.UCDN_BIDI_PAIRED_BRACKET_TYPE_NO...
nilq/small-lua-stack
null
local buf, win local function close() if win and vim.api.nvim_win_is_valid(win) then vim.api.nvim_win_close(win, true) end end local function zoom_toggle() local width = vim.api.nvim_get_option('columns') local max_width = math.ceil(width * 0.9) local min_width = math.ceil(width * 0.5) if vim.api.nv...
nilq/small-lua-stack
null
local newEntity = table.deepcopy(data.raw["logistic-container"]["logistic-chest-requester"]) newEntity.name = "logistic-chest-botRecaller" newEntity.icon = "__BotRecaller__/graphics/icon.png" newEntity.minable = {hardness = 0.2, mining_time = 0.5, result = "logistic-chest-botRecaller"} newEntity.picture = { ...
nilq/small-lua-stack
null
l = level() assert(is_level(l)) assert(l:is_bottom()) assert(l:kind() == level_kind.UVar) l = level(l, 1) assert(is_level(l)) assert(not l:is_bottom()) assert(l:is_lift()) assert(l:kind() == level_kind.Lift) assert(l:lift_of() == level()) assert(l:lift_offset() == 1) l = level("U") assert(l:is_uvar()) assert(l:uvar_nam...
nilq/small-lua-stack
null
project "Game_App" if _ACTION then location(GetEngineLocation()) end if _OPTIONS["console_app"] then kind "ConsoleApp" else kind "WindowedApp" end debugdir "../../../workingdir" language "C++" files { "**.h", "**.cpp", "**.inl", "**.lua" } includedirs { "../Engine/include", "....
nilq/small-lua-stack
null
neb_module_proto = Proto("neb_module", "NEB Module") local f_args = ProtoField.stringz("neb_module.args", "args") local f_enabled = ProtoField.bool("neb_module.enabled", "enabled", 8, nil, 0x1) local f_filename = ProtoField.stringz("neb_module.filename", "filename") local f_poller_id = ProtoField.uint32("neb_module.po...
nilq/small-lua-stack
null
require('cutorch') require('nn') require('cunn') require('cudnn') require('optim') require('paths') require('nngraph') require('libcrnn') require('utilities') require('inference') require('CtcCriterion') require('DatasetLmdb') require('LstmLayer') require('BiRnnJoin') require('SharedParallelTable') --cutorch.setDevi...
nilq/small-lua-stack
null
------------------------------------------------------------------------ --[[ RecurrentAttention ]]-- -- Ref. A. http://papers.nips.cc/paper/5542-recurrent-models-of-visual-attention.pdf -- B. http://incompleteideas.net/sutton/williams-92.pdf -- module which takes an RNN as argument with other -- hyper-parameters such ...
nilq/small-lua-stack
null
local logger = require('logger.logger') local Prefix = logger.LogPrefix --[[ 30 black 31 red 32 green 33 yellow 34 blue 35 magenta 36 cyan 37 white --]] local Color = {36,32,33,31,35} local function output(lv, prefix, fmt, ...) local curDate = os.date('%Y-%m-%d %H:%M:%S') print(string.for...
nilq/small-lua-stack
null
--[[lit-meta name = "slact/redis-callback-client" version = "0.0.11" description = "A full-featured callback-based Redis client for Luvit" tags = {"redis"} license = "MIT" author = { name = "slact" } homepage = "https://github.com/slact/luvit-redis-callback-client" dependencies = { "slact/redis-codec", "creationix/...
nilq/small-lua-stack
null
-- Iterators Functions local function first_next_iterator(FirstFunction, NextFunction, CheckFunc, ...) local obj, prevobj = FirstFunction(...) local arguments = {...} return function() while CheckFunc(obj) do prevobj, obj = obj, NextFunction(unpack(arguments)) return prevobj end end end fu...
nilq/small-lua-stack
null
--[[ Copyright (c) 2015 gameboxcloud.com 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, publish, distrib...
nilq/small-lua-stack
null
-- Copyright 2007-2016 Mitchell mitchell.att.foicica.com. See LICENSE. local M = {} textadept = M --[[ This comment is for LuaDoc. --- -- The textadept module. -- It provides utilities for editing text in Textadept. module('textadept')]] M.bookmarks = require('textadept.bookmarks') require('textadept.command_entry')...
nilq/small-lua-stack
null
dazzle_shadow_wave_lua = class({}) LinkLuaModifier( "modifier_dazzle_shadow_wave_lua", "lua_abilities/dazzle_shadow_wave_lua/modifier_dazzle_shadow_wave_lua", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- -- Ability Start function dazzle_shadow_wave_lua:OnS...
nilq/small-lua-stack
null
ITEM.name = "Баллон с газом (7 литров)" ITEM.desc = "Тяжелый металлический газовый баллон, пропитанный изнутри особыми полимерами для хранения внутри СО2/О2 раза, а с внешней стороны покрыт гипалоном для защиты от погодных условий и ультрафиолета. Этот газовый баллон пригоден для хранения внутри любого промышленного ...
nilq/small-lua-stack
null
--! --! \addtogroup themes themes table --! \brief themes 表用来描述一组界面实现 --! --! 在每个widget内部,可以通过widget的函数onInit(self,themes)来获得和widget相关的themes表。 --! themes的名称可以通过themes.name来获得。这个名称就是ui.loadThemes的第一个参数,它就是 --! themes的名称,在创建widget的时候需要用到这个名称。 --! --! ## 默认的themes包括下面的widget --! - \ref window --! - \ref button --! - \...
nilq/small-lua-stack
null
--[[ Copyright (c) 2016 Michael Wilber This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications,...
nilq/small-lua-stack
null
chatCommands.quest = { permissions = {'admin'}, event = function(player, args) local quest = tonumber(args[1]) if not lang['en'].quests[quest] then return chatMessage('<g>[•] invalid quest ID.', player) end local questStep = tonumber(args[2]) or 0 local target = string_nick(args[3]) if not players[target] t...
nilq/small-lua-stack
null
return { base00 ="#1E1D2D", base01 ="#282737", base02 ="#2f2e3e", base03 ="#383747", base04 ="#414050", base05 ="#bfc6d4", base06 ="#ccd3e1", base07 ="#D9E0EE", base08 ="#DDB6F2", base09 ="#89DCEB", base0A ="#F8BD96", base0B ="#ABE9B3", base0C ="#F5C2E7", base0D ="#96CDFB", ...
nilq/small-lua-stack
null
minetest.register_craftitem("trumpet:trumpet", { description = "Trumpet", inventory_image = "trumpet_trumpet.png", on_use = function(itemstack, user) minetest.sound_play("trumpet_trumpet", { pos = user:getpos(), max_hear_distance = 75, gain = 4, }) end, groups = {instrument=1} }) minetest.register_cr...
nilq/small-lua-stack
null
return { tag = 'callbacks', summary = 'Called continuously to render frames to the display.', description = [[ This callback is called every frame. Use it to render the scene. If a VR headset is connected, anything rendered by this function will appear in the headset display. ]], arguments = {}, r...
nilq/small-lua-stack
null
-- Project: OiL - ORB in Lua -- Release: 0.6 -- Title : Object Request Dispatcher -- Authors: Renato Maia <maia@inf.puc-rio.br> local _G = require "_G" --[[VERBOSE]] local verbose = require "oil.verbose" local xpcall = _G.xpcall local package = require "packag...
nilq/small-lua-stack
null
--[[ * Palette.lua * * Display the predefined colours in the RYB (painters) palette. ]] local wx = require("wx") local palette = require("lib.RYBColours") local hsl_con = require("lib.hsl") local _floor = math.floor local _wxColour = palette.wxColour local _colours = palette.tColours local m_PenNull...
nilq/small-lua-stack
null
describe("Pomodoro", function() local pomodoro before_each(function() spy.on(_G, "print_primary") spy.on(_G, "print_success") spy.on(_G, "print_error") spy.on(_G, "print_warning") spy.on(_G, "print_info") end) it("should print message about the new po...
nilq/small-lua-stack
null
-- access local var = ngx.var local stream_name = var.stream_name ngx.say("access.lua ::",stream_name)
nilq/small-lua-stack
null
--[[ TTT -> Slow Motion Plugin (ServerSide) by Tassilo (https://github.com/TASSIA710) --]] -- Download content resource.AddSingleFile("sound/terrortown/plugins/slow_motion/slow_motion_end.wav") resource.AddSingleFile("sound/terrortown/plugins/slow_motion/slow_motion_start.wav") hook.Add("TTT_RoundOver", "TTT:Plu...
nilq/small-lua-stack
null
local Class = require 'class' local termfx = require 'termfx' local Window = Class( { --====-- init = function( self, ide, name, theme ) --====-- self.ide = ide self.theme = theme or ide.theme self.name = name end, --========-- contains = function( self, x,y ) --========-- return x >= self.x and...
nilq/small-lua-stack
null
local render_cut = true local cfg = { ep=5.7, kerf=0.152, base = { len=200, width=25, height=135, delta=20, middle={} }, stabil = { width=80 }, axis = { radius = 1, pos={3,2, 2.5,3,3.5,4,4.5,5} }, bras={ len=150, axis={ pos={0.5, 1, 1.5, 2, 2.5,3, 3.5, 4,...
nilq/small-lua-stack
null
--@include settings.txt local Settings = require('settings.txt') local function requireStarUtil() --@include lib/StarUtil/util.lua require(Settings.libPath .. "/StarUtil/util.lua") --@include lib/StarUtil/class.lua require(Settings.libPath .. "/StarUtil/class.lua") end try(requireStarUtil, function() ...
nilq/small-lua-stack
null
parts = { "app.lua", "colors.lua", "car.lua", "udp.lua", "car2.lua" } for i,v in ipairs(parts) do if file.exists(v) then print("compiling "..v) node.compile(v) file.remove(v) end end dofile('config.lua') --in gitignore dofile("udp.lc") app = dofile("app.lc")
nilq/small-lua-stack
null
local template = require("resty.template") local discount = require("discount") local webstats = {} webstats.__index = webstats setmetatable(webstats, {__call = function(self, ...) return self.new(...) end}) -- -- Configuration -- -- webstats = { -- driver = "webstats", -- wwwdir = "/var/www", ...
nilq/small-lua-stack
null
if test_module then return end test_module = {} function test_module.calculate(arg) return arg * 10 end return test_module
nilq/small-lua-stack
null
--[[ Jamba - Jafula's Awesome Multi-Boxer Assistant Copyright 2008 - 2018 Michael "Jafula" Miller License: The MIT License ]]-- -- Create the addon using AceAddon-3.0 and embed some libraries. local AJM = LibStub( "AceAddon-3.0" ):NewAddon( "JambaPurchase", "JambaModule-1.0", "AceConsole-3.0", "AceEvent-3.0" )...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. Copyright (C) 2017 Hanks -- User: hanks -- Date: 2017/5/26 -- A news app -- require "import" import "android.widget.*" import "android.content.*" import "android.view.View" import "androlua.LuaHttp" import "androlua.LuaAdapter" import "androlua.widget.video.VideoPlayerActivity" import "...
nilq/small-lua-stack
null
local git_signs = require("gitsigns") local git_mappings = require("mappings.git") local M = {} function M.setup() git_signs.setup({ signs = { add = { text = " ┃" }, change = { text = " ┃" }, delete = { text = " ⎯" }, topdelete = { text = " ‾" }, changedelete = { text = " ≃" }, ...
nilq/small-lua-stack
null
Outfit = {} -- private variables local outfitWindow local outfitCreature local outfit local outfits local currentOutfit = 1 local currentColorBox local currentClotheButtonBox -- private functions local function onAddonCheckChange(addon, value) if addon:isChecked() then outfit.addons = outfit.addons + value el...
nilq/small-lua-stack
null
return { ["None"] = { ["default-friendly"] = "006192", ["transport-belt"] = {r = 0.8, g = 0.63, b = 0.28}, ["fast-transport-belt"] = {r = 0.8, g = 0.63, b = 0.28}, ["express-transport-belt"] = {r = 0.8, g = 0.63, b = 0.28}, ["pipe"] = {r = 69, g = 130, b = 165}, ["pipe-to-ground"] = {r = 25, g...
nilq/small-lua-stack
null
package.path = package.path .. ";data/scripts/lib/?.lua" package.path = package.path .. ";data/scripts/?.lua" package.path = package.path .. ";configs/?.lua" SectorGenerator = require ("SectorGenerator") OperationExodus = require ("story/operationexodus") Placer = require("placer") require("RegenerativeAsteroidsConfi...
nilq/small-lua-stack
null
local api = {} api.in_insert_enter_autocmd = nil api.get_mode = function() if api.is_insert_mode() then return 'i' elseif api.is_visual_mode() then return 'x' elseif api.is_select_mode() then return 's' elseif api.is_cmdline_mode() then return 'c' end end api.is_insert_mode = function() r...
nilq/small-lua-stack
null
local Aggro_EventFrame = CreateFrame("Frame") Aggro_EventFrame:RegisterEvent("PLAYER_REGEN_DISABLED") Aggro_EventFrame:SetScript("OnEvent", function(self, event, ...) print("You got aggro!") end)
nilq/small-lua-stack
null
wait(); plr = game.Players.LocalPlayer char = plr.Character Humans = char:findFirstChild("Humanoid") BulletTable,Disposables,Lasers = {},{},{} Clips,Bullets,CurrentGun = 999999999,999999,1 Reloading,FlashLight,LaserLight,Silenced,ToolName,LaserColor,plr,char = false,false,false,false,"Cutlass's","Hot pink",game.Players...
nilq/small-lua-stack
null
--[[ Copyright 2008-2016 João Cardoso Sushi is distributed under the terms of the GNU General Public License (or the Lesser GPL). This file is part of Sushi. Sushi is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Found...
nilq/small-lua-stack
null
--- 角色控制模块 --- @module Player Ctrl Module --- @copyright Lilith Games, Avatar Team --- @author Dead Ratman local PlayerCtrl, this = ModuleUtil.New('PlayerCtrl', ClientBase) --声明变量 local isDead = false local forwardDir = Vector3.Forward local rightDir = Vector3.Right local horizontal = 0 local vertical = 0 -- PC端交互按键 ...
nilq/small-lua-stack
null
--[[ Efficient miner GPS is required. Miner Requires: Diamond pick Ender Modem Plethora scanner Bucket --]] local Event = require('opus.event') local Equipper = require('turtle.equipper') local GPS = require('opus.gps') local Point = require('opus.point') local UI = require('opus.ui') loca...
nilq/small-lua-stack
null
object_mobile_dressed_corellia_jesseb_convorr = object_mobile_shared_dressed_corellia_jesseb_convorr:new { } ObjectTemplates:addTemplate(object_mobile_dressed_corellia_jesseb_convorr, "object/mobile/dressed_corellia_jesseb_convorr.iff")
nilq/small-lua-stack
null
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' client_script 'speed.lua'
nilq/small-lua-stack
null
Improved_System_Map_Optimiser = Improved_System_Map_Optimiser or {} ----------- // SCRIPT BY INJ3 ----------- // SCRIPT BY INJ3 ----------- // SCRIPT BY INJ3 ---- // https://steamcommunity.com/id/Inj3/ ---- Version 1.3 ------- ------------------------------- Configuration if SERVER then Improved_Syste...
nilq/small-lua-stack
null
local K, C = unpack(select(2, ...)) local Module = K:GetModule("Skins") local _G = _G local pairs = _G.pairs local string_find = _G.string.find local table_insert = _G.table.insert local unpack = _G.unpack local CreateFrame = _G.CreateFrame local hooksecurefunc = _G.hooksecurefunc local r, g, b = K.r, K.g, K.b -- H...
nilq/small-lua-stack
null
------------------------------------------------------------------------------ -- Aergo Standard Token Interface (Proposal) - 20190731 ------------------------------------------------------------------------------ -- A internal type check function -- @type internal -- @param x variable to check -- @param t (string) ex...
nilq/small-lua-stack
null
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterServerEvent('esx_slotmachine:sv:1') AddEventHandler('esx_slotmachine:sv:1', function(amount,a,b,c) local source = source local xPlayer = ESX.GetPlayerFromId(source) local blackMoney = xPlayer.getAccount('black_money') amount =...
nilq/small-lua-stack
null
return function (parameters) return { image_source = parameters.image_source, color = parameters.color or {255, 255, 255, 255} } end
nilq/small-lua-stack
null
ENT.Type = "anim" ENT.Base = "base_entity" ENT.PrintName = "Weapons" ENT.Author = "" ENT.Contact = "" ENT.Purpose = "" ENT.Instructions = "" allweapons = { "weapon_rpg", "weapon_crowbar" }
nilq/small-lua-stack
null
me = game.Playersyfc function onChatted(msg) msg = msg if string.match(msg, "hat/") then p = game.Workspace.yfc:GetChildren() for n = 1,#p do for w in string.gmatch(msg, "%d+") do if (p[n].className == "Hat") then for i = 1,w do wait(0.05) t = p[n].Handle:clone() t.Parent = game.Workspace t.CanCollide = true t.Anchore...
nilq/small-lua-stack
null
local assert = assert local tostring = assert( tostring ) local setmetatable = assert( setmetatable ) local require = assert( require ) local F = require( "fx.functors" ) local makeMonoid = assert( F.makeMonoid ) local Endo, Meta = makeMonoid( "Endo" ) setmetatable( Endo, { __call = function( _, v ) return se...
nilq/small-lua-stack
null
local socket = ngx and ngx.socket.tcp or require("socket").tcp local cbson = require("cbson") local opcodes = { OP_REPLY = 1; OP_MSG = 1000; OP_UPDATE = 2001; OP_INSERT = 2002; RESERVED = 2003; OP_QUERY = 2004; OP_GET_MORE = 2005; OP_DELETE = 2006; OP_KILL_CURSORS = 2007; } local _M = {} local mt =...
nilq/small-lua-stack
null
-- currently only supports vs2010. -- and premake4 4.4 doesn't have vs2012 support yet. but seems auto upgrade works fine if _ACTION == 'clean' then os.rmdir('./build') os.rmdir('./bin') os.rmdir('./obj_vs') os.rmdir('./obj_gmake') end local LIB_DIVERT_VC11 = 'external/WinDivert-1.1.7-MSVC' local LIB_...
nilq/small-lua-stack
null