content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
--[[ --MIT License -- --Copyright (c) 2019 manilarome --Copyright (c) 2020 Tom Meyers -- --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 ...
nilq/small-lua-stack
null
local dataToSend = {} dataToSend[1] = {'pump on', 1} sendToTS = require("sendToTS") sendToTS.sendData('JSF pump keys', dataToSend, false, true) sendToSparkfun = nil package.loaded["sendToTS"]=nil
nilq/small-lua-stack
null
package("libx11") set_homepage("https://www.x.org/") set_description("X.Org: Core X11 protocol client library") set_urls("https://www.x.org/archive/individual/lib/libX11-$(version).tar.bz2") add_versions("1.6.9", "9cc7e8d000d6193fa5af580d50d689380b8287052270f5bb26a5fb6b58b2bed1") if is_plat("maco...
nilq/small-lua-stack
null
if not easylua then error("[XSYS] Unable to initialize without Easylua") end xsys = xsys or {} xsys.StringPatterns = { Prefix = "[!|/|%.|;]", String = "[\"|']", Separator = "[,]", Escape = "[\\]" } team.SetUp(1,"default",Color(128,128,128)) xsys.Notify = function(msg,txt) local ok = hook.Run("XsysNoti...
nilq/small-lua-stack
null
local M = {} local symbols,symbolsorg={},{} M.symbols,M.symbolsorg=symbols,symbolsorg local locations={} M.locations=locations local sections={} M.sections=sections local relations={} M.relations=relations local stats={} M.stats=stats setmetatable(stats, stats) local before_link={} M.before_link=before_link M.strip ...
nilq/small-lua-stack
null
local Clockwork = Clockwork; local PLUGIN = PLUGIN; -- Called when a player's character data should be saved. function PLUGIN:PlayerSaveCharacterData(player, data) if (data["backpackTable"]) then for k, v in pairs (data["backpackTable"]) do data["backpackTable"][k] = math.Clamp(math.Round(v), 0, 10); end; el...
nilq/small-lua-stack
null
require 'nn' -- a typical convolutional network, with locally-normalized hidden -- units, and L2-pooling -- Note: the architecture of this convnet is loosely based on Pierre Sermanet's -- work on this dataset (http://arxiv.org/abs/1204.3968). In particular -- the use of LP-pooling (with P=2) has a very positive impact...
nilq/small-lua-stack
null
-- MYTHIC SNAKE BOSS -- -- MYTHIC SNAKE ( mythic_snake ) -- SNAKE SHAMAN ( snake_shaman ) -- DIVINE SNAKE ( divine_snake ) -- SNAKE MAGE ( snake_mage ) -- SPIRIT SNAKE ( spirit_snake ) -- SNAKE AVENGER ( snake_avenger ) -- [ SNAKE 1 KEY BOSS ] -- mythic_snake = { on_spawn = function(mob) mob:warp(236, 10, 18) end...
nilq/small-lua-stack
null
local require = require local builder = require "oil.builder" local base = require "oil.arch.base" local arch = require "oil.arch.corba" module "oil.builder.corba" ValueEncoder = arch.ValueEncoder {require "oil.corba.giop.Codec" } ObjectReferrer = arch.ObjectReferrer {require "oil.corba.gi...
nilq/small-lua-stack
null
module 'mock' -------------------------------------------------------------------- CLASS: CommentItemText ( CommentItem ) :MODEL{ Field 'text' :string(); } function CommentItemText:createVisualizer() return CommentItemTextVisualizer( self ) end --------------------------------------------------------------------...
nilq/small-lua-stack
null
-- Cette ligne permet d'afficher des traces dans la console pendant l'éxécution io.stdout:setvbuf('no') -- Empèche Love de filtrer les contours des images quand elles sont redimentionnées -- Indispensable pour du pixel art love.graphics.setDefaultFilter("nearest") if arg[#arg] == "-debug" then require("mobdebug").start...
nilq/small-lua-stack
null
--[[ Copyright (c) 2019 igor725, scaledteam released under The MIT license http://opensource.org/licenses/MIT ]] local GEN_BIOME_STEP = 20 local GEN_BIOME_RADIUS = 2 local GEN_ENABLE_HOUSES = true local GEN_HOUSES_COUNT_MULT = 1 / 50000 local heightGrass local heightLava local heightMap local layers local biomes l...
nilq/small-lua-stack
null
att.PrintName = "KerSlug" att.Icon = Material("entities/ammo_kecal.png") att.Description = "A modified slug shell from KerkOTech. Even more accurate, and more effective at range, but at the cost of being only a single projectile, and increased recoil." att.Desc_Pros = { } att.Desc_Cons = { "- Projectile count...
nilq/small-lua-stack
null
local function ColorToCMYK(col) local K = math.max(col.r, col.g, col.b) local k = 255 - K return (K - col.r) / K, (K - col.g) / K, (K - col.b) / K, k end local color_formats = { { name = "rgb", tostring = function(c) return string.format("%s, %s, %s", c.r, c.g, c.b) end, tocolor = function(s) local r...
nilq/small-lua-stack
null
require("ts3init") require("ts3defs") require("ts3events") local listVars = { const = { MODULE = "List Vars Module", MODULESHORT = "LV", MODULEFOLDER = "listvars", MODULEFILE = "listVars", MODULEEXT = "lua", MODULEVERSION = "1.0", MODULEAUTHOR = "Bluscream", DEBUG = true, }, var = {}, } local functio...
nilq/small-lua-stack
null
vim.api.nvim_exec([[ augroup LspExtensions autocmd! autocmd BufHidden,BufLeave,InsertEnter *.rs lua require'lsp_extensions.inlay_hints'.clear() autocmd CursorMoved,InsertLeave,BufEnter,BufWinEnter,TabEnter,BufWritePost *.rs lua require'lsp_extensions'.inlay_hints{ prefix = '', highlight = "Comment", enabled = {...
nilq/small-lua-stack
null
project("Zycore") targetdir(redext.paths.build("libs")) kind("StaticLib") language("C") includedirs( { redext.paths.deps("zyantific"), redext.paths.deps("renhook", "deps", "zydis", "dependencies", "zycore", "include") }) files( { redext.paths.deps("renhook", "d...
nilq/small-lua-stack
null
return function(parent, dir) local lgi = require 'lgi' local Gtk = lgi.Gtk local Gdk = lgi.Gdk local cairo = lgi.cairo local window = Gtk.Window { title = "Drawing Area", border_width = 8, Gtk.Box { orientation = 'VERTICAL', spacing = 8, border_width = 8, Gtk.Label { use_markup = tr...
nilq/small-lua-stack
null
function HandleListCommand(Split, Player) local PlayerTable = {} local ForEachPlayer = function(a_Player) table.insert(PlayerTable, a_Player:GetName()) end cRoot:Get():ForEachPlayer(ForEachPlayer) table.sort(PlayerTable) local Response = SendMessage(Player, "Players (" .. #PlayerTable .. "): " .. table.concat...
nilq/small-lua-stack
null
TrafficAmount = 15 PedestrianAmount = 65 ParkedAmount = 10 EnableDispatch = false --[[ TrafficAmount changes how much traffic there is on the Roads, this goes from 100% to 0%, values over 100% are also supported but not recommended, under 0% will cause a game crash. PedestrianAmount changes how many Peds roam the S...
nilq/small-lua-stack
null
local Xform = nil local cam = nil local cameraScript = nil local playerScript = nil local b = true local cameraMove = false local startCutScene = false local vec = Vector3(0 ,0, -44.54) local JiangShi = nil local JiangShiMesh = nil local JiangShiXform = nil local JiangShiAnimator = nil local BG = nil local BGMesh =...
nilq/small-lua-stack
null
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("game.ui.quest_view", function() require "game.ui" local quest = require("assets.quests.guild_rats"):clone() local quest_view = moonpie.ui.components.quest_view({ ...
nilq/small-lua-stack
null
local ffi = require "ffi" require "resty.openssl.include.ossl_typ" require "resty.openssl.include.evp" local OPENSSL_10 = require("resty.openssl.version").OPENSSL_10 local OPENSSL_11 = require("resty.openssl.version").OPENSSL_11 ffi.cdef [[ /*__owur*/ int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, cons...
nilq/small-lua-stack
null
-- Gas turbines ACF_DefineEngine( "Turbine-Small-Trans", { name = "Gas Turbine, Small, Transaxial", desc = "A small gas turbine, high power and a very wide powerband\n\nThese turbines are optimized for aero use, but can be used in other specialized roles, being powerful but suffering from poor throttle response and...
nilq/small-lua-stack
null
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Misc") local M = _Misc local mod = M:NewModule("RaidUtility", "AceEvent-3.0") local S = R.Skins local function CheckRaidStatus() local inInstance, instan...
nilq/small-lua-stack
null
function lmd( ... ) -- -- LMD Produces logical matrix for disjunction, return an LM object -- M = LMD for classical logic -- M = LMD(K) for k-valued logic -- Example: m = lmd, m = lmd(2) local arg={...} local ni = select("#",...) k = arg[1] if ( ni == 0 ) then k =...
nilq/small-lua-stack
null
--key,measurement,value,str(now),type,tags local key=KEYS[1] local measurement=ARGV[1] local value = tonumber(ARGV[2]) local now = tonumber(ARGV[3]) local type=ARGV[4] local tags=ARGV[5] local node=ARGV[6] local hsetkey =string.format("stats:%s",node) local v= {} local c="" local m local prev = redis.call('HGET',hs...
nilq/small-lua-stack
null
function widget:GetInfo() return { name = "Tactical Draw", desc = "Draw tactical plans on the map", author = "ashdnazg", date = "08 Oct 2014", license = "GNU GPL, v2 or later", layer = 2, enabled = false, } end -- Localisations ...
nilq/small-lua-stack
null
local shell function init() shell = tonumber(kernel.getenv("shell")) kernel.send(shell, {print="[DIR] [./]"}) kernel.send(shell, {print="apps/"}) kernel.kill(0) end function update() end function draw() end
nilq/small-lua-stack
null
return {'agaat','agaathfonds','agaathlening','agamie','agape','agapen','agaragar','agaten','agave','agaveplant','agame','agana','agata','agatha','agathe','agaven','agaves','agaveplanten','agatas','agathas','agathes'}
nilq/small-lua-stack
null
local helpers = require "spec.helpers" describe("gp-jwt-redis", function() local proxy_client local admin_client setup(function() local api1 = assert(helpers.dao.apis:insert { name = "lumen-api", hosts = { "lumen-api" }, upstream_url = "http://localhost" }) assert(helpers...
nilq/small-lua-stack
null
-- for testing only: clear the database q = DicomObject:new() dicomdelete(q) servercommand('initializetables:') local a=os.clock() dofile('anonymizer\\trial_bulk_get.lua') require('csv') TrialID = 'trial1' dofile('anonymizer\\trial_collect.lua') TrialID = 'trial2' dofile('anonymizer\\trial_collect.lua') print(os.clo...
nilq/small-lua-stack
null
-- Mylly GUI GDI+ renderer project "Lib-MGUI-Renderer-GDIPlus" kind "StaticLib" language "C++" files { "*.h", "*.c", "*.cpp", "premake4.lua" } includedirs { ".", "..", "../..", "../../.." } location ( "../../../../Projects/" .. os.get() .. "/" .. _ACTION ) vpaths { ["Shared"] = { "../Shared/**" }, ...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: nander -- Date: 09/02/2018 -- Time: 21:25 -- To change this template use File | Settings | File Templates. -- local sti = require "lib.sti" --green --pink --ember --purple LOADBYMAPFILE = function(mapmane) MAP = sti(mapmane) local mainLayer = MAP.layers.main for i in...
nilq/small-lua-stack
null
client_script 'config.lua' client_script 'client.lua' server_script "config.lua" server_script "server.lua" server_export "HideUserTag" server_export "ShowUserTag"
nilq/small-lua-stack
null
return { PlaceObj("ModItemOptionNumber", { "name", "Amount", "DisplayName", T(302535920011462, "Amount to wait before delivery"), "DefaultValue", 10, "MinValue", 1, "MaxValue", 200, "StepSize", 10, }), }
nilq/small-lua-stack
null
local function AppendToEnum( tbl, key ) if rawget(tbl,key) ~= nil then return end local maxVal = 0 for k, v in next, tbl do if type(v) == "number" and v > maxVal then maxVal = v end end rawset( tbl, key, maxVal+1 ) rawset( tbl, maxVal+1, key ) -- incrase max each t...
nilq/small-lua-stack
null
-- MODULE CONFIG.LUA -- by Garran Plum -- -- GP Configuration for this individual mod. -- IMPORT GP OBJECT local myMod, GP = ... GP:log("config.lua", GP:version()) -- MY CONFIG Mod Name local modName = "REMIX" -- MY CONFIG Remix local remix = { MAX = { "BUILDING_PART_AUTOMATE_FOUNTAIN_BASIN", "BU...
nilq/small-lua-stack
null
local types = {"dff", "txd", "col"} local loadedFiles = {} local loadedModels = {} local loadedLODs = {} local function getFileType(src) for i, t in ipairs(types) do if string.find(src, t, 1, true) then return t end end return false end local function loadFile(file) local ...
nilq/small-lua-stack
null
return { dependency_failure = { act = { ["0.9.2-1"] = { rock_name = "argv", rock_version = "0.2.1-1" } }, ["adal-lua"] = { ["0.0.2-1"] = { rock_name = "lbase64", rock_version = "20120820-1" } }, alnbox = { ["1.0.0-1"] = { rock_n...
nilq/small-lua-stack
null
local function encrypt(message, key) local key_bytes if type(key) == "string" then key_bytes = {} for key_index = 1, #key do key_bytes[key_index] = string.byte(key, key_index) end else key_bytes = key end local message_length = #message local key_length = #key_bytes local message_bytes = {...
nilq/small-lua-stack
null
describe("LMDB environment", function() local os = require 'os' local lmdb = require 'lmdb' local utils = require 'utils' local dump = utils.dump local testdb = './db/test' local env, msg = nil before_each(function() env, msg = lmdb.environment(testdb, {subdir = false, max_dbs=8}) ...
nilq/small-lua-stack
null
-- Each level will inherit from this class which itself inherits from Gamestate. -- This class is Gamestate but with function for loading up Tiled maps. local bump = require 'libs.bump.bump' local Gamestate = require 'libs.hump.gamestate' local Class = require 'libs.hump.class' local sti = require 'libs.sti.sti' -- Ne...
nilq/small-lua-stack
null
-- RTS tools mod for minetest -- Copyright (c) 2015 est31 <MTest31@outlook.com> -- License: LGPL v2.1+ rtstools = {} local rtsp = {} rtsp.buildings = {} rtsp.loaded_buildings = {} rtsp.building_plans = {} local modpath = minetest.get_modpath(minetest.get_current_modname()) .. "/" local rtsp_dofile = function (name) ...
nilq/small-lua-stack
null
local JSIterator = require "jsiterator" local pi = require "pi" local li = ipairs({"a", "b", "C"}) local it = JSIterator(li) for i, v in it do print(i, v) end
nilq/small-lua-stack
null
local delta = tonumber(ARGV[2]) local value = delta local old = tonumber(redis.call('get', ARGV[1])) if old then value = value + old end if not redis.call('set', ARGV[1], value) then return nil end return value
nilq/small-lua-stack
null
---------------------------------- -- Area: Windurst Woods -- NPC: Ju Kamja -- Type: Item Deliverer -- !pos 58.145 -2.5 -136.91 241 ----------------------------------- local ID = require("scripts/zones/Windurst_Woods/IDs") ----------------------------------- function onTrade(player, npc, trade) end function onTrigge...
nilq/small-lua-stack
null
--[[ Copyright (c) 2010 Peter "Corsix" Cawley 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, dis...
nilq/small-lua-stack
null
-- ============================= -- -- Copyright 2018 FiatAccompli -- -- ============================= -- -- Provides the public api (in the ModSettings table) that other mods use to declare and use settings. if not ModSettings then local STORAGE_NAME_PREFIX = 'MOD_SETTING_'; local NO_OPTIONS = {}; local Types = ...
nilq/small-lua-stack
null
local Color, colors, Group, groups, styles = require('colorbuddy').setup() vim.g.colors_name = 'monokai-soda' vim.cmd('set background=dark') -- pallete Color.new('purple', '#AE81FF') Color.new('yellow', '#E6DB74') Color.new('pink', '#f92a72') Color.new('white', '#cfcfc2') Color.new('gray', '#75715e') Color.new('darkg...
nilq/small-lua-stack
null
local a,b,c;local d,e,f,g,h,i,j;local k,l,m,n,o,p,q,r,s;local t,u,v,w,x,y,z,A,B,C;if game then local D=script.Parent;q=require(D.lulpeg.lulpeg)else q=require("lpeg")end;do do local E;local F={AddChild=function(self,G)G:SetIndent(tostring(self._indent).." ")return table.insert(self._children,G)end,SetIndent=function(se...
nilq/small-lua-stack
null
table.insert( data.raw["recipe"]["nuclear-fuel-reprocessing"].results, { type = "item", name = "plutonium", amount_min = 1, amount_max = 3}) table.insert( data.raw["recipe"]["nuclear-fuel-reprocessing"].results, { type = "item", name = "nuclear-waste", amount = 5}) table.insert( data.raw["recipe"]["nuclear-fuel-reproce...
nilq/small-lua-stack
null
function isSpellOnCooldownByName(spellname) return isSpellOnCooldownById(getSpellId(spellname)) end function isSpellOnCooldownById(spellbookId) local start, duration = GetSpellCooldown(spellbookId, "BOOKTYPE_SPELL ") return start ~= 0 end -- Returns the spellbookId of the spell function getSpellId(spe...
nilq/small-lua-stack
null
local function errHandler(e) -- Try to get the number of the line of the template that caused the error, -- parsing the text of the stacktrace. Note that the string here in the -- matching pattern should correspond to whatever is generated in the -- template_eval function, further down local stacktrace = deb...
nilq/small-lua-stack
null
oocState = getElementData(getRootElement(),"globalooc:state") or 0 function getOOCState() return oocState end function setOOCState(state) oocState = state setElementData(getRootElement(),"globalooc:state", state, false) end function sendMessageToAdmins(message) local players = exports.pool:getPoolEle...
nilq/small-lua-stack
null
return { { effect_list = { { type = "BattleBuffAddAttrRatio", trigger = { "onAttach", "onStack" }, arg_list = { attr = "cannonPower", number = 100 } }, { type = "BattleBuffAddAttrRatio", trigger = { "onAttach", "onStack" }, arg_list = { ...
nilq/small-lua-stack
null
object_building_player_city_garden_rebel_01 = object_building_player_city_shared_garden_rebel_01:new { lotSize = 0, baseMaintenanceRate = 0, allowedZones = {"corellia", "dantooine", "lok", "naboo", "rori", "talus", "tatooine"}, length = 7, width = 7, cityRankRequired = 3, cityMaintenanceBase = 30000, abilityReq...
nilq/small-lua-stack
null
local MapGlobalVariable = { Maps = {}, MapModifiers = {}, MapThreats = { { name = 'None', title = '', description = 'No threats added to map', serverstartfunction = function() end, clientstartfunction = function() e...
nilq/small-lua-stack
null
local VERSION_MAJOR = 3 local VERSION_MINOR = 0 local VERSION_PATCH = 0 return { _VERSION_MAJOR = VERSION_MAJOR, _VERSION_MINOR = VERSION_MINOR, _VERSION_PATCH = VERSION_PATCH, _VERSION = string.format('%d.%d.%d', VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH), }
nilq/small-lua-stack
null
return { include = function() includedirs { "../vendor/lua/" } includedirs { "../vendor/lua-cmsgpack/src" } includedirs { "../vendor/lua-rapidjson/src" } add_dependencies 'vendor:msgpack-c' end, run = function() targetname "lua54" language "C" kind "StaticLib" if os.istarget('windows') then ...
nilq/small-lua-stack
null
RegisterNetEvent('qb-vineyard:server:getGrapes') AddEventHandler('qb-vineyard:server:getGrapes', function() local Player = QBCore.Functions.GetPlayer(source) Player.Functions.AddItem("grape", Config.GrapeAmount) TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items['grape'], "add") end...
nilq/small-lua-stack
null
width=1920 height=1080 vid = Video("assets/pexels/cats/production ID_3869112.downsized.mp4") ChaosMonkey = {} function ChaosMonkey.new(output_count, initial_sources) self = {} self.initial_sources = initial_sources self.output_count = outputs self.destinations = {} for i=1,output_count do ...
nilq/small-lua-stack
null
require("moonsc").import_tags() -- Test that default history content is executed correctly. -- The Process MUST execute any executable content in the transition -- after the parent state's onentry handlers, and, in the case where -- the history pseudo-state is the target of an <initial> transition, -- the executable c...
nilq/small-lua-stack
null
DOOR_HASHES = { [123675751] = { 123675751, 603318791, "p_door_photo02x", 2735.5290527344, -1115.708984375, 48.100471496582 }, [804086151] = { 804086151, -705727376, "p_doornbd31x", 2629.2954101563, -1220.2932128906, 52.398143768311 }, [841127028] = { 841127028, 831542679, "s_doorsldprtn01x", 2710.5659179688...
nilq/small-lua-stack
null
modifier_sven_gods_strength_lua = class({}) -------------------------------------------------------------------------------- function modifier_sven_gods_strength_lua:IsPurgable() return false end -------------------------------------------------------------------------------- function modifier_sven_gods_strength_lu...
nilq/small-lua-stack
null
return { -- [General] -- LetterDelay = 0.025; -- Change this to the amount of seconds you want to wait before the next letter in the NPC's message is shown. [accepts number >= 0] AllowPlayerToSkipDelay = true; -- If true, this allows the player to show all of the message without waiting for it to be pieced back tog...
nilq/small-lua-stack
null
local str = require("iron.util.strings") local category = {} category.as = function(obj, desired_type) return function(mappings) local obj_type = type(obj) if obj_type == desired_type then return obj else return mappings[obj_type][desired_type](obj) end end end sm = setmetatable funct...
nilq/small-lua-stack
null
local Gamestate = require 'vendor/gamestate' local Tween = require 'vendor/tween' local anim8 = require 'vendor/anim8' local sound = require 'vendor/TEsound' local Door = {} Door.__index = Door function Door.new(node, collider) local door = {} setmetatable(door, Door) door.level = node.properties.lev...
nilq/small-lua-stack
null
--[[ -- This file was automatically generated by Inclua 0.2.0 (https://github.com/gilzoide/inclua) -- -- The Inclua team hopes this file was accurately generated, that it will be useful -- and will never give SEGFAULTs, throw exceptions, or panic in a similar way. -- This software is provided 'as-is', without any warr...
nilq/small-lua-stack
null
-- NOTE: shortenings may be redundant in TIC 0.80+ --[[ common shortenings ]] local getmt,setmt=getmetatable,setmetatable local min,max,floor,ceil=math.min,math.max,math.floor,math.ceil local abs,rand=math.abs,math.random local huge,sin,cos,PI=math.huge,math.sin,math.cos,math.pi local...
nilq/small-lua-stack
null
local pitch = ui.reference("AA", "Anti-aimbot angles", "pitch") local base = ui.reference("AA", "Anti-aimbot angles", "yaw base") local yaw, yaw_slider = ui.reference("AA", "Anti-aimbot angles", "yaw") local jitter, jitter_slider = ui.reference("AA", "Anti-aimbot angles", "yaw jitter") local body, body_slider = ui....
nilq/small-lua-stack
null
function onCreate() -- background shit makeLuaSprite('BG-01', 'BG-01', -700, -350); setLuaSpriteScrollFactor('BG-01', 0.9, 0.9); scaleObject('BG-01', 0.8, 0.7); makeLuaSprite('BG-00', 'BG-00', -1000, -800); setLuaSpriteScrollFactor('BG-00', 0.9, 0.9); scaleObject('BG-00', 1.1, 1.1); makeLuaSprite...
nilq/small-lua-stack
null
-- add target target("kon") -- make as a static library set_kind("static") set_optimize("none") set_symbols("debug") add_defines("DEBUG", "__debug__") add_deps("tbox") add_deps("sregex") -- add defines add_defines("__kon_prefix__=\"kon\"") -- add include directories a...
nilq/small-lua-stack
null
socket = require 'socket' describe('require "socket" in this file', function() it('loads environment with "socket"', function() assert.is_not_nil(socket) end) end) describe('require "pl" in another file', function() it('does not keep "List" in environment', function() assert.is_nil(List) assert.is_n...
nilq/small-lua-stack
null
return Def.ActorFrame{ Def.ActorFrame{ OnCommand=function(s) s:zoomy(0):sleep(0.8):linear(0.2):zoomy(1) end, Def.Sprite{ Texture="next-back.png"; InitCommand=function(s) s:valign(1):x(320) end, SwitchToPage1Command=function(s) s:sleep(0.05):linear(0.4):addx(640) e...
nilq/small-lua-stack
null
local mexico = require "mexico" -- -- Mexico wrapper for a corona images. -- local Image = mexico.class(mexico.DisplayObject) -- -- Magic new function, since corona creates the object -- and not we. -- Image.new = function(styles) if styles.left then return display.newImage(styles.filename, styles.left, styles...
nilq/small-lua-stack
null
-- gist.lua - Gist client for ComputerCraft -- Made by JackMacWindows for CraftOS-PC and CC: Tweaked if not http then printError("Gist requires http API") if _G.config ~= nil then printError("Set http_enable to true in the CraftOS-PC configuration") else printError("Set http_enable to true in ComputerCraft...
nilq/small-lua-stack
null
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' client_scripts { 'client.lua', 'props.lua' }
nilq/small-lua-stack
null
--[[ Copyright (c) 2011-2014 chukong-inc.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, dis...
nilq/small-lua-stack
null
local class = require 'ext.class' local Set = require 'symmath.set.Set' local symmath --[[ TODO IntegerQuotientRingCoset to hold {p n + q} for p > 1 in Naturals for 0 <= q < p in Naturals --]] local EvenInteger = class(Set) function EvenInteger:isSubsetOf(s) symmath = symmath or require 'symmath' if EvenInteger:is...
nilq/small-lua-stack
null
-- Code adapted from https://github.com/y0ast/VAE-Torch local KLDCriterion, parent = torch.class('nn.KLDCriterion', 'nn.Criterion') function KLDCriterion:updateOutput(input, target) -- 0.5 * sum(1 + log(sigma^2) - mu^2 - sigma^2) local KLDelement = (input[2] + 1):add(-1,torch.pow(input[1],2)):add(-1,torch.exp...
nilq/small-lua-stack
null
minko.sdk = {} minko.sdk.path = function(p) -- note: cannot use path.join() here because `p` can start with '/' return path.getabsolute(MINKO_HOME .. '/' .. p) end
nilq/small-lua-stack
null
function draw() imgui.Begin("1 ms thing") state.IsWindowHovered = imgui.IsWindowHovered() if imgui.Button("up") then local notes = state.SelectedHitObjects local result = {} for _, note in pairs(notes) do if note.EndTime == 0 then table.inser...
nilq/small-lua-stack
null
local interactedVehicles, interactedEngines = {}, {} local ox_inventory = exports.ox_inventory local GetCurrentResourceName = GetCurrentResourceName() ESX.RegisterServerCallback('Boost-Locksystem:HasKeys', function(source, cb, _plate) if HasKeys(source, _plate) then if not interactedVehicles[_plate] or interacte...
nilq/small-lua-stack
null
EFFECT.Mat = Material( "effects/tool_tracer" ) /*--------------------------------------------------------- Init( data table ) ---------------------------------------------------------*/ function EFFECT:Init( data ) //self.WeaponEnt = data:GetEntity() //self.Attachment = data:GetAttachment() // Ke...
nilq/small-lua-stack
null
--把对方的hp伤害用mp抵挡
nilq/small-lua-stack
null
return function() local treesitter = safe_require 'nvim-treesitter.configs' if not treesitter then return end treesitter.setup { ensure_installed = 'all', highlight = { enable = true, -- false will disable the whole extension -- disable = { 'json' }, -- list of language that will be dis...
nilq/small-lua-stack
null
--[[ Author: Dennis Werner Garske (DWG) License: MIT License ]] local _G = _G or getfenv(0) local Roids = _G.Roids or {} Roids.mouseoverUnit = Roids.mouseoverUnit or nil; local Extension = Roids.RegisterExtension("CT_UnitFrames"); Extension.RegisterEvent("ADDON_LOADED", "OnLoad"); function Extension.SetHook(widget)...
nilq/small-lua-stack
null
util.AddNetworkString("AdvDupe2_SendGhosts") util.AddNetworkString("AdvDupe2_AddGhost") function AdvDupe2.SendGhost(ply, AddOne) net.Start("AdvDupe2_AddGhost") net.WriteString(AddOne.Model) net.WriteInt(#AddOne.PhysicsObjects, 8) for i=0, #AddOne.PhysicsObjects do net.WriteAngle(AddOne.PhysicsObjects[i].Ang...
nilq/small-lua-stack
null
--[[ Returns a new list containing only the elements within the given range. ]] local function getRange(list, startIndex, endIndex) assert(startIndex <= endIndex, "startIndex must be less than or equal to endIndex") local new = {} local index = 1 for i = math.max(1, startIndex), math.min(#list, endInd...
nilq/small-lua-stack
null
PlayState = Class{__includes = BaseState} function PlayState:init(params) self.name = "PlayState" -- start our level # label off-screen self.stageLabelY = -64 self.stageLabelText = "" self.timers = {} --[[ Based on GD50 Assignment 3 (Match-3) ]] Event.on('stage-changed', func...
nilq/small-lua-stack
null
-- v2.7.4
nilq/small-lua-stack
null
structure.library_project("foundation")
nilq/small-lua-stack
null
local basic_serializer = require "kong.plugins.log-serializers.basic" local BasePlugin = require "kong.plugins.base_plugin" local LuaProducer = require "kong.plugins.log-buffering.lua_producer" local JSONProducer = require "kong.plugins.log-buffering.json_producer" local Sender = require "kong.plugins.http-log.sender" ...
nilq/small-lua-stack
null
--- -- @author wesen -- @copyright 2019 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- --- -- Calculates the width of strings in the clients consoles. -- -- @type StringWidthCalculator -- local StringWidthCalculator = {} --- -- The width of the currently parsed strings and characters -- -- @tfield int wi...
nilq/small-lua-stack
null
return function() g.startify_lists = {{type = "dir", header = {" Most recently updated in " .. fn.getcwd()}}} -- use vsc root when enter file g.startify_change_to_vcs_root = 1 -- do not show 'edit' and 'quit' options g.startify_enable_special = 1 -- start from 1 when choosing g.startify_cust...
nilq/small-lua-stack
null
local util = require("util") -- Manager object local t = { isFirstTime = true, ignoreInitially = { ANIMAL = true, ASSET_GROUP = true, BASE_NODE = true, BASE_EDGE = true, CONSTRUCTION = true, SIM_BUILDING = true, TOWN = true, TOWN_BUILDING = true, }, ignoreAlways = { SIM_PERSON = true }, visit...
nilq/small-lua-stack
null
project "stb" kind "StaticLib" language "C" staticruntime "off" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("bin-int/" .. outputdir .. "/%{prj.name}") files { "stb_image.h", "stb_image.c", } filter "configurations:Debug" runtime "Debug" symbols "on" filter "configurations:Release" ...
nilq/small-lua-stack
null
--Flying admin pet Separate Functions [776] AKA: chris7766 --Noobs Take This Then Say They Made It --Way To Go Noob You Stole This Model! --This Version Is For Scriptbuilder --and also. Don't make another "Caik Assistant" out of this player = game:GetService("Players").peyquinn pet = nil pettype = "Diamond" head = nil...
nilq/small-lua-stack
null
--[[ -- -- created by xinpeng.zhao -- --]] local IDPool = class("IDPool"); function IDPool:ctor() self._index = -1; self._data = {}; end --[[ --@ obj class obj or other --Re@ int64 --]] function IDPool:GenID(obj) if obj then self._index = self._index + 1; self._data[self._index] = obj; return self._index;...
nilq/small-lua-stack
null