content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
-- This file has been generated by /usr/bin/notion. Do not edit.
return {
[1] = {
["type"] = "WScreen",
["name"] = "WScreen<1>",
["managed"] = {
[1] = {
["geom"] = {
["y"] = 0,
["x"] = 0,
["w"] = 1920,
... | nilq/small-lua-stack | null |
--[[
KahLua KonferSK - a suicide kings loot distribution addon.
WWW: http://kahluamod.com/ksk
Git: https://github.com/kahluamods/konfersk
IRC: #KahLua on irc.freenode.net
E-mail: cruciformer@gmail.com
Please refer to the file LICENSE.txt for the Apache License, Version 2.0.
Copyright 2008-... | nilq/small-lua-stack | null |
--[[
A shape is a voxel object and always owned by a body.
A single body may contain multiple shapes.
The transform of shape is expressed in the parent body coordinate system.
]]
---@param tag string Tag name
---@param global boolean _optional_ Search in entire scene
---@return number Handle to first shape with specif... | nilq/small-lua-stack | null |
local cqueues = require "cqueues"
local pgsql = require "cqueues_pgsql"
local conn = pgsql.connectdb ""
if conn:status() ~= pgsql.CONNECTION_OK then
error(conn:errorMessage(), nil)
end
assert(conn:exec("LISTEN somechannel"):status() == pgsql.PGRES_COMMAND_OK)
local loop = cqueues.new()
loop:wrap(function()
while t... | nilq/small-lua-stack | null |
-----------------------------------
--
-- tpz.effect.MIGHTY_STRIKES
--
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onEffectGain(target, effect)
target:addMod(tpz.mod.CRITHITRATE, 100)
end
function onEffectTick(target, effect)
end
function onE... | nilq/small-lua-stack | null |
local P, S, V, C, Cb, Cc, Cg, Cs, Cmt, Ct, Cf, Cp, locale, match
do
local _obj_0 = require('lpeg')
P, S, V, C, Cb, Cc, Cg, Cs, Cmt, Ct, Cf, Cp, locale, match = _obj_0.P, _obj_0.S, _obj_0.V, _obj_0.C, _obj_0.Cb, _obj_0.Cc, _obj_0.Cg, _obj_0.Cs, _obj_0.Cmt, _obj_0.Ct, _obj_0.Cf, _obj_0.Cp, _obj_0.locale, _obj_0.match... | nilq/small-lua-stack | null |
---------------------------------------------------
-- Flame_Thrower
-- Description: Uses a flamethrower that deals Fire damage to players in a fan-shaped area of effect. Additional effect: Plague
-- Type: Magical
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/g... | nilq/small-lua-stack | null |
local ObjectManager = require("managers.object.object_manager")
rebelSympathizerConvoHandler = conv_handler:new {}
function rebelSympathizerConvoHandler:getInitialScreen(pPlayer, pNpc, pConvTemplate)
local convoTemplate = LuaConversationTemplate(pConvTemplate)
local npcID = SceneObject(pNpc):getObjectID()
local p... | nilq/small-lua-stack | null |
object_tangible_powerup_weapon_ranged_speed = object_tangible_powerup_weapon_shared_ranged_speed:new {
}
ObjectTemplates:addTemplate(object_tangible_powerup_weapon_ranged_speed, "object/tangible/powerup/weapon/ranged_speed.iff")
| nilq/small-lua-stack | null |
-----------------------------------------
-- ID: 5603
-- Item: dish_of_hydra_kofte_+1
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Strength 8
-- Intelligence -4
-- Attack % 20
-- Attack Cap 160
-- Defense % 25
-- Defense Cap 75
-- Ranged ATT % 20
-- Ranged ATT Cap 160
-- Poison Resist ... | nilq/small-lua-stack | null |
local helpers = require('test.functional.helpers')
local Screen = require('test.functional.ui.screen')
local clear, feed, execute = helpers.clear, helpers.feed, helpers.execute
describe("'wildmode'", function()
local screen
before_each(function()
clear()
screen = Screen.new(25, 5)
screen:attach()
en... | nilq/small-lua-stack | null |
do
obj:method_1(1):method_2("dood"):method_3(false):method_4(true)
end
-- Result --
do
obj:method_1(1):method_2("dood")
:method_3(false):method_4(true)
end
| nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- All the models, materials, sounds belong to their corresponding authors. Permission is granted to only distribute these models through Garry's Mod Steam Workshop and the official Metrostroi GitHub accounts for use with Garry's Mod and M... | nilq/small-lua-stack | null |
--- Syntax sugar for event manipulation.
---
--- Along with the documented functions, this module dynamically generates syntax-shortcuts for all `defines.events`
--- events. These shortcuts are only to be used when registering a handler to a single event. To register a handler to
--- multiple events, use `event.registe... | nilq/small-lua-stack | null |
pointcloud.BSP = pointcloud.BSP or {}
local meta = {}
meta.__index = meta
function meta:Init()
self.File = file.Open(string.format("maps/%s.bsp", game.GetMap()), "rb", "GAME")
self.Header = self:ReadHeader()
self.Leafs = self:ReadLeafs()
return self
end
function meta:Close()
self.File:Close()
self.File = ni... | nilq/small-lua-stack | null |
local remap = vim.api.nvim_set_keymap
remap('n','<C-t><C-t>', '<cmd>BufferLinePick<CR>', { noremap = true, silent = true })
remap('n','<C-t><C-l>', '<cmd>BufferLineCycleNext<CR>', { noremap = true, silent = true })
remap('n','<C-t><C-h>', '<cmd>BufferLineCyclePrev<CR>', { noremap = true, silent = true })
remap('n','<C... | nilq/small-lua-stack | null |
--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--
-- Debugging utilities
--
-- Usage:
-- User settings:
-- dbg.key (number) - Key to toggle debugger (default 41)
-- dbg.active (bool) - Is debugger on (default false)
-- ... | nilq/small-lua-stack | null |
function Armory:GetCanTakeDamageOverride()
return false
end
| nilq/small-lua-stack | null |
local screenName = Var "LoadingScreen"
local footerBaseImage
if screenName == "ScreenSelectProfile" or screenName == "ScreenDataSaveSummary" then
footerBaseImage = "centered (doubleres).png"
elseif screenName == "ScreenSelectMusicRD" then
footerBaseImage = "RDbase (doubleres).png"
else
footerBaseImage ... | nilq/small-lua-stack | null |
eaw = require "eaw-abstraction-layer"
eaw.use_real_errors(true)
eaw.use_busted()
| nilq/small-lua-stack | null |
-- Autogenerated from DerivedGeneralCategory.txt
return {
0x00000300,0x0000036F,
0x00000483,0x00000487,
0x00000488,0x00000489,
0x00000591,0x000005BD,
0x000005BF,0x000005BF,
0x000005C1,0x000005C2,
0x000005C4,0x000005C5,
0x000005C7,0x000005C7,
0x00000610,0x0000061A,
0x0000064B,0x0000065F,
0x00000670,0x00000670,
0x000006D... | nilq/small-lua-stack | null |
local cmd = vim.cmd
require('formatter').setup({
logging = false,
filetype = {
lua = {
function()
return {
exe = 'lua-format',
args = {
'--indent-width=2', '--column-limit=100', '--double-quote-to-single-quote', '--spaces-inside-table-braces'
},
... | nilq/small-lua-stack | null |
local a = {}
function a:b(...)
local a, self = 4
do
local a = (...)(a)
each(a, function() local self = self[5]; return self.bar end)
end
print(a[1])
end
return a
| nilq/small-lua-stack | null |
--[[
Sample plugin file for highlight 3.9
]]
Description="Add perldoc.perl.org reference links to HTML, LaTeX, RTF and ODT output of Perl code"
Categories = {"perl", "html", "rtf", "latex", "odt" }
-- optional parameter: syntax description
function syntaxUpdate(desc)
if desc~="Perl" then
return
end
funct... | nilq/small-lua-stack | null |
local min = 1
local max = 100
if arg[1] then max = tonumber(arg[1]) end
if arg[2] then min = tonumber(arg[2]) end
-- this will get fixed in the next if
if max < min then
min, max = max, min
elseif max == min then
max = max + 1
end
for i=min,max-1 do
io.write(i, '+')
end
print(max)
| nilq/small-lua-stack | null |
-- if the MenuTimer is enabled, we should reset SSM's MenuTimer now that we've reached Gameplay
if PREFSMAN:GetPreference("MenuTimer") then
SL.Global.MenuTimer.ScreenSelectMusic = ThemePrefs.Get("ScreenSelectMusicMenuTimer")
end
local Players = GAMESTATE:GetHumanPlayers()
local holdingCtrl = false
local Rest... | nilq/small-lua-stack | null |
-----------------------------------------
-- ID: 4538
-- Item: roast_pipira
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 3
-- Mind -3
-- Attack % 14
-- Attack Cap 75
-- Ranged ATT % 14
-- Ranged ATT Cap 75
-----------------------------------------
require("scripts/globals/stat... | nilq/small-lua-stack | null |
require("moonsc").import_tags()
-- We test that states are added to the active states list as they are
-- entered and before onentry handlers are executed.
-- When s0's onentry handler fires we should not be in s01. But when s01's
-- onentry handler fires, we should be in s01. Therefore event1 should not
-- fire, but ... | nilq/small-lua-stack | null |
local hum = script.Parent
local char = hum.Parent
local torso = char:FindFirstChild("HumanoidRootPart")
local origY = torso.Position.Y
local event = game:service("RunService").Stepped:Connect(function()
for _,v in pairs(char:GetDescendants()) do
if v:IsA("BasePart") then
v.CanCollide = false
end
end
local cf ... | nilq/small-lua-stack | null |
require(settings.get("ghu.base") .. "core/apis/ghu")
local q = require("am.quarry")
local function main()
if q.canResume() then
q.runJob(true)
end
end
main()
| nilq/small-lua-stack | null |
#!/usr/bin/env lua
local lu = require 'luaunit'
require 'lfs'
local dirname = lfs.currentdir() .. '/tests'
for f in lfs.dir(dirname) do
local path = table.concat({dirname, f}, '/')
if lfs.attributes(path, 'mode') == 'file' then
if f:sub(1, 4) == 'test' and f:sub(-4) == '.lua' then
print(path)
requ... | nilq/small-lua-stack | null |
README for Lua 5.1
See INSTALL for installation instructions.
See HISTORY for a summary of changes since the last released version.
* What is Lua?
------------
Lua is a powerful, light-weight programming language designed for extending
applications. Lua is also frequently used as a general-purpose, stand-alone
... | nilq/small-lua-stack | null |
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License"); you may ... | nilq/small-lua-stack | null |
--local gui = require(script.Gui)
local RadialGauge = require(script.RadialGauge)
local CarInterfaceGui = {}
local ran = Random.new()
function CarInterfaceGui:BuildGui(settings)
local ocgui = game.Players.LocalPlayer.PlayerGui:WaitForChild('OpenChassisGui')
local opts = {}
opts.minDeg = 45
opts.ma... | nilq/small-lua-stack | null |
object_intangible_beast_bm_kimogila = object_intangible_beast_shared_bm_kimogila:new {
}
ObjectTemplates:addTemplate(object_intangible_beast_bm_kimogila, "object/intangible/beast/bm_kimogila.iff")
| nilq/small-lua-stack | null |
Controller = Object:extend()
function Controller:new(view, player)
self.view = view
self.player = player
--timers
self.droptimer = droptimer
self.movecooldown = 0
self.speedupcooldown = 0
self.rotatecooldown = 0
self.placed = { } --Array of blocks on the field
self.gameover = false
self... | nilq/small-lua-stack | null |
local RemotesController= require(game.ServerScriptService.kwatworks.Base.BaseController):extend()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
RemotesController.events = {}
RemotesController.functions = {}
function RemotesController:NewRemoteEvent(name)
local remoteEvent = Instance.new("Remote... | nilq/small-lua-stack | null |
dofile(THEME:GetPathO("", "modifier_options_menu_entry.lua"))
dofile(THEME:GetPathO("", "modifier_options_menu_data.lua"))
ModifierOptionsMenu = {}
ModifierOptionsMenu_mt = { __index = ModifierOptionsMenu }
local MENU_ENTRIES = {
ModifierOptionsMenuData.create({
label = "Speed Modifier Type",
scroll = funct... | nilq/small-lua-stack | null |
#!/usr/bin/env tarantool
local log = require('log')
local websocket = require('websocket')
local json = require('json')
local base = 'wss://localhost:9001'
local agent = 'Tarantool/1.10'
local cases = {
--1,
}
local i = 1
local limit = nil
while true do
local url
if i == nil then
break
end
... | nilq/small-lua-stack | null |
add_rules("mode.debug", "mode.release")
add_rules("plugin.vsxmake.autoupdate")
set_languages("c99", "cxx17")
set_project("cpputils")
set_allowedmodes("debug", "release")
set_defaultmode("debug")
set_warnings("allextra")
set_optimize("aggressive")
target("cpputils")
set_kind("static")
add_headerfiles("include/(**.h... | nilq/small-lua-stack | null |
local cppjwt = require('libcppjwt')
local json = require('cjson')
local M = {}
function M.decode_raw(token)
return cppjwt.decode(token)
end
function M.decode(token)
return json.decode(M.decode_raw(token))
end
function M.verify(token, key)
return cppjwt.verify(token, key)
end
return M
| nilq/small-lua-stack | null |
-- id int 怪物ID
-- name lang 怪物名称
-- desc lang 怪物描述
-- elements tableString[k:#seq|v:#1(int)] 怪物定位
-- attr ... | nilq/small-lua-stack | null |
--[[
There're all the code of game logic and field drawing.
I suspect my code is bad somewhere, especially in the animation sections.
So, can't you help me make it better, if it is?
]]
local field = {w = 4, h = 4}
local gph = love.graphics
field.tiles = {} --[[Tiles have values, which are equal to order numbers of ... | nilq/small-lua-stack | null |
local SpatialFractionalMaxPooling, parent =
torch.class('nn.SpatialFractionalMaxPooling', 'nn.Module')
-- Usage:
-- nn.SpatialFractionalMaxPooling(poolSizeW, poolSizeH, outW, outH)
-- the output should be the exact size (outH x outW)
-- nn.SpatialFractionalMaxPooling(poolSizeW, poolSizeH, ratioW, ratioH)
-- the... | nilq/small-lua-stack | null |
AddCSLuaFile()
ENT.Type = 'anim'
ENT.Base = 'bw_drink_base'
ENT.PrintName = 'Jump Increase'
ENT.Author = 'n00bmobile'
ENT.Category = 'n00bmobile'
ENT.Spawnable = true
ENT.AdminSpawnable = true
--[Customizable Values]--
ENT.Duration = 30
-------------------------
if SERVER then
ENT.OnDrink = function(ply)
ply:SetJu... | nilq/small-lua-stack | null |
local discordia = require('discordia')
local spawn = require('coro-spawn')
local split = require('coro-split')
local net = require('coro-net')
local timer = require('timer')
local fs, fsopen, fswrite -- Lazy required
local format = string.format
local unpack = table.unpack
-- Do not edit, pass options to function ins... | nilq/small-lua-stack | null |
-- HEAT STRING FUNCTION - by zulu200
local heat_string = function( o )
if o == 'arm_for' or o == 'branchbank_gold' or o == 'branchbank' or o == 'welcome_to_the_jungle' or o == 'welcome_to_the_jungle_prof' or o == 'ukrainian_job' or o == 'big_prof' or o == 'safehouse' then return "" end
local i_perc = 100 * (... | nilq/small-lua-stack | null |
fx_version 'cerulean'
games { 'gta5' }
author 'Parchoquer'
version '1.0.0'
client_scripts {
'RageUI/RMenu.lua',
'RageUI/menu/RageUI.lua',
'RageUI/menu/Menu.lua',
'RageUI/menu/MenuController.lua',
'RageUI/components/*.lua',
'RageUI/menu/elements/*.lua',
'RageUI/menu/items/*.lua',
... | nilq/small-lua-stack | null |
local ffi = require 'ffi'
local function q(input, suffix)
return string.gsub(input..'${Suffix}','${Suffix}',suffix)
end
local cdef = [[
typedef struct itkImage${Suffix} ImageType${Suffix};
void GaussianConvolution${Suffix}(ImageType${Suffix}* inputImage, ImageType${Suffix}* outputImage, double sigma, int norma... | nilq/small-lua-stack | null |
num_iterations = 9
f = { 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0 }
function Output( f, l )
io.write( l, ": " )
for i = 1, #f do
local c
if f[i] == 1 then c = '#' else c = '_' end
io.write( c )
end
print ""
end
Output( f, 0 )
for l = 1, num_iterations do
... | nilq/small-lua-stack | null |
--[[
Created by Dimitri Barronmore
https://github.com/DimitriBarronmore/cyf-arenas
--]]
local function smooth_value(value, value2, speed, div)
if value < value2 then
value = math.min(value + (speed*Time.dt/div), value2)
elseif value > value2 then
value = math.max(value - (speed*Time.dt/div), value2)
end
ret... | nilq/small-lua-stack | null |
-- caffeine mode --
-------------------
local caffeineMenu = hs.menubar.new()
caffeineMenu:setTooltip("Caffeinate mode (i.e. disable screen locking)")
local caffeinateSleepType = "displayIdle"
local function setCaffeineDisplay(state)
if state then
caffeineMenu:setTitle("🐎")
else
caffeineMenu:setTi... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
--
-- This file is Squish, built (and squished) with all normal options.
--
-- Options: --with-minify --with-uglify --with-compile --with-virtual-io
-- Build date: 2018-12-19
-- Website: https://github.com/LuaDist/squish/
--
-- Note: One instance of 'arg' was replaced with {...} to make Sim... | nilq/small-lua-stack | null |
/*
MiniTank Wars
Copyright (c) 2010 BMCha
This gamemode is licenced under the MIT License, reproduced in /shared.lua
------------------------
TankSplode init.lua
-Tank Explode Effect init
*/
function EFFECT:Init( data )
local TargetEntity = data:GetEntity()
if ( !TargetEntity || !TargetEntity:IsVali... | nilq/small-lua-stack | null |
local deriv = require'deriv'
local parser = require'parser'
local list = require'list'
local pretty = require'pretty'
local say = require'say'
local newNode = parser.newNode
local function equalDeriv (d, s)
local dStr = d.list:toString('', '', ' ', pretty.printp)
local sStr = s
if type(s) ~= "string" then -- s is ... | nilq/small-lua-stack | null |
return mwse.loadConfig("weaponSheathing") or {
showCustom = true,
showShield = false,
showWeapon = true,
blocked = {
["animated morrowind 1.0.esp"] = true,
["animated morrowind ii.esp"] = true,
["animated_morrowind - expanded.esp"] = true,
["animated_morrowind - merged.es... | nilq/small-lua-stack | null |
-- carts_api/init.lua
local S = minetest.get_translator("carts_api")
carts = {}
carts.railparams = {}
-- Maximal speed of the cart in m/s (min = -1)
carts.speed_max = 7
-- Set to -1 to disable punching the cart from inside (min = -1)
carts.punch_speed_max = 5
-- Maximal distance for the path correction (for dtime pe... | nilq/small-lua-stack | null |
local test = {}
local Transformable = require 'src.utils.transformable'
function test.addAbsolutePosition()
local transformable = Transformable({position = {1, 2, 3}})
transformable:addAbsolutePosition(3, 2, 1)
assertEquals(transformable.position, {4, 4, 4})
end
function test.addRelativePosition()
lo... | nilq/small-lua-stack | null |
local ipairs = ipairs
local type = type
local tostring = tostring
local utils = require("orange.utils.utils")
local orange_db = require("orange.store.orange_db")
local BasePlugin = require("orange.plugins.base_handler")
local counter = require("orange.plugins.rate_limiting.counter")
local function get_current_stat(li... | nilq/small-lua-stack | null |
function onCreate()
-- background shit
makeLuaSprite('ANGRYBIRDstageback', 'ANGRYBIRDstageback', -500, -300);
setLuaSpriteScrollFactor('ANGRYBIRDstageback', 0.9, 0.9);
makeLuaSprite('ANGRYBIRDstagefront', 'ANGRYBIRDstagefront', -650, 600);
setLuaSpriteScrollFactor('ANGRYBIRDstagefront', 0.9, 0.9);
scaleO... | nilq/small-lua-stack | null |
pfUI:RegisterModule("treebrowser", function ()
local size = 24
local function OnShow()
if not this.data then return end
local data = this.data
local draw = this.draw
this.caption:SetText(data[1])
if type(data[2]) == "table" then
if data[2].GetObjectType and type(data[2].GetObjectType) ... | nilq/small-lua-stack | null |
local mod = get_mod("rwaon_talents")
PassiveAbilitySettings.rwaon_we_1 = {
description = "career_passive_desc_we_1a",
display_name = "career_passive_name_we_1",
icon = "kerillian_shade_passive",
buffs = {
"kerillian_shade_passive",
"kerillian_shade_passive_backstab_killing_blow",
... | nilq/small-lua-stack | null |
--[[
Truly undoes landfill. Regenerates the original chunks in a separate surface to see which water/
shore tiles used to be under the landfill, copies from those tiles, and cleans up afterwards.
Ends in an unterminated quote, intended to contain map pings.
Will select a box region around all pings.
Any numb... | nilq/small-lua-stack | null |
--[[
Name: DataStoreService.lua
Author: DontRevealMe
Description: Could be considered as a stripped down version of DataStore2 with add functionality for non-player datastores.
--]]
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Framework"))
local Promise = require("Promise")
loc... | nilq/small-lua-stack | null |
local constants = require(".lua.common.constants")
local logger = require(".lua.common.logger").new("bucket_status_cache.lua")
local util = require(".lua.common.util")
local redis_service = require(".lua.service.redis_connection_manager").get(constants.REDIS_CLUSTER_DPATH)
local lcache = require(".lua.service.local_cac... | nilq/small-lua-stack | null |
return _csharp_getAssemblyType("LuaBuildEvents.SSH.LuaForwardedPort"); | nilq/small-lua-stack | null |
-----------------------------------
-- Full Break
-- Great Axe weapon skill
-- Skill level: 225 (Warriors only.)
-- Lowers enemy's attack, defense, params.accuracy, and evasion. Duration of effect varies with TP.
-- Lowers attack and defense by 12.5%, evasion by 20 points, and estimated to also lower params.accuracy by... | nilq/small-lua-stack | null |
local M = {}
--######################################## Collide Capsule-Point ########################################
function M.collide_capsule_point(linestart, lineend, capsuleradius, point)
local linevect = lineend - linestart
local length = vmath.length(linevect)
local percentrun = vmath.dot(point - linest... | nilq/small-lua-stack | null |
--[[
Copyright (c) 2006-2011 LOVE Development Team
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial ... | nilq/small-lua-stack | null |
-- dep
-- https://github.com/bungle/lua-resty-session
local http_handle = require('resty.session').new()
-- perf
local setmetatable = setmetatable
local Session = {}
function Session:new()
local instance = {
}
setmetatable(instance, Session)
return instance
end
return Session | nilq/small-lua-stack | null |
-- @author Sachin Mehta
--- ---
-- File to load CamVid Dataset and Cache it
-- @module loadCamVid
require 'image'
-- load the training and test files
local trainFile = opt.datapath .. '/train.txt'
local valFile = opt.datapath .. '/test.txt'
local classesName = {'Void', 'Sky', 'Building', 'Column-Pole',
... | nilq/small-lua-stack | null |
local wcwidth = require "wcwidth"
local filters = require "tui.filters"
local bit32 = require "bit32"
local band = bit32.band
local bor = bit32.bor
local bnot = bit32.bnot
-- Overwrite default filter to add utf8
filters.default_chain = filters.make_chain {
-- Always before CSI
filters.mouse;
-- These ... | nilq/small-lua-stack | null |
-- example:
-- local p = require('easypubnub')(publish_key, subscribe_key)
-- p.publish('lua-1', { text='hello there', time=os.date("%X")})
-- p.subscribe('lua-1', function(msg) print("CB:", msg.text) end )
local http = require("socket.http")
local ltn12 = require("ltn12")
local json = require("dkjson")
return funct... | nilq/small-lua-stack | null |
--[[
Copyright (c) 2021 LeonAirRC
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, distribute, sub... | nilq/small-lua-stack | null |
-- Copyright 2004-present Facebook. All Rights Reserved.
--[[LocallyConnected layer
See https://code.google.com/p/cuda-convnet/wiki/LayerParams#Locally-connected_layer_with_unshared_weights
]]
local LocallyConnected, parent = torch.class('nn.LocallyConnected',
'nn.Module'... | nilq/small-lua-stack | null |
local Module = {}
print(" helo.lua begin ============================")
function Module.world()
ret = I('qwerqwer')
return ret
end
print(" helo.lua end ============================")
return Module
| nilq/small-lua-stack | null |
--[[
?)]]
-- ################################################## CHASTITY BELT TRINKET ##################################################
-- Enemies that are spawned by other enemies are removed/killed. Portals are instantly killed (bonus).
local ChastityBelt = {
TRINKET_CHASTITY_BELT = Isaac.GetTrinketIdByName("Chas... | nilq/small-lua-stack | null |
object_tangible_tcg_series1_shared_consumable_hans_hydrospanner = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/tcg/series1/shared_consumable_hans_hydrospanner.iff"
}
ObjectTemplates:addClientTemplate(object_tangible_tcg_series1_shared_consumable_hans_hydrospanner, "object/tangible/tc... | nilq/small-lua-stack | null |
--[=[
_____ _ _ _ _
|_ _| | | | | (_) | |
| | _ __ | |_ ___ _ __ _ __ __ _| |_ _ ___ _ __ __ _| |
| | | '_ \| __/ _ \ '__| '_ \ / _` | __| |/ _ \| '_ \ / _` | |
_| |_| | | | || __/ | | | | | (_| | |_| ... | nilq/small-lua-stack | null |
local Blacklist = {}
Blacklist.rawBlacklist = {
"minecraft:cobblestone", "minecraft:stone", "minecraft:gravel", "minecraft:dirt", "minecraft:grass", "minecraft:sand", "minecraft:planks", "minecraft:log", "minecraft:bedrock"
}
function Blacklist:IsBlacklisted(input)
for k,v in pairs(self.rawBlacklist) do
... | nilq/small-lua-stack | null |
local utils = require "kong.tools.utils"
local mocker = require "spec.fixtures.mocker"
local ws_id = utils.uuid()
local function setup_it_block(consistency)
local cache_table = {}
local function mock_cache(cache_table, limit)
return {
safe_set = function(self, k, v)
if limit then
loca... | nilq/small-lua-stack | null |
local t = Def.ActorFrame{};
t[#t+1] = Def.ActorFrame {
Def.ActorFrame{
LoadActor(THEME:GetPathB("","_shared/IIDX 17/wakusei/bg.png"))..{
InitCommand=cmd(FullScreen);
};
LoadActor(THEME:GetPathB("","_shared/IIDX 17/wakusei/wakusei.png"))..{
InitCommand=cmd(queuecommand,"Anim");
AnimCommand=cmd(... | nilq/small-lua-stack | null |
-- Copyright (c) 2021 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
return function(tbl, item)
for i, v in ipairs(tbl) do
if v == item then return i end
end
end | nilq/small-lua-stack | null |
----------------------
-- Backend management
----------------------
local _M = {}
local config = require("textadept-spellchecker.config")
-- Possible spellchecker program names
local SPELL_CHECKERS = {
"aspell",
"hunspell",
"ispell",
"hunspell.exe",
"aspell.exe",
"ispell.exe"
}
-- Event for spellchecking d... | nilq/small-lua-stack | null |
-- Copyright (C) 2018 The Dota IMBA Development Team
--
-- 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 ... | nilq/small-lua-stack | null |
local parent = ...
local members = {
"self",
"equal_lists",
"case"
}
local M = { }
for _index_0 = 1, #members do
local name = members[_index_0]
M[name] = require(parent .. "._" .. name)[name]
end
return M
| nilq/small-lua-stack | null |
--Random helper functions that don't really belong anywhere else.
function get43size(size4_3)
return 640*(size4_3/854)
end;
function capWideScale(AR4_3,AR16_9)
if AR4_3 < AR16_9 then
return clamp(WideScale(AR4_3, AR16_9),AR4_3,AR16_9)
else
return clamp(WideScale(AR4_3, AR16_9),AR16_9,AR4_3)
end;
end;
--retu... | nilq/small-lua-stack | null |
BOT.B = { -- Autoplay
img = "16004ade907.png",
chair = "test",
medal = "none",
victory = 801000,
autoPlay = function ()
local n = ROUND.turn
if ROUND.chair[n].mode == "BUSY" then
if ROUND.chair[n].action then
if ROUND.chair[n].action.func then
local pool = {}
for i, v in pairs(ROUND.chair[n].a... | nilq/small-lua-stack | null |
-- Config test.
local addon_storage = ...
--print( "id_to_track:" ); dump( id_to_track, " " )
--print( "name_to_track:" ); dump( name_to_track, " " )
--print( "Damage:" ); dump( Damage, " " )
--print( "SessionFlags:" ); dump( SessionFlags, " " )
--print( "Callbacks:" ); dump( Callback, " " )
local to_ki... | nilq/small-lua-stack | null |
local ODC = LibStub("AceAddon-3.0"):GetAddon("OfflineDataCenter")
local ODC_SF = ODC:GetModule("SortFilter")
if not ODC_SF then return end
local Module = ODC:NewModule("OfflineBag", "AceEvent-3.0", "AceHook-3.0", "AceTimer-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("OfflineDataCenter")
Module.description = L["O... | nilq/small-lua-stack | null |
----------------------------------------
--Name: "car_bomb.lua"
--By: "Sir Francis Billard"
----------------------------------------
SWEP.PrintName = "Car Bomb"
SWEP.Author = "Sir Francis Billard"
SWEP.Instructions = "Left click to plant bomb.\nRight click to change bomb type.\nReload to change bomb timer."
SWEP.Spawn... | nilq/small-lua-stack | null |
--[[-----------------------------------------------------------------------
Categories
---------------------------------------------------------------------------
The categories of the default F4 menu.
Please read this page for more information:
https://darkrp.miraheze.org/wiki/DarkRP:Categories
In case that page can... | nilq/small-lua-stack | null |
if jit then
local llthreads2 = require "llthreads2"
local thread = llthreads2.new([[
if not package.preload.ffi then
print("ffi does not register in thread")
os.exit(-1)
end
local ok, err = pcall(require, "ffi")
if not ok then
print("can not load ffi: ", err)
os.exit(-2)
... | nilq/small-lua-stack | null |
--[[
Made by ThisW0ntGetBanned
Discord: https://discord.gg/MyjGtee
Enjoy Kiddo's
]]
--[[Getting Service]]--
local Plrs = game:GetService("Players");
local Run = game:GetService("RunService");
local CoreGui = game:GetService("CoreGui");
local StartGui = game:GetService("StarterGui");
local Teams = game:GetService("Team... | nilq/small-lua-stack | null |
local history = require("lir.history")
local utils = require("lir.utils")
local config = require("lir.config")
local lvim = require("lir.vim")
local Path = require("plenary.path")
local vim = vim
local uv = vim.loop
local a = vim.api
---@class lir_actions
local actions = {}
-----------------------------
-- Private
-... | nilq/small-lua-stack | null |
class("ChangePlayerIconCommand", pm.SimpleCommand).execute = function (slot0, slot1)
slot2 = slot1:getBody()
slot4 = slot2.characterId
slot5 = slot2.skinPage
slot6 = slot2.callback
slot8 = getProxy(PlayerProxy).getData(slot7)
if type(slot2.characterId) == "number" then
if slot8.character == slot3 then
if sl... | nilq/small-lua-stack | null |
local Manager = class('StateManager')
function Manager:initialize()
self.StateList = {}
self.stack = {}
end
function Manager:add(state)
if state and state.id then
--print("Adding "..state.id)
self.StateList[state.id] = state
end
end
function Manager:jump(state)
if state and self.StateList[state] th... | nilq/small-lua-stack | null |
--[[
� CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
--]]
local CLASS = Clockwork.class:New("Elite Overwatch Soldier");
CLASS.color = Color(150, 50, 50, 255);
CLASS.wages = 50;
CLASS.factions = {FACTION_OTA};
CLASS.wagesName = "Supplies";
CLASS.des... | nilq/small-lua-stack | null |
-- MIDI Velocity Scaling for Note Range
-- 0..15 or set to -1 to apply to events on all channels
local filter_chan = -1
-- whether to pass non-note events
local pass_other = true
-- affected note range(s)
-- string with comma-separated list of single MIDI note numbers or
-- ranges (min-max separated by a dash, whitesp... | nilq/small-lua-stack | null |
local utils = {}
local redis = require('libs.redis')
local configuration = require('configuration')
local mattata = {}
local api = {}
local tools = {}
function utils:init()
mattata = self
api = self.api
tools = self.tools
return utils
end
function utils.is_trusted_user(chat_id, user_id)
if redis:... | nilq/small-lua-stack | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.