content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
-- Copyright 2022 SmartThings -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
nilq/small-lua-stack
null
local floor, ceil = math.floor, math.ceil local min, max = math.min, math.max local util = require("util") local base = require("layouts.base") local simple = require("layouts.simple") local grid_mt = require("grid_mt") local mpp_util = require("mpp_util") local coord_convert, coord_revert = mpp_util.coord_convert, mp...
nilq/small-lua-stack
null
if settings.startup["enable-reactorplus"] and settings.startup["enable-reactorplus"].value == false then script.on_event(defines.events.on_built_entity, function(event) if string.match(event.created_entity.name, "pipe-") and (string.match(event.created_entity.name, "elbow") or string.match(event.created_entity....
nilq/small-lua-stack
null
Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"} modelname = "xPlane" me = game.Players.xSoulStealerx Pos = Vector3.new(-50,2,0) function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break) local p = Instance.new("Part") p.formFactor = "Custom" p.A...
nilq/small-lua-stack
null
-- Routine for NPC "Jonathan" velocity = 30 loadRoutine = function(R, W) if (W:isQuestComplete("element_master")) then R:setDisposed() return end if (W:isQuestState("element_master", "void") and W:isConditionFulfilled("default", "chapter3")) then R:setTilePosition(9,7) R:setTalkingActi...
nilq/small-lua-stack
null
local AUTOSAVE_ENABLED = true local AUTOSAVE_INTERVAL = 60 local MAX_ATTEMPTS = 3 local VERSION = "0.0.0" local SCHEMA = {} ------------------------------------------------- local dataService = game:GetService'DataStoreService' local dataStore = dataService:GetDataStore("PlayerData", VERSION) local runService = ga...
nilq/small-lua-stack
null
EXPS = {} ------------------------------------------------------------------------------- INFO = {} function INFO.asr_tag (e, cnds, err_msg) ASR(e.info, e, err_msg..' : expected location') --assert(e.info.obj.tag ~= 'Val') local ok do for _, tag in ipairs(cnds) do if tag == e.info.tag...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] PTS creation rule -- -- Description: -- SDL should request PTU in case new application is registered and is not listed in PT -- and device is not consented. -- 1. Used preconditi...
nilq/small-lua-stack
null
--[[ --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
-- scaffolding entry point for XSadd return dofile("XSadd.lua")
nilq/small-lua-stack
null
workspace "Linguini" architecture "x64" startproject "Server" configurations { "Debug", "Release" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "Server" kind "ConsoleApp" location "Server" language "C++" targetdir ("Binaries/" .. outputdir .. "/%{prj.name}") objdir ("Build/"...
nilq/small-lua-stack
null
local input = require('bizhawk/input')() -- Vs Heat local cf = 5668 -- Sequence 1 -- Combo n° 1 cf = input:circle(cf) cf = input:cross(cf + 104) cf = input:right(cf + 40) cf = input:cross(cf + 64) cf = input:down(cf + 40) cf = input:cross(cf + 64) cf = input:up(cf + 40) cf = input:cross(cf + 64) cf = input:right...
nilq/small-lua-stack
null
-- the "Class" library from Hump -- https://hump.readthedocs.io/en/latest/class.html Class = require("lib.hump.class") -- the virtualization library -- -- https://github.com/vrld/hump/blob/master/class.lua local aspect = require("lib.aspect") -- the world keeper : -- register entities, check for collisions, bumps -- ...
nilq/small-lua-stack
null
local path = string.sub(..., 1, string.len(...) - string.len(".hooks.setMinSize")) local stack = require(path..'.core.stack') --Sets the computed/minimum size of an element to be used with layout calculations and rendering return function(w, h) local currentStack = stack.getContext() currentStack.element:setMi...
nilq/small-lua-stack
null
lifeDayAnarraConvoTemplate = ConvoTemplate:new { initialScreen = "", templateType = "Lua", luaClassHandler = "lifeDayAnarraConvoHandler", screens = {} } elder_first = ConvoScreen:new { id = "elder_first", leftDialog = "@conversation/lifeday04c:s_98c49a08", -- (Translated from Shyriiwook) You should speak to our ...
nilq/small-lua-stack
null
local M = { { class = "tool", name = "New", tooltip = { en = "Create a new project (Ctrl+N)", zh = "新建工程 (Ctrl+N)", }, --bitmap = "new.png", bitmap = "new.svg", }, { class = "tool", name = "Open", tooltip = { e...
nilq/small-lua-stack
null
-- cc-auto.lua v1.0 -- by Tallow, based on Tak's cc program, updated by Manon on 5 jan 2018 -- -- Automatically runs many charcoal hearths or ovens simultaneously. -- dofile("cc_Assist.lua"); askText = singleLine([[ CC Auto v1.0 (by Tallow, based on Tak's cc program, updated by Manon on 5 jan 2018) -- Automatical...
nilq/small-lua-stack
null
function RespawnPlayer(player, objectRef) --print(">> Respawning "..player.name) if objectRef then local RespawnObject = objectRef:GetObject() if not RespawnObject then print("NOT WORKING >.<") return end local targetPosition = RespawnObject:GetWorldPosition() local targetRotation = RespawnObj...
nilq/small-lua-stack
null
local MusicEditing = require "MusicEditing" local Song = MusicEditing.Song local Track = MusicEditing.Track local Event = MusicEditing.Event local NoteOnOffEvent = MusicEditing.NoteOnOffEvent local ArrangementContext = MusicEditing.ArrangementContext local style = { name = "Example Style Piano", author = "Charles H...
nilq/small-lua-stack
null
-- Copyright 2021 SMS -- License(Apache-2.0) include "deps/googletest.lua" project "tests" kind "ConsoleApp" language "C++" cppdialect "C++latest" staticruntime "on" targetdir("%{wks.location}/build/" .. output_dir .. "/%{prj.name}/bin") objdir("%{wks.location}/build/" .. output_dir .. "/%{prj.name}/obj") f...
nilq/small-lua-stack
null
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- naga_siren_mirror_...
nilq/small-lua-stack
null
while true do game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25 wait() game.Players.LocalPlayer.Character.Humanoid.Sit = true wait() game.Players.LocalPlayer.Character.Humanoid.Jump = true wait() end
nilq/small-lua-stack
null
local ReplicatedStorage = game:GetService("ReplicatedStorage") local ServerScriptService = game:GetService("ServerScriptService") local Cmdr = require(ServerScriptService:WaitForChild("Cmdr-v1.5.0")) Cmdr:RegisterDefaultCommands() Cmdr:RegisterCommandsIn(ServerScriptService:WaitForChild("CmdrCustomCommands"))
nilq/small-lua-stack
null
-- ========================================================================= -- ========================================================================= -- Licensed to Qualys, Inc. (QUALYS) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional informatio...
nilq/small-lua-stack
null
-- 增加 KeySequence(string) -- 1 -- local ks= KeySequence() -- ks:parse("abc") -- 2 -- local ks= KeySequence("abc") -- local _KeySequence=KeySequence KeySequence = function(str) local ks = _KeySequence() if type(str)== "string" then ks:parse(str) end return ks end --[[ librime-lua 样例 调用方...
nilq/small-lua-stack
null
local function callback_reply(extra, success, result) --icon & rank ------------------------------------------------------------------------------------------------ userrank = "Member" if is_vip(msg) then userrank = "VIP ⭐⭐⭐⭐" send_document(org_chat_id,"./icons/7.webp", ok_cb, false) elseif is_sudo(result) then...
nilq/small-lua-stack
null
waxClass{"AutoTestRuntime"} function autoTestStart(self) print("begin AutoTestRuntime autoTestStart") local res = objc_getAssociatedObject(self, self:getKey1()) print('res=', res) objc_setAssociatedObject(self, self:getKey1(), "lua_value1", 1) local res = objc_getAssociatedObject(self, self:getKey1()) print('...
nilq/small-lua-stack
null
screenboundary = class("screenboundary") function screenboundary:init(x) self.x = x self.y = -1000 self.width = 0 self.height = 1000+mapheight self.static = true self.active = true self.category = 10 self.mask = {true} end
nilq/small-lua-stack
null
local function fib(n) if n < 2 then return n else return fib(n-2) + fib(n-1) end end print(fib(37))
nilq/small-lua-stack
null
local brainlua = require "brainlua" local function write(...) io.stdout:write(...) io.stdout:flush() end while true do write("> ") brainlua(io.stdin:read("*l")) write("\n") end
nilq/small-lua-stack
null
--[[ revealjs-codeblock - enable reveal.js code presentation features Copyright © 2020 Tim Sokollek Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOF...
nilq/small-lua-stack
null
function BWM_OnEnterCombat(Unit,Event) Unit:RegisterUnitEvent("BWM_SnapKick", 10000, 0) end function BWM_SnapKick(Unit,Event) Unit:FullCastSpellOnTarget(39477,Unit:GetClosestPlayer()) end function BWM_OnLeaveCombat(Unit,Event) Unit:RemoveEvents() end function BWM_OnDied(Unit,Event) Unit:RemoveEvents() end Regis...
nilq/small-lua-stack
null
object_mobile_som_storm_lord_guard = object_mobile_som_shared_storm_lord_guard:new { } ObjectTemplates:addTemplate(object_mobile_som_storm_lord_guard, "object/mobile/som/storm_lord_guard.iff")
nilq/small-lua-stack
null
--*********************************************************** --** ROBERT JOHNSON ** --*********************************************************** ---@class ISAddNonPvpZoneUI : ISPanel ISAddNonPvpZoneUI = ISPanel:derive("ISAddNonPvpZoneUI"); local FONT_HGT_SMALL = getTextManager(...
nilq/small-lua-stack
null
if IsValid(TESTP) then TESTP:Remove() end local frame = vgui.Create("DFrame") frame:SetSize(300, 300) frame:SetTitle("DTileLayout Example") frame:MakePopup() frame:Center() local layout = vgui.Create("DTileLayout", frame) layout:SetBaseSize(32) -- Tile size layout:Dock(FILL) //Draw a background so we can see what it...
nilq/small-lua-stack
null
local _ = require("witchvim.global") local utils = require("witchvim.utils") local wv = {} wv.version = _wv.version wv.name = _wv.name wv.website = _wv.website wv.log = require("witchvim.log") wv.g, wv.o, wv.wo, wv.bo, wv.opt = vim.g, vim.o, vim.wo, vim.bo, vim.opt wv.loop = vim.loop wv.fn = vim.fn wv.api = vim.api wv...
nilq/small-lua-stack
null
local parse_openssl_time = require "resty.auto-ssl.utils.parse_openssl_time" local stdlib = require "posix.stdlib" describe("parse_openssl_time", function() local orig_tz before_each(function() orig_tz = os.getenv("TZ") end) after_each(function() stdlib.setenv("TZ", orig_tz) end) it("parses basic ...
nilq/small-lua-stack
null
local function pcolored(text, color) color = color or 'white' modules.client_terminal.addLine(tostring(text), color) end function draw_debug_boxes() g_ui.setDebugBoxesDrawing(not g_ui.isDrawingDebugBoxes()) end function hide_map() modules.game_interface.getMapPanel():hide() end function show_map() modules....
nilq/small-lua-stack
null
return {'falasha','falafel','falangist','falanx','falbala','falderappes','falen','falie','faliekant','faling','fallisch','fallocratie','fallus','fallussymbool','falsaris','falset','falsetstem','falsificatie','falsificeren','falsifieerbaar','falsifieren','falsifiering','falangistisch','falsifieerbaarheid','fale','falkla...
nilq/small-lua-stack
null
--[[ cel is licensed under the terms of the MIT license Copyright (C) 2011 by Matthew W. Burk 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
SCRIPT = [[ clear echoln $> dump_panorama_css_properties dump_panorama_css_properties echoln $> dump_panorama_events dump_panorama_events echoln $> cl_panorama_script_help * cl_panorama_script_help * echoln $> script_reload script_reload echoln $> cl_script_reload cl_script_reload ]] function Act...
nilq/small-lua-stack
null
--[[ @author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com> @copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com> @license MIT ]]-- --[[ function istaxi(plr) local uid=getElementData(plr,'player:uid') if not uid then return end local result=exports['pystories-db']:dbGet('SELECT 1 FROM pystories_facti...
nilq/small-lua-stack
null
-- Dialogue for NPC "npc_cynthia" loadDialogue = function(DL) if (not DL:isConditionFulfilled("npc_cynthia", "talked")) then DL:setRoot(1) else DL:setRoot(10) end if (not DL:isConditionFulfilled("npc_cynthia", "talked")) then DL:createNPCNode(1, 2, "DL_Cynthia_ChooseSide") -- Whose side are you on? ...
nilq/small-lua-stack
null
function love.conf (t) t.window.title = "Level 02" t.window.width = 640 t.window.height = 480 end
nilq/small-lua-stack
null
require "lib.sampfuncs" require "lib.moonloader" local tweaks = {} tweaks.mouseHandler = {} function tweaks.mouseHandler:new() local public = {} public.x, public.y = 0, 0 public.callEvent = 0 function public:updatePosition() self.x, self.y = getCursorPos() end function public:isMouseInWnd(x, y, ...
nilq/small-lua-stack
null
---@class CS.FairyGUI.ColliderHitTest ---@field public collider CS.UnityEngine.Collider ---@type CS.FairyGUI.ColliderHitTest CS.FairyGUI.ColliderHitTest = { } ---@return CS.FairyGUI.ColliderHitTest function CS.FairyGUI.ColliderHitTest.New() end ---@return boolean ---@param contentRect CS.UnityEngine.Rect ---@param loc...
nilq/small-lua-stack
null
Config = { DiscordToken = "NTY4MjIxNzg1OTgwNTM0Nzk5.XRgJMQ._Hr9dr7fFTTuxIcCpvRE9_6YK3Y", GuildId = "561994630590234624", -- Format: ["Role Nickname"] = "Role ID" You can get role id by doing \@RoleName Roles = { ["GTA MOD"] = "561994956156436480", ["GTA"] = "561995105557413917" -- This would be checked by doing...
nilq/small-lua-stack
null
require 'user.backup' require 'user.dropbox' local project = "PROJECT_NAME" -- Project name local token = "DROPBOX_APP_TOKEN" -- Dropbox App token local ftpConfig = { user = 'ftp_user', password = 'ftp_password', ip = '192.168.2.122', } -- Base map is prepended to path automatically based on the Dropbox...
nilq/small-lua-stack
null
local runCheck = require('./index') require('tap')(function (test) test("Ping localhost IPv4", function (expect) runCheck({ id = 45, target = "localhost", module = "ping", resolver = "IPv4", timeout = 20000, }, { count = 10, delay = 100, }, expect(function (err, d...
nilq/small-lua-stack
null
local settings = {} settings.url = "http://example.com" settings.user = "user" settings.passwd = "1234" return settings
nilq/small-lua-stack
null
local M = { } local T = require("PackageToolkit").module local head = (T.import(..., "../_lists/_head")).head local tail = (T.import(..., "../_lists/_tail")).tail local trim = (T.import(..., "../_strings/_trim")).trim local append = (T.import(..., "../_lists/_append")).append local get_keys = (T.import(..., "_keys")).k...
nilq/small-lua-stack
null
-- @module lib.block_ciphers.aes local bytes = require('lib.bytes') local GF256 = require('lib.finite_fields').GF256 local aes = {} local AESMat = {} AESMat.sbox = { 0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76, 0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0, 0x...
nilq/small-lua-stack
null
local route_110_trick = DoorSlot("route_110", "trick") local route_110_trick_hub = DoorSlotHub("route_110", "trick", route_110_trick) route_110_trick:setHubIcon(route_110_trick_hub) local route_110_cycling_n = DoorSlot("route_110", "cycling_n") local route_110_cycling_n_hub = DoorSlotHub("route_110", "cycling_n", route...
nilq/small-lua-stack
null
local ITEM = Clockwork.item:New("weapon_base"); ITEM.name = "Desert Eagle"; ITEM.cost = 0; ITEM.model = "models/weapons/3_pist_deagle.mdl"; ITEM.weight = 2.4; ITEM.uniqueID = "bb_deagle_alt"; ITEM.business = false; ITEM.description = "Aah. Good ol' Juan Deag."; ITEM.isAttachment = false; ITEM:Register();
nilq/small-lua-stack
null
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_leshrac_p...
nilq/small-lua-stack
null
local PLUGIN = PLUGIN ix.command.Add("DoorSell", { description = "@cmdDoorSell", OnRun = function(self, client, arguments) -- Get the entity 96 units infront of the player. local data = {} data.start = client:GetShootPos() data.endpos = data.start + client:GetAimVector() * 96 data.filter = client loc...
nilq/small-lua-stack
null
if not arg[1] then print("Usage: " .. arg[0] .. [[ PATH [--dump] PATH should point to the 'text-en' directory of the pgf distribution ]]) return end lpeg = require "lpeg" lpeg.locale(lpeg) P, V, R, S, B = lpeg.P, lpeg.V, lpeg.R, lpeg.S, lpeg.B C, Cp, Cs, Cmt, Cf, Ct = lpeg.C, lpeg.Cp, lpeg.Cs, lpeg.Cmt, lpeg.Cf...
nilq/small-lua-stack
null
local toy = require('toy') local vmath = require('vmath') local keycodes = require('keycodes') local drawutil = require('drawutil') local retroreload = require('retroreload') local App = {} App.__index = App function App.new() local self = {} setmetatable(self, App) -- init self._time = 0.0 return self end fu...
nilq/small-lua-stack
null
local att = {} att.name = "bg_nostock" att.displayName = "No stock" att.displayNameShort = "None" att.isBG = true att.SpeedDec = -5 att.statModifiers = {DrawSpeedMult = 0.2, OverallMouseSensMult = 0.2, RecoilMult = 0.2} if CLIENT then att.displayIcon = surface.GetTextureID("atts/nostock") end function att:attachFun...
nilq/small-lua-stack
null
require "run" local Tile = require "WFC.Tile" local WaveTile = require "WFC.WaveTile" local GetRules = require "WFC.GetRules" local Menu = require "Menu" local input = { {'E', 'E' , 'E', 'E' ,'E' , 'E' , 'E', 'E' }, {'E', 'DR', 'H', 'DL','E' , 'C' , 'C', 'E' }, {'E', 'V' , 'E', 'V' ,'E' , 'E' , 'E', 'E' ...
nilq/small-lua-stack
null
local tools = require "waf/tools" local regex require "resty.core.regex" local ck = require "resty.cookie" local _M = { _VERSION = "0.0.1" } local mt = { __index = _M } function _M.new() local method = ngx.req.get_method() local cookie = ck:new() local cookies = cookie:get_all() if method == "PO...
nilq/small-lua-stack
null
local sub, find = string.sub, string.find module.exports.split = function(str, sep, nmax) if sep == nil then sep = '%s+' end local r = { } if #str <= 0 then return r end local plain = false nmax = nmax or -1 local nf = 1 local ns = 1 local nfr, nl = find(str, se...
nilq/small-lua-stack
null
--this = BuildNode() AutoBuilder = {} AutoBuilder.keyBindSave = KeyBind() AutoBuilder.keyBindSave:setKeyBindKeyboard(0, Key.lctrl, Key.s) AutoBuilder.keyBindLoad = KeyBind() AutoBuilder.keyBindLoad:setKeyBindKeyboard(0, Key.lctrl, Key.l) local eventList = {} local loadOrder = {} local curentEvent = 1 local c...
nilq/small-lua-stack
null
require "behaviours/chaseandattack" require "behaviours/runaway" require "behaviours/wander" require "behaviours/doaction" require "behaviours/attackwall" require "behaviours/panic" require "behaviours/minperiod" require "behaviours/chaseandram" local TIME_BETWEEN_EATING = 3.5 local MAX_CHASE_TIME = 10 local GIVE_UP...
nilq/small-lua-stack
null
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BceGuildBuy_pb', package.seeall) local BCEGUILDBUY = protobuf.Descriptor(); local BCEGUILDBUY_PROPID_FIELD = protobuf.FieldDescriptor(); BCEGUILDBUY_PROPID_FIELD.name = "propID" BCEGUILDBUY_PROPID_FIELD.full_name = ".com.xinqihd.s...
nilq/small-lua-stack
null
local function Timer(name) local objectType = "Timer" local timer = 0 local savedRepeats = 0 local repeats = 0 local timerObj local eventSystem = BasaltEvents() local timerIsActive = false local object = { name = name, getType = function(self) return objectT...
nilq/small-lua-stack
null
#!/usr/bin/lua package.cpath = package.cpath..";/usr/lib/lua/5.1/?.so;" local paths = { package.path -- the good ol' package.path } package.path = table.concat(paths, ";") local async_http = require("lua_async_http") local function parse_response(res) return res.url, res.response_status, res.response_body, res.res...
nilq/small-lua-stack
null
local Prop = {} Prop.Name = "Arcadia Apartments 2a" Prop.Cat = "Apartments" Prop.Price = 900 Prop.Doors = { Vector( 5647, -68, 502 ), Vector( 5556, -133, 502 ), } GM.Property:Register( Prop )
nilq/small-lua-stack
null
--[[ Per-Player Dictionary - Client v1.0 by: standardcombo Networked transfer of variables, similar to resources. Use for information that is not super large and does not change frequently. API: - Clear(player) - GetCollection(player) - Get(player, key) - GetNumber(player, key) - Set(player, key, value) ...
nilq/small-lua-stack
null
slot0 = class("Ship", import(".BaseVO")) slot0.ENERGY_MID = 40 slot0.ENERGY_LOW = 0 slot0.RECOVER_ENERGY_POINT = 2 slot0.INTIMACY_PROPOSE = 6 slot0.BACKYARD_1F_ENERGY_ADDITION = 2 slot0.BACKYARD_2F_ENERGY_ADDITION = 3 slot0.PREFERENCE_TAG_NONE = 0 slot0.PREFERENCE_TAG_COMMON = 1 slot1 = { vanguard = i18n("word_vanguar...
nilq/small-lua-stack
null
-- luahs, Lua bindings to hyperscan -- Copyright (C) 2016 Boris Nagaev -- See the LICENSE file for terms of use. local argparse = require 'argparse' local luahs = require 'luahs' local parser = argparse('hsfgrep', 'Match multiple patterns with Hyperscan') parser:option('-p --patterns', 'Patterns'):args('+'):count(1) ...
nilq/small-lua-stack
null
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local allowlist = {} local mattata = require('mattata') local redis = require('libs.redis') function allowlist:init() allowlist.commands = mattata.commands(self.info.username):...
nilq/small-lua-stack
null
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] ITEM.name = "Kebab" ITEM.model = Model("models/kek1ch/meat_tushkano.mdl") ITEM.width = 1 ITEM.height = 1 ITEM.description = "A freshly made kebab. Smells amazing and tastes even better." ITEM.category = "Non-Approved Fo...
nilq/small-lua-stack
null
_FormatterConfigurationValues = _FormatterConfigurationValues or {} local config = {} config.values = _FormatterConfigurationValues function config.set_defaults(defaults) defaults = defaults or {} config.values = vim.tbl_extend("force", { filetype = {} }, defaults) end config.set_defaults() return config
nilq/small-lua-stack
null
local pchar = game.Players.LocalPlayer.Character local morph = Instance.new("SpecialMesh", pchar.Torso) morph.MeshType = "FileMesh" morph.MeshId = "http://www.roblox.com/asset/?id=1376455" morph.TextureId = "http://www.roblox.com/asset/?id=1376454" morph.Scale = Vector3.new(5, 5, 5) pchar.Head.Transparency = 1 pchar["L...
nilq/small-lua-stack
null
local module = {async = true} local remotes = game:GetService('ReplicatedStorage').Remotes local modules = game:GetService('ServerStorage').Modules local playerData = require(modules.PlayerData) local template = require(modules.PlayerData.Template) local api = require(script.Api) local getData = remotes.GetData loca...
nilq/small-lua-stack
null
-- 屏幕左半部分 hs.hotkey.bind({"cmd", "alt", "ctrl"}, "Left", function() local win = hs.window.focusedWindow() local f = win:frame() local screen = win:screen() local max = screen:frame() f.x = max.x f.y = max.y f.w = max.w / 2 f.h = max.h win:setFrame(f, 0) end) -- 屏幕右半部分 hs....
nilq/small-lua-stack
null
local addonName, addonTable = ... local Addon = _G[addonName] local S = LibStub:GetLibrary("ShockahUtils") local Class = { prototype = {}, } Addon.Action = Class local Instance = Class.prototype function Class:New(button, type, id, name, slot) local obj = S:Clone(Class.prototype) obj.button = button obj.type = t...
nilq/small-lua-stack
null
local M = {} local flash_size = { ['4'] = 16, ['6'] = 32, ['8'] = 64, ['B'] = 128, ['C'] = 256, ['D'] = 384, ['E'] = 512, ['F'] = 768, ['G'] = 1024, } local chip_type = { ['100'] = { ['4'] = {4,'B'}, ['6'] = {4,'B'}, ['8'] = {8,'B'}, ['B'] = {8,'B'}, ['C'] = {24,'E'}, ['D'] = {32,'E'}, ['E'] ...
nilq/small-lua-stack
null
-- FM 7 lib -- Engine params and functions -- -- @module FM7 -- @release v0.0.1 -- @author Lee Azzarello local ControlSpec = require "controlspec" local FM7 = {} local specs = {} local options = {} specs.OPAMP_A1= ControlSpec.new(0.01,10,"lin",0,0.05,"ms") specs.OPAMP_D1= ControlSpec.new(0,2,"lin",0,0.1,"ms") specs...
nilq/small-lua-stack
null
local utils = require("go.utils") local log = utils.log local curl = "curl" local run = function(...) local query = select(1, ...) if query == nil then query = vim.fn.expand("<cword>") end local cmd = string.format("%s cht.sh/go/%s?T", curl, query) log(cmd) local data = vim.fn.systemlist(cmd, vim.fn.bu...
nilq/small-lua-stack
null
test_run = require('test_run') inspector = test_run.new() engine = inspector:get_cfg('engine') -- space create/drop space = box.schema.space.create('test', { engine = engine }) space:drop() -- space index create/drop space = box.schema.space.create('test', { engine = engine }) index = space:create_index('primary') s...
nilq/small-lua-stack
null
-- still pictures dofile(minetest.get_modpath("gemalde").."/still.lua") -- animated picures dofile(minetest.get_modpath("gemalde").."/animated.lua")
nilq/small-lua-stack
null
local static_Start = Sound("PERP2.5/cradio_start.mp3"); local static_Stop = Sound("PERP2.5/cradio_close.mp3"); local function thinkRadioStatic ( ) if (GAMEMODE.PlayStatic) then if (!GAMEMODE.StaticNoise) then GAMEMODE.StaticNoise = CreateSound(LocalPlayer(), Sound("PERP2.5/cradio_static.mp3")); end if ...
nilq/small-lua-stack
null
wrk.method = "PUT" -- wrk.body = "url='http://elixirstatus.com'" wrk.headers["Content-Type"] = "application/json"
nilq/small-lua-stack
null
-- STEPMANIA RPG - MINUS THE ROLEPLAY PART local curExp = { PlayerNumber_P1 } -- Returns the total Exp given a PlayerNumber function getProfileExp(pn) local profile = PROFILEMAN:GetProfile(pn) if profile ~= nil then return math.floor(profile:GetTotalDancePoints()/10 + SCOREMAN:GetTotalNumberOfScores()*50) else...
nilq/small-lua-stack
null
--[[Author: YOLOSPAGHETTI Date: March 30, 2016 Stores the positions of the target over the course of the last backtrack time in an array]] function MovementCheck(keys) local target = keys.unit local ability = keys.ability local backtrack_time = ability:GetLevelSpecialValueFor("backtrack_time", ability:GetLevel() -...
nilq/small-lua-stack
null
--[[ Copyright (c) 2014, Robert 'Bobby' Zenz All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the fo...
nilq/small-lua-stack
null
if not modules then modules = { } end modules ['font-mps'] = { version = 1.001, comment = "companion to font-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local concat = tabl...
nilq/small-lua-stack
null
-- THIS FILE IS GENERATED. DO NOT EDIT MANUALLY. -- stylua: ignore start return {properties = {["vetur.completion.autoImport"] = {default = true,description = "Include completion for module export and auto import them",type = "boolean"},["vetur.completion.scaffoldSnippetSources"] = {default = {user = "🗒️",vetur = "✌",...
nilq/small-lua-stack
null
--[[ Project: SA Memory (Available from https://blast.hk/) Developers: LUCHARE, FYP Special thanks: plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses. Copyright (c) 2018 BlastHack. ]] local shared = require 'SAMemory.shared' shared.require 'CAESound' shared.require 'CAEAudioE...
nilq/small-lua-stack
null
x = 5 a,b = 10, x*2 print(a, b)
nilq/small-lua-stack
null
-------------------------------- -- @module ActionFrame -- @extend Ref -- @parent_module ccs -------------------------------- -- @overload self, float, ccs.ActionFrame -- @overload self, float -- @function [parent=#ActionFrame] getAction -- @param self -- @param #float duration -- @param #ccs.Action...
nilq/small-lua-stack
null
---@class gd.Sprite : gd.Node local Sprite = {} local Node = require("scene.node") ---@return gd.Sprite function Sprite.create() local obj = Node.create() obj.image = nil obj.centered = true obj.flip_h = false obj.flip_v = false obj.onDraw = Sprite.onDraw return obj end ---@param spr gd.Sprite ---@p...
nilq/small-lua-stack
null
--GPU: Gif recording. --luacheck: push ignore 211 local Config, GPU, yGPU, GPUVars, DevKit = ... --luacheck: pop local lg = love.graphics local events = require("Engine.events") local Path = GPUVars.Path local GifVars = GPUVars.Gif local WindowVars = GPUVars.Window local PaletteVars = GPUVars.Palette local RenderVa...
nilq/small-lua-stack
null
EFFECT.Mat = Material("effects/laser_tracer") EFFECT.Col1 = Color(255, 90, 25, 200) --Color(225,225,225,225) EFFECT.Col2 = Color(225, 25, 25, 200) EFFECT.Speed = 8192 EFFECT.TracerLength = 128 --[[--------------------------------------------------------- Init( data table ) ---------------------------------------------...
nilq/small-lua-stack
null
-- Event notes hooks function onEvent(name, value1, value2) if name == 'Camera Zoom Speed' then camSpeed = value1 camInt = value2 end end
nilq/small-lua-stack
null
ESX = nil notLoaded, currentStreetName, intersectStreetName, lastStreet, speedlimit, nearbyPeds, isPlayerWhitelisted, playerPed, playerCoords, job, rank, firstname, lastname, phone = true Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Cit...
nilq/small-lua-stack
null
--[[ |========================================== | SCHOOL ♥♥ | by: Noyemi K/Delmunsoft | began: 1 May, 2020 |========================================== ]] function love.load() textfont = love.graphics.newImageFont("assets/ENFontHalf.png", " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!?.,';:$%-...
nilq/small-lua-stack
null
local math_utils = require('radio.utilities.math_utils') describe("math_utils", function () it("ceil_log2()", function () assert.is.equal(0, math_utils.ceil_log2(1)) assert.is.equal(1, math_utils.ceil_log2(2)) assert.is.equal(6, math_utils.ceil_log2(50)) assert.is.equal(6, math_util...
nilq/small-lua-stack
null