content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
-- any change requiers :PackerCompile -- https://github.com/wbthomason/packer.nvim return require('packer').startup(function() use { 'Pocco81/AutoSave.nvim', branch = 'main', config = function() require('autosave').setup { enabled = true, events = { 'InsertLeave' } } end, } use 'justincampbell/vim-eightie...
nilq/small-lua-stack
null
--[[ item.lua An item slot button --]] local ADDON, Addon = ... local Item = Addon.Tipped:NewClass('Item', Addon.IsRetail and 'ItemButton' or 'Button', 'ContainerFrameItemButtonTemplate', true) local Search = LibStub('LibItemSearch-1.2') local Unfit = LibStub('Unfit-1.0') Item.SlotTypes = { [-3] = 'reagent', [0x...
nilq/small-lua-stack
null
student_proto = { [1] = { name = 70028, exp = 7129, atr1 = { {1, 100}, {2, 100}, {3, 100}, }, }, [2] = { name = 70029, exp = 14257, atr1 = { {1, 100}, {2, 100}, {3, 201}, }, }, [3] = { name = 70030, exp = 21386, atr1 = { {1, 100}, {2, 100}, {3, 302}, }, }, [4] = { name = 70031, exp = 28515, atr1 = { {1, 100}, {2, 100},...
nilq/small-lua-stack
null
do redslider = Slider.new(vec3d(0,0,0), 0, 255) greenslider = Slider.new(vec3d(0,0,0), 0, 255) blueslider = Slider.new(vec3d(0,0,0), 0, 255) end do redslider.depth = 100 redslider.width = 10 greenslider.depth = 100 greenslider.width = 10 blueslider.depth = 100 blueslider.width = 10 redslider.lspace = transform.new()...
nilq/small-lua-stack
null
object_mobile_sher_kar = object_mobile_shared_sher_kar:new { } ObjectTemplates:addTemplate(object_mobile_sher_kar, "object/mobile/sher_kar.iff")
nilq/small-lua-stack
null
return function(ASS, ASSFInst, yutilsMissingMsg, createASSClass, re, util, unicode, Common, LineCollection, Line, Log, SubInspector, Yutils) local DrawLine = createASSClass("Draw.Line", ASS.Draw.CommandBase, {"x", "y"}, {ASS.Number, ASS.Number}, {name="l", ords=2}, {ASS.Point, AS...
nilq/small-lua-stack
null
require("programs.none") require("programs.enemy-detector") require("programs.fluid-controller") require("programs.ghost-alert-sensor") require("programs.lua-executor") require("programs.max-item-controller") require("programs.storage-controller") -- http://stackoverflow.com/questions/14942472/create-suite-of-interdep...
nilq/small-lua-stack
null
object_mobile_selonian_female_28 = object_mobile_shared_selonian_female_28:new { } ObjectTemplates:addTemplate(object_mobile_selonian_female_28, "object/mobile/selonian_female_28.iff")
nilq/small-lua-stack
null
local KUI, E, L, V, P, G = unpack(select(2, ...)) local KTT = KUI:GetModule("KuiTooltip") local PI = KUI:GetModule("ProgressInfo") local RI = KUI:GetModule("RealmInfo") --Cache global variables local format = string.format local tinsert, twipe = table.insert, table.wipe --WoW API / Variables local function Tooltip()...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- sohm(https://github.com/soveran/ohm) -------------------------------------------------------------------------------- local _PACKAGE = string.gsub(...,"%.","/") or "" local ohm = require(_PACKAGE.."/model") local models = {} local fu...
nilq/small-lua-stack
null
ITEM.name = "Consumables Permit" ITEM.description = "A permit allowing you to sell consumable goods." ITEM.permit = "consumables"
nilq/small-lua-stack
null
require 'torch' require 'nn' require 'nnx' require 'string' _ = require 'moses' require 'xlua' require 'fs' require 'os' require 'sys' require 'image' require 'lfs' ffi = require 'ffi' ------------------------------------------------------------------------ --[[ dp ]]-- -- deep learning library for torch7. -----------...
nilq/small-lua-stack
null
print ("Results of read_xml_test:") require "com.untgames.runtime" local function CreateClassA () local function Foo () print ("ClassA.Foo") end local function SetProperty (name, value) print (string.format ("SetProperty('%s', '%s')", name, value)) end local function GetProperty...
nilq/small-lua-stack
null
local included = pcall(debug.getlocal, 4, 1) local T = require("test") --# = os --# :toc: --# :toc-placement!: --# --# Extensions to the `os` namespace. --# --# toc::[] --# --# == *os.hostname*() -> _String_ --# Get current hostname. --# --# === Returns --# [width="72%"] --# |=== --# |string |Hostname --# |=== local os...
nilq/small-lua-stack
null
local client = require 'shared.client' local describe, it, assert = describe, it, assert describe('membership.views', function() local go, path_for = client.new() local signin = function(credentials) if not credentials then credentials = {username = 'demo', password = 'password'} ...
nilq/small-lua-stack
null
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISFireplaceAddFuel : ISBaseTimedAction ISFireplaceAddFuel = ISBaseTimedAction:der...
nilq/small-lua-stack
null
-- luci/openwrt multi user implementation V1 -- -- users.lua by Hostle 12/12/2014 -- module("luci.users", package.seeall) --## General dependents ##-- require "luci.sys" --## Add/Remove User files and dependants ##-- local fs = require "nixio.fs" local passwd = "/etc/passwd" local passwd2 = "/etc/passwd-" local sha...
nilq/small-lua-stack
null
module("luci.controller.pppoe-relay", package.seeall) function index() if not nixio.fs.access("/etc/config/pppoe-relay") then return end entry({"admin", "services", "pppoe-relay"}, cbi("pppoe-relay"), _("PPPoE Relay"), 90).dependent = true end
nilq/small-lua-stack
null
--- An input stream that reads from a file. -- -- @module FileInputStream -- @author sci4me -- @license MIT -- @copyright Scitoshi Nakayobro 2021 local class = require "middleclass" local InputStream = require "iostream.InputStream" local byte = string.byte local FileInputStream = class("FileInputS...
nilq/small-lua-stack
null
--This file adds crafting recipes depending on which dependencies are installed if minetest.get_modpath("default") and minetest.get_modpath("bucket") then minetest.register_craft( { output = "hot_air_balloons:item", recipe = { {"default:paper", "default:paper", "default:paper"}, {"default:paper", ...
nilq/small-lua-stack
null
Common_UnitConsumeActPoint(attacker, 1); if Common_Break_Skill(attacker, _Skill) then return end Common_ChangeEp(attacker, -_Skill.skill_consume_ep) local target, all_targets = Common_GetTargets(...) Common_ShowCfgFlagEffect(_Skill) Common_UnitPlayAttack(attacker, _Skill.id); Common_ShowCfgStageEffect(_Skill) -------...
nilq/small-lua-stack
null
--[[ cel is licensed under the terms of the MIT license Copyright (C) 2011 by Matthew W. Burk Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the...
nilq/small-lua-stack
null
local custom = require("misc.libs.stdlib") clientkeys = gears.table.join( -- Fullscreen Window awful.key({ modkey }, "f", function(c) awful.screen.focused().mywibar.ontop = c.fullscreen c.fullscreen = not c.fullscreen c:raise() end, { description = "toggle fullscreen", group = "client", }), awful.key({ ...
nilq/small-lua-stack
null
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by apple. --- DateTime: 2018/9/11 上午12:31 --- require("objects.NewGameObject") --- @class Ammo : NewGameObject --- 弹药类 --- @param area Area --- @param x number --- @param y number --- @param opts table --- @field collider Collider --- @field w number ...
nilq/small-lua-stack
null
local function setup() vim.g.dashboard_default_executive = 'fzf' vim.g.dashboard_session_directory = vim.g.session_dir vim.api.nvim_exec( 'autocmd FileType dashboard set showtabline=0 | autocmd WinLeave <buffer> set showtabline=2', false ) end return { setup = setup }
nilq/small-lua-stack
null
-- define the joystick offsets (for button assignments) local Thrustmaster = 0 local Quadrant = 160 local XBox = 320 local last_view_type = 0 -- define the DataRef we want to use DataRef( "view_type", "sim/graphics/view/view_type" ) -- init the view if get("sim/cockpit/electrical/battery_on") == 1 then command_o...
nilq/small-lua-stack
null
local io = require 'io' local load_data = {} function load_data.read_txt_table(fname) local tab = {} local file = io.open(fname) for line in file:lines() do local k,v = unpack(line:split(" ")) tab[tonumber(k)+1] = v end return tab end return load_data
nilq/small-lua-stack
null
require "resty.nettle.types.curve25519" local types = require "resty.nettle.types.common" local lib = require "resty.nettle.hogweed" local ffi = require "ffi" local ffi_str = ffi.string local curve = {} function curve.mul(n, p) if p then lib.nettle_curve25519_mul(types.uint8_t_32, n, p) else lib.nettle_c...
nilq/small-lua-stack
null
-- Removed, basically, because it's fucked. FlinchMixin = CreateMixin(FlinchMixin) FlinchMixin.type = "Flinch" FlinchMixin.networkVars = { } function FlinchMixin:GetFlinchIntensity() return 0 end
nilq/small-lua-stack
null
require 'love.image' require 'love.thread' require 'love.math' require 'love.filesystem' require 'love.image' require 'trace' require 'chunk' require 'properties' local thisChannel = love.thread.getChannel("physics") local mainChannel = love.thread.getChannel("main") print(' physics ready') while tru...
nilq/small-lua-stack
null
-- Copyright 2006-2021 gwash. See LICENSE. -- Archlinux PKGBUILD LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, S = lpeg.P, lpeg.S local lex = lexer.new('pkgbuild') -- Whitespace. lex:add_rule('whitespace', token(lexer.WHITESPACE, lexer.space^1)) -- Comme...
nilq/small-lua-stack
null
----------------------------------- -- Area: The Eldieme Necropolis -- Mob: Sturm -- Involved in Quest: A New Dawn (BST AF3) ----------------------------------- local ID = require("scripts/zones/The_Eldieme_Necropolis/IDs") require("scripts/globals/quests") ----------------------------------- function onMobInitialize...
nilq/small-lua-stack
null
local path = "conf/skins.xml" local skinsData = {} local function loadData() local fileNode = xmlLoadFile(path, true) if not fileNode then return warn("skins conf file not found", 2) and false end local fileData = xmlNodeGetData(fileNode) xmlUnloadFile(fileNode) for i, skinData in ipairs(fileData.children) do...
nilq/small-lua-stack
null
function onCreate() makeLuaSprite('whitebg','',-1000,200) makeGraphic('whitebg',400,100,'FFFFFF') setObjectCamera('whitebg','other') setProperty('whitebg.alpha',0.7) addLuaSprite('whitebg') makeLuaText('songtext',songName,400,0,200) setTextSize('songtext',30) setObjectCamera('songtext',...
nilq/small-lua-stack
null
local function Reply(msg) local text = msg.content_.text_ if ChatType == 'sp' or ChatType == 'gp' then if not DevAli:get(ReLaX..'Ali:Lock:Reply'..msg.chat_id_) then if text == "انجب" or text == "نجب" or text == "انجبي" or text == "نجبي" or text == "انجبو" or text == "نجبو" then if SudoId(msg) then rd = 'مطوريي ا...
nilq/small-lua-stack
null
local _0_0 = nil do local name_23_0_ = "conjure.client.clojure.nrepl.ui" local loaded_23_0_ = package.loaded[name_23_0_] local module_23_0_ = nil if ("table" == type(loaded_23_0_)) then module_23_0_ = loaded_23_0_ else module_23_0_ = {} end module_23_0_["aniseed/module"] = name_23_0_ module_23_0...
nilq/small-lua-stack
null
-- Copyright (C) Yichun Zhang (agentzh) local base = require "resty.core.base" base.allows_subsystem('http') local ffi = require "ffi" local C = ffi.C local ffi_str = ffi.string local getfenv = getfenv local error = error local tonumber = tonumber local errmsg = base.get_errmsg_ptr() local get_string_buf = base.get...
nilq/small-lua-stack
null
return { timer_messages_fn = {}, timer_messages_flag_active = false, start_timer_messages = function(self) if self.cnf.timer_messages ~= nil and #self.cnf.timer_messages > 0 then for i = TMR_SERVER_MESSAGES, ( TMR_SERVER_MESSAGES + (#self.cnf.timer_messages-1) ) do if s...
nilq/small-lua-stack
null
--单点登录并使用redis作为用户token存储时,采用的数据类型为hash --KEYS[1]每个用户独特唯一的token的key --KEYS[2]每个用户每次登录时随机生成的token的key --ARGS[1]为用户请求时携带的token的value --ARGS[2]为验证token成功时重新设置失效时间的值 if redis.call('hget', KEYS[1], KEYS[2]) == ARGS[1] then if redis.call('expire', KEYS[1], ARGS[2]) == 1 then return true end end return false
nilq/small-lua-stack
null
DefineClass.Unit = { __parents = { "Movable", "CommandObject", "UngridedObstacle", "DoesNotObstructConstruction", "SyncObject","Renamable" }, encyclopedia_id = false, enum_flags = { efUnit = true, efWalkable = false, efCollision = false, efApplyToGrids = false, efSelectable = true, }, class_flags = { cfComponentSou...
nilq/small-lua-stack
null
-- -- Project: wiola -- User: Konstantin Burkalev -- Date: 02.11.17 -- local _M = {} local json = require('wiola.serializers.json_serializer') local redis local config --- Format NUMBER for using in strings local formatNumber = function(n) return string.format("%.0f", n) end --- --- Return index of obj in array...
nilq/small-lua-stack
null
Chest = {} Chest.__index = Chest function Chest.create() local chst = GameObject.create() setmetatable(chst,Chest) chst.name = "Chest" chst.physics.enabled = true chst.physics.mass = 10 chst.physics.drag = 0.01 chst.physics.type = "dynamic" chst.physics.trigger = "learnspell" chst.opened = false...
nilq/small-lua-stack
null
workspace "DRMS" architecture "x64" configurations { "Debug", "Release", "Distribution" } outputDir = "$(Configuration)-$(Platform)" solutionDir = "$(SolutionDir)" configurationMacro = "$(Configuration)" platformMacro = "$(Platform)" projectNameMacro = "$(ProjectName)" ---------- DRMS project description --...
nilq/small-lua-stack
null
--[[ Backwards compat for Lua 5.3; only loaded in 5.3 because package.loaded is prepopulated with the existing global bit32 in 5.2. ]] local bit32 = {} ------------------------------------------------------------------------------- local function fold(init, op, ...) local result = init local args = table.pa...
nilq/small-lua-stack
null
local platform = { } for k,v in next, {'windows', 'linux', 'osx'} do platform[v] = require('Platforms.'..v) platform[v].name = v end local valid = { } for k,v in next, platform do if v:is() then table.insert(valid, k) end end if #valid == 0 then error('Unable to determine host platform') elseif #valid > 1 then ...
nilq/small-lua-stack
null
local clang = require 'clang' local index = clang.Index() local unsaved = {['x.c']='int fun;\nint main() {int v;return f;}'} local unit = index:parse('x.c', {'-Wall'}, unsaved, {clang.TranslationUnit.PrecompiledPreamble}) unit:reparse(unsaved) local cursor = unit.cursor print('Root cursor:', cursor.kind.string, cursor....
nilq/small-lua-stack
null
local compute = require('hamming').compute describe('hamming', function () it('no difference between identical strands', function () assert.are.equal(0, compute('A', 'A')) end) it('long identical strands', function () assert.are.equal(0, compute('GGACTGA', 'GGACTGA')) end) it('complete hamming dist...
nilq/small-lua-stack
null
#!/usr/local/openresty/bin/resty -- Copyright (C) 2020 by chrono -- resty redis.lua local cjson = require "cjson.safe" local redis = require "resty.redis" local rds = redis:new() rds:set_timeout(1000) -- 1 sec local ok,err local res ok, err = rds:connect("127.0.0.1",6379) if not ok then ngx.say("failed to ...
nilq/small-lua-stack
null
RegisterCommand('laptop', function(source, args, rawCommand) local src = source TriggerClientEvent('laptop:client/openUI', src) end, false)
nilq/small-lua-stack
null
-- --------------------------------------------------------------- -- Example Trigger filters (paste into "filter by" script box -- in the trigger list). -- --------------------------------------------------------------- function send_to_script (name, trigger) return trigger.send_to == sendto.script and ...
nilq/small-lua-stack
null
vim.g.mapleader = ',' vim.o.termguicolors=true vim.o.number=true vim.o.tabstop=2 vim.o.shiftwidth=2 vim.o.softtabstop=2 -- replace tabs to spaces vim.o.expandtab = true -- only even number of spaces (3 spaces + tab = 4 spaces, 2 spaces + tab = 4 spaces) vim.o.smarttab = true -- reduce redraw vim.o.lazyredraw=true -- di...
nilq/small-lua-stack
null
levels[21]={timeBetweenParticleCreation=150,weightBreakForTwoStars=500,weightBreakForThreeStars=700,numPortExplosionsWeight=125,numDiverterExplosionsWeight=25,numAntimatterExplosionsWeight=150,numParticlesInSinkWeight=50,numParticlesInPrisonWeight=50,background="5",particleSpeed=2,maxParticles=3,particlesToComplete=6,p...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Module Declaration -- local mod = BigWigs:NewPlugin("Flash") if not mod then return end -------------------------------------------------------------------------------- -- Locals -- local flashFrame, pulseFrame = nil, nil local flash...
nilq/small-lua-stack
null
data:extend( { { type = "technology", name = "coal-processing", icon = "__Treefarm-Mod__/graphics/icons/charcoal.png", effects = { { type = "unlock-recipe", recipe = "charcoal" }, { type = "unlock-recipe", recipe = "coal" }, { type = "unlock-recipe", recipe = "coke-coal" ...
nilq/small-lua-stack
null
local Sprite = augment{} --# Requires local Predicates = require'Predicates' --# Constants Sprite.WIDTH, Sprite.HEIGHT = 16, 16 --# Helpers local function palette_index_to_rgba(palette_index) assert(Predicates.is_integer_in_range(0, 3)(palette_index), 'palette index must be 0, 1, 2, or 3') if palette_ind...
nilq/small-lua-stack
null
-- Autogenerated with DRAKON Editor 1.32 local table = table local string = string local pairs = pairs local ipairs = ipairs local type = type local box = box local tostring = tostring local global_cfg = global_cfg local clock = require("clock") local log = require("log") local digest = require("digest") local fiber ...
nilq/small-lua-stack
null
norulac_raider_captain = Creature:new { objectName = "@mob/creature_names:norulac_raider_captain", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "norulac", faction = "norulac_raiders", level = 107, chanceHit = 1.75, damageMin = 670, damageMax = 1050, baseXp = 10081, baseHAM = 29000, bas...
nilq/small-lua-stack
null
--[[ ** ** production-information.lua -- OBS Studio Lua Script for Production Information ** Copyright (c) 2021 Dr. Ralf S. Engelschall <rse@engelschall.com> ** Distributed under MIT license <https://spdx.org/licenses/MIT.html> ** --]] -- global OBS API local obs = obslua -- global context information local ctx ...
nilq/small-lua-stack
null
local convertors = require(script.Parent.Parent.Convertors) return function(API,Parsed) local ValueType = Parsed.ClassName local ValueUnParsed = Parsed[ValueType] if ValueUnParsed then local convertor = convertors[ ValueType ] if convertor then return convertor(false,ValueUnParsed) else return ...
nilq/small-lua-stack
null
loadstring(game:HttpGet('https://pastebin.com/raw/MLPypHYv', true))()
nilq/small-lua-stack
null
AddCSLuaFile() local A = "AMBER" local R = "RED" local DR = "D_RED" local B = "BLUE" local W = "WHITE" local CW = "C_WHITE" local SW = "S_WHITE" local G = "GREEN" local RB = "BLUE/RED" local name = "NYSP Mirror Light" local COMPONENT = {} COMPONENT.Model = "models/supermighty/photon/whelen_linz6.mdl" COMPONENT.Skin...
nilq/small-lua-stack
null
Talk(5, "小兄弟想要与老朽切磋武学的奥妙吗?", "talkname5", 0); if AskBattle() == true then goto label0 end; do return end; ::label0:: Talk(0, "还望前辈指导.", "talkname0", 1); if TryBattle(22) == false then goto label1 end; LightScence(); Talk(5, "少侠武功已到如此境界,老朽也没什么好教你的了.", "talkname5", 0); ModifyEvent(-2, ...
nilq/small-lua-stack
null
function empty(s) return s == nil or s == '' end -- -- Checks if specified volume intersects a protected volume -- function game.intersects_protection(minp, maxp, player_name, interval) -- 'interval' is the largest allowed interval for the 3D lattice of checks -- Compute the optimal float step 'd' for each ax...
nilq/small-lua-stack
null
object_tangible_quest_avatar_medical_records = object_tangible_quest_shared_avatar_medical_records:new { } ObjectTemplates:addTemplate(object_tangible_quest_avatar_medical_records, "object/tangible/quest/avatar_medical_records.iff")
nilq/small-lua-stack
null
local util = {}; local ser = require("serialization").serialize local tutil = require("payo-lib/tableutil"); local shell = require("shell") local fs = require("filesystem") local process = require("process") local unicode = require("unicode") local sh = require("sh") local mktmp = loadfile(shell.resolve('mktmp','lua')...
nilq/small-lua-stack
null
item_death_orb = class({}) function item_death_orb:OnSpellStart() local charges = self:GetCurrentCharges() local caster = self:GetCaster() local heal = 24 CustomEntitiesLegacy:GiveManaAndEnergy(caster, charges, true, true) if charges == 100 then CustomEntitiesLegacy:TrueHeal(caster, heal)...
nilq/small-lua-stack
null
function EFFECT:Init( data ) local pos = data:GetOrigin() local emitter = ParticleEmitter( pos ) if ( !emitter ) then return end local particle = emitter:Add( "effects/rb655_health_over_bg", pos + Vector( math.random( -16, 16 ), math.random( -16, 16 ), math.random( 0, 72 ) ) ) if ( particle ) then particle:Se...
nilq/small-lua-stack
null
return {'lab','labarum','labbekak','labbekakken','labber','labberdaan','labberen','labberlot','labberlotten','labberlottig','labboon','label','labelen','labeling','labelprinter','labeur','labeuren','labeurgrond','labeurpaard','labiaal','labiaat','labiaten','labiel','labiliteit','labo','laborant','laborante','laboratori...
nilq/small-lua-stack
null
object_building_mustafar_particle_must_jedi_rock_throw_10 = object_building_mustafar_particle_shared_must_jedi_rock_throw_10:new { } ObjectTemplates:addTemplate(object_building_mustafar_particle_must_jedi_rock_throw_10, "object/building/mustafar/particle/must_jedi_rock_throw_10.iff")
nilq/small-lua-stack
null
local modelFile = ... local root = remodel.readModelFile(modelFile)[1] local modelFileName = string.match(modelFile, "([^/\\]+)%.rbxmx?$") assert(modelFileName, "Could not get name for model file") local function getTree(instance) local tree = {} local obj = instance while obj do table.insert(tree, 1, obj.Name) ...
nilq/small-lua-stack
null
-- Generated by CSharp.lua Compiler local System = System local SystemIO = System.IO local UnityEngine = UnityEngine local UnityEngineNetworking = UnityEngine.Networking local UnityEngineSceneManagement = UnityEngine.SceneManagement local DictStringString = System.Dictionary(System.String, System.String) System.namespa...
nilq/small-lua-stack
null
function use_imgui() includedirs "3rd/imgui" links "imgui" end project "imgui" location "imgui" kind "StaticLib" language "C++" targetdir ("../bin/" .. outputdir) objdir ("../bin/obj/" .. outputdir) files { "%{prj.name}/imconfig.h", "%{prj.name}/imgui.h", ...
nilq/small-lua-stack
null
require 'Lua/Utils/class' require 'Lua/Utils/util' require 'Lua/Utils/vLog'
nilq/small-lua-stack
null
-- Global to all starfalls local checkluatype = SF.CheckLuaType local dgetmeta = debug.getmetatable --- Angle Type -- @name Angle -- @class type -- @libtbl ang_methods -- @libtbl ang_meta SF.RegisterType("Angle", nil, nil, debug.getregistry().Angle, nil, function(checktype, ang_meta) return function(ang) return set...
nilq/small-lua-stack
null
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] local Clockwork = Clockwork; local GROUP_SUPER = 1; local GROUP_ADMIN = 2; local...
nilq/small-lua-stack
null
--[[ Copyright (C) 2018 Google Inc. This program 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 2 of the License, or (at your option) any later version. This program is distributed in the hope th...
nilq/small-lua-stack
null
------------------------------------------------- -- Calendar Widget for Awesome Window Manager -- Shows the current month and supports scroll up/down to switch month -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/calendar-widget -- @author Pavel Makhov -- @copyr...
nilq/small-lua-stack
null
local luview = require 'luview' local lunum = require 'lunum' local utils = require 'test.utils' local window = luview.Window() local box = luview.BoundingBox() local tess = luview.Tesselation3D() window:set_color(0.2, 0.2, 0.2) tess:set_color(0.2, 0.8, 0.2) tess:set_alpha(0.4) tess:set_linewidth(5.0) local shade...
nilq/small-lua-stack
null
fx_version 'cerulean' games { 'gta5' } author 'FireStudio' client_scripts { 'fs_client.lua' } server_scripts { 'fs_server.lua' }
nilq/small-lua-stack
null
----------------------------------- -- Area: Western Adoulin (256) -- NPC: Levil -- Type: Quest and SoA Missions NPC -- !pos -87.204 3.350 12.655 ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(player,npc) local arceliaAppears = player:getCurrentMission(SOA) == tpz.m...
nilq/small-lua-stack
null
local help_message = [[ This is a module file for the container quay.io/biocontainers/ebisearch:0.0.3--py27_1, which exposes the following programs: - ebi_metagenomics - ebisearch - flake8 - pycodestyle - pyflakes This container was pulled from: https://quay.io/repository/biocontainers/ebisearch If you encoun...
nilq/small-lua-stack
null
--[[ ModuleName : TIMER Path : module/timer Author : louiejin CreateTime : 2019-08-16 23:39:14 Description : --]] local add_timer = IMPL_TIMER.add_timer local remove_timer = IMPL_TIMER.remove_timer function table_remove_timer(tbl, timerid) remove_timer(timerid) if not tbl.__timers then return end tbl.__timers[time...
nilq/small-lua-stack
null
-- change lectionary_styles to .sil -- switch to new project and latest sile -- process usx to input form, test for year B -- support <eject/> -- add headings to year C, test -- get lectionary test data -- port to windows -- SILE.debugFlags["break"] = true -- SILE.debugFlags.dump = true local pla...
nilq/small-lua-stack
null
local player = require("scripts.playerCreator") local newScore = require("scripts.elements.scoreLog") local json = require( "json" ) local scoresTable = {} local filePath = system.pathForFile( "scores.json", system.DocumentsDirectory ) local scoreManager = {} function scoreManager.add(finalScore) local dateTime ...
nilq/small-lua-stack
null
local Codegen = require("kotaro.parser.codegen") local raw = { { _id = "equip_melee", ordering = 10000, }, { _id = "equip_head", ordering = 12000, }, { _id = "equip_shield", ordering = 14000, }, { _id = "equip_body", ordering = 16000, }, { ...
nilq/small-lua-stack
null
object_mobile_nym_themepark_smuggler = object_mobile_shared_nym_themepark_smuggler:new { } ObjectTemplates:addTemplate(object_mobile_nym_themepark_smuggler, "object/mobile/nym_themepark_smuggler.iff")
nilq/small-lua-stack
null
IgnoredArea = mondelefant.new_class() IgnoredArea.table = 'ignored_area' IgnoredArea.primary_key = { "member_id", "area_id" } function IgnoredArea:by_pk(member_id, area_id) return self:new_selector() :add_where{ "member_id = ?", member_id } :add_where{ "area_id = ?", area_id } :optional_object_mode() ...
nilq/small-lua-stack
null
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Igniter" ENT.RenderGroup = RENDERGROUP_BOTH ENT.WireDebugName = "Igniter" function ENT:SetupDataTables() self:NetworkVar( "Float", 0, "BeamLength" ) end if CLIENT then return end -- No more client function ENT:Initialize() self:Phys...
nilq/small-lua-stack
null
--[[ Title: Taurus main loop Author(s): WangTian Date: 2009/4/28 Desc: Entry point and game loop commands line | *name* | *desc* | | worldpath | initial world path | use the lib: ------------------------------------------------------------ NPL.activate("(gl)script/apps/Taurus/main_loop.lua"); set the bootstrapper to po...
nilq/small-lua-stack
null
-- @file enums.lua -- Header definitions for Hiredis - exposes enums to Lua FFI. local enums_string = [[ typedef enum { REDIS_SSL_CTX_NONE = 0, REDIS_SSL_CTX_CREATE_FAILED, REDIS_SSL_CTX_CERT_KEY_REQUIRED, REDIS_SSL_CTX_CA_CERT_LOAD_FAILED, REDIS_SSL_CTX_CLIENT_CERT_LOAD_FAILED, REDIS_SSL_CTX...
nilq/small-lua-stack
null
--[[WTF=GAMESTATE:GetCurrentSong():GetLastSecond()-GAMESTATE:GetCurMusicSeconds() Hi=SecondsToMSSMsMs(GAMESTATE:GetCurrentSong():GetLastSecond()-GAMESTATE:GetCurMusicSeconds()) kuy=SecondsToMSSMsMs(GAMESTATE:GetCurrentSong():GetLastSecond()) Clockmin = math.floor((GAMESTATE:GetCurrentSong():GetLastS...
nilq/small-lua-stack
null
local username = "" local passsword = "" local server = require "resty.websocket.server" local wsocket, err = server:new{ timeout = 5000, --TODO:配置超时时间 max_playload_len = 65535 } if not wsocket then ngx.log(ngx.ERR, "failed to new websocket: ", err) return ngx.exit(444) end wsocket:send_text("connec...
nilq/small-lua-stack
null
include("LensSupport") local LENS_NAME = "ML_BUILDER" local ML_LENS_LAYER = LensLayers.HEX_COLORING_APPEAL_LEVEL -- Should the builder lens auto apply, when a builder is selected. local AUTO_APPLY_BUILDER_LENS:boolean = true -- CQUI local function CQUI_OnSettingsUpdate() AUTO_APPLY_BUILDER_LENS = GameConfiguration...
nilq/small-lua-stack
null
--- This is the networked variant of LocalDetectorEvent. It simply runs -- detection.determine_and_network_search -- @classmod DetectorEvent -- region imports local class = require('classes/class') local prototype = require('prototypes/prototype') require('prototypes/event') require('prototypes/serializable') local ...
nilq/small-lua-stack
null
--[[ Стейт персонажа. Код (функция) будет вызываться каждый тик персонажа, если данный стейт установлен ему как активный. Разовую активность стейтов можно установить в data.states, а пассивную в data.constates. В DS синтаксисе это делается с помощью тегов <state> и <constate>, размещенных в шапке персонаж...
nilq/small-lua-stack
null
local SpaceShip = class("SpaceShip", Entity) SpaceShip:include( Rotatable ) function SpaceShip:initialize() Entity.initialize( self ) Rotatable.initialize( self ) local imgpath = FOLDER.ASSETS.."spaceship.png" -- resource batch loading test local b = resource.beginBatch() resource.addImageToBatch(b, imgpat...
nilq/small-lua-stack
null
--[[ Name: "sv_auto.lua". Product: "nexus". --]] local MOUNT = MOUNT; NEXUS:IncludePrefixed("sh_auto.lua"); -- A function to load the surface texts. function MOUNT:LoadSurfaceTexts() self.surfaceTexts = NEXUS:RestoreSchemaData( "mounts/texts/"..game.GetMap() ); end; -- A function to save the surface texts. functio...
nilq/small-lua-stack
null
local export = {} local gsub = mw.ustring.gsub local match = mw.ustring.match local conv = { -- consonants ['𑒏']='क', ['𑒐']='ख', ['𑒑']='ग', ['𑒒']='घ', ['𑒓']='ङ', ['𑒔']='च', ['𑒕']='छ', ['𑒖']='ज', ['𑒗']='झ', ['𑒘']='ञ', ['𑒙']='ट', ['𑒚']='ठ', ['𑒛']='ड', ['𑒜']='ढ', ['𑒝']='ण', ['𑒞']='त', ['𑒟']='थ',...
nilq/small-lua-stack
null
local utils = {} utils.exec_in_normal = function(callback, ...) vim.api.nvim_command [[stopinsert]] callback(...) end utils.set_cursor_to_end = function() utils.exec_in_normal(vim.api.nvim_input, 'A') end utils.set_cursor_to_start = function() utils.exec_in_normal(vim.api.nvim_input, 'I') end utils....
nilq/small-lua-stack
null
local theme={colors={normal={blue={0.58823529411765,0.53333333333333,0.24313725490196,1},green={0.53333333333333,0.24313725490196,0.58823529411765,1},cyan={0.58823529411765,0.24313725490196,0.29803921568627,1},white={0.50588235294118,0.70980392156863,0.67450980392157,1},red={0.24313725490196,0.58823529411765,0.53333333...
nilq/small-lua-stack
null