content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
include("terms")
style =
{["off_color"] = "fff",
["on_color"] = "fff",
["line_color"] = "000",
["line_width"] = "2"};
meas = {"\(^\circ\)", "'"}
numb = {"\(\small\alpha\)", "\(\small\beta\)", "\(\small\gamma\)", "\(\small\alpha_1\)", "\(\small\beta_1\)", "\(\small\gamma_1\)" }
na... | nilq/small-lua-stack | null |
local mType = Game.createMonsterType("Raging mage")
local monster = {}
monster.description = "a raging mage"
monster.experience = 3250
monster.outfit = {
lookType = 416,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 3500
monster.maxHealth = 3500
monste... | nilq/small-lua-stack | null |
#!/usr/bin/env tarantool
test = require("sqltester")
test:plan(15)
--!./tcltestrunner.lua
-- 2011 August 13
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others... | nilq/small-lua-stack | null |
object_tangible_tcg_series7_combine_object_tie_canopy = object_tangible_tcg_series7_shared_combine_object_tie_canopy:new {
}
ObjectTemplates:addTemplate(object_tangible_tcg_series7_combine_object_tie_canopy, "object/tangible/tcg/series7/combine_object_tie_canopy.iff") | nilq/small-lua-stack | null |
-- first load all the CAMPVis Lua modules we need
require("cgt")
require("base")
require("cvio")
require("vis")
require("application")
-- All created CAMPVis objects have to be kept alive and must not be garbage-collected by Lua.
-- In order to keep them alive after this LuaDemo has finished, they have to reside in t... | nilq/small-lua-stack | null |
-- Based on sha2.lua version 9 (2020-05-10) made by Egor Skriptunoff, ported for the WoW environment
-- https://github.com/Egor-Skriptunoff/pure_lua_SHA
local MAJOR_VERSION = "LibHash-1.0"
local MINOR_VERSION = 1
if not LibStub then error(MAJOR_VERSION .. " requires LibStub.")end
local lib = LibStub:NewLibrary(M... | nilq/small-lua-stack | null |
local path = (...):gsub("[^%.]*$", "")
local M = require(path .. "master")
M.ImGuiComboFlags_None = 0
M.ImGuiComboFlags_PopupAlignLeft = 1
M.ImGuiComboFlags_HeightSmall = 2
M.ImGuiComboFlags_HeightRegular = 4
M.ImGuiComboFlags_HeightLarge = 8
M.ImGuiComboFlags_HeightLargest = 16
M.ImGuiComboFlags_NoArrowButton = 32
M.... | nilq/small-lua-stack | null |
-- Connecting to Redis
local redis = require "resty.redis"
local red = redis:new()
-- Divides string into substrings based on a delimiter, returning an array of these substrings.
function string:split(sep)
local sep, fields = sep or ":", {}
local pattern = string.format("([^%s]+)", sep)
self:gsub(pattern, functi... | nilq/small-lua-stack | null |
-- The Computer Language Shootout
-- http://shootout.alioth.debian.org/
-- contributed by Mike Pall
local function fannkuch(n)
local p, q, s, odd, check, maxflips = {}, {}, {}, true, 0, 0
for i=1,n do p[i] = i; s[i] = i end
repeat
-- Print max. 30 permutations.
if check < 30 then
if not p[n] then r... | nilq/small-lua-stack | null |
class "Player"
function Player:__init(player)
self.player = player
self.playerId = player:GetId()
self.start_pos = player:GetPosition()
self.start_world = player:GetWorld()
self.inventory = player:GetInventory()
self.derbyPosition = nil
self.derbyAngle = nil
self.derbyVehicle = ni... | nilq/small-lua-stack | null |
--[[exports.scoreboard:addScoreboardColumn('Flag', getRootElement(), 25)
function showcountry()
local flag = exports.admin:getPlayerCountry ( source )
if flag then
setElementData(source,"Flag",":admin/client/images/flags/"..flag..".png")
else
flag = "N/A"
end
end
addEventHandler("onPlayerJoin",... | nilq/small-lua-stack | null |
local kiir = {}
kiir.kiik = {}
kiir.alap = {}
kiir.aktiv = 0
-- létrehozás, törlés | new, del
function kiir:new(szoveg,ido) -- string, time
if not szoveg then return nil end
ido = ido or kiir.alap.ido
table.insert(kiir.kiik,{szoveg=szoveg,ido=ido})
return #kiir
end
function kiir:del()
kiir.kiik={... | nilq/small-lua-stack | null |
local kAlienStructureMoveSound = debug.getupvaluex(UpdateAlienStructureMove, "kAlienStructureMoveSound")
function UpdateAlienStructureMove(self, deltaTime)
if Server then
local currentOrder = self:GetCurrentOrder()
if GetIsUnitActive(self) and currentOrder and currentOrder:GetType() == kTechId.Move ... | nilq/small-lua-stack | null |
--[[ SERVER TO REQUEST HANDLER ]]
require "dns"
--[[ RUNNING SERVER ]]
local sockgate
local scmd --scmd = string command
sockgate = lsok.open(lsok.proto.udp)
local bool = lsok.bind(sockgate, conf.dnsIP, conf.dnsPort)
if(bool == false) then
error("Could not bind")
end
while(true) do
local si
local sf
local cmd -... | nilq/small-lua-stack | null |
if (GetLocale() ~= "deDE") then return end
-- Localization for deDE
local PerformanceSlight = "\n|cffFF0000Eine Deaktivierung könnte die Spielperformance leicht erhöhen|r" -- For semi-high CPU options
local ToggleOffReminder = "\n|cffFF0000Schalte diesen Menüpunt aus, um Deine Aktionsleisten manuell zu steuern|r"
--... | nilq/small-lua-stack | null |
IncludeFile("Lib\\TOIR_SDK.lua")
Olaf = class()
function OnLoad()
if GetChampName(GetMyChamp()) == "Olaf" then
Olaf:__init()
end
end
function Olaf:__init()
W_SPELLS = { -- Yea boiz and grillz its all right here.......
["FizzMarinerDoom"] = {Spellname ="FizzMarinerDoom"... | nilq/small-lua-stack | null |
function mmpkg.isAlive()
mmpkg.updateMaxStats()
mmpkg.updateVitals()
mmpkg.myAffects = mmpkg.myAffects or {}
mmpkg.myAffects.affects = {}
end
| nilq/small-lua-stack | null |
workspace ("InsightECS")
architecture ("x86_64")
configurations
{
"Develop-Exe",
"Develop-Exe-Debug",
"Develop-Exe-Release",
"Develop-Exe-Distribution",
}
buildFolder = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
project ("Develop")
kind "ConsoleApp"
location ("") -- Root Directory
language ... | nilq/small-lua-stack | null |
----------------------------------------------------------
-- kev-gore by: Kevin0M16
----------------------------------------------------------
fx_version 'cerulean'
games { 'gta5' }
author 'Kevin_M16'
description 'kevs-gore - a FiveM gore enhancement'
version '1.0.0'
replace_level_meta 'meta/gta5'
files {
... | nilq/small-lua-stack | null |
TOOL.Category = "Wire Extras/Visuals"
TOOL.Name = "Painter"
TOOL.Command = nil
TOOL.ConfigName = ""
TOOL.Tab = "Wire"
if ( CLIENT ) then
language.Add( "Tool.wire_painter.name", "Painter Tool (Wire)" )
language.Add( "Tool.wire_painter.desc", "Spawns a decal painter for use with the wire system." )
la... | nilq/small-lua-stack | null |
local Assert = require(script.Parent._Util.Assert)
local assertTypeOf = Assert.prepTypeOf("GetContrastRatio")
local GetLuminance = require(script.Parent.GetLuminance)
local max = math.max
local min = math.min
return function(foreground: Color3, background: Color3): number
assertTypeOf("foreground", "Color3", for... | nilq/small-lua-stack | null |
local fs = {}
local lfs = nil
local separator = package.config:match("^([^\n]*)")
if love ~= nil then
elseif pcall(function () lfs = require('lfs') end) then
else
error("LFS or Love are required to access the filesystem.")
end
function fs.currentDir ()
if love ~= nil then
return "/"
elseif lfs ~= nil then
... | nilq/small-lua-stack | null |
local ip_country = require "bw.util.ip_country"
return function()
local cn = '113.111.109.39'
local c = ip_country.get_country(cn)
assert(c == "China", c)
assert(ip_country.is_china(cn))
local us = '95.163.203.38'
c = ip_country.get_country(us)
assert(c == "United States", c)
assert(... | nilq/small-lua-stack | null |
-- Module luaven provides functions generating Lua string patterns for matching
-- fuzzy/similar strings with small Levenshtein-Damerau distance.
local luaven = {}
-- luaven.all iterates over all patterns similar to s with Levenshtein-Damerau
-- distance 1. Only ANSI strings are handled properly.
--
-- IMPORTANT NOTE... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
----------------------------------- DevDokus -----------------------------------
--------------------------------------------------------------------------------
if (((Plugins.BountyHunter) and not (_StartError_) and (Framework.Vorp) and n... | nilq/small-lua-stack | null |
id = 'V-38474'
severity = 'low'
weight = 10.0
title = 'The system must allow locking of graphical desktop sessions.'
description = 'The ability to lock graphical desktop sessions manually allows users to easily secure their accounts should they need to depart from their workstations temporarily.'
fixtext = [=[Run the f... | nilq/small-lua-stack | null |
describe("Simple factory", function()
local factory = {};
setup(function()
factory = require("../simpleFactory");
end)
it("should generate addition operation", function()
local operation = factory:CreateOperation("+");
operation.numberA = 10;
operation.numberB = 5;
assert.is.equal(10 + 5, o... | nilq/small-lua-stack | null |
MxM = {}MxM.S_projectCallback = {}MxM.C_projectCallback = {} MxM.ProjectId = 0 RegisterNetEvent('MxM:T_C_projectCallback') AddEventHandler('MxM:T_C_projectCallback', function(name, requestId, ...) local playerId = source MxM.T_C_projectCallback(name, requestID, playerId, function(...) TriggerServerEvent('MxM:clientC... | nilq/small-lua-stack | null |
local operate = require('rx.operator')
local observer = require('rx.observer')
return function(count)
return operate(function(source, destination)
if (not count) then
return source.subscribe(destination)
end
local seen = 0
local next
if (count <= 0) then
... | nilq/small-lua-stack | null |
Locales['en'] = {
['vehicle_shop'] = 'Dealership',
['open_vehicle_shop'] = 'Press ~INPUT_PICKUP~ to enter dealership menu',
['open_vehicle_sell'] = 'Press ~INPUT_PICKUP~ to sell your vehicle for ~o~%s~s~',
['shop_menu_item'] = '<strong>%s<strong> <span style="color: darkred;">%s</span>',
['wait_vehi... | nilq/small-lua-stack | null |
local root = script.Parent
local Behaviors = require(root.Behaviors)
local function getReal(self)
return select(2, next(self))
end
local Contexts = {
Global = {
[newproxy()] = {
Keys = {},
Values = { "transform", "reconcile", "replace" },
Meta = {},
},
},
}
Contexts.Enum = {}
local enumString = {}
fo... | nilq/small-lua-stack | null |
-- This module cache value to local map
-- To be usefull this function requires the solution to enable the HotVM setting
local cache = {}
function cache.get(key, getter, timeout)
local now = os.time();
if not cache[key] or cache[key].ts < now + (timeout or 30) then
local value;
if getter then
value =... | nilq/small-lua-stack | null |
local skynet = require "skynet"
local snax = require "skynet.snax"
skynet.start(function()
local ps = snax.uniqueservice ("pingserver", "test queue")
for i=1, 10 do
ps.post.sleep(true,i*10)
ps.post.hello()
end
for i=1, 10 do
ps.post.sleep(false,i*10)
ps.post.hello()
end
skynet.exit()
end)... | nilq/small-lua-stack | null |
local ItemName2Type= GetFileConfig(OUTPUTBASE.."server/setting/item/name2type.lua")
return function (Data)
local Tbl = Split(Data, ",")
local Ret = {}
for _, Name in ipairs(Tbl) do
assert(ItemName2Type[Name],Name.."没有该物品类型,请确认相关物品表")
table.insert(Ret, ItemName2Type[Name])
end
return Ret
end | nilq/small-lua-stack | null |
local PANEL = {}
local COLOR_PRICE = Color(255, 255, 255, 75)
local COLOR_CANNOT_AFFORD = Color(255, 100, 100, 75)
local function ignore() end
function PANEL:Init()
self:Dock(TOP)
self:SetTall(64)
self:SetDrawBackground(false)
self.suffix = ""
self.icon = self:Add("nutItemIcon")
self.icon:SetSize(64, 64)
se... | nilq/small-lua-stack | null |
return {
name = "kaitain.restena.lu",
label = _("Restena DNS - LU"),
resolver_url = "https://kaitain.restena.lu/dns-query",
bootstrap_dns = "1.1.1.1,1.0.0.1,2606:4700:4700::1111,2606:4700:4700::1001,8.8.8.8,8.8.4.4,2001:4860:4860::8888,2001:4860:4860::8844",
help_link = "https://www.restena.lu/en/service/public-dn... | nilq/small-lua-stack | null |
BaseDialog_SetQuestValue({{Tale_Action_Quest_Value_Id}}, "{{Tale_Action_ValueName}}", {{Tale_Action_OperatorIsNotSetTo_Start}}BaseDialog_GetQuestValue({{Tale_Action_Quest_Value_Id}}, "{{Tale_Action_ValueName}}") {{Tale_Action_ValueOperator}}{{Tale_Action_OperatorIsNotSetTo_End}} {{Tale_Action_ValueIsString_Start}}"{{Ta... | nilq/small-lua-stack | null |
require( "iuplua" )
require( "iupluacontrols" )
result, text = iup.GetParam( "Hello", nil, "Enter a string: %s\n", "[str]" )
result, number = iup.GetParam( "Hello again", nil, "Enter a number: %i\n", 42 )
-- Note: Choice selection is 0-indexed, not 1-indexed.
result, choice = iup.GetParam( "Pick", nil, "Choose: %l|A... | nilq/small-lua-stack | null |
local M = {}
local version = require('tn.version')
local usage_str = [[
Usage: tn edit <note-name>
tn list
tn file <note-name>
tn remove <note-name>
tn show <note-name>
tn (-h | --help)
tn --version
tn --bash-completion
tn --commands
Options:
-h --help ... | nilq/small-lua-stack | null |
function Queue()
local elems = {}
local head = 1
local tail = 1
local function push(x)
elems[tail] = x
tail = tail + 1
end
local function pop()
local value = elems[head]
elems[head] = nil -- help the garbage collector
head = head + 1
return value... | nilq/small-lua-stack | null |
local util = require "util"
-- Define generic mocks of any `hs` functions used in Ki
local mocks = {
appfinder = {
appFromName = function()
return nil
end
},
application = {
get = function()
return nil
end,
enableSpotlightForNameSearches = fun... | nilq/small-lua-stack | null |
ITEM.name = "«Каменный цветок»"
ITEM.desc = "Артефакт представляет собой камень, близкий по своим характеристикам к гранитам. Возникает внутри гравитационных полей огромной интенсивности. Способен полностью или частично защищать рассудок владельца от пси-воздействия. \n\nХАРАКТЕРИСТИКИ: \n-артефакт \n\nРадиация +3 / ... | nilq/small-lua-stack | null |
resultado = 4 - 10 --A Lua reconhece os numeros negativos
print(resultado)
numeroReal = 45.5 --Numeros Reais
print(numeroReal )
pi = 3.141592737373733849384081 -- Numeros Reais com muitas casas
print("PI "..pi)
| nilq/small-lua-stack | null |
--[[
Play back the recorded message, and offer a menu of message actions.
]]
operator_extension = storage("mailbox_settings", "operator_extension")
recording_name = storage("record", "last_recording_name")
playback_keys = {
["1"] = "caller_save_recorded_message exit",
["2"] = "caller_playback_recorded_message"... | nilq/small-lua-stack | null |
package.loaded['config.routes'] = { }
package.loaded['config.application'] = {}
_G['ngx'] = {
HTTP_NOT_FOUND = 404,
exit = function(code) return end,
print = function(print) return end,
status = 200,
location = {},
say = print,
eof = os.exit,
header = {},
req = {
read_body =... | nilq/small-lua-stack | null |
object_tangible_item_beast_converted_kima_decoration = object_tangible_item_beast_shared_converted_kima_decoration:new {
}
ObjectTemplates:addTemplate(object_tangible_item_beast_converted_kima_decoration, "object/tangible/item/beast/converted_kima_decoration.iff")
| nilq/small-lua-stack | null |
local mod = DBM:NewMod(1774, "DBM-BrokenIsles", nil, 822)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 14958 $"):sub(12, -3))
mod:SetCreatureID(109331)
mod:SetEncounterID(1952)
mod:SetReCombatTime(20)
mod:SetZone()
--mod:SetMinSyncRevision(11969)
mod:RegisterCombat("combat")
mod:Regi... | nilq/small-lua-stack | null |
-- NOTE: we heavily suggest using Packer's lazy loading (with the 'event' field)
-- see: https://github.com/wbthomason/packer.nvim
-- https://nvchad.github.io/config/walkthrough
-- source a vimscript file for clipboard support
vim.cmd('source ~/.config/nvim/vimrc')
-----------------------------------------------------... | nilq/small-lua-stack | null |
local ITEM = Clockwork.item:New();
ITEM.name = "Bottle";
ITEM.model = "models/props_junk/GlassBottle01a.mdl";
ITEM.weight = 0.2;
ITEM.category = "Junk";
ITEM.description = "A round glass bottle";
-- Called when a player drops the item.
function ITEM:OnDrop(player, position) end;
ITEM:Register();
| nilq/small-lua-stack | null |
-------------
-- GLOBALS --
-------------
assert(DynamicCam);
------------
-- LOCALS --
------------
local presets = {
["Classic"] = {
author = "dernPerkins",
description = "No situations enabled, just ActionCam",
importString = "dKdxpaGEc2fKQSniLMPusLzRKBsi3wLdJANQQ9k2nj)wYpPsv)LkACuPY0ui... | nilq/small-lua-stack | null |
local sStage = GAMESTATE:GetCurrentStage();
local tRemap = {
Stage_1st = 1,
Stage_2nd = 2,
Stage_3rd = 3,
Stage_4th = 4,
Stage_5th = 5,
Stage_6th = 6,
};
if tRemap[sStage] == PREFSMAN:GetPreference("SongsPerPlay") then
sStage = "Stage_Final";
else
sStage = sStage;
end;
-----------------------------------... | nilq/small-lua-stack | null |
local keymap = vim.api.nvim_set_keymap
keymap('n', '<leader>gf', '<cmd>lua require"telescope.builtin".find_files()<CR>', {noremap = true})
keymap('n', '<leader>gg', '<cmd>lua require"telescope.builtin".live_grep()<CR>', {noremap = true})
keymap('n', '<leader>gb', '<cmd>lua require"telescope.builtin".buffers()<CR>', {no... | nilq/small-lua-stack | null |
TOOL.Category = "Wire Extras/RFID"
TOOL.Name = "Reader"
TOOL.Command = nil
TOOL.ConfigName = ""
TOOL.Tab = "Wire"
if ( CLIENT ) then
language.Add( "Tool.wire_rfid_reader_prox.name", "RFID Reader Tool (Wire)" )
language.Add( "Tool.wire_rfid_reader_prox.desc", "Spawns a RFID reader for use with the wire ... | nilq/small-lua-stack | null |
local config = {
profile = {
logo = "logo",
name = "Simon Weizman",
headline = "Computer Science Student at University of Central Florida | SWE Intern at SavvySuit",
email = "contact@simon.weizman.us",
website = "simon.weizman.dev",
git = "gitlab.com/torrentofshame",
location = "Orlando, F... | nilq/small-lua-stack | null |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
ENT.WireDebugName = "RFID Reader"
local MODEL = Model("models/jaanus/wiretool/wiretool_input.mdl")
function ENT:Initialize()
self:SetModel( MODEL )
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetS... | nilq/small-lua-stack | null |
function openURL(w, h, title, url)
Frame = vgui.Create( "DFrame" );
Frame:SetTitle( title );
Frame:SetSize( w, h + 24 );
Panel = vgui.Create( "DPanel", Frame );
Panel:SetPos( 0, 24 );
Panel:SetSize( w, h + 24 );
HTML = vgui.Create( "HTML", Panel );
HTML:SetPos( 0, 0 );
H... | nilq/small-lua-stack | null |
require('nn')
require('rnn')
----------------------------------------------------------------------
-- parse command line arguments
if not opt then
print '==> processing options'
cmd = torch.CmdLine()
cmd:text()
cmd:text('Bi-Directional LSTM')
cmd:text()
cmd:text('Options:')
cmd:option('-model_typ... | nilq/small-lua-stack | null |
local M = {}
function M.get_file_name()
return vim.api.nvim_buf_get_name(0)
end
function M.table_contains(table, key)
return table[key] ~= nil
end
return M
| nilq/small-lua-stack | null |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
SWEP.Weight = 5
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
| nilq/small-lua-stack | null |
LoginWechatCcsView = class("LoginWechatCcsView")
LoginWechatCcsView.onCreationComplete = function (slot0)
ClassUtil.extends(slot0, ZoomPopUpChildView, true, slot0, slot0.bg, slot0.view)
slot0._inputWxGzh = CCSUtil.changeUITextFeildWithCcsTextInput(slot0.view.inputWechat)
end
LoginWechatCcsView.onZoomShowTweenCompl... | nilq/small-lua-stack | null |
--- Turbo.lua Github Feed
--
-- Copyright 2013 John Abrahamsen
--
-- 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 ap... | nilq/small-lua-stack | null |
SB.Include(SB_VIEW_FIELDS_DIR .. "field.lua")
FunctionField = Field:extends{}
-- FIXME: sources is ignored
function FunctionField:init(field)
self:__SetDefault("width", 200)
Field.init(self, field)
self.btnFunction = Button:New {
caption = "Function",
width = self.width,
height =... | nilq/small-lua-stack | null |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BossInfo_pb', package.seeall)
local POINT = protobuf.Descriptor();
local POINT_X_FIELD = protobuf.FieldDescriptor();
local POINT_Y_FIELD = protobuf.FieldDescriptor();
local BOSSREWARD = protobuf.Descriptor();
local BOSSREWARD_HARDM... | nilq/small-lua-stack | null |
local ui = require 'lib.LoveUIView'
local MyTextField = ui.extends(ui.TextField,'MyTextField')
function MyTextField.new(x,y,width,height)
local self = MyTextField.newObject(x,y,width,height)
self._text = self.text
return self
end
function MyTextField:endResponder()
self:super_endResponder()
self._save = self.te... | nilq/small-lua-stack | null |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
function ENT:Initialize( ) --This function is run when the entity is created so it's a good place to setup our entity.
local Money = nil
local Money = self.money
local MModel = nil
local ModelNum = nil
if Money == nil o... | nilq/small-lua-stack | null |
-- Enumerate the source's media cues. Returns the next index or 0 when finished.
-- @index integer
-- @return number, number, boolean, string
function PCMSource:c_f__enum_media_source_cues(index)
local retval, time, end_time, is_region, name = r.CF_EnumMediaSourceCues(self.pointer, index)
if retval then
... | nilq/small-lua-stack | null |
---------------------------------------------------
-- Vicious widgets for the awesome window manager
---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
---------------------------------------------------
-- {{{ Setup e... | nilq/small-lua-stack | null |
local profile = GetPlayerOrMachineProfile(PLAYER_1)
profile:SetFromAll()
local maxGoals = 11
local curPage = 1
local song = GAMESTATE:GetCurrentSong()
local goaltable = profile:GetGoalTable()
local maxPages = math.ceil(#goaltable/maxGoals)
local inDetail = false
local function updateGoalsFromData()
profile:SortByName... | nilq/small-lua-stack | null |
function throwing_register_arrow_standard (kind, desc, eq, toughness, craft)
minetest.register_craftitem("throwing:arrow_" .. kind, {
description = desc .. " arrow",
inventory_image = "throwing_arrow_" .. kind .. ".png",
})
minetest.register_node("throwing:arrow_" .. kind .. "_box", {
drawtype = "nodebox",
... | nilq/small-lua-stack | null |
local View = class("View", cc.Node)
local HasSignals = require('HasSignals')
local function mixin(self, script)
for k, v in pairs(script) do
-- added by hthuang: onExit can not be used
-- assert(self[k] == nil, 'Your script "app/views/'..self.name..'.lua" should not have a member named: ' .. k)
... | nilq/small-lua-stack | null |
local buffer = require("doubleBuffering")
local GUI = require("GUI")
local comp = require("component")
local advancedLua = require("advancedLua")
local fs = require("filesystem")
local wrapper = require("is2wrapper")
local gpu = comp.gpu
local app = GUI.application()
local config = {
["firstLaunchWindow"] = tru... | nilq/small-lua-stack | null |
local Component = require("cokeline/components").Component
local sliders = require("cokeline/sliders")
local utils = require("cokeline/utils")
local insert = table.insert
local echo = vim.api.nvim_echo
local islist = vim.tbl_islist
local defaults = {
show_if_buffers_are_at_least = 1,
buffers = {
filter_vali... | nilq/small-lua-stack | null |
--[[
--=====================================================================================================--
Script Name: One In The Chamber (v1.2), for SAPP (PC & CE)
Description: Each player is given a pistol - and only a pistol - with one bullet.
Use it wisely. Every shot kills.
If you mi... | nilq/small-lua-stack | null |
VBLANG = VBLANG or {}
VBLANG.__index = VBLANG
VBLANG.Language = {}
VBLANG.Language.French = {}
VBLANG.Language.English = {}
VBLANG.CurrentLanguage = "French"
function Translate(phrase, ...)
if not VBLANG.Language[VBLANG.CurrentLanguage][phrase] then
return "[TranslationManager] Translation not found"
end
if .... | nilq/small-lua-stack | null |
-- LSTM training framework for hdf5 data
-- Author: Pau Rodríguez López (@prlz77)
-- Mail: pau.rodri1 at gmail.com
-- Institution: ISELAB in CVC-UAB
-- Date: 14/06/2016
-- Description: Performs regression and classification with a LSTM neural
-- network on arbitrary sequential hdf5 data in the form n-to-one.
-- It al... | nilq/small-lua-stack | null |
function doom.init()
common.init({
hideEnemyHealth = true,
hideNames = true
})
end
print("Loading particle...")
local bouncing = load_particle("bounce.obj")
local bouncing2 = load_particle("bounce2.obj")
local hurt = load_particle("hurt.obj")
local bouncing_shell = load_particle("shell_bounce.obj... | nilq/small-lua-stack | null |
-- Creator:
-- AltiV - December 27th, 2019
LinkLuaModifier("modifier_item_imba_cultic_hammer", "components/items/item_cultic_hammer", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_imba_cultic_hammer_aura", "components/items/item_cultic_hammer", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_imba_... | nilq/small-lua-stack | null |
g_yoda_house_loot_deed = {
description = "Yoda's Hut House Blueprint",
minimumLevel = 0,
maximumLevel = 0,
lootItems = {
{itemTemplate = "yoda_house_loot_deed", weight = 10000000}
}
}
addLootGroupTemplate("g_yoda_house_loot_deed", g_yoda_house_loot_deed)
| nilq/small-lua-stack | null |
--[[
Plugin for Cheat Engine what provide for you small interface to OpenGL
tested with
Cheat Engine 6.6
by srg91
]]--
require([[autorun\OGLHook\Const]])
require([[autorun\OGLHook\Utils]])
require([[autorun\OGLHook\Commands]])
require([[autorun\OGLHook\Textures]])
require([[autorun\OGLHook\Sprites]])
require([[autor... | nilq/small-lua-stack | null |
local bit = require "bit"
local instruction = require "instruction"
local utils = require "utils"
local machine
function love.load()
-- initialize machine
machine = {
-- memory
memory = utils.newArray(0x1000, 0x00),
-- register
reg_v = utils.newArray(0x10, 0x00),
pc = 0x0200,
sp = 0x00,
... | nilq/small-lua-stack | null |
modpath = minetest.get_modpath("gridgen")
A = 8 -- Controlls size of the dungeon rooms
function save_spawns(spawns)
local file = io.open(minetest.get_worldpath().."/spawns.txt", "w")
if file then
file:write(minetest.serialize(spawns))
file:close()
end
end
minetest.register_on_mapgen_init(function(params) -- A... | nilq/small-lua-stack | null |
require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 1,["5"] = 1,["6"] = 5,["7"] = 5,["8"] = 5,["9"] = 5,["11"] = 14,["12"] = 15,["13"] = 17,["14"] = 19,["15"] = 13,["16"] = 23,["17"] = 24,["18"] = 23,["19"] = 27,["20"] = 28,["21"] = 29,["23"] = 31,["24"] = 33,["25"] = 34,["26"] = 36,... | nilq/small-lua-stack | null |
local Hi = require("resty.moongoo.utils").pbkdf2_hmac_sha1
local saslprep = require("resty.moongoo.utils").saslprep
local pass_digest = require("resty.moongoo.utils").pass_digest
local xor_bytestr = require("resty.moongoo.utils").xor_bytestr
local b64 = ngx and ngx.encode_base64 or require("mime").b64
local unb64 = ng... | nilq/small-lua-stack | null |
local Color = "White"
local MainSong = 182784733
local Prefix = ":"
f = Instance.new("Fire")
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local Character = game.Workspace:WaitForChild(Player.Name)
local PrevWalkSpeed = 16
local Go = false
local Stop = false
local Trans = 0
local AttacksEna... | nilq/small-lua-stack | null |
local addonName, addonScope = ...
local data = addonScope.data
local AL = addonScope.AL
local ALIL = addonScope.ALIL
local NORMAL_DIFF = addonScope.NORMAL_DIFF
local ALLIANCE_DIFF = addonScope.ALLIANCE_DIFF
local HORDE_DIFF = addonScope.HORDE_DIFF
local LOAD_DIFF = addonScope.LOAD_DIFF
local NORMAL_ITTYPE = addonScope.... | nilq/small-lua-stack | null |
local cfg = {}
-- define garage types with their associated vehicles
-- (vehicle list: https://wiki.fivem.net/wiki/Vehicles)
-- each garage type is an associated list of veh_name/veh_definition
-- they need a _config property to define the blip and the vehicle type for the garage (each vtype allow one vehicle to be ... | nilq/small-lua-stack | null |
local cache = {}
cache.__index = cache
local bindableEventModule
local Event = require(bindableEventModule)
local function updateIndex(dictionary, index, newIndex)
assert(typeof(newIndex) == "string", "Index argument must be a string.")
local valueToChange;
for i, v in pairs(dictionary) do
if i == index then
... | nilq/small-lua-stack | null |
--[[[
-- @module lua_maps
-- This module contains helper functions for managing rspamd maps
--]]
--[[
Copyright (c) 2022, Vsevolod Stakhov <vsevolod@rspamd.com>
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... | nilq/small-lua-stack | null |
local Workspace = game:GetService("Workspace")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer
local common = ReplicatedStorage.common
local lib = ReplicatedStorage.lib
loc... | nilq/small-lua-stack | null |
local msg = "NIGGER!!!"
while wait() do
game.Players:Chat(msg)
end | nilq/small-lua-stack | null |
-- Copyright (C) 2016-2018 Draios Inc dba Sysdig.
--
-- This file is part of falco.
--
-- 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
--... | nilq/small-lua-stack | null |
local path = require "nvim-lsp-installer.path"
local shell = require "nvim-lsp-installer.installers.shell"
local M = {}
local REL_INSTALL_DIR = "venv"
function M.packages(packages)
return shell.raw(("./%s/bin/pip3 install -U %s"):format(REL_INSTALL_DIR, table.concat(packages, " ")), {
prefix = ("set -euo... | nilq/small-lua-stack | null |
-- random
space = box.schema.space.create('test', { engine = 'sophia'})
index = space:create_index('primary', { type = 'tree', parts = {1, 'num'} })
dofile('index_random_test.lua')
index_random_test(space, 'primary')
space:drop()
sophia_schedule()
| nilq/small-lua-stack | null |
-- @brief ...
local DelayLoader = ae.oo.class()
-- @brief Creates a DelayLoader object.
-- @param resourceLoader The resource loader.
-- @return A new DelayLoader object.
function DelayLoader.new(resourceLoader)
local self = ae.oo.new(DelayLoader)
DelayLoader.construct(self,resourceLoader)
... | nilq/small-lua-stack | null |
workspace "WindowsSupervisionSuite"
configurations { "Debug", "Release" }
platforms { "x64" }
language "C++"
location "build"
characterset "MBCS"
flags { "NoPCH", "FatalWarnings", "NoIncrementalLink" }
defines {
"VC_EXTRALEAN",
"WINS32_LEAN_AND_MEAN",
'PROJECT_NAME="$(Proje... | nilq/small-lua-stack | null |
local Assert = require(script.Parent._Util.Assert)
local assertTypeOf = Assert.prepTypeOf("GetPerceivedBrightness")
return function(colour: Color3): number
assertTypeOf("colour", "Color3", colour)
local red = colour.R * 255
local green = colour.G * 255
local blue = colour.B * 255
local bright = ((red * 29... | nilq/small-lua-stack | null |
local ffi = require 'ffi'
local find = {}
find.__index = find
-- default is to get verbose on errors
find.verbose=false
find.verboseError=true
find.verboseFallback=true
-- constants to index array tables below
local Fwd, BwdFilter, BwdData = 1, 2, 3
-- constants to select algo family, to index algoFamilies
local Ge... | nilq/small-lua-stack | null |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('Cargo', {
SortKey = 2001000,
description = T{4477, --[[Cargo RCRover description]] "Remote-controlled vehicle that transports, commands and repairs Drones."},
group = "Rovers",
icon = "UI/Icons/Payload/RCRover.tga",
id = "RCRover",
kg = ... | nilq/small-lua-stack | null |
require("prototypes.entities")
| nilq/small-lua-stack | null |
--
-- Seed the rand!
--
math.randomseed( os.time() )
--
-- Alias string.Format to global Format
--
Format = string.format
--
-- Send C the flags for any materials we want to create
--
local C_Material = Material
function Material( name, words )
if ( !words ) then return C_Material( name ) end
local str = (words... | 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.