content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
ardour {
["type"] = "EditorAction",
name = "Add LFO automation to region",
version = "0.1.1",
license = "MIT",
author = "Daniel Appelt",
description = [[Add LFO-like plugin automation to selected region]]
}
function factory (unused_params)
return function ()
-- Retriev... | nilq/small-lua-stack | null |
AddCSLuaFile( )
SWEP.Weight = 3
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.PrintName = "Paint Gun"
SWEP.Slot = 0
SWEP.Slotpos = 0
SWEP.CSMuzzleFlashes = false
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = true
SWEP.Category = "Aperture Science"
SWEP.HoldType = "ar2"
SWEP.Purpose = "Shoot gel"
SWEP.Instructi... | nilq/small-lua-stack | null |
return {
init_effect = "",
name = "",
time = 0,
color = "red",
picture = "",
desc = "",
stack = 1,
id = 6400,
icon = 6400,
last_effect = "",
limit = {
SYSTEM_DUEL
},
effect_list = {}
}
| nilq/small-lua-stack | null |
return function()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Packages = ReplicatedStorage.Packages
local Llama = require(Packages.Llama)
local List = Llama.List
local toSet = List.toSet
it("should validate types", function()
local _, err = pcall(function()
toSet(0)
end)
expe... | nilq/small-lua-stack | null |
local skynet = require"skynet"
local mysql = require "mysql"
local conf = {
host="127.0.0.1",
port=3306,
database="skynet",
user="root",
password="123",
max_packet_size=1024*1024,
on_connect=on_connect
}
local function on_connect(db)
db:query("set charset utf8")
end
local CMD = {}
local db
function... | nilq/small-lua-stack | null |
local SOURCE_JSON_PATH = arg[1];
local OUTPUT_DIR = arg[2];
local JSON = require("dkjson");
function read_file(FILE)
local io_file = io.open(FILE, "rb");
local contents = io_file:read("*all");
io_file:close();
return contents;
end
function app_is_valid(O)
return true;
end
local obj, pos, err = JSON.decod... | nilq/small-lua-stack | null |
local M = {}
local math = require "math"
local floor = math.floor
local function num2str(n)
n = floor(n)
if n < 0 or n > 512 then
return nil
end
local a = floor(n/64) % 8
local b = floor(n/8) % 8
local c = floor(n) % 8
if a % 8 ~= a or b % 8 ~= b or c % 8 ~= c then
return nil
end
local conv = {
[0] = ... | nilq/small-lua-stack | null |
-----------------------------------------
-- ID: 5360
-- Muteppo
-- A roman candle-like firework that hurls different colors
-----------------------------------------
function onItemCheck(target)
return 0
end
function onItemUse(target)
end
| nilq/small-lua-stack | null |
local K, C = unpack(select(2, ...))
local Module = K:NewModule("ChatFilters", "AceEvent-3.0")
local _G = _G
local strfind, gsub = string.find, string.gsub
local pairs, ipairs, tonumber = pairs, ipairs, tonumber
local min, max, tremove = math.min, math.max, table.remove
local IsGuildMember, C_FriendList_IsFriend, IsGU... | nilq/small-lua-stack | null |
local M = {}
function M.test()
local cairo = require "org.xboot.cairo"
local M_PI = math.pi
local cs = cairo.image_surface_create(cairo.FORMAT_ARGB32, 400, 400)
local cr = cairo.create(cs)
local image = cairo.image_surface_create_from_png("/romdisk/system/media/image/battery/battery_8.png")
local w = image:get... | nilq/small-lua-stack | null |
-- 2D UI classes
-- Assumes pl, ent and mode are in namespace
-- "PSEUDOEVENTS"- FUNCTIONS CALLED, BUT NOT ROUTED, AS PART OF UI
-- onButton, onChange, onLayout(l)
namespace "standard"
local flat = require "engine.flat"
local ui2 = {}
local function fontHeight()
return flat.font:getHeight()*flat.fontscale
end
ui2... | nilq/small-lua-stack | null |
-- utility functions
local util = {turn=0}
function util.mul_effect(effect, m)
effect.hp = effect.hp * m
effect.str = effect.str *m
effect.mp = effect.mp * m
effect.dex = effect.dex * m
return effect
end
function util.nzfloor(n)
if n < 0 and n > -0.5 then
n = -1
elseif n > 0 and n < 0.5 then
n... | nilq/small-lua-stack | null |
ParseTechRadar = function(techRadarString)
-- ECFA: Parse tech radar string from #CHARTSTYLE into a table.
--
-- e.g., #CHARTSTYLE:speed=5,stamina=6,tech=7,movement=10,timing=9,gimmick=low;
if not techRadarString then return nil end
techRadarTable = {}
for k, v in string.gmatch(techRadarString, "([^=,]+)... | nilq/small-lua-stack | null |
if(GetRealmName() == "์๊ธ ํ์")then
WP_Database = {
["ํ์ด๋จธ์ "] = "LT:784/98%SB:871/99%LM:962/98%",
["๊ฐํฐ๋์"] = "ST:793/99%SB:849/99%SM:1009/99%",
["์์๋"] = "LT:761/96%SB:807/99%LM:938/96%",
["์ผ๋ํ์ "] = "ST:816/99%SB:887/99%SM:1007/99%",
["๋ง๋๋ฉด์ข์์น๊ตฌ"] = "LT:591/98%SB:808/99%LM:981/98%",
["์ ์ฌํจ"] = "ST:819/99%SB:831/99%LM:966/98%... | nilq/small-lua-stack | null |
DAC.Class = DAC.Class or {}
local Class = DAC.Class
Class.__index = Class
DAC.Class = Class | nilq/small-lua-stack | null |
local eventListeners = {}
local Runtime = {
addEventListener = function(self, name, callback)
if not eventListeners[name] then eventListeners[name] = {} end
table.insert(eventListeners[name], callback)
end,
removeEventListener = function(self, name, callback)
if(not eventListeners[name]) then return ... | nilq/small-lua-stack | null |
-- Copyright (C) 2018 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-vecmath.
--
-- dromozoa-vecmath is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License... | nilq/small-lua-stack | null |
local lor = require("lor.lib.lor")
local version = require("lor.version")
lor.version = version
return lor | nilq/small-lua-stack | null |
local enemies = Ch.FindCharacters( "Enemy" )
for i,enemy in ipairs(enemies.array) do
local plgPhase = enemy:FindPlugin( "AiPhasePlugin" )
-- print( plgPhase:GetPhaseController():GetCurrentPhase():GetName() )
if plgPhase:GetPhaseController():GetCurrentPhase():GetName()=="Alert" then
TppGameSequence.ExecScriptGameOv... | nilq/small-lua-stack | null |
return {'bic','bicarbonaat','biceps','bicommunautair','biconcaaf','biconvex','bicepspees','bicker','bicarbonaten','bicepsen','bicommunautaire','biconcave','biconvexe','bics','biculturele','biccen'} | nilq/small-lua-stack | null |
-- Copyright (c) 2021 Kirazy
-- Part of Artisanal Reskins: Bob's Mods
--
-- See LICENSE in the project directory for license information.
-- Check to see if reskinning needs to be done.
if not (reskins.bobs and reskins.bobs.triggers.power.entities) then return end
if not (reskins.bobs and reskins.bobs.triggers.power.s... | nilq/small-lua-stack | null |
yatm.fluids.fluid_registry.register("default", "lava", {
description = "Lava",
groups = {
lava = 1,
},
nodes = {
dont_register = true,
names = {
source = "default:lava_source",
flowing = "default:lava_flowing",
},
},
fluid_tank = {
modname = "yatm_fluids",
light_source... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Misareaux Coast
-- Mob: Boggelmann
-----------------------------------
require("scripts/globals/missions");
-----------------------------------
function onMobDeath(mob, player, isKiller)
if (player:getCurrentMission(COP) == tpz.mission.id.cop.CALM_BEFORE_THE_STORM and ... | nilq/small-lua-stack | null |
local ffi = require 'ffi'
ffi.cdef [[
typedef struct FILE FILE;
typedef long int off_t; // does not seem to be very easy to define this
typedef intptr_t ssize_t;
void* malloc(size_t);
void free(void*);
FILE* fopen (const char* filename, const char* mode);
int fseek(FILE*, long int offset, int origin);
long... | nilq/small-lua-stack | null |
slot0 = class("PrayPoolHomeView", import("..base.BaseSubView"))
slot0.getUIName = function (slot0)
return "PrayPoolHomeView"
end
slot0.OnInit = function (slot0)
slot0:initData()
slot0:initUI()
slot0:Show()
end
slot0.OnDestroy = function (slot0)
return
end
slot0.OnBackPress = function (slot0)
return
end
slot0... | nilq/small-lua-stack | null |
--[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* admin_wrapper.lua
*
* Original File by lil_Toady
*
**************************************]]
function table.reverse(t)
local newt = {}
for idx, item in ipairs(t) do
newt[#t - idx + 1] = item
end
return newt
end
functio... | nilq/small-lua-stack | null |
/////////////////////////
// Configuration file //
/////////////////////////
LevelSystemConfiguration = {} // Ignore
Printers = {} // Ignore
LevelSystemConfiguration.EnableHUD = true // Is the HUD enabled?
LevelSystemConfiguration.LevelColor = Color(255,255,255,255) // The color of the "Level: 1" HUD element. White... | nilq/small-lua-stack | null |
sum = 0
for y = 1, 128 do
for x = 1, 128 do
for j = 1, 3 do
sum = (sum + sum * 10 + image[y][x][j]) % 65535
end
end
end
if sum == 35341 then
answer = 1
elseif sum == 6975 then
answer = 2
elseif sum == 25175 then
answer = 1
elseif sum == 4967 then
answer = 4
elseif sum == 18097 then
ans... | nilq/small-lua-stack | null |
object_intangible_pet_xandank = object_intangible_pet_shared_xandank:new {
}
ObjectTemplates:addTemplate(object_intangible_pet_xandank, "object/intangible/pet/xandank.iff")
| nilq/small-lua-stack | null |
-- locale.lua
-- @Author : Dencer (tdaddon@163.com)
-- @Link : https://dengsir.github.io
-- @Date : 6/25/2019, 1:28:11 AM
local Locale = {}
local _L = {}
function Locale:newLocale(locale)
if locale ~= self:currentLocale() then
return
end
return setmetatable({}, {
__index = function()... | nilq/small-lua-stack | null |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by al-kov.
--- DateTime: 25.11.2019 16:21
---
local log = require('log')
local function init_schema()
if not box.space.data then
log.info('Creating non-existing space "data"...')
local data = box.schema.space.create('data')
... | nilq/small-lua-stack | null |
function gadget:GetInfo()
return {
name = "mo_noshare",
desc = "mo_noshare",
author = "TheFatController",
date = "19 Jan 2008",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true -- loaded by default?
}
end
-------------------------------------------... | nilq/small-lua-stack | null |
AccessRight = Class('AccessRight')
AccessRight.list = {}
function AccessRight.__mt:__tostring()
return 'AccessRight('..self.name..')'
end
function AccessRight.__mt.__index:init(name, absolute)
assert(name)
local fullName = absolute and name or 'resource.'..g_ResName..'.'..name
self.name = fullName
sel... | 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_red_trans... | nilq/small-lua-stack | null |
#!/usr/bin/env texlua
module = "sillypage"
sourcefiles = { "*.dtx", "*.ins", "sillywalk-map.pdf" }
installfiles = { "*.sty", "sillywalk-map.pdf" }
typesetfiles = { "*.dtx", "*.tex" }
textfiles = { "README.md" }
checkruns = 1
typesetruns = 3
checkengines = { "pdftex" }
if not release_... | nilq/small-lua-stack | null |
-- General layout: There is one choice for each possible background fitting
-- mode. Each choice will have three examples showing how backgrounds of
-- common aspect ratios will be stretched or clipped by that fitting mode.
-- fit_choices will be used later to tell the actor that controls input what
-- actors to use... | nilq/small-lua-stack | null |
class "QuatTriple"
function QuatTriple:__getvar(name)
if name == "q1" then
local retVal = Polycode.QuatTriple_get_q1(self.__ptr)
if retVal == nil then return nil end
local __c = _G["Quaternion"]("__skip_ptr__")
__c.__ptr = retVal
return __c
elseif name == "q2" then
local retVal = Polycode.QuatTriple_get... | nilq/small-lua-stack | null |
Countdown = {}
Countdown.isActive = false
local screenSize = Vector2(guiGetScreenSize())
local value = 3
local countdownSize = 200
local countdownTextures = {}
local timer
local animationProgress = 0
local function draw()
local size = countdownSize + animationProgress * 20
dxDrawImage(
(screenSize.x - size) / 2, ... | nilq/small-lua-stack | null |
local present, base16 = pcall(require, "mini.base16")
if not present then
return
end
-- You should define your own base16 colorscheme here
-- or load a base16 theme externally.
-- miniature.colorscheme will work as long as the theme
-- has the same format as below.
local theme = {}
theme.base00 = "#181f21"
theme.bas... | nilq/small-lua-stack | null |
local table, type, error, assert
do
local _obj_0 = _G
table, type, error, assert = _obj_0.table, _obj_0.type, _obj_0.error, _obj_0.assert
end
do
local _class_0
local _base_0 = {
ExecInPlace = function(self, ...)
return self.database:Query(self:Format(...))
end,
Execute = function(se... | nilq/small-lua-stack | null |
local _M = {}
local base = require "resty.waf.base"
local cjson = require "cjson"
local socket_logger = require "resty.logger.socket"
_M.version = base.version
local function split(source, delimiter)
local elements = {}
local pattern = '([^'..delimiter..']+)'
string.gsub(source, pattern, function... | nilq/small-lua-stack | null |
local mod = get_mod("rwaon_talents")
-- Elf Shortbow
------------------------------------------------------------------------------
for _, weapon in ipairs{
"shortbow_template_1",
} do
local weapon_template = Weapons[weapon]
local action_one = weapon_template.actions.action_one
local action_two = weapo... | nilq/small-lua-stack | null |
local M = {}
local Job = require('plenary.job')
M.timer = vim.loop.new_timer()
function M.theme_mode()
local output = io.popen('defaults read -g AppleInterfaceStyle'):read()
if output == "Dark" then
return 'dark'
else
return 'light'
end
end
function M.switch_theme()
vim.o.backgro... | nilq/small-lua-stack | null |
--require"common.init"
require( "sc.stream")
----------
--[[
onFrameCallbacks={}
--table.insert(onFrameCallbacks,function()
--ppqVSTFrameLength=theMetro.frame
--end)
table.insert(onFrameCallbacks,function()
for i,v in ipairs(ActionPlayers) do
--println("onframe player:",v.name)
v:Play()
end
end)
table.insert(on... | nilq/small-lua-stack | null |
-- Newton (Raphson) root finding algorithm implementation
-- See : http://en.wikipedia.org/wiki/Newton%27s_method
-- Fuzzy equality test
local function fuzzyEqual(a, b, eps)
local eps = eps or 1e-4
return (math.abs(a - b) < eps)
end
-- Evaluates the derivative of function f at x0
-- Uses Newton's centered slope a... | nilq/small-lua-stack | null |
-- TODO: figure out why this don't work
vim.fn.sign_define(
"LspDiagnosticsSignError",
{ texthl = "LspDiagnosticsSignError", text = "๏", numhl = "LspDiagnosticsSignError" }
)
vim.fn.sign_define(
"LspDiagnosticsSignWarning",
{ texthl = "LspDiagnosticsSignWarning", text = "๏ฉ", numhl = "LspDiagnosticsSignWarning" ... | nilq/small-lua-stack | null |
๏ปฟCyrodiilAction = CyrodiilAction or {}
local AD = ALLIANCE_ALDMERI_DOMINION
local DC = ALLIANCE_DAGGERFALL_COVENANT
local EP = ALLIANCE_EBONHEART_PACT
CyrodiilAction.ACTION_ATTACK = 1
CyrodiilAction.ACTION_DEFEND = 2
CyrodiilAction.colors = {}
local colors = CyrodiilAction.colors
--Transparent BG colors
CyrodiilActi... | nilq/small-lua-stack | null |
require("BasicFuntions")
require("GlobalVariables")
print("I hear you")
if not arg[1] then
Error()
else
DefaultPath = arg[1]
print(DefaultPath .. Room["Field"])
PrintLines(LinesFrom( DefaultPath .. Room["Field"]))
end
| nilq/small-lua-stack | null |
๏ปฟ-- Decompiled using luadec 2.2 rev: for Lua 5.2 from https://github.com/viruscamp/luadec
-- Command line: A:\Steam\twd-definitive\scripteditor-10-31-20\definitive_lighting_improvements\WDC_pc_Menu_data\Menu_main_temp.lua
-- params : ...
-- function num : 0 , upvalues : _ENV
require("RichPresence.lua")
require("Util... | nilq/small-lua-stack | null |
require('constants')
add_message_with_pause("THE_SORCEROR_GATEWAY_TEXT_SID")
local function drain_hp_and_ap(cr_id)
local new_base_hp = get_creature_base_hp(cr_id) * 0.75
local cur_hp = get_creature_current_hp(cr_id)
local new_base_ap = get_creature_base_ap(cr_id) * 0.75
local cur_ap = get_creature_current_ap(... | nilq/small-lua-stack | null |
local ConfigScene = Scene:extend()
ConfigScene.title = "Audio Settings"
require 'load.save'
ConfigScene.options = {
-- this serves as reference to what the options' values mean i guess?
-- Option types: int, slider, options
-- Format if type is options: {name in config, displayed name, type, description, options}... | nilq/small-lua-stack | null |
--
-- This is just an overview to get the idea what spec can contain.
--
return {
Character = {
Level = ...,
StreetCred = ...,
Attributes = {...},
Skills = {...},
Progression = {...},
Perks = {...},
},
Inventory = {...},
Crafting = {
Components = {...},
Recipes = {...},
},
Transport = {...},
} | nilq/small-lua-stack | null |
local base_dir = path.getabsolute("..")
solution "pecs" do
configurations { "Debug", "Release" }
targetdir(path.join(base_dir, "bin")) -- force our bins into bin/
location(path.join(base_dir, "build")) -- and the makefiles into build/ so we can make -C build
configuration { "Release" }
flags {
"OptimizeSpeed... | nilq/small-lua-stack | null |
game:GetService("RunService").RenderStepped:Connect(function()
for i,v in pairs(workspace.ScatteredMoney:GetChildren()) do
if v.ClassName == "MeshPart" then
for i,c in pairs(v:GetChildren()) do
if c.ClassName == "ClickDetector" then
fireclickdetector(c)
end
end
end
end
end) | nilq/small-lua-stack | null |
local gcwSpawnHelper = {}
local ObjectManager = require("managers.object.object_manager")
local ScreenplayHelper = require("helper.screenplayHelper")
function gcwSpawnHelper:despawnCityDefender(spawnMap, varStringID, faction)
local count = 0
for i,v in ipairs(spawnMap) do
ScreenplayHelper:destroy(r... | nilq/small-lua-stack | null |
-- ATEVK1100 board configuration
return {
cpu = 'at32uc3a0512',
components = {
sercon = { uart = 0, speed = 115200, buf_size = 2048 },
mmcfs = { spi = 5, cs_port = 0, cs_pin = "SD_MMC_SPI_NPCS_PIN" },
adc = { buf_size = 2 },
term = { lines = 25, cols = 80 },
cints = true,
luaints = true,
... | nilq/small-lua-stack | null |
object_building_poi_player_camp_s07 = object_building_poi_shared_player_camp_s07:new {
}
ObjectTemplates:addTemplate(object_building_poi_player_camp_s07, "object/building/poi/player_camp_s07.iff")
| nilq/small-lua-stack | null |
local class = require "class-clean"
local SceneManager = class("SceneManager", {_m_state = "้ๅง"})
print (SceneManager.name .. " class ready.")
function SceneManager:ChangeScene(stateName)
local switch = {
[1] = function() -- for case 1
print "Case 1."
end,
[2] = function() -- for case 2
print "C... | nilq/small-lua-stack | null |
--[[
Author: Noya, Pizzalol
Date: 04.03.2015.
After taking damage, checks the mana of the caster and prevents as many damage as possible.
Note: This is post-reduction, because there's currently no easy way to get pre-mitigation damage.
]]
function ManaShield( event )
local caster = event.caster
local ability = ... | nilq/small-lua-stack | null |
import "metabase_common.lua"
import "platform_android.lua"
supportedplatforms
{
"TADP",
}
writer "writer_msvc.lua"
option("msvc", "customwriter", "/writer_msvctadp_android.lua")
option("msvc", "platform", "Tegra-Android")
option("msvconfiguration", "AndroidArch", "armv7-a")
option("msvccompile"... | nilq/small-lua-stack | null |
--- Allows for control of the boot process of the schema such as piggybacking from other schemas
-- @module Schema
impulse.Schema = impulse.Schema or {}
HOOK_CACHE = {}
--- Starts the Schema boot sequence
-- @realm shared
-- @string name Schema file name
-- @internal
function impulse.Schema.Boot()
local name = en... | nilq/small-lua-stack | null |
data:extend({
{
type = "recipe",
name = "uep-craft-assistent",
enabled = false,
energy_required = 10,
ingredients =
{
{"iron-plate", 10},
{"electric-engine-unit", 1},
{"advanced-circuit", 1},
{"electronic-circuit", 10},
{"iron-gear-wheel", 100},
},
result = "uep-craft-assistent"
},
{
... | nilq/small-lua-stack | null |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local UF = E:GetModule('UnitFrames');
--Lua functions
local unpack, tonumber = unpack, tonumber
local abs, min = abs, math.min
--WoW API / Variables
local CreateFrame = CreateFrame
local UnitSpellHaste = UnitSpellHa... | nilq/small-lua-stack | null |
local Native = require('lib.stdlib.native')
local converter = require('lib.stdlib.enum.converter')
---@class MouseButtonType
local MouseButtonType = {
Left = 1, --MOUSE_BUTTON_TYPE_LEFT
Middle = 2, --MOUSE_BUTTON_TYPE_MIDDLE
Right = 3, --MOUSE_BUTTON_TYPE_RIGHT
}
MouseButtonType = converter(Native.Convert... | nilq/small-lua-stack | null |
-- This file is auto-generated by shipwright.nvim
local common_fg = "#A2A2B5"
local inactive_bg = "#222233"
local inactive_fg = "#E9E3C5"
return {
normal = {
a = { bg = "#50506E", fg = common_fg, gui = "bold" },
b = { bg = "#3B3B54", fg = common_fg },
c = { bg = "#28283B", fg = "#DDD8BB" },
},
insert = {
a... | nilq/small-lua-stack | null |
local map = {}
map = { image = "tutorial.png", load = false, pics = "teach_timidity.png", soundClear = "japanese_yes",
{-- etage 1
{ "1", "1", 1, 1, "1", "1" },
{ "1", "1", 1, 1, "1", "1" },
{ "1", "1", 1, 1, "1", "1" }
}
}
return map
| nilq/small-lua-stack | null |
--
-- Global Keymaps
--
local cmd = vim.cmd
local nvim_set_keymap = vim.api.nvim_set_keymap
local wk = require('which-key')
-- Close quickfix if in quickfix
nvim_set_keymap('n', '<C-d>', '&bt ==# "quickfix" ? ":ccl<Cr>" : "<C-d>"', { noremap = true, expr = true })
-- Use <C-d> as escape sequence
nvim_set_keymap('i',... | nilq/small-lua-stack | null |
local insert, remove
do
local _obj_0 = table
insert, remove = _obj_0.insert, _obj_0.remove
end
local newLines, allowedOrign, CentereNotify, NotifyDispatcherBase
do
local _obj_0 = Notify
newLines, allowedOrign, CentereNotify, NotifyDispatcherBase = _obj_0.newLines, _obj_0.allowedOrign, _obj_0.CentereNoti... | nilq/small-lua-stack | null |
garagepublic = {}
garagepublic.DrawDistance = 100
garagepublic.Size = {x = 1.5, y = 1.5, z = 1.5}
garagepublic.Color = {r = 0, g = 255, b = 0} --vert pour les voiture a sortir
garagepublic.Color2 = {r = 255, g = 0, b = 0} --rouge pour les voiture a ranger
garagepublic.Type = ... | nilq/small-lua-stack | null |
---
---
--- Created by Go Go Easy Team.
--- DateTime: 2019/1/8 2:13 PM
---
local shared_name = require("core.constants.shard_name")
local shared = ngx.shared
local cache = shared[shared_name.stat_dashboard]
local _M = {}
_M.DEFAULT_EXPIRE = 172800 -- 2 ๅคฉ๏ผๅไฝ s
function _M.add(key,value)
return cache:add(key,v... | nilq/small-lua-stack | null |
local cmd = vim.cmd
cmd [[
au BufRead,BufNewFile tsconfig.json set filetype=jsonc
]] | nilq/small-lua-stack | null |
function test_number_max()
max = chainhelper:number_max()
chainhelper:log("test number_max, number_max: " .. tostring(max) .. ", type: " .. type(max))
end | nilq/small-lua-stack | null |
--[[
Copyright 2012-2020 Joรฃo Cardoso
PetTracker is distributed under the terms of the GNU General Public License (Version 3).
As a special exception, the copyright holders of this addon do not give permission to
redistribute and/or modify it.
This addon is distributed in the hope that it will be useful,
but WITHOUT A... | nilq/small-lua-stack | null |
local love = require "love"
local enemy = require "Enemy"
local button = require "Button"
math.randomseed(os.time())
local game = {
difficulty = 1,
state = {
menu = true,
paused = false,
running = false,
ended = false
},
points = 0,
levels = {15, 30, 60, 120}
}
-- ... | nilq/small-lua-stack | null |
addEventHandler ( "onResourceStart", resourceRoot, function ( )
exports['VDBGSQL']:db_exec ( "CREATE TABLE IF NOT EXISTS vehicles ( DistanceTraveled INT, Paintjob INT, Type TEXT, Owner TEXT, VehicleID INT, ID INT, Color TEXT, Upgrades TEXT, Position TEXT, Rotation TEXT, Health TEXT, Visible INT, Fuel INT, Impounded I... | nilq/small-lua-stack | null |
if GetLocale() ~= "frFR" then return end
DBM_HOW_TO_USE_MOD = "Bienvenue sur DBM. Tapez /dbm help pour une liste des commandes supportรฉes. Pour accรฉdez aux options, tapez /dbm dans la fenรชtre de discussion pour commencer la configuration. Chargez des zones spรฉcifiques manuellement pour configurer tous les paramรจtre... | nilq/small-lua-stack | null |
-- test.TbTestDesc
return
{
[1] =
{
id=1,
name="xxx",
a1=0,
a2=0,
x1=
{
y2=
{
z2=2,
z3=3,
},
y3=4,
},
x2=
{
{
z2=1,
z3=2,
},
{
z2=3,
z3=4,
},
},
x3=
{
{
z2=1,
z3=2,
},
{
z2=3,
z3=4,
},
},
},
}
| nilq/small-lua-stack | null |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... | nilq/small-lua-stack | null |
-- -------------------------------------------------------------------------- --
-- ๅบ็จๅฟซๆทๅฏๅจๅจ
-- -------------------------------------------------------------------------- --
-- ๅบ็จๅ่กจ
local applist = {
-- QใWใEใRใT
w = "WeChat",
r = "CodeRunner",
t = "Things3",
-- AใSใDใFใG
a = "Typora",
s = "... | nilq/small-lua-stack | null |
local fail = false
print("Test: not...")
if ~a8 ~= uint.u8(236) then
print("\tFail: ~a8 ~= 236")
fail = true
end
if ~b8 ~= uint.u8(113) then
print("\tFail: ~b8 ~= 113")
fail = true
end
if (~c8):asnumber() ~= 1 then
print("\tFail: ~c8 ~= 1")
fail = true
end
if not fail then
print("\tPass... | nilq/small-lua-stack | null |
--====================================================================--
-- dmc_widget/widget_button.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2014-2015 David McCuskey
Permission is hereby... | nilq/small-lua-stack | null |
-- The init file of PLoop.System.Web
require "PLoop"
require "PLoop.System.IO"
require "PLoop.System.Data"
-- Core
require "PLoop.System.Web.Core"
-- FormatProvider
require "PLoop.System.Web.FormatProvider.JsonFormatProvider"
-- Context
require "PLoop.System.Web.Context.HttpCookie"
require "PLoop.System.Web.Context... | nilq/small-lua-stack | null |
local helpers = require "spec.helpers"
local cjson = require "cjson"
local utils = require "kong.tools.utils"
for _, strategy in helpers.each_strategy() do
describe("Plugin: hmac-auth (API) [#" .. strategy .. "]", function()
local admin_client
local consumer
local bp
local db
lazy_setup(functio... | nilq/small-lua-stack | null |
-- AREA RETRIEVAL FUNCTION
runetest.core.frame.snap = function(orig,diam) --Given parameters, will retrieve all nodes within a given radius.
local db = {}
--Grabs nodenames in a line outward including center for diam number of nodes.
local function linegrab(orig)
local db = {}
for n = ... | nilq/small-lua-stack | null |
fx_version 'adamant'
games { 'gta5' }
description 'NPC-Drug-Deliveries'
version '1.0.0'
server_script "server/server.lua"
client_script "client/client.lua" | nilq/small-lua-stack | null |
--------------
-- Includes --
--------------
#include 'include/internal_events.lua'
----------------------
-- Global variables --
----------------------
g_Me = getLocalPlayer()
g_ScreenSize = {guiGetScreenSize()}
g_InternalEventHandlers = {}
---------------------
-- Local variables --
--------------... | nilq/small-lua-stack | null |
function ShowInfo(text)
SetNotificationTextEntry("STRING")
AddTextComponentString(text)
DrawNotification(true, false)
end
ESX = nil
local ped = PlayerPedId()
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
en... | nilq/small-lua-stack | null |
group("third_party")
project("dxbc")
uuid("c96688ca-51ca-406e-aeef-068734a67abe")
kind("StaticLib")
language("C++")
links({
})
defines({
"_LIB",
})
includedirs({
"dxbc",
})
files({
"dxbc/d3d12TokenizedProgramFormat.hpp",
"dxbc/DXBCChecksum.cpp",
"dxbc/DXBCChecksum.h",
})
| nilq/small-lua-stack | null |
local LogSigmoid, parent = torch.class('nn.LogSigmoid', 'nn.Module')
function LogSigmoid:__init()
parent.__init(self)
self.buffer = torch.Tensor()
end
function LogSigmoid:write(file)
parent.write(self, file)
file:writeObject(self.buffer)
end
function LogSigmoid:read(file)
parent.read(self, file)
se... | nilq/small-lua-stack | null |
local vision={}
return vision
| nilq/small-lua-stack | null |
local server = require("dashboard.server")
-- global context
local srv = server:new(context.config, context.store, context.views_path)
return srv:get_app()
| nilq/small-lua-stack | null |
require "import"
import "android.widget.*"
import "android.view.*"
import "autotheme"
activity.setTheme(autotheme())
activity.setTitle("LogCat")
edit=EditText(activity)
edit.Hint="่พๅ
ฅๅ
ณ้ฎๅญ"
edit.Width=activity.Width/3
edit.SingleLine=true
edit.addTextChangedListener{
onTextChanged=function(c)
scroll.adapter.filter... | nilq/small-lua-stack | null |
-- โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ --
-- โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ --
-- Plugin: surround.nvim
-- Github: github.com/blackcauldron7/surround.nvim
-- โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ --
-- โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ --
-- โ... | nilq/small-lua-stack | null |
local config = require("config").input
local input = {}
function input.init()
input.map = config.buttons
input.buttons = {}
local width, height = love.window.getMode()
for name, triggers in pairs(input.map) do
for _, trigger in ipairs(triggers) do
trigger.x, trigger.y = compat.guiSize(trigger.x, trig... | nilq/small-lua-stack | null |
menu = {}
lg = love.graphics
function menu.enter()
state = STATE_MENU
font = lg.newFont("fonts/slkscr.ttf", 48)
menuscene = lg.newImage("img/MainMenuBackGround.png")
lg.setFont(font)
selection = 1
end
function menu.draw()
menu.drawBackground()
menu.drawMenu()
end
function menu.drawBackground()
--lg.push()... | nilq/small-lua-stack | null |
local mt={}
mt.__index=math
setmetatable(mt,mt)
--- mt.round ๅ่ไบๅ
ฅๅๆด
-- @param n ๅๆด็ๆฐๅญ number
function mt.round(n)
return math.floor(0.5+n)
end
--ๆ้ป่ฎคmathๅบไธญๅผงๅบฆ่ฎก็ฎๅ
จ้จ่ฝฌๆขไธบ่งๅบฆ
--ๅผงๅบฆๅปๆญปๅง
local deg = math.deg(1)
local rad = math.rad(1)
--ๆญฃๅผฆ
local sin = math.sin
function mt.sin(r)
return sin(r * rad)
end
--ไฝๅผฆ
local cos = math.c... | nilq/small-lua-stack | null |
object_tangible_collection_hanging_light_02_03 = object_tangible_collection_shared_hanging_light_02_03:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_hanging_light_02_03, "object/tangible/collection/hanging_light_02_03.iff") | nilq/small-lua-stack | null |
ITEM.name = "G3A3"
ITEM.description= "A battle rifle that fires 7.62x51mm rounds."
ITEM.longdesc = "The G3 was Germany's response to the more expensive FAL rifle, based on the CETME design.\nWhile made out of mostly plastic furniture, the rifle remains a heavy but reliable choice.\n\nAmmo: 7.62x51mm\nMagazine Capacity:... | nilq/small-lua-stack | null |
-- A utility to color, resize, or format strings using rich text.
local RTFTools = {}
local string = require(script.Parent.Parent.Extension.CSString)
function RTFTools.Color(str: string, color: Color3, escape: boolean?): string
local str = escape and RTFTools.Escape(str) or str
local r = string.format("%02x", math.... | nilq/small-lua-stack | null |
local toint = math.tointeger
local fmt = string.format
local concat = table.concat
local os_time = os.time
local menu = {}
-- ่ๅๅ่กจ
function menu.menu_list (db, opt)
local limit = toint(opt.limit) or 100
local page = toint(opt.page) or 1
return db:query(fmt([[SELECT id, parent, name, url, icon, create_at, update... | 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.