content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local widget = require( "widget" ) local composer = require( "composer" ) local json = require ("json") local loadsave = require( "loadsave" ) local myData = require ("mydata") local crewLogsTutScene = composer.newScene() local tutPage=1 --------------------------------------------------------------------------------- ...
nilq/small-lua-stack
null
package.path = "../?.lua;"..package.path local octetstream = require("wordplay.octetstream") local mmap = require("wordplay.mmap") local json_common = require("json_common") local TokenType = json_common.TokenType local JSONVM = require("json_vm") local collections = require("wordplay.collections") local stack = coll...
nilq/small-lua-stack
null
--[[ GD50 Legend of Zelda Author: Colton Ogden cogden@cs50.harvard.edu ]] GameObject = Class{} function GameObject:init(def, x, y) -- string identifying this object type self.type = def.type self.texture = def.texture self.frame = def.frame or 1 -- whether it acts as an obstacle or not self.solid = def.s...
nilq/small-lua-stack
null
local Log = require("uic/log"); local Components = require("uic/components"); local Util = {}; --# assume Util: UTIL local ComponentsMapped = {} --: map<string, COMPONENT_TYPE> function Util.init() local root = core:get_ui_root(); root:CreateComponent("Garbage", "UI/campaign ui/script_dummy"); local comp...
nilq/small-lua-stack
null
--[[-- id_string = request.get_id_string() Returns the requested id for a view as a string (unprocessed). Use param.get_id(...) to get a processed version. --]]-- function request.get_id_string() return request._route.id end
nilq/small-lua-stack
null
-- ================= -- HIGHLIGHT FACTORY -- ================= -- Created by datwaft <github.com/datwaft> -- ======== -- Preamble -- ======== -- Extraction from utils local titlecase = require'bubbly.utils.string'.titlecase local highlight = require'bubbly.utils.highlight'.highlight local hlparser = requir...
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
local function create_bonus_entity(base_entity, bonus) -- Ignore this mod's entities if base_entity.name:sub(1, 18) == "burner-fuel-bonus-" then return end -- Check for duplicates local name = "burner-fuel-bonus-" .. base_entity.name .. "-x" .. bonus if data.raw[base_entity.type][name] then return ...
nilq/small-lua-stack
null
local octet = require'octet' function zentype(data) if(type(data):sub(1,7) == "zenroom") then return true else return false end end -- implicit functions to convert both ways function hex(data) if (type(data) == "string") then return octet.hex(data) elseif(type(data) == "zenroom.octet") then ...
nilq/small-lua-stack
null
--[[ Copyright (c) 2015 raksoras Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subl...
nilq/small-lua-stack
null
local base = require('imgui.Widget') ---@class im.SelectableGroup:im.Widget local M = class('im.SelectableGroup', base) function M:ctor(labels, current, flags, sizes) assert(#labels > 0) self._labels = labels self._cur = current self._flags = {} if flags then if type(flags) == 'number' the...
nilq/small-lua-stack
null
require 'paths' require 'sys' cmd = torch.CmdLine() cmd:text() cmd:text('Options:') cmd:option('-inputDir', '', "The directory to read the results from. The input directory contains other directories for each category (e.g. airplane, car etc).") cmd:option('-outputDir', '', "The directory to output the .ply files") c...
nilq/small-lua-stack
null
#!/usr/bin/lua5.3 -- Euler1 in Lua function euler(n, acc) if n == 1 then return acc end if n%3 == 0 or n%5 == 0 then return euler(n-1, acc+n) end return euler(n-1, acc) end function euler1(n) return euler(n, 0) end print (string.format("Euler1 = %d", euler1(999)))
nilq/small-lua-stack
null
do function get_last_id() local res,code = https.request("http://xkcd.com/info.0.json") if code ~= 200 then return "HTTP ERROR" end local data = json:decode(res) return data.num end function get_xkcd(id) local res,code = http.request("http://xkcd.com/"..id.."/info.0.json") if code ~= 200...
nilq/small-lua-stack
null
--[[ Copyright 2021 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
nilq/small-lua-stack
null
local BAD_LIQUIDS = { plastic_molten = true, plastic_prop_molten = true, plaastic_red_molten = true } local LIQUIDS = {} for _, v in ipairs(CellFactory_GetAllLiquids()) do if not BAD_LIQUIDS[v] then table.insert(LIQUIDS, {v, resolve_localized_name("$mat_" .. v)}) end end -- Note here we ma...
nilq/small-lua-stack
null
--giveRescuerScore addEvent("giveRescuerScore", true) function score( ammount) exports.CSGscore:givePlayerScore(source, ammount) end addEventHandler("giveRescuerScore", getRootElement(), score) addEvent("giveRescuerMoney", true) function money( ammount) ---givePlayerMoney(source, ammount) exports.CSGranks:addStat(s...
nilq/small-lua-stack
null
wait(); local ta1 = 5; Player = game:GetService("Players") me = Player.kash5 char = me.Character Modelname = "SwordV10" local HIT = false local DMG = 200 local AIM = false local Trans = false Busy = false Onfire = false torso = char.Torso neck = torso.Neck hum = char.Humanoid rightarm = char["Right Arm"] leftarm = ch...
nilq/small-lua-stack
null
---@class lstg.keycode local M = {} ---@class lstg.keycode.Keyboard local Keyboard = { NULL=0x00, LBUTTON=0x01, RBUTTON=0x02, MBUTTON=0x04, ESCAPE=0x1B, BACKSPACE=0x08, TAB=0x09, ENTER=0x0D, SPACE=0x20, SHIFT=0x10, CTRL=0x11, ALT=0x12, LWIN=0x5B, ...
nilq/small-lua-stack
null
--[=[ Generic IsA interface for Lua classes. @class IsAMixin ]=] local IsAMixin = {} --[=[ Adds the IsA function to a class and all descendants @param class table ]=] function IsAMixin:Add(class) assert(not class.IsA, "class already has an IsA method") assert(not class.CustomIsA, "class already has an CustomIsA...
nilq/small-lua-stack
null
SpatialBatchNormalization_nc, _ = torch.class('nn.SpatialBatchNormalization_nc', 'nn.SpatialBatchNormalization') function SpatialBatchNormalization_nc:updateGradInput(input, gradOutput) assert(input:dim() == 4, 'only mini-batch supported') assert(gradOutput:dim() == 4, 'only mini-batch supported') assert(self...
nilq/small-lua-stack
null
local lor = require("lor.index") local redis_pool = require("app.config.config").redis_pool local redis_group = require("app.config.config").redis_group local pagination = require("app.config.config").pagination local http_model = require("app.models.http") local redis_model = require("app.models.redis") local redisRou...
nilq/small-lua-stack
null
-- -- Lua version parse file. -- -- @filename Version.lua -- @copyright Copyright (c) 2015 Yaukey/yaukeywang/WangYaoqi (yaukeywang@gmail.com) all rights reserved. -- @license The MIT License (MIT) -- @author Yaukey -- @date 2015-06-08 -- -- Get global declare. local YwDeclare = require "Base/YwGlobal" -- G...
nilq/small-lua-stack
null
local Clojure = {} local h = require("helpers") local map = h.map local types = {} -- ------------------------------------------ -- -- Use Tree-Sitter to parse Clojure Code into -- -- a Lua datastructure -- -- ------------------------------------------ -- local concat = function(tbl, separator) ...
nilq/small-lua-stack
null
function love.conf(t) t.window.title = "platformer-example" end
nilq/small-lua-stack
null
-- scaffolding entry point for webp-wic-codec return dofile("webp-wic-codec.lua")
nilq/small-lua-stack
null
require("directories") require("gmodlib") require("asmlib") local common = require("common") local asmlib = trackasmlib asmlib.InitBase("track", "assembly") asmlib.SetOpVar("MODE_DATABASE", "LUA") asmlib.SetOpVar("DATE_FORMAT","%d-%m-%y") asmlib.SetOpVar("TIME_FORMAT","%H:%M:%S") asmlib.SetIndexes("V",1,2,3)...
nilq/small-lua-stack
null
require "paflua" paf.pafcore.System.LoadDLL("LuaNamepipeServer.dll") local nps = paf.Namepipe.Server() local nps_skynet = nps:CheckServerProcessExist("skynet.exe")._ --print(tostring(nps_mpn)) return nps_skynet
nilq/small-lua-stack
null
--lib --cpp้กน็›ฎ็ผบ็œๆ‰ฉๅฑ•ๅ DEF_CPP_EXT_LS={"cpp","cc","h", "hpp", "txt", "lua"} local action = _ACTION or "" local outdir = action function WorkSpaceInit(name) workspace(name) configurations { "Debug", --"Release" } location (outdir) end --่ทฏๅพ„ๅˆ—่กจๅŠ ๅ…ฅๆ‰ฉๅฑ•ๅๅˆ—่กจ --ๆฏ”ๅฆ‚๏ผš --[[ path_list={ "../lib_prj/**"} ext_ls={"cp...
nilq/small-lua-stack
null
local M = {} M.config = function() local status_ok, tabout = pcall(require, "tabout") if not status_ok then return end tabout.setup { completion = false, ignore_beginning = false, tabouts = { { open = "'", close = "'" }, { open = '"', close = '"'...
nilq/small-lua-stack
null
local noise = require("noise") -- From the core mod if settings.startup['ctg-enable'].value and settings.startup['ctg-remove-default-water'].value then -- Note sure what probability_expression does. Setting it to zero does not turn off water. local nowater = { probability_expression = noise.to_nois...
nilq/small-lua-stack
null
local commandHandler = require("../commandHandler") local utils = require("../miscUtils") return { name = "avatar", description = "Show a user's avatar in full size.", usage = "avatar <user ID or ping>", visible = true, permissions = {}, run = function(self, message, argString, args, guildSettings, conn...
nilq/small-lua-stack
null
--[[ PROYECTO DE TITULO Pamela Vilches Ivelic ]] PlayState = Class{__includes = BaseState} function PlayState:init() Timer.clear() self.levelSizeX = 100 self.levelSizeY = 10 self.start = true self.background1Scroll = 0 self.background2Scroll = 0 self.currentNote = 'hihat' self...
nilq/small-lua-stack
null
local _, ns = ... local config = ns.Config local floor = floor local select = select local tonumber = tonumber local modf = math.modf local fmod = math.fmod local floor = math.floor local gsub = string.gsub local format = string.format local GetTime = GetTime local day, hour, minute = 86400, 3600, 60 local charTex...
nilq/small-lua-stack
null
Media = Object:extend() Media:implement(State) function Media:init(name) self:init_state(name) end function Media:on_enter(from) camera.x, camera.y = gw/2, gh/2 self.main = Group() self.effects = Group() self.ui = Group() graphics.set_background_color(blue[0]) Text2{group = self.ui, x = gw/2, y = gh/2,...
nilq/small-lua-stack
null
return { en = { ["ci:description" ] = "cosy continuous integration", ["ci:command:build" ] = "guess build dependencies", ["ci:flag:verbose" ] = "enable verbose output", ["ci:flag:quiet" ] = "disable all output", ["ci:option:locale" ] = "locale to use", ["ci:...
nilq/small-lua-stack
null
--[[ basicFilters.lua Basic item filters based on item classes --]] local ADDON, Addon = ... local Normal = VOICE_CHAT_NORMAL local Reagents = MINIMAP_TRACKING_VENDOR_REAGENT local Key = GetItemClassInfo(LE_ITEM_CLASS_KEY) local Quiver = GetItemClassInfo(LE_ITEM_CLASS_QUIVER) local Equipment = BAG_FILTER_EQUIPMEN...
nilq/small-lua-stack
null
package.path = "../lua/?.lua" local evdtest = require("evdtest") function foo() evdtest.waitevent("foo", true) end function bar() evdtest.waitevent("bar", true, 0) end evdtest.startcoroutine(foo) evdtest.startcoroutine(bar) evdtest.waitevent("hello world")
nilq/small-lua-stack
null
-- This script pauses playback when minimizing the window, and resumes playback -- if it's brought back again. If the player was already paused when minimizing, -- then try not to mess with the pause state. local did_minimize = false mp.observe_property("window-minimized", "bool", function(name, value) local paus...
nilq/small-lua-stack
null
local path = string.sub(..., 1, string.len(...) - string.len(".shell.checkbox")) local state = require(path.. ".hooks.state") local input = require(path.. ".core.input") ---@class checkboxState ---@param down boolean @indicates whether this element is currently held down ---@param toggled boolean @current state of the...
nilq/small-lua-stack
null
local _0_0 = nil do local name_23_0_ = "conjure.client.clojure.nrepl" 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
LinkLuaModifier("modifier_ramza_dragoon_dragonheart", "heroes/ramza/ramza_dragoon_modifiers.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_ramza_dragoon_jump", "heroes/ramza/ramza_dragoon_modifiers.lua", LUA_MODIFIER_MOTION_BOTH) LinkLuaModifier("modifier_ramza_dragoon_jump_slow", "heroes/ramza/ramza_dragoon...
nilq/small-lua-stack
null
local playsession = { {"Redbeard28", {748128}}, {"sky_2017", {778112}}, {"Bartell", {58256}}, {"adam1285", {682164}}, {"Dammpi", {644226}}, {"Scuideie-Guy", {354741}}, {"Jardee", {263889}}, {"meteorsbor", {2206}}, {"cubun_2009", {138769}}, {"Ulygold", {1570}}, {"625dennis", {498115}}, {"Vegadyn", {9530}}, ...
nilq/small-lua-stack
null
-- local NXFS = require "nixio.fs" local SYS = require "luci.sys" local HTTP = require "luci.http" local DISP = require "luci.dispatcher" local UTIL = require "luci.util" m = Map("openclash", translate("Rules Setting")) s = m:section(TypedSection, "openclash") s.anonymous = true o = s:option(ListValue, "enable_custo...
nilq/small-lua-stack
null
EffectsList = { [0] = "Shaky3D", "Waves3D", "FlipX3D", "FlipY3D", "Lens3D", "Ripple3D", "Liquid", "Waves", "Twirl", "ShakyTiles3D", "ShatteredTiles3D", "ShuffleTiles", "FadeOutTRTiles", "FadeOutBLTiles", "FadeOutUpTiles", "FadeOutDownTil...
nilq/small-lua-stack
null
function run(f) local timer = 0 local coStatus, choiceRange, maxtime = coroutine.resume(f) if not coStatus then error(choiceRange) end return function(dt, input) timer = timer + dt if timer > maxtime or (input and input > 0 and input <= choiceRange) then coStatus, choiceRange,maxtime = coroutine...
nilq/small-lua-stack
null
----------------------------------- -- -- tpz.effect.VIT_DOWN -- ----------------------------------- require("scripts/globals/status") ----------------------------------- function onEffectGain(target,effect) if ((target:getStat(tpz.mod.VIT) - effect:getPower()) < 0) then effect:setPower(target:getStat(...
nilq/small-lua-stack
null
local IniEditor = require("vr-radio-helper.shared_components.ini_editor") local Utilities = require("vr-radio-helper.shared_components.utilities") TestIniEditor = { TestKeyMatcher = "^.-Key$", TestFilePath = ".\\test\\shared_components\\test_ini_file.ini", TestFileDuplicateKeysPath = ".\\test\\shared_compo...
nilq/small-lua-stack
null
local options = { gamma = 2.2, deffered = false, flight = false, mouseSensetivity = 0.1, renderDistance = 2, resolutionScale = 1.0, targetFps = 60, vsync = false, wireframe = false, smoothlight = false, ssaoSamples = 0, ssaoScale = 0.5, } function OpenOptions(doc) optionsRetu...
nilq/small-lua-stack
null
ls_polearm_gen5_scheme = { minimumLevel = 0, maximumLevel = -1, customObjectName = "Polearm 5th Gen Lightsaber Schematic", directObjectTemplate = "object/tangible/loot/loot_schematic/sword_lightsaber_polearm_gen5.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {} } addLootItemTe...
nilq/small-lua-stack
null
function getPositionFromElementOffset(element,offX,offY,offZ) local m = getElementMatrix(element) local x = offX * m[1][1] + offY * m[2][1] + offZ * m[3][1] + m[4][1] local y = offX * m[1][2] + offY * m[2][2] + offZ * m[3][2] + m[4][2] local z = offX * m[1][3] + offY * m[2][3] + offZ * m[3][3] + m[4][3]...
nilq/small-lua-stack
null
CaveBot.Extensions.OpenDoors = {} CaveBot.Extensions.OpenDoors.setup = function() CaveBot.registerAction("OpenDoors", "#00FFFF", function(value, retries) local pos = string.split(value, ",") local key = nil if #pos == 4 then key = tonumber(pos[4]) end if not pos[1] then warn("CaveBot[...
nilq/small-lua-stack
null
includeFile("tangible/tcg/series7/painting_lando_poster.lua") includeFile("tangible/tcg/series7/combine_reward_deed_republic_gunship.lua") includeFile("tangible/tcg/series7/painting_commando.lua")
nilq/small-lua-stack
null
local onAttach = require'lsp/lsp-attach' --Enable (broadcasting) snippet capability for completion local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities.textDocument.completion.completionItem.snippetSupport = true require'lspconfig'.cssls.setup{ cmd = { "vscode-css-language-server.cmd", "--s...
nilq/small-lua-stack
null
local Import = require"Toolbox.Import" local Tools = require"Toolbox.Tools" local Vlpeg = Import.Module.Relative"Vlpeg" local Object = Import.Module.Relative"Object" return Object( "Nested.PEG.Range", { Construct = function(self, ...) self.Sets = {...} end; Decompose = function(self) return Vlpeg.Range...
nilq/small-lua-stack
null
--[[ Name: cl_hud_car.lua By: unknown/1.0 devs ]]-- local seatbelt_mat = Material( "santosrp/seatbelt.png", "unlitgeneric smooth" ) local MAT_CARSPEED = Material( "santosrp/speed.png" ) local MAT_NEEDLE = Material( "santosrp/needle.png" ) local MAT_FUEL = Material( "santosrp/fuel.png" ) function GM.HUD:DrawCarHUD()...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- ----------------------------------- DevDokus ----------------------------------- -------------------------------------------------------------------------------- local VorpCore = {} TriggerEvent("getCore",function(core) VorpCore = core end...
nilq/small-lua-stack
null
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
nilq/small-lua-stack
null
local Keys = { ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKS...
nilq/small-lua-stack
null
charCam = CreateCam('DEFAULT_SCRIPTED_CAMERA', true) --SetCamActive(charCam, true) -- Blend in --RenderScriptCams(true, true, 0, true, true) --ShakeCam(charCam, "JOLT_SHAKE", 2.0) local shakeAmount = 0.0 local bIsShaking = false Citizen.CreateThread(function() while true do Citizen.Wait(1) Set...
nilq/small-lua-stack
null
----------------------------------------- -- ID: 5750 -- Item: bowl_of_goulash -- Food Effect: 3Hrs, All Races ----------------------------------------- -- VIT +3 -- INT -2 -- Accuracy +10% (cap 54) -- DEF +10% (cap 30) ----------------------------------------- require("scripts/globals/status") require("scripts/globals...
nilq/small-lua-stack
null
pcall(require, "luacov") local HAS_RUNNER = not not lunit local lunit = require "lunit" local function prequire(name) local ok, mod = pcall(require, name) if not ok then return nil, mod end return mod, name end local aes = require "bgcrypto.aes" local cmac = require "bgcrypto.cmac" -- use to test lighuserdat...
nilq/small-lua-stack
null
1. The species wants to conquer the world with their hair color. 2. Humans are working at their side. 3. They want to turn people into potatoes. 4. They can shape-shift. 5. They call the leader Nitsuater. Sounds like Terminator to me. 6. Seems to be afk a lot. Maybe working on a plan to end all. 7. Is sleep-deprived 8....
nilq/small-lua-stack
null
--EVAL 'this script' 1 some-key '{"some": "json"}' local key = KEYS[1]; local value = ARGV[1]; local mvalue = cmsgpack.pack(cjson.decode(value)); return redis.call('SET', key, mvalue);
nilq/small-lua-stack
null
return function() local tree = {} local get_left_child = function(parent_index) return tree[parent_index * 2], parent_index * 2 end local get_right_child = function(parent_index) return tree[(parent_index * 2) + 1], (parent_index * 2) + 1 end return { insert = function(values) for _, v...
nilq/small-lua-stack
null
-- (c) 2009-2011 John MacFarlane. Released under MIT license. -- See the file LICENSE in the source for details. --- Provides access to all lunamark readers without preloading -- them. Reader modules are loaded only when needed. -- -- local readers = require("lunamark.reader") -- local htmlreader = readers.h...
nilq/small-lua-stack
null
local Plugin = script.Parent.Parent local Roact = require(Plugin.Vendor.Roact) local StudioComponents = require(Plugin.Vendor.StudioComponents) local Widget = StudioComponents.Widget local Label = StudioComponents.Label local TextInput = StudioComponents.TextInput local Button = StudioComponents.Button local MainButt...
nilq/small-lua-stack
null
-- -- Copyright (c) 2021 lalawue -- -- This library is free software; you can redistribute it and/or modify it -- under the terms of the MIT license. See LICENSE for details. -- local tree = require("balance-tree").new(function(a, b) return a - b end) function test_rebalance(tree) print("\n0) test insert:") ...
nilq/small-lua-stack
null
local Prop = {} Prop.Name = "Electronic Store" Prop.Government = true Prop.Doors = { Vector( 7178, 3964, 190 ), Vector( 7296, 3964, 190 ), } GM.Property:Register( Prop )
nilq/small-lua-stack
null
kakashi_bunshin = kakashi_bunshin or class({}) LinkLuaModifier("modifier_kakashi_bunshin_charge", "scripts/vscripts/abilities/heroes/kakashi/modifiers/modifier_kakashi_bunshin_charge.lua", LUA_MODIFIER_MOTION_NONE) function kakashi_bunshin:Precache(context) PrecacheResource("soundfile", "soundevents/heroes/kakashi/...
nilq/small-lua-stack
null
local Observable = require 'reactivex.observable' require("reactivex.operators.reduce") --- Returns an Observable that produces a single value representing the sum of the values produced -- by the original. -- @returns {Observable} function Observable:sum() return self:reduce(function(x, y) return x + y end, 0) end...
nilq/small-lua-stack
null
local plugin_config_iterator = require("kong.dao.migrations.helpers").plugin_config_iterator return { { name = "2018-01-20-custom-jwt-auth", up = [[ CREATE TABLE IF NOT EXISTS jwt_secrets( id uuid, consumer_id uuid REFERENCES consumers (id) ON DELETE CASCADE, key text UNIQUE, ...
nilq/small-lua-stack
null
local Eater = Class(function(self, inst) self.inst = inst self.eater = false self.strongstomach = false self.foodprefs = { "GENERIC" } self.ablefoods = { "MEAT", "VEGGIE", "INSECT", "SEEDS", "GENERIC" } self:SetOmnivore() self.oneatfn = nil self.lasteattime = nil self.ignoresspoilage...
nilq/small-lua-stack
null
local json = require("json") local imlib = require("imlib2") local _M = { } _M._VERSION = "1.0" _M._COPYRIGHT = "copyright (C) 2017 FiniteReality" local function create_jsong(file, location) local img = assert(imlib.image.load(file)) local result = { version = "1.0", transparency = img:has_alpha(), size = { ...
nilq/small-lua-stack
null
serialization_version = 1.0 FOREST_BAT = {} FOREST_BAT.initializeEnt = function (self,ent, x, y) ent.agro_ticks = 30 ent.triggered = false ent.move = 0 ent.instance_rand = math.random() * 1000 ent.active_time = 0 ent.canRemove = function(self) return self.health <= 0 end end FOREST_BAT.executeAI ...
nilq/small-lua-stack
null
local ffi = require("ffi"); local bit = require("bit"); local bor = bit.bor; local WinError = require("win_error"); local errorhandling = require("core_errorhandling_l1_1_1"); local lsalookup = require("security_lsalookup_l2_1_0"); local core_string = require("core_string_l1_1_0"); local L = core_string.toUnicode; ...
nilq/small-lua-stack
null
-- Original concept by -- HydroNitrogen (a.k.a. GoogleTech, Wendelstein7) -- Bram S. (a.k.a ThatBram0101, bram0101) -- see: https://energetic.pw/computercraft/ore3d/assets/ore3d.lua -- Updated to use new(ish) canvas3d local Config = require('opus.config') local GPS = require('opus.gps') local UI = require(...
nilq/small-lua-stack
null
local ITEM = Clockwork.item:New("weapon_base"); ITEM.name = "USP"; ITEM.cost = 0; ITEM.model = "models/weapons/3_pist_usp.mdl"; ITEM.weight = 1.6; ITEM.uniqueID = "bb_usp_alt"; ITEM.business = false; ITEM.description = "A lightweight pistol. Good for scouting."; ITEM.isAttachment = false; ITEM:Register();
nilq/small-lua-stack
null
ActivityRewardWidget = Inherit(NZLuaSimpleViewClass) ActivityRewardWidget.BpClassPath = '/Game/UI/UIBP/FrontEnd/ActivityUI/Lua/ActivityReward.ActivityReward_C' requirecpp "FActivityProp" function ActivityRewardWidget:LuaSetPropInfoAsAward(Data, Index) local PropInfo = FActivityProp.Temp() PropInfo.ItemId = Data.Id ...
nilq/small-lua-stack
null
require("hall/gameData/pay/payConfig"); require("hall/gameData/appData"); --WIKI -> http://paywiki.oa.com/doku.php?id=%E6%8E%A5%E5%85%A5%E6%96%87%E6%A1%A3:%E5%8A%A8%E6%80%81%E8%A3%B8%E7%A0%81%E6%94%AF%E4%BB%98:%E6%8E%A5%E5%85%A5api GodSDKPayHelper = {}; GodSDKPayHelper.getPayParams = function(pmode, rechargeD...
nilq/small-lua-stack
null
SF.Angles = {} --- Angle Type -- @shared local ang_methods, ang_metamethods = SF.Typedef( "Angle" ) local wrap, unwrap = SF.CreateWrapper( ang_metamethods, true, false, debug.getregistry().Angle ) SF.DefaultEnvironment.Angle = function ( ... ) return wrap( Angle( ... ) ) end SF.Angles.Wrap = wrap SF.Angles.Unwrap =...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------------- -- Issue: https://github.com/SmartDeviceLink/sdl_core/issues/3717 --------------------------------------------------------------------------------------------------- -- Description: Check SDL ignores value of 'frameInfo'...
nilq/small-lua-stack
null
local table = require("hs/lang/table") local Layer = require("hs/core/Layer") -------------------------------------------------------------------------------- -- Layerใ‚’ใƒ™ใƒผใ‚นใซใ—ใŸViewใฎๅŸบๆœฌใ‚ฏใƒฉใ‚นใงใ™ใ€‚ -- -------------------------------------------------------------------------------- local View = Layer() return View
nilq/small-lua-stack
null
#!/usr/bin/env lua -------------------------------------------------------------------------------- -- @script OiL Event Channel Daemon -- @version 1.1 -- @author Renato Maia <maia@tecgraf.puc-rio.br> -- print("OiL Event Channel 1.1 Copyright (C) 2006-2008 Tecgraf, PUC-Rio") local select = select local io = req...
nilq/small-lua-stack
null
return function(sum) local function from_a(x) -- Given that: -- (1) a + b + c = p -- (2) a ^ 2 + b ^ 2 = c ^ 2 -- (2) c = sqrt(a ^ 2 + b ^ 2) -- -- (2) -> (1) a + b + sqrt(a ^ 2 + b ^ 2) = p -- -- Rearranging we get: -- b = 0.5 * (p - (pa / (p - a))) return (sum - sum * x / (s...
nilq/small-lua-stack
null
local Tunnel = module("vrp","lib/Tunnel") local Proxy = module("vrp","lib/Proxy") vRP = Proxy.getInterface("vRP") src = {} Tunnel.bindInterface("org_criminosas",src) orgSERVER = Tunnel.getInterface("org_criminosas") --[ VARIรVEIS ]--------------------------------------------------------------------------------------...
nilq/small-lua-stack
null
--------------------------------------------------- -- Spikeball -- Throws a spiky projectile at a single target. Additional effect: Poison --------------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/monstertpmoves") ----------------...
nilq/small-lua-stack
null
hook.Add("VurtualAmmotypes","vammo_545x39", function() local tbl = table.Copy(kswep_default_ammo) tbl.vestpenetration=KSWEP_ARMOR_III --TODO make this different tbl.dmgbase=10 tbl.dmgvitalmin=5 tbl.dmgvitalmax=8 tbl.name = "vammo_545x39_7n6" tbl.printname = "5.45x39mm 7N6" tbl.diameter = 0.22 tbl.calib...
nilq/small-lua-stack
null
object_mobile_outbreak_pram_dramango = object_mobile_shared_outbreak_pram_dramango:new { } ObjectTemplates:addTemplate(object_mobile_outbreak_pram_dramango, "object/mobile/outbreak_pram_dramango.iff")
nilq/small-lua-stack
null
--------------------------------------------------------------------------- -- The dynamically loadable part of the demonstration Lua widget. -- -- -- -- Author: Jesper Frickmann -- -- Date: ...
nilq/small-lua-stack
null
ESX = nil percent = false searching = false cachedBins = {} closestBin = { 'prop_dumpster_01a', 'prop_dumpster_02a', 'prop_dumpster_02b' } Citizen.CreateThread(function() while ESX == nil do Citizen.Wait(5) TriggerEvent("esx:getSharedObject", function(library) ES...
nilq/small-lua-stack
null
object_mobile_dressed_stormtrooper_sandtrooper_m = object_mobile_shared_dressed_stormtrooper_sandtrooper_m:new { } ObjectTemplates:addTemplate(object_mobile_dressed_stormtrooper_sandtrooper_m, "object/mobile/dressed_stormtrooper_sandtrooper_m.iff")
nilq/small-lua-stack
null
-- global shared dict local config = ngx.shared.nla_config local _M = {} _M.CAPTCHA_VALIDATE_PAGE = config:get("captcha_validate_page") _M.CAPTCHA_VALIDATE_API = config:get("captcha_validate_api") _M.CAPTCHA_COOKIE_NAME = config:get("captcha_cookie_name") _M.challenge_code_tmpl = [[ <html> <head> <script type="t...
nilq/small-lua-stack
null
workspace "Rubr" architecture "x64" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" -- Include directories relative to root folder IncludeDir = {} IncludeDir["GLFW"] = "Rubr/vendor/GLFW/include" IncludeDir["Glad"] = "Rubr/vendor/Glad/include...
nilq/small-lua-stack
null
/* Coded by C4NC3R - ยฉ Copyright 2017 C4NC3R All rights reserved. */ ragistable = ragistable or {} ragistable.config = ragistable.config or {} /* โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ• โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ• โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ• โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ ...
nilq/small-lua-stack
null
local _2afile_2a = "fnl/snap/producer/vim/buffer.fnl" local function get_buffers() local function _1_(_241) return vim.fn.bufname(_241) end local function _2_(_241) return ((vim.fn.bufname(_241) ~= "") and (vim.fn.buflisted(_241) == 1) and (vim.fn.bufexists(_241) == 1)) end return vim.tbl_map(_1_, vim...
nilq/small-lua-stack
null
game.Players.LocalPlayer.Character.Head.face:Remove()
nilq/small-lua-stack
null
{data={name="", author="Magnus siiftun1857 Frankline"}, blocks={ {1881000, {-10.435, 0}}, {1881001, {-0.435, 0}, 1.571}, {1881002, {-0.435, 10}, -1.571}, {1881002, {-0.435, -10}, 1.571}, {1881001, {9.565, 10}, -1.571}, {1881001, {9.565, -10}, 1.571}, {1881002, {9.565, -20}, -1.571}, {18...
nilq/small-lua-stack
null
-- FOR ALL LSP in neovim -- https://github.com/neovim/nvim-lsponfig/blob/master/CONFIG.md local lsp = require("lspconfig") local coq = require("coq") -- Use an on_attach function to only map the following keys -- after the language server attaches to the current buffer local on_attach = function(client, bufnr) l...
nilq/small-lua-stack
null
--[[ File: src/utils.lua Author: Daniel "lytedev" Flanagan Website: http://dmf.me Defines basic utility/helper functions. ]]-- -- Load standard classes vector = require("lib.hump.vector") Class = require("lib.hump.class") Gamestate = require("lib.hump.gamestate") assetManager = require("lib.assetmanager")() deb...
nilq/small-lua-stack
null