content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
newaction { trigger = "delete", description = "Remove all project files.", execute = function() print("Removing binaries...") os.rmdir("./bin") print("Removing intermediate binaries...") os.rmdir("./bin-int") print("Removing project files...") os.rmdir("./.vs") os.remove("**Makefile") os.remove("**.m...
nilq/small-lua-stack
null
StaticTableMgr = {} function StaticTableMgr:Init() local ConfigPath = Misc.GetBasePath() .. "/script/DataTable/"; local json_text = JsonUtil.file_load(ConfigPath.."RoomConfig.json") self._RoomConfig = Json.decode(json_text) end function StaticTableMgr:GetRoomConfigXml( room_type )...
nilq/small-lua-stack
null
require "scripts/library/timers" local ShopItems = { InitComplete = false; BuyingItem = false; ToolTip = nil; Items = {}; spawnTicketsDependencies = {}; spawnTicketsRequired = {}; CurrentInspectionItem = nil; CurrentShopPanelOpen = nil; UpdateComplete = false; shopId = nil; vector = nil; Properties = { ...
nilq/small-lua-stack
null
--REF: https://github.com/hrsh7th/nvim-cmp use 'neovim/nvim-lspconfig' use 'hrsh7th/cmp-nvim-lsp' use 'hrsh7th/cmp-buffer' use 'hrsh7th/cmp-path' use 'hrsh7th/cmp-cmdline' use 'hrsh7th/nvim-cmp'
nilq/small-lua-stack
null
Boost = GameObject:extend() function Boost:new(area, x, y, opts) Boost.super.new(self, area, x, y, opts) local direction = table.random({-1, 1}) self.x = gw/2 + direction*(gw/2 + 48) self.y = random(16, gh - 16) self.w, self.h = 12, 12 self.shape = HC.rectangle(self.x, self.y, self.w, self.h)...
nilq/small-lua-stack
null
function lure.dom.createHTMLImageElement() local self = lure.dom.nodeObj.new(1) --=================================================================== -- PROPERTIES = --=================================================================== self.tagName = "image"...
nilq/small-lua-stack
null
local SoftPlus = torch.class('nn.SoftPlus', 'nn.Module') function SoftPlus:updateOutput(input) return input.nn.SoftPlus_updateOutput(self, input) end function SoftPlus:updateGradInput(input, gradOutput) return input.nn.SoftPlus_updateGradInput(self, input, gradOutput) end
nilq/small-lua-stack
null
-- base16-nvim (https://github.com/wincent/base16-nvim) -- by Greg Hurrell (https://github.com/wincent) -- based on -- base16-vim (https://github.com/chriskempson/base16-vim) -- by Chris Kempson (http://chriskempson.com) -- Eva scheme by kjakapat (https://github.com/kjakapat) local gui00 = "2a3b4d" local gui01 = "3d56...
nilq/small-lua-stack
null
log("bobpower") regroup.group.insert_subgroups("energy", { "air-pump", "water-pump", "small-solar" }, "pump") regroup.group.insert_subgroups("energy", {"large-solar"}, "solar") regroup.group.insert_subgroups("energy", { "fast-accumulator", "capacity-accumulator" }, "accumulator") regroup.group.insert_subgroup...
nilq/small-lua-stack
null
local isDrinking = false function ActionDrink() local playerHorse = cAPI.GetPlayerHorse() TaskStartScenarioInPlace(playerHorse, GetHashKey("WORLD_ANIMAL_DONKEY_DRINK_GROUND"), 20000, true, false, false, false) isDrinking = true Citizen.CreateThread( function() while true do ...
nilq/small-lua-stack
null
local playsession = { {"exabyte", {35739}}, {"tykak", {251570}}, {"jackazzm", {251213}}, {"Cloudtv", {243700}}, {"iReed", {247382}}, {"HYPPS", {248826}}, {"toddrofls", {244958}}, {"mewmew", {235236}}, {"sergma33", {4576}}, {"Clythoris", {224341}}, {"Parkouralvoil", {109216}}, {"0x256", {3950}}, {"ManuelG",...
nilq/small-lua-stack
null
PrefabFiles = { "asparagus_ag", "asparagus_ag_cooked", "asparagus_ag_seeds", "bacon_asparagus_ag", } -- debug speed -- GLOBAL.TUNING.SEEDS_GROW_TIME = 5 -- Tweaks modimport "scripts/tweaks/plant_normal_tweak" local bacon_asparagus_recipe = GLOBAL.require("tweaks/bacon_asparagus_recipe") AddCookerRecipe("cookpot"...
nilq/small-lua-stack
null
local function universal_unpack (variable) if (type (variable) == "table") then return unpack (variable, 0, #variable) else return variable end end local function copy_animation_handlers (source) if not source then return {} end local result = {} for i = 1, #source, 1 do result [i] ...
nilq/small-lua-stack
null
local settings = {} ChangedProfile = false function init() connect(g_game, { onGameStart = online, onGameEnd = offline }) end function terminate() disconnect(g_game, { onGameStart = online, onGameEnd = offline }) end -- loads settings on character login function online() ChangedProfile = f...
nilq/small-lua-stack
null
local DogButton, super = Class(ActionButton) function DogButton:init() super:init(self, "dog") end function DogButton:update(dt) self:setColor(Utils.hslToRgb((love.timer.getTime()/2) % 1, 1, 0.5)) super:update(self, dt) end function DogButton:select() self:explode() Mod.dog_activated = false ...
nilq/small-lua-stack
null
local subpath = (...):match("(.-)[^%.]+$") local is = require (subpath.."is") local need = {} local function ensure(condition, depth, msg, ...) if condition then return end error((msg):format(...), depth) end local function ensure_property(condition, specific, id) if condition then return ...
nilq/small-lua-stack
null
--[[Author: YOLOSPAGHETTI Date: July 30, 2016 Triggers an aftershock when the caster casts a spell]] function Aftershock(keys) local caster = keys.caster local ability = keys.ability local aftershock_range = ability:GetLevelSpecialValueFor("aftershock_range", (ability:GetLevel() -1)) local tooltip_duration = abil...
nilq/small-lua-stack
null
leaderboard = {} leaderboard.FILE_ID = 1 leaderboard.DUMMY_DATA = [[*souris1,0,0,0,xx|*souris2,0,0,0,xx|*souris3,0,0,0,xx|*souris4,0,0,0,xx|*souris5,0,0,0,xx|*souris6,0,0,0,xx|*souris7,0,0,0,xx|*souris8,0,0,0,xx|*souris9,0,0,0,xx|*souris10,0,0,0,xx|*souris11,0,0,0,xx|*souris12,0,0,0,xx|*souris13,0,0,0,xx|*souris14,0,0...
nilq/small-lua-stack
null
local push = require("lib/push/push") local front1 = love.graphics.newImage("assets/bg/parallax_bg1.png") local front2 = love.graphics.newImage("assets/bg/parallax_bg1.png") local mid1 = love.graphics.newImage("assets/bg/parallax_bg2.png") local mid2 = love.graphics.newImage("assets/bg/parallax_bg2.png") local back1...
nilq/small-lua-stack
null
object_tangible_tcg_series4_decorative_medical_table_01 = object_tangible_tcg_series4_shared_decorative_medical_table_01:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series4_decorative_medical_table_01, "object/tangible/tcg/series4/decorative_medical_table_01.iff")
nilq/small-lua-stack
null
local automobilism = data.raw['technology']['automobilism'] table.insert(automobilism.effects, {type = 'unlock-recipe', recipe = 'street-car'}) table.insert(automobilism.effects, {type = 'unlock-recipe', recipe = 'street'})
nilq/small-lua-stack
null
-- hqnes.lua -- Load the hqnes library and adds ffi functions. local core local ffi = require "ffi" local ok,hqn = pcall(ffi.load, "hqnes") if not ok then error("Failed to load hqnes library. Did you forget to set LD_LIBRARY_PATH?") end -- Because ffi requires the library to be named libhqnes.so on some platforms...
nilq/small-lua-stack
null
mhf = require("schema_processor") unistd = require("posix.unistd"); local xml_string = [=[<?xml version="1.0" encoding="UTF-8"?> <ns1:choice_struct xmlns:ns1="http://test_example.com"> <one>1</one> <two>2</two> <three>3</three> </ns1:choice_struct>]=] choice_struct = mhf:get_message_handler("choice_struct", "ht...
nilq/small-lua-stack
null
local MSQ = LibStub("Masque", true) if not MSQ then return end -- ElvUIesque 'Always Show Action Bars' + backdrop MSQ:AddSkin("ElvUIesque", { Author = "lxxxv", Version = "6.0.0", Masque_Version = 60000, Shape = "Square", Backdrop = { Width = 38, Height = 38, Color = {1,1,1,1}, Texture = [[Int...
nilq/small-lua-stack
null
ShipTemplateBased = ShipTemplateBased or {} --- Add a storage. --- --- This is a storage system where one room exists for each product stored. So storing one product does not take space away from another storage space. --- @param self --- @param spaceObject ShipTemplateBased --- @param storages table[Product,number] c...
nilq/small-lua-stack
null
local F, C = unpack(select(2, ...)) tinsert(C.themes["FreeUI"], function() TaxiFramePortrait = TaxiPortrait TaxiFrameCloseButton = TaxiCloseButton F.ReskinPortraitFrame(TaxiFrame, 17, -8, -45, 82) end)
nilq/small-lua-stack
null
function onUpdate(elapsed) if curStep == 20 then started = true end songPos = getSongPosition() local currentBeat = (songPos/5000)*(curBpm/60) doTweenX('hi2', 'hi2.scale', 0 - 50*math.sin((currentBeat+1*0.1)*math.pi), 6) doTweenY('hi2', 'hi2.scale', 0 - 31*math.sin((currentBeat+1*1)*math.pi), 6) end
nilq/small-lua-stack
null
object_tangible_loot_generic_usable_crystal_generic = object_tangible_loot_generic_usable_shared_crystal_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_generic_usable_crystal_generic, "object/tangible/loot/generic/usable/crystal_generic.iff")
nilq/small-lua-stack
null
ESX = {} ESX.PlayerData = {} ESX.PlayerLoaded = false ESX.CurrentRequestId = 0 ESX.ServerCallbacks = {} ESX.TimeoutCallbacks = {} ESX.UI = {} ESX.UI.HUD = {} ESX.UI.HUD.RegisteredElements = {} ES...
nilq/small-lua-stack
null
local gfx = require "kite.graphics" local timer = require "kite.timer" local transform_attr = {x=true, y=true, width=true, height=true, xscale=true, yscale=true, angle=true} local function try(o, method, ...) local f = o[method] if f then return f(...) end end local CURSOR_WIDTH = 1 -- 光标宽 1px local CURSOR_SPAC...
nilq/small-lua-stack
null
package("poppler") set_homepage("https://poppler.freedesktop.org/") set_description("Poppler, a PDF rendering library") set_license("GPL-2.0") add_urls("https://poppler.freedesktop.org/poppler-$(version).tar.xz") add_versions("21.03.0", "fd51ead4aac1d2f4684fa6e7b0ec06f0233ed21667e720a4e817e4455dd6...
nilq/small-lua-stack
null
object_tangible_loot_creature_loot_collections_imp_t1_snow_trooper = object_tangible_loot_creature_loot_collections_shared_imp_t1_snow_trooper:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_imp_t1_snow_trooper, "object/tangible/loot/creature/loot/collections/imp_t1_snow_trooper.iff...
nilq/small-lua-stack
null
local json = require "json" local button_name = "generate-data-raw-file" local initialized = false local function go() local count = game.entity_prototypes["DATA_RAW_COUNT"].order local data_chunks = {} for index = 1,count do table.insert( data_chunks, game.entity_prototy...
nilq/small-lua-stack
null
local Luna = assert(foundation.com.Luna) local Changeset = yatm_core.Changeset local case = Luna:new("yatm_core-Changeset") local schema = { int = { type = "integer" } } case:describe(":new", function (d) d:test("can initialize a new changeset", function (t) Changeset:new(schema, {}) end) end)
nilq/small-lua-stack
null
--Borrowed from djkson: http://chiselapp.com/user/dhkolf/repository/dkjson/home -- --*Copyright (C) 2010, 2011 David Heiko Kolf* -- --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 res...
nilq/small-lua-stack
null
Blips = { { Label = "Commissariat", Sprite = 60, Color = 3, Coords = vector3(431.88131713867, -981.63952636719, 30.695190429688), }, { Label = "Hôpital", Sprite = 61, Color = 2, Coords = vector3(365.10330200195, -591.66595458984, 28.69006347656...
nilq/small-lua-stack
null
-- Copyright 2006-2021 Mitchell. See LICENSE. -- Light theme for Scintillua. -- Contributions by Ana Balan. local lexer = require('lexer') local colors, styles = lexer.colors, lexer.styles -- Greyscale colors. colors.dark_black = '#000000' colors.black = '#1A1A1A' colors.light_black = '#333333' colors.grey_black = '#...
nilq/small-lua-stack
null
local tag = "personal_godmode" if SERVER then local modes = { [0] = function(ply, attacker, allowFriends, noFallDmg) -- mortal if attacker:IsPlayer() and attacker:IsFriend(ply) then return allowFriends end return true end, [1] = function(ply, attacker, allowFriends, noFallDmg) -- godmode if att...
nilq/small-lua-stack
null
---- -- Handles console functionality. -- -- Currently doesn't do much except having a helper which extends a `ConsoleScreen` to add new word -- prediction dictionaries (auto-complete) to the console input field: -- -- SDK.Console.AddWordPredictionDictionaries({ -- { delim = "SDK.", num_chars = 0, words = {...
nilq/small-lua-stack
null
local furnace = util.copy(data.raw["furnace"]["steel-furnace"]) furnace.name = "blast-furnace" furnace.crafting_categories = {"blast-smelting"} furnace.energy_source = { type = "burner", fuel_category = "coke", fuel_inventory_size = 1 } furnace.fluid_boxes = { { base_area = 2, height = 2, ...
nilq/small-lua-stack
null
---@class RoomConfig.Room @ local Room = {} -------------------- -- Variables -------------------- ---@type Difficulty @(member) Room.Difficulty = nil --- Returns a bit mask of the positions of the doors in this room. It is a combination of bit flags of the DoorSlotFlag enum, which is defined as follows: --- --- ``...
nilq/small-lua-stack
null
rori_destroy_missions = { minLevelCeiling = 25, lairSpawns = { { lairTemplateName = "rori_borgal_young_lair_neutral_small", minDifficulty = 4, maxDifficulty = 8, size = 20, }, { lairTemplateName = "rori_capper_spineflap_hive_neutral_large", minDifficulty = 4, maxDifficulty = 8, size = 2...
nilq/small-lua-stack
null
function slot3() slot2 = fishgame.Fish return fishgame.Fish.Create(slot1) end FishingJoyFishAndroid = class(slot1, "FishingJoyFishAndroid") FishingJoyFishAndroid.ctor = function (slot0) slot0.appendEffectContainer = {} if slot0.SetHitFishColor ~= nil then slot3 = slot0 slot8 = 209 slot0.SetHitFishColor(s...
nilq/small-lua-stack
null
local L = BigWigs:NewBossLocale("Ozumat", "zhCN") if not L then return end if L then L.custom_on_autotalk = "自动对话" L.custom_on_autotalk_desc = "立即选择对话选项开始战斗。" end
nilq/small-lua-stack
null
local Draw = require("api.Draw") local ISettable = require("api.gui.ISettable") local IUiWidget = require("api.gui.IUiWidget") local UiTheme = require("api.gui.UiTheme") local UiBar = class.class("UiBar", {IUiWidget, ISettable}) function UiBar:init(bar_kind, max, value, show_digit) value = value or max self.ba...
nilq/small-lua-stack
null
local t, u, v, i = f() local x, y, z = t[i] or 1, u[i] or 2, v[i] or 3 print(x, y, z)
nilq/small-lua-stack
null
function blockexchange.protectioncheck(playername, pos1, pos2, schemaname) local total_parts = blockexchange.count_schemaparts(pos1, pos2) local iterator = blockexchange.iterator(pos1, pos1, pos2) local ctx = { playername = playername, pos1 = pos1, pos2 = pos2, iterator = iterator, current_p...
nilq/small-lua-stack
null
require('tabline').setup()
nilq/small-lua-stack
null
local type = type local assert = assert local setmetatable = setmetatable local strsub = string.sub local strbyte = string.byte local strfind = string.find local strfmt = string.format local strmatch = string.match local tconcat = table.concat -- C版实现 local encode = require("crypt").urlencode local decode = require(...
nilq/small-lua-stack
null
rare_vehicles = { description = "", minimumLevel = 0, maximumLevel = 0, lootItems = { {itemTemplate = "barc_vehicle_schematic", weight = 5000000}, {itemTemplate = "flare_s_vehicle_schematic", weight = 5000000}, } } addLootGroupTemplate("rare_vehicles", rare_vehicles)
nilq/small-lua-stack
null
-- Copyright (c) 2019, Sam Lu include("karaskel.lua") local regexutil = require("aegisub.re") local util = require("aegisub.util") local interop = require("chatroomeffect.interop") local layoututil = require("chatroomeffect.layoututil") local plugin = require("chatroomeffect.plugin") require("chatroomeffect.util") sc...
nilq/small-lua-stack
null
plc_prompt = plc_prompt or {} local function init_config() -- Priority for segment. plc_prompt.priority = plc_prompt.priority or plc_prompt_priority or 55 -- Colors for segment. plc_prompt.textColor = plc_prompt.textColor or plc_prompt_textColor or colorWhite plc_prompt.fillColor = plc_prompt.fill...
nilq/small-lua-stack
null
local msg = require "toy.logger" local bfs = require "toy.path" local txt = require "toy.txtio" local bug = require "toy.debug" local aux = require "toy.file._check" local function make_sure_folder_ok(target) local path = bfs.create_path(target):parent() if bfs.exists(path) then if bfs.is_folder(path)...
nilq/small-lua-stack
null
ACF.RegisterWeaponClass("AL", { Name = "Autoloader", Description = "A cannon with attached autoloading mechanism. While it allows for several quick shots, the mechanism adds considerable bulk, weight, and magazine reload time.", MuzzleFlash = "cannon_muzzleflash_noscale", Spread = 0.08, Sound = "acf_b...
nilq/small-lua-stack
null
local nvim_lsp = require('lspconfig') local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities.textDocument.completion.completionItem.snippetSupport = true local on_attach = function(client, bufnr) local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end local function b...
nilq/small-lua-stack
null
local L = LibStub("AceLocale-3.0"):NewLocale("SimpleInfo", "zhCN",true) if not L then return end L["qian"] = "%.1f千"; L["wan"] = "%.1f万"; L["baiwan"] = "%.1f百万"; L["YOU"] = "你"; L["Move Text"] = "左键-拖动位置\n右键-锁定位置";
nilq/small-lua-stack
null
if not modules then modules = { } end modules ['luatex-fonts-demo-vf-1'] = { version = 1.001, comment = "companion to luatex-*.tex", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files", } local ide...
nilq/small-lua-stack
null
-- -- vs200x_vcproj.lua -- Generate a Visual Studio 2002-2008 C/C++ project. -- Copyright (c) 2009, 2010 Jason Perkins and the Premake project -- premake.vstudio.vcproj = { } local vcproj = premake.vstudio.vcproj -- -- Write out the <Configuration> element. -- function vcproj.Configuration(name, cfg) _p(2,'<Conf...
nilq/small-lua-stack
null
--= CHANGED TenPlus1 (moreores tin is now default steel, moreores silver is now copper, removed Moreores dependancy) -- Home Computer minetest.register_craft({ output = "cryptocoins:home_computer"; recipe = { { "cryptocoins:home_computer_powersupply", "cryptocoins:ribbonwire", "cryptocoins:home_compu...
nilq/small-lua-stack
null
testLogger = optim.Logger(paths.concat(opt.save, 'test.log')) local batchNumber local top1_center, loss local timer = torch.Timer() function test() print('==> doing epoch on validation data:') print("==> online epoch # " .. epoch) batchNumber = 0 cutorch.synchronize() timer:reset() -- set the dro...
nilq/small-lua-stack
null
package("frozen") set_kind("library", {headeronly = true}) set_homepage("https://github.com/serge-sans-paille/frozen") set_description("A header-only, constexpr alternative to gperf for C++14 users") set_license("Apache-2.0") set_urls("https://github.com/serge-sans-paille/frozen/archive/refs/tags/...
nilq/small-lua-stack
null
--Input classes, mostly used in the editor and MenuUI. --TODO: Expand/Write guide. local InputUtils = {} BeardLib.Utils.Input = InputUtils function InputUtils:Class() return Input:keyboard() end function InputUtils:Id(str) return str:id() end --Keyboard function InputUtils:Down(key) return self:Class():down(self:Id(k...
nilq/small-lua-stack
null
empty_glyph = Glyph(glyphs.NO_CHARACTER, glyphs.DEFAULT_FG, glyphs.DEFAULT_BG) function BoxObject(_position, _size) local self = { obj = Object(_position, _size), fill = empty_glyph, outline = empty_glyph, has_outline = false } local _setData = function() local w = self.obj.size.x for k = 1, #self....
nilq/small-lua-stack
null
function vRP.getHunger(user_id) local data = vRP.getUserDataTable(user_id) if data then return data.hunger end return 0 end function vRP.getThirst(user_id) local data = vRP.getUserDataTable(user_id) if data then return data.thirst end return 0 end function vRP.setHunger(user_id,value) loca...
nilq/small-lua-stack
null
ESX = nil TriggerEvent("esx:getSharedObject", function(obj) ESX = obj end) RegisterServerEvent("daokhi:update") AddEventHandler("daokhi:update", function(id, player, killer, DeathReason, Weapon) local _source = source local xPlayer = ESX.GetPlayerFromId(_source) local yPlayer = ESX.GetPlayerFromId...
nilq/small-lua-stack
null
local name = "rustup" local version = "1.11.0" food = { name = name, description = "The Rust toolchain installer", homepage = "https://rustup.rs/", version = version, packages = { { os = "darwin", arch = "amd64", url = "https://static.rust-lang.org/rustup...
nilq/small-lua-stack
null
PACK = { chairs = {"default","red","blue","yellow","green","white","fire","water","earth","air","rainbow","wood","stone","gold","diamond","king","luck","angel","junky","shaman","beach","cine","hell","cards","candy","cheese","fraise","illuminati","gift","bog","got","hamburguer","skull","school","time","pencil","chess",...
nilq/small-lua-stack
null
target("injection") set_kind("static") add_includedirs("../src/libinjection/src", {public=true}) add_files("../src/libinjection/src/*.c|test*.c|example*.c")
nilq/small-lua-stack
null
local pathwatcher = require "hs.pathwatcher" local alert = require "hs.alert" -- http://www.hammerspoon.org/go/#fancyreload -- add test comments function reloadConfig(files) doReload = false for _, file in pairs(files) do if file:sub(-4) == ".lua" then doReload = true end end if doReload then hs.reload() ...
nilq/small-lua-stack
null
local st = require "util.stanza"; function riddim.plugins.uptime(bot) bot.stream:add_plugin("uptime"); bot.stream.uptime:set{ starttime = os.time(); }; bot:hook("commands/uptime", function (command) local who, param = bot.stream.jid, command.param; local reply_prefix = "I have been running for "; if param...
nilq/small-lua-stack
null
-- we need to set dimensions for SVG images produced by \Picture commands local log = logging.new "odtsvg" local function get_svg_dimensions(filename) local width, height log:debug("file exists", filename, mkutils.file_exists(filename)) if mkutils.file_exists(filename) then for line in io.lines(filename) do...
nilq/small-lua-stack
null
Hooks:PreHook(CrimeSpreeContractMenuComponent, "_setup_new_crime_spree", "SetDesiredCSL", function(self, ...) local b_d = "easy_wish" tweak_data.crime_spree.base_difficulty = b_d end )
nilq/small-lua-stack
null
local Object=require("object") local L=require("lib") Row = Object:new{cells, _dom, best=false} ------------------------------------------------- -- ## Row Methods function Row:has(data, y,z) local t={} for _,head in pairs(data[y][z]) do t[ head.txt ] = self.cells[head.pos] end return t end -- ### Row:dom(...
nilq/small-lua-stack
null
return { sphere = geom.sphere(0.5):volume() }
nilq/small-lua-stack
null
-- Objective Lua runtime -- © 2009 David Given -- This program is licensed under the MIT public license. -- -- WARNING! -- This is a TOY! -- Do not use this program for anything useful! -- -- This file provides the runtime support needed for Objective Lua programs -- to work. There's nothing complex here; it's based on...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: wenshengping -- Date: 16/5/13 -- Time: 15:15 -- To change this template use File | Settings | File Templates. -- local log = {} return log
nilq/small-lua-stack
null
---@class entity entity = {} ---@class Peds Peds = setmetatable({}, Peds) Peds.__index = Peds Peds.__call = function() return true end ---createPed ---@param Hash string ---@param Pos number ---@return Peds ---@public function entity:createPed(Hash, Pos) local self = {} RequestModel(Hash)...
nilq/small-lua-stack
null
-- basic SWEP.PrintName = "QuickHealth" SWEP.Author = "TheAndrew61" SWEP.Instructions = "Give yourself some health when you need it!" SWEP.Category = "TheAndrew61's SWEPs" SWEP.Spawnable = true SWEP.AdminOnly = true SWEP.DrawWeaponInfoBox = true if CLIENT then SWEP.DrawAmmo = false SWEP.DrawCrosshair...
nilq/small-lua-stack
null
include("shared.lua") ENT.TextColors = { OtherToSelf = Color(0, 255, 0, 255), SelfToSelf = Color(255, 255, 0, 255), SelfToOther = Color(0, 0, 255, 255), OtherToOther = Color(255, 0, 0, 255) } function ENT:Draw() self:DrawModel() local owner = self:Getowning_ent() local recipient = self:Ge...
nilq/small-lua-stack
null
DEVICEGROUP.type = "storage_liquid_nitrogen" --[[ You can also use skin = number here to define a skin to make the Module spawn with You can also use material = "path/to/material" to set a material to make it spawn with ]] DEVICEGROUP.devices = { add_one = { Name = "CE Small Liquid Nitrogen Storage", ...
nilq/small-lua-stack
null
local Board = require 'board' local led = require 'led' local shader = require 'shader' local DEBUG_backBumper = false -- Set this to "true" and the ball will bounce back instead of dying -- Oculus Go uses a fixed camera position, so we have to change where things are drawn local fixedCamera = lovr.headset.getName() ...
nilq/small-lua-stack
null
--[[ README: goto my repository https://github.com/zhang-changwei/Automation-scripts-for-Aegisub for the latest version Font Resizing (Mocha Deshaking) Feature: Desize the \fs and correspondingly Amplify the \fscx \fscy to make the size of text seemingly the same. Now \fs \fscx \fscy \fsc \fsp supported. e.g. \fs50...
nilq/small-lua-stack
null
-- Test the re-indent (=<motion>) -- For now test with XML - add others as needed! test.open('wrap.txt') local assertEq = test.assertEq local colno, lineno = test.colno, test.lineno assertEq(buffer.current_pos, 1) -- Wrap the first line. test.keys('gql') assertEq(buffer:get_line(1), 'this\n') assertEq(colno(), 0) ass...
nilq/small-lua-stack
null
local M = {} M.bounds_min = vmath.vector3(-0.299575001001, -0.405375003815, -0.125) M.bounds_max = vmath.vector3(0.299575001001, 0.405375003815, 0.125) M.size = vmath.vector3(0.599150002003, 0.810750007629, 0.25) return M
nilq/small-lua-stack
null
Locales['en'] = { -- regulars ['duty'] = '~g~Press ~r~[E]~g~ - Duty Management.', ['onduty'] = 'You are in duty', ['offduty'] = 'You are offduty', }
nilq/small-lua-stack
null
always_load('freesurfer') local version = myModuleVersion() local scripts_base = "/vf/users/MEGmodules/modules/tms_meg_code" .. version .. "_extras" local env_base = "/vf/users/MEGmodules/modules/tms_meg_code" .. version family("tms_meg_scripts") prepend_path("PATH", scripts_base) prepend_path("PATH", pathJoin(env_bas...
nilq/small-lua-stack
null
-- taken from nanomsg's reqrep.c local busted = require("busted") local nml = require'nml'.core local sym = {AF_SP=-1, NN_REQ=-1} local s local eid local rc -- locate the constants from the symbol lookup describe("symbol loading", function() local found=true local i=0 while found do found= nml.symbolinfo(i) i...
nilq/small-lua-stack
null
local arg_schema_checker = require('acid.arg_schema_checker') local strutil = require('acid.strutil') local tableutil = require('acid.tableutil') local to_str = strutil.to_str local string_format = string.format local _M = {} local function build_any_schema() local schema = { ['type'] = 'any', } ...
nilq/small-lua-stack
null
return Def.ActorFrame{ LoadActor("base")..{ InitCommand=cmd(FullScreen;diffusealpha,0) }; };
nilq/small-lua-stack
null
local SkillFlag = require("core.SkillFlag") local SkillType = require("core.SkillType") local sfmt = string.format local interval = 2 * 60; local threshold = 30; local restorePercent = 50; -- -- Basic warrior passive return { name = "Second Wind", type = SkillT...
nilq/small-lua-stack
null
-- -- The Perks section defines perks in groups of their respective skills. -- -- When you save the spec with default options, it will only contain purchased perks. -- You can enable the option to save all perks even with level zero. -- -- The names of the perks are as close as possible to the in-game names. -- Each pe...
nilq/small-lua-stack
null
-- https://github.com/denglf/FormatLua local a = "你好" local b function set_text(name, value) local doc = document:getElementsByName(name) if doc and #doc > 0 then doc[1]:setPropertyByName("text", value) end end return b
nilq/small-lua-stack
null
Cmd [[set completeopt=menuone,noinsert,noselect]] local has_words_before = function() local line, col = unpack(vim.api.nvim_win_get_cursor(0)) return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match '%s' == nil end local luasnip = require 'luasnip' local cmp = require 'cmp' ...
nilq/small-lua-stack
null
AddCSLuaFile(); SWEP.Base = "weapon_cc_base"; SWEP.PrintName = ".357 Magnum"; SWEP.Slot = 2; SWEP.SlotPos = 3; SWEP.UseHands = true; SWEP.ViewModel = "models/weapons/c_357.mdl"; SWEP.WorldModel = "models/weapons/w_357.mdl"; SWEP.Firearm = true; SWEP.Primary.ClipSize = 6; SWEP.Primary.DefaultClip ...
nilq/small-lua-stack
null
local stone_cbox = { type = 'fixed', fixed = { {-0.5, -0.5, -0.5, 0.5, -0.375, 0.5}, } } local sstone_cbox = { type = 'fixed', fixed = { {-0.5, -0.5, -0.5, 0.5, 0.4375, 0.5}, } } local sq_cbox = { type = 'fixed', fixed = { {-0.4375, -0.5, -0.4375, 0.4375, -0.3125, 0.4375}, {-0.5, -0.5, -0...
nilq/small-lua-stack
null
EditorHeat = EditorHeat or class(MissionScriptEditor) function EditorHeat:create_element() self.super.create_element(self) self._element.class = "ElementHeat" self._element.values.points = 0 self._element.values.level = 0 end function EditorHeat:_build_panel() self:_create_panel() self:NumberCtrl("points...
nilq/small-lua-stack
null
AttachListener=function(a,b,c) if a.eventList==nil then a.eventList={} end if a.eventList[b]==nil then a.eventList[b]={} end table.insert(a.eventList[b],c) return #a.eventList[b] end CreateTab=function(id,headerObj,pageObj,tabType,bAttr) local tab={ ID=id, headerObj=headerObj, pageObj=pageObj, type=tabType, eventList={...
nilq/small-lua-stack
null
local PART = {} PART.ClassName = "info" PART.NonPhysical = true PART.Group = '' PART.Icon = 'icon16/help.png' pac.StartStorableVars() pac.GetSet(PART, "SpawnEntity", "") pac.GetSet(PART, "UserData", "") pac.EndStorableVars()
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: seletz -- Date: 21.02.18 -- Time: 19:13 -- To change this template use File | Settings | File Templates. -- HP = GameObject:extend() function HP:new(area, x, y, opts) HP.super.new(self, area, x, y, opts) local direction = utils.table.random({-1, 1}) self.x = gw/2 ...
nilq/small-lua-stack
null
local C = LuaModManager.Constants LuaModManager.Constants._keybinds_menu_id = "base_keybinds_menu" local keybinds_menu_id = C._keybinds_menu_id local display_keybinds_menu = false local set_keybind_time = 0 local keybind_set_delay = 0.5 -- Keybinds Menu Hooks:Add("MenuManager_Base_SetupModOptionsMenu", "Base_SetupKe...
nilq/small-lua-stack
null