content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
require 'torch' local tester = torch.Tester() local MESSAGE = "a really useful informative error message" local subtester = torch.Tester() -- The message only interests us in case of failure subtester._success = function(self) return true, MESSAGE end subtester._failure = function(self, message) return false, messag...
nilq/small-lua-stack
null
#!/usr/bin/lua require 'noqt' n1 = n1_LQT_F.new(); n2 = n2_LQT_F.new(); print(n1:foo()); print(n2:foo());
nilq/small-lua-stack
null
ngx.say("step 1") ngx.req.read_body() local key = '12345' local body = ngx.req.get_body_data() if body then ngx.say( ngx.md5(body .. key )) end
nilq/small-lua-stack
null
object_tangible_loot_creature_loot_collections_shattered_shard_unknown_07 = object_tangible_loot_creature_loot_collections_shared_shattered_shard_unknown_07:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_shattered_shard_unknown_07, "object/tangible/loot/creature/loot/collections/sh...
nilq/small-lua-stack
null
local Generic = {} local client local name = "Generic" local colors = require "colors" local sides = require "sides" function Generic:set(aname) client = self; name = aname end local comboBlock local comboSide local layoutColors local switchValues = function() layoutColors:removeChildren() client.stopListeningT...
nilq/small-lua-stack
null
local function starts_with(str, start) return str:sub(1, #start) == start end local function ends_with(str, ending) return ending == "" or str:sub(-#ending) == ending end local function split(str, d) local t={} for istr in string.gmatch(str, "([^"..d.."]+)") do table.insert(t, istr)...
nilq/small-lua-stack
null
------------------------------------------------ -- Copyright © 2013-2020 Hugula: Arpg game Engine -- discription -- author -- date ------------------------------------------------ local View = View local VMState = VMState local VMGroup = VMGroup --lua local DIS_TYPE = DIS_TYPE local lua_binding = lua_binding loc...
nilq/small-lua-stack
null
-------------------------------- -- Human Communication Module -- -- (c) 2013 Stephen McGill -- -------------------------------- local vector = require'vector' local memory = require'memory' local DEG_TO_RAD = math.pi/180 local shared_data = {} local shared_data_sz = {} local zeros = require'vector'.zeros local o...
nilq/small-lua-stack
null
-- storage/api.lua local BASENAME = "microexpansion" -- [function] register cell function microexpansion.register_cell(itemstring, def) if not def.inventory_image then def.inventory_image = itemstring end -- register craftitem minetest.register_craftitem(BASENAME..":"..itemstring, { description = def.descrip...
nilq/small-lua-stack
null
loadTree1(Vector3(234.06, 147.945, 10.8034)); loadTree1(Vector3(213.964, 149.56, 26.9627)); loadTree1(Vector3(458.098, 180.82, 44.0368)); loadTree1(Vector3(467.208, 155.048, 8.60609)); loadTree1(Vector3(578.219, 165.231, 6.82002)); loadTree1(Vector3(704.749, 149.998, 8.55955)); loadTree1(Vector3(766.457, 149.998, 40.97...
nilq/small-lua-stack
null
GameListSorters["Last Played"] = function(Item1, Item2, Type) if (Type == SortType.Descending) then if ((Item1.LastPlayed.HighPart == 0) and (Item2.LastPlayed.HighPart == 0)) then return (string.lower(Item1.Name) > string.lower(Item2.Name)) elseif ((Item1.LastPlayed.HighPart ~= 0) and (Item2.LastPlayed.HighPart...
nilq/small-lua-stack
null
-- Copyright 2016-2021 Gabriel Dubatti. See LICENSE. -- -- This module implements the selection of project files using a buffer -- -- ** This module is NOT used when USE_LISTS_PANEL is true ** -- local Proj = Proj local data = Proj.data local Util = Util --return the project buffer (the working one) --enforce: project...
nilq/small-lua-stack
null
-- Scene network replication example. -- This sample demonstrates: -- - Creating a scene in which network clients can join -- - Giving each client an object to control and sending the controls from the clients to the server, -- where the authoritative simulation happens -- - Controlling a physics...
nilq/small-lua-stack
null
--- -- Validate documentation for Premkake APIs. --- local count = 0 for k,v in pairs(premake.field._loweredList) do local docfilepath = "../website/docs/" .. k .. ".md" local exists = os.isfile(docfilepath) if exists then local docfile = io.open(docfilepath, "r") local text = docfile:read("*all") doc...
nilq/small-lua-stack
null
local t = require 'torch' local autograd = require 'autograd' local util = require 'util.util' return function(opt) local model = {} -- load and functionalize embedding net local model1 = require(opt.learner)({ nClasses=opt.nClasses, useCUDA=opt.useCUDA, classify=false, nIn=opt.nIn, nDepth=opt.n...
nilq/small-lua-stack
null
--[[ ============================================================================================================ Author: Rook Date: February 24, 2015 Called when EMP is cast. Additional parameters: keys.DistanceToMove, keys.ProjectileSpeedPerSecond, keys.DelayBeforeExploding, keys.Radius ==========================...
nilq/small-lua-stack
null
local function encodeBase16(input) local output = {} for i = 1, #input do output[i] = string.format("%02x", string.byte(input, i)) end return table.concat(output) end local function decodeBase16(input) assert(not (string.find(input, "%X")), "input contains invalid characters") assert(...
nilq/small-lua-stack
null
function onSay(cid, words, param) if param ~= "" then return true end local t = string.explode(param, ",") doSendMsg(cid, t[2]) return true end
nilq/small-lua-stack
null
return Command 'question' :setCategory 'Fun' :setDesc 'Returns a random jeopardy question with a set answer.' :setAliases { 'jeopardy' } :run(function(msg, args, util) util.request { url = 'https://jservice.io/api/random'; }:next(function(res) res = res[1][1] ...
nilq/small-lua-stack
null
local const = GMethod.loadScript("game.GameLogic.Const") local SData = GMethod.loadScript("data.StaticData") local Base = GMethod.loadScript("game.GameLogic.LogicTemplates.BaseTemplate") local _set = Base.sset local _setReader = Base.ssetReader do -- 单个物品队列的实现,一般用于需要按时间进行完成且相同物品不叠加的项目,例如生产武器队列等 local QueueImp...
nilq/small-lua-stack
null
-- Author: Stravant -- Modified by: Austin Reuschle (Nimblz) --[[ class Signal Description: Lua-side duplication of the API of Events on Roblox objects. Needed for nicer syntax, and to ensure that for local events objects are passed by reference rather than by value where possible, as the BindableEvent object...
nilq/small-lua-stack
null
return function() local None = Deus:Load("Deus.Symbol").get("None") local baseObject = Deus:Load("Deus.BaseObject") local class local object -- Debugging checks local constructorRan local constructorHasInternalAccess local destructorRan local destructorHasInternalAccess loca...
nilq/small-lua-stack
null
----------------------------------- -- Area: Phomiuna Aqueducts -- NPCqm2 (???) -- Notes: Open south door @ F-7 -- !pos -75.329 -24.636 92.512 27 ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) local DoorOffset = npc:getID() - 2 if (GetNPCByID(D...
nilq/small-lua-stack
null
local lib = {} lib.DEFAULT_IP = "192.168.0.10" lib.DEFAULT_PORT = 10940 local has_bit, bit = pcall(require, 'bit') local lshift = has_bit and bit.lshift local tinsert = require'table'.insert local cos = require'math'.cos local sin = require'math'.sin local floor = require'math'.floor local command_names = { VV = '...
nilq/small-lua-stack
null
-- -- @copyright 2015 Upstart Illustration LLC. All rights reserved. -- require "ad.Constants" local AdRequest = Class() AdRequest.implements("bridge.BridgeRequestProtocol") function AdRequest.new(self) local ad local state local reward function self.init(_ad, _state) ad = _ad state ...
nilq/small-lua-stack
null
SynthDef("sitarsoundboard", { busin=0, busout=0,size=2.8,mix=0.9,c1=20,c3=1,bypass=0},function() local inp=In.ar(busin,2); inpM = inp:sum() local defdels = TA{199, 211, 223, 227, 229, 233, 239, 241}*size local snd = DWGSoundBoard.ar(inpM,c1,c3,mix,unpack(defdels)) snd = snd + BPF.ar(snd, {90, 132, 280}, {1.3, 0....
nilq/small-lua-stack
null
-- -- Copyright (c) 2017, Jesse Freeman. All rights reserved. -- -- Licensed under the Microsoft Public License (MS-PL) License. -- See LICENSE file in the project root for full license information. -- -- Contributors -- -------------------------------------------------------- -- This is the official list of Pixel Visi...
nilq/small-lua-stack
null
s.sound = {"input", "physics"} s.sound.update = function(i, input, physics) if input.up and (physics.grounded or physics.wall_x ~= 0) then res.sound.jump:play() end end
nilq/small-lua-stack
null
require("nvim-treesitter.configs").setup({ ensure_installed = { "clojure", "hcl", "lua", "python", "go", "json", "yaml", "typescript", "bash", "javascript", }, highlight = { enable = true, }, incremental_selection = { enable = true, keymaps = { init_...
nilq/small-lua-stack
null
local eax, ecx, edx, ebx, esp, ebp, esi, edi, eflags = 0, 1, 2, 3, 4, 5, 6, 7, 8; local ax, cx, dx, bx, sp, bp, si, di, flags = 0, 1, 2, 3, 4, 5, 6, 7, 8; local al, cl, dl, bl, ah, ch, dh, bh = 0, 1, 2, 3, 4, 5, 6, 7; --[[------- add -------]]-- local function print() end AddOpcode("add", "\x00", 1, function(i...
nilq/small-lua-stack
null
-- -- Code by Piotr Machowski <piotr@machowski.co> -- display.setStatusBar(display.HiddenStatusBar) system.setIdleTimer(false) display.setDefault( "background", 88/255, 149/255, 27/255 ) print('Content', display.actualContentWidth .. ' x ' .. display.actualContentHeight) print('Suffix', display.imageSuffix or 'none')...
nilq/small-lua-stack
null
return { link = {"task"}, getTransform = function(self) return self[1] end, getPos = function(self) if self[2] == false then local bb = self:getS().boundingBox local transform = self:getTransform() if bb then --mat4 * vec4(vec3, 1) multiplication, for performance reasons hardcoded local a =...
nilq/small-lua-stack
null
local input_legend_DevMenu = "[LEGEND] 1 - Menu Up, 2 - Menu Down, 3 - Select Item, 4 - Main Menu\n + - Agent Up, - - Agent Down, Q - Reduce Value, E - Increase Value" local vectorButtons = { "X", "Y", "Z", "Print Property" } local colorButtons = { "R", "G", "B", "A", "Print Property" } local booleanBut...
nilq/small-lua-stack
null
return { ["comment"]="% generated by mtxrun --script pattern --convert", ["exceptions"]={ ["n"]=0, }, ["metadata"]={ ["mnemonic"]="it", ["source"]="hyph-it", ["texcomment"]="% hyph-it.tex\ %\ % Italian hyphenation patterns\ %\ % This file is part of the hyph-utf8 package.\ % For more unformation see\ %\ % ...
nilq/small-lua-stack
null
object_tangible_storyteller_theater_shared_flat_layer_large = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/tangible/storyteller/theater/shared_flat_layer_large.iff" } ObjectTemplates:addClientTemplate(object_tangible_storyteller_theater_shared_flat_layer_large, "object/tangible/storyteller/thea...
nilq/small-lua-stack
null
-- Copyright 2017-2018 Dirk Brenken (dev@brenken.org) -- Copyright 2020 muink <https://github.com/muink> -- Licensed to the public under the Apache License 2.0 local uci = require "luci.model.uci".cursor() local fs = require("nixio.fs") local sys = require("luci.sys") local util = require("luci.util") local packageNam...
nilq/small-lua-stack
null
require("gist/Lua/lib/table_ext") -- function test(list, ri, output, len) -- local from = table.join(list,",") -- table.removeItem(list, ri) -- local to = table.join(list,",") -- if to == output and #list == len then -- print("OK", from, "removes", ri, "->", to, "len is", len) -- el...
nilq/small-lua-stack
null
settings.Bool { name = 'Colour-code items by rank'; category = 'Inventory'; value = true; help = 'Colour-code item icons by item rank. Requires restart.'; helps = { ['highest rank'] = 'Sort inventory items by highest rank first; sort items of same rank by name.', ['lowest rank'] = 'Sort inventory item...
nilq/small-lua-stack
null
module("luci.controller.netdata", package.seeall) function index() entry({"admin", "status", "netdata"}, template("netdata/netdata"), _("NetData"), 10).leaf = true end
nilq/small-lua-stack
null
local flipBoundingBoxes = paths.dofile('utils.lua').flipBoundingBoxes local recursiveResizeAsCopyTyped = paths.dofile('obj_det/utils.lua').recursiveResizeAsCopyTyped local FRCNN = torch.class('nnf.FRCNN') FRCNN._isFeatureProvider = true local argcheck = require 'argcheck' local initcheck = argcheck{ pack=true, noo...
nilq/small-lua-stack
null
local app = app local Window = require "Base.Window" local Timer = require "Timer" local window = Window() window:setInstanceName("LoadView") local memUnit = 1024 local ramMax = app.Heap_getSize(memUnit) local ram = app.StripChart(0, 0, 128, 64) ram:setBorder(1) ram:setCornerRadius(5, 5, 5, 5) ram:setRange(0, ramMax...
nilq/small-lua-stack
null
object_mobile_space_comm_kash_imp_base = object_mobile_shared_space_comm_kash_imp_base:new { } ObjectTemplates:addTemplate(object_mobile_space_comm_kash_imp_base, "object/mobile/space_comm_kash_imp_base.iff")
nilq/small-lua-stack
null
--获取历史订单 --http://it-wx-test.zhinengxiyifang.cn/api/LbUsers/178/historyOrders?filter=%7B%22include%22:%5B%7B%22relation%22:%22device%22,%22scope%22:%7B%22fields%22:%5B%22no%22,%22deviceTypeId%22%5D%7D%7D,%7B%22relation%22:%22store%22,%22scope%22:%7B%22fields%22:%5B%22address%22%5D%7D%7D,%7B%22relation%22:%22autoLaunchG...
nilq/small-lua-stack
null
local M = {} local config = require('possession.config') local utils = require('possession.utils') local plugins = { 'close_windows', 'delete_hidden_buffers', 'nvim_tree', 'tabby', 'delete_buffers', } local function req(plugin) return require('possession.plugins.' .. plugin) end local functi...
nilq/small-lua-stack
null
ENT.Type = "anim"; ENT.Base = "base_gmodentity"; ENT.PrintName = "Item"; ENT.Author = "TOWER"; ENT.Contact = "support@towerdevs.xyz"; ENT.Purpose = "An item you can pick up."; ENT.Information = "Press E to add the item to your inventory."; ENT.Category = "Tower HL2RP"; ENT.Model = "items/item_item_crate.mdl"; ENT.Admi...
nilq/small-lua-stack
null
TOOL.Name = "VulkanRenderer" TOOL.ClientOnly = true TOOL.Kind = "Library" TOOL.TargetDirectory = "../lib" TOOL.Defines = { "NAZARA_BUILD", "NAZARA_VULKANRENDERER_BUILD", "VK_NO_PROTOTYPES" } TOOL.Includes = { "../include", "../src/" } TOOL.ExtIncludes = { "../extlibs/include" } TOOL.Files = { "../include/N...
nilq/small-lua-stack
null
local Roact = require(game.ReplicatedStorage.Roact) local elements = script.Parent local Frame = require(elements.Frame) return Roact.forwardRef(function(props, ref) local children = props[Roact.Children] or { } props.radius = props.radius or 50 props.hollowRadius = props.hollowRadius or 0 local thickness = pro...
nilq/small-lua-stack
null
return {'jujube','jujubes'}
nilq/small-lua-stack
null
local PATH = (...):gsub('%.[^%.]+$', '') local Component = require(PATH..".component") local Pool = require(PATH..".pool") local System = {} System.__index = System function System.new(...) local system = setmetatable({ __all = {}, __pools = {}, }, System) for _, filter in pairs({...}) d...
nilq/small-lua-stack
null
ros = require 'ros' tf = ros.tf --[[ tf_echo can be used to verify that the transform is correctly broadcasted: rosrun tf tf_echo /world /tomato ]] ros.init('example_TransformBroadcaster') local sp = ros.AsyncSpinner() sp:start() print('hallo') b = tf.TransformBroadcaster() for i=1,10 do local t = tf.Transform(...
nilq/small-lua-stack
null
------------------------------------------------------------------------ --[[ VRMaskRegressReward ]]-- -- Variance reduced regression reinforcement criterion. -- input : {prediction, baseline reward} -- target : {ground truth, mask} -- Reward is 1 - x, where x is the MSE between predicted and GT pixels -- reward = scal...
nilq/small-lua-stack
null
--- -- @module Faction -- -- ------------------------------------------------ -- Required Modules -- ------------------------------------------------ local Class = require( 'lib.Middleclass' ) local Log = require( 'src.util.Log' ) local Node = require( 'src.util.Node' ) local CharacterFactory = require( 'src.characte...
nilq/small-lua-stack
null
--case sensitive --only interior cells local blackListedAreas = { ["Vivec, Arena Pit"] = true, ["Vivec, Palace of Vivec"] = true, ["Mournhold Temple: High Chapel"] = true } return blackListedAreas
nilq/small-lua-stack
null
--プロキシー・F・マジシャン --Scripted by mallu11 function c101012047.initial_effect(c) --link summon c:EnableReviveLimit() aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkType,TYPE_EFFECT),2) --fusion local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101012047,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMM...
nilq/small-lua-stack
null
function onUpdate(elapsed) local songPos = getSongPosition() function onMoveCamera(focus) if focus == 'boyfriend' then -- called when the camera focus on boyfriend elseif focus == 'dad' then setProperty('camFollowPos.y',getProperty('camFollowPos.y') + (math.sin(current...
nilq/small-lua-stack
null
--- -- tools.lua -- Work with Premake's collection of tool adapters. -- Author Jason Perkins -- Copyright (c) 2015 Jason Perkins and the Premake project --- local p = premake p.tools = {} --- -- Given a toolset identifier (e.g. "gcc" or "gcc-4.8") returns the -- corresponding tool adapter and the version, if one w...
nilq/small-lua-stack
null
-- Please don't remove the Credits variable or credits command, Feel free to add yourself to them but don't remove any existing credits. -- Removing credits is just mean -- Requires package.path = package.path .. ";./deps/?.lua;./deps/?/?.lua;./deps/?/init.lua" package.cpath = package.cpath .. ";./deps/?.so;./deps/?...
nilq/small-lua-stack
null
CodexDB["professions"]["ruRU"]={ [6]="Лед", [8]="Огонь", [26]="Оружие", [38]="Бой", [39]="Скрытность", [40]="Яды", [43]="Мечи", [44]="Топоры", [45]="Луки", [46]="Огнестрельное оружие", [50]="Повелитель зверей", [51]="Выживание", [54]="Дробящее оружие", [55]="Двуручные мечи", [56]="Свет", [78]="Темная магия", [95]="Защи...
nilq/small-lua-stack
null
local class = require 'middleclass' local ubus = require 'ubus' local focas = class('FANUC_FOCAS_UBUS') local function protected_call(ubus, ubus_name, method, param, on_success) local cjson = require 'cjson.safe' print(string.format('ubus call %s.%s :\t', ubus_name, method), cjson.encode(param)) local r, ret, err...
nilq/small-lua-stack
null
object_tangible_terminal_portable_space_terminal = object_tangible_terminal_shared_portable_space_terminal:new { } ObjectTemplates:addTemplate(object_tangible_terminal_portable_space_terminal, "object/tangible/terminal/portable_space_terminal.iff")
nilq/small-lua-stack
null
module:depends("http"); local st = require "util.stanza"; local json = require "util.json"; local formdecode = require "net.http".formdecode; local hmac_md5 = require "util.hashes".hmac_md5; local st = require "util.stanza"; local json = require "util.json"; local datetime = require "util.datetime".datetime; local p...
nilq/small-lua-stack
null
--=============-- local libVFX = {} --=============-- --=========================================================-- -- class vfxTemplate -- -- -- -- Used to instantiate a War3 Effect with common settings. -- -- ...
nilq/small-lua-stack
null
local Acceleration = Component:extend("Acceleration") function Acceleration:initialize() assert(self:hasComponent("Transformable"), "Entity needs a Transformable component") assert(self:hasComponent("Velocity"), "Entity needs a Velocity component") self.acceleration = {} self.acceleration.x = 0 ...
nilq/small-lua-stack
null
local L, this = ... this.title = "Application Version Library" this.version = "1.0" this.status = "incomplete" this.desc = "Handles application versioning." this.todo = { "Fix version comparison method." } local lcore = L.lcore local platform = lcore.platform.interface local fs = platform.filesystem local version ve...
nilq/small-lua-stack
null
local ffi = require('ffi') ffi.cdef[[ typedef enum { TERMKEY_SYM_UNKNOWN = -1, TERMKEY_SYM_NONE = 0, /* Special names in C0 */ TERMKEY_SYM_BACKSPACE, TERMKEY_SYM_TAB, TERMKEY_SYM_ENTER, TERMKEY_SYM_ESCAPE, /* Special names in G0 */ TERMKEY_SYM_SPACE, TERMKEY_SYM_DEL, /* Special keys */ TERM...
nilq/small-lua-stack
null
--[=[ Utilities involving Vector3 objects in Roblox @class Vector3Utils ]=] local require = require(script.Parent.loader).load(script) local Math = require("Math") local Vector3Utils = {} --[=[ Creates a Vector3 from a Vector2 in the XY plane @param vector2 Vector2 @return Vector3 ]=] function Vector3Utils.fro...
nilq/small-lua-stack
null
setPortraitHint(true) local screen_size = {12, 16} local function createPool(size, template) local pool = {} template._pool = pool pool._template = template for i = 1, size do pool[i] = Actor(template) end pool.pull = function(self) local object = table.remove(self) if...
nilq/small-lua-stack
null
--- 模块功能:录音处理 -- @module record -- @author openLuat -- @license MIT -- @copyright openLuat -- @release 2017.11.23 require "log" require "ril" module(..., package.seeall) local ID, FILE = 1, '/RecDir/rec001' local recording local stoping local duration local recordCallback --local flag_s=false local stopCbFnc --- 开始录...
nilq/small-lua-stack
null
local parent, ns = debugstack():match[[\AddOns\(.-)\]], oUF local oUF = ns.oUF or _G.oUF local GetComboPoints = GetComboPoints local MAX_COMBO_POINTS = MAX_COMBO_POINTS local Update = function(self, event, unit) if(unit == 'pet') then return end local cpoints = self.CPoints if(cpoints.PreUpdate) then ...
nilq/small-lua-stack
null
-- include useful files u_execScript("utils.lua") u_execScript("common.lua") u_execScript("commonpatterns.lua") u_execScript("nextpatterns.lua") u_execScript("evolutionpatterns.lua") curveSpeed = 1 -- onInit is an hardcoded function that is called when the level is first loaded function onInit() l_setSpeedMult(2.91)...
nilq/small-lua-stack
null
local MB = pd.Class:new():register("blocks") function MB:initialize(name, atoms) self.inlets = 1 self.outlets = 2 self.period = #atoms>0 and atoms[1] or nil if type(self.period) ~= "number" then self.period = 10 -- hard-coded default end return true end function MB:postinitialize() s...
nilq/small-lua-stack
null
object_tangible_loot_mustafar_old_republic_tech_02 = object_tangible_loot_mustafar_shared_old_republic_tech_02:new { } ObjectTemplates:addTemplate(object_tangible_loot_mustafar_old_republic_tech_02, "object/tangible/loot/mustafar/old_republic_tech_02.iff")
nilq/small-lua-stack
null
ITEM.ID = "melon"; ITEM.Name = "Melon"; ITEM.Description = "A fruit, watery and juicy."; ITEM.Model = "models/props_junk/watermelon01.mdl"; ITEM.Weight = 10; ITEM.FOV = 14; ITEM.CamPos = Vector( 50, 50, 50 ); ITEM.LookAt = Vector( 0, 0, 0 ); ITEM.BulkPrice = 75; ITEM.License = LICENSE_FOOD; ITEM.Usa...
nilq/small-lua-stack
null
ITEM.name = "Steel Bolts" ITEM.model = "models/ninja/signalvariance/weapons/helsing_barrels.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.exRender = true ITEM.iconCam = { pos = Vector(202.67483520508, 163.42178344727, 123.0219039917), ang = Angle(25, 220, 0), fov = 2.5663728649857, } ITEM.ammo = "sniperpenetratedround" ...
nilq/small-lua-stack
null
-- 草莓Dâu Tây 's Type Fx Vert -- Code by Effector Cmy script_name = "Cmy - Clip To Moves 1.0" script_description = "Converts clip to moves" script_author = "Cmy草莓" script_version = "1.0" include("karaskel.lua") function ClipToMoves(l, ms) local text = l.text local x, y = text:match("\\pos%(([%d]+),([%d]+)%)") x, y ...
nilq/small-lua-stack
null
--[[ Filename: ShaderSunC.lua Author: Sam@ke --]] ShaderSunC = {} function ShaderSunC:constructor(parent) mainOutput("ShaderSunC was loaded.") self.shaderManager = parent self.screenWidth, self.screenHeight = guiGetScreenSize() self.bwViewDistance = 4.5 -- default: 4.5 self.sunSize = 0.06 -- default: 0.0...
nilq/small-lua-stack
null
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BseGuildBagPut_pb', package.seeall) local BSEGUILDBAGPUT = protobuf.Descriptor(); local BSEGUILDBAGPUT_STATUS_FIELD = protobuf.FieldDescriptor(); local BSEGUILDBAGPUT_MESSAGE_FIELD = protobuf.FieldDescriptor(); local BSEGUILDBAGPUT...
nilq/small-lua-stack
null
-- -- Class Mods - Warlock settings -- -- Check the player's class before creating these settings if (select(2, UnitClass("player")) ~= "WARLOCK") then return end -- -- ResourceBar Module -- ClassMods.enableprediction = false ClassMods.powerGenerationSpells = {nil, nil, nil} ClassMods.highwarn = false -- -- Resour...
nilq/small-lua-stack
null
function(s, pop) require "struct" local bytes_read = 1 local bytes_to_unpack = 1 local max = string.len(s) / bytes_to_unpack local total_bytes = 1 local negation = 2 ^ (bytes_to_unpack * 8) - 1 local fmt = 'I'..bytes_to_unpack local totals = 0 while bytes_read <= max do if...
nilq/small-lua-stack
null
--- @module Checklist -- One or more options that can be individually toggled -- @commonParams -- @option caption string -- @option options array `{"Option 1", "Option 2", "Option 3"}` -- @option selectedOptions hash Selected list options, of the form `{ 1 = true, 2 = false }` -- @option horizontal boolean Lays the opt...
nilq/small-lua-stack
null
-- local dbg = require("debugger") -- dbg.auto_where = 2 local stub_vim = require'spec.helpers.stub_vim'.stub_vim local complete = require'cccomplete'.complete local api = require'nvimapi' local r = require'spec.helpers.random' insulate("module completion", function() stub_vim{lines = {"module", "# a comment"}, curs...
nilq/small-lua-stack
null
local CorePackages = game:GetService("CorePackages") local Rodux = require(CorePackages.Rodux) local Actions = script.Parent.Parent.Actions local UpdateHealth = require(Actions.UpdateHealth) local SetIsDead = require(Actions.SetIsDead) local initialHealth = { isDead = false, currentHealth = 100, maxHealth = 100, ...
nilq/small-lua-stack
null
local PluginRoot = script:FindFirstAncestor("PluginRoot") local load = require(PluginRoot.Loader).load local Roact = load("Roact") local RangeSlider = load("Framework/RangeSlider") local StoryWrapper = load("Stories/StoryWrapper") local e = Roact.createElement local RangeSliderStory = Roact.Component:extend("RangeSl...
nilq/small-lua-stack
null
ch[1] = math.random(4) ch[2] = ch[1] + math.random(6 - ch[1]) for i = 1,6 do qq = lib.math.random_shuffle(set) ind = math.random(2) denom[i] = 1 for j = 1,ind do if (i == ch[1] or i == ch[2]) then if (qq[j] == 3 or qq[j] == 7) then denom[i] = denom[i] * 5; else ...
nilq/small-lua-stack
null
Players = game:GetService("Players") Me = Players.LocalPlayer Char = Me.Character necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) Selected = false Attacking = false Debounce = true Hurt = false ModelName = "Weapon" ToolName = "Weapon" ContentProvider = game:GetService("ContentProvider") V3 = Vector3.new C...
nilq/small-lua-stack
null
-- Copyright (c) 2017 Laurent Zubiaur -- -- 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, publis...
nilq/small-lua-stack
null
local ctx = GS.new() local toLevel = true local order = { { cutscene = true }, { wait = true }, { cutscene = true }, { level = "hungover" }, { cutscene = true }, { level = "painkillers" }, { cutscene = true }, { level = "trapDoors" }, { level = "cubeTransporter" }, { cutscene =...
nilq/small-lua-stack
null
db = { driver = "mysql", --[[ * "mysql" : use classic mysql library (not recommended, this version break your server with errors related to "DataReader" or "connection not open" ) * "mysql-async" : use a beta mysql library (it's in beta test so it can have some issues, please report any problem here : https://forum...
nilq/small-lua-stack
null
--[[ ############################################################################## S V U I By: Failcoder ############################################################################## --]] --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.select; --[[ ADDON ]]-- local SV = _G['SVUI']; lo...
nilq/small-lua-stack
null
function GM:PlayerInitialSpawn(ply, fromTransition) ply:SetTeam(TEAM_UNASSIGNED) hook.Run("ShowHelp", ply) -- doing ply:ConCommand("gm_showhelp") is stupid because that way -- at least two more network packets will need to be sent between the client and the server end function GM:PlayerSpawn(ply, fromTransition) i...
nilq/small-lua-stack
null
function networkSuccess() tmr.stop(config.network.tmr_alarm_id) print("IP: " .. wifi.sta.getip()) wifi.sta.eventMonStop() wifi.sta.eventMonReg(wifi.STA_GOTIP, "unreg") end function networkFailure() print("Unable to connect") wifi.sta.eventMonStop() wifi.sta.eventMonReg(wifi.STA_GOTIP, "unreg...
nilq/small-lua-stack
null
local codec = require("./codec") local connect = require("./connection") local Emitter = require("core").Emitter local setTimeout = require("timer").setTimeout local Client do local sub = string.sub local wrap = coroutine.wrap local function coroutine_factory(f) return function(...) return wrap(f)(...) end...
nilq/small-lua-stack
null
local class = require "middleclass" Map = class("Map") TILE_BRICK = 1 TILE_EMPTY = 30 local TILE_POLISH = 34 SECRET_BOX = 25 SECRET_BOX_HIT = 26 local BUSH1 = 309 local BUSH2 = 310 local BUSH3 = 311 local FLAG1 = 314 local FLAG2 = 281 local CLOUDTOP1 = 661 local CLOUDTOP2 = 662 local CLOUDTOP3 = 663 local CLOU...
nilq/small-lua-stack
null
local files = require 'files' local util = require 'utility' local guide = require 'parser.guide' ---@type vm local vm = require 'vm.vm' local config = require 'config' local function getTypesOfFile(uri) local types = {} local ast = files.getAst(uri) if not ast or not ast.ast.docs then ...
nilq/small-lua-stack
null
--====================================== --用于计数各个Draw Call的次数 --by Xiliusha --====================================== ---------------------------------------- --获取毫秒接口 --鸽了 ---------------------------------------- --RenderDebug lstg.RenderDebug={} local SCALE=1.0 --全局缩放 local onoff=false local drawcall=0 local dfr...
nilq/small-lua-stack
null
-- a simple file to keep track of bools local bool = {} local bools = {} function bool.new(name, state) -- just an alias bool.set(name, state) end function bool.del(name) bools[name] = nil end function bool.set(name, state) if state then bools[name] = true else bools[name] = false end end function bool.get...
nilq/small-lua-stack
null
local M = {} local z85Decoder = { 0x00, 0x44, 0x00, 0x54, 0x53, 0x52, 0x48, 0x00, 0x4B, 0x4C, 0x46, 0x41, 0x00, 0x3F, 0x3E, 0x45, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x40, 0x00, 0x49, 0x42, 0x4A, 0x47, 0x51, ...
nilq/small-lua-stack
null
local fn = require 'fn' local handler = require 'tulip.handler' local middleware = require 'tulip.pkg.account.middleware' local migrations = require 'tulip.pkg.account.migrations' local tcheck = require 'tcheck' local xerror = require 'tulip.xerror' local xtable = require 'tulip.xtable' local Account = require 'tulip.p...
nilq/small-lua-stack
null
local Lang = {} -- ui function Lang.ui_level_choice(Num, Name) return '<\tlevel ' .. Num .. ' ' .. Name .. '\t>' end Lang.ui_key_start_and_move = '←→ selct\tA start' Lang.ui_key_keyTips = 'X control tips' Lang.ui_player_stuck = 'player stuck' Lang.ui_level_finish = 'level finish!' Lang.ui_key_continue = 'A conti...
nilq/small-lua-stack
null
Remote = nil return function() ---------------------- -- Remote -- ---------------------- print("WE ARE IN A MODULE!") Remote:AddRemote("RemoteTest", function(args) print("THIS IS A REMOTE TEST") print("ARGS[1]: ".. tostring(args[1])) print("ALL ARGS: ".. table.concat(args, ", ")) return "THIS IS A RE...
nilq/small-lua-stack
null