content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
slot0 = class("CollectionScene", import("..base.BaseUI")) slot0.SHOW_DETAIL = "event show detail" slot0.GET_AWARD = "event get award" slot0.ACTIVITY_OP = "event activity op" slot0.BEGIN_STAGE = "event begin state" slot0.ON_INDEX = "event on index" slot0.UPDATE_RED_POINT = "CollectionScene:UPDATE_RED_POINT" slot0.ShipOr...
nilq/small-lua-stack
null
require("colorbuddy").setup() local Color = require('colorbuddy').Color Color.new('white', '#ffffff') Color.new('red', '#8afef7') Color.new('pink', '#ed2b8f') Color.new('green', '#ff9e64') Color.new('yellow', '#88ff99') Color.new('blue', '#91ede2') Color.new('aqua', '#ff2020') Color.ne...
nilq/small-lua-stack
null
fx_version "cerulean" game "gta5" name "GGCommon" description "Gamemode independant features for the Gun Game server" author "Remco Troost (d0p3t)" url "https://github.com/d0p3t/ggcommon" dependency "screenshot-basic" client_scripts { "client/*.lua" } server_scripts { "server/*.lua" } files {...
nilq/small-lua-stack
null
includeFile("custom_content/tangible/wearables/wookiee/wke_shirt_s05.lua")
nilq/small-lua-stack
null
--ZFUNC-numseq-v1 local function numseq( n, init, f ) --> seq init = init or 0 f = f or function ( v ) return v + 1 end local result = {} table.insert( result, init ) for i = 2,n do table.insert( result, f( result[ i - 1 ] ) ) end return result end return numseq
nilq/small-lua-stack
null
function start_tween (animatable, animation) animatable.animating = true animatable[animation] = game.animations[animation] end
nilq/small-lua-stack
null
--[[ --MIT License -- --Copyright (c) 2019 manilarome --Copyright (c) 2020 Tom Meyers -- --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
Utils = {} local screenWidth, screenHeight = guiGetScreenSize() function Utils.screenScale(val) if screenWidth < 1280 then return val * screenWidth / 1280 end return val end function Utils.wrapAngle(value) if not value then return 0 end value = math.mod(value, 360) if value < 0 then value = value + 360 ...
nilq/small-lua-stack
null
require "/scripts/util.lua" function init() self.detectArea = config.getParameter("detectArea") self.detectArea[1] = object.toAbsolutePosition(self.detectArea[1]) self.detectArea[2] = object.toAbsolutePosition(self.detectArea[2]) animator.setAnimationState("portal", "off") object.setLightColor({0, 0, 0, 0})...
nilq/small-lua-stack
null
local t = My.Translator.translate local mission My.EventHandler:register("onAttackersDetection", function() mission = Mission:new({}) Mission:withBroker(mission, t("story_mission_plan_defense", My.Commander:getPerson(), My.World.fortress:getCallSign())) Mission:forPlayer(mission) mission:setHint(t("st...
nilq/small-lua-stack
null
-- -- Back ground parallax class. -- -- @filename LgBackgroundParallax.lua -- @copyright Copyright (c) 2015 Yaukey/yaukeywang/WangYaoqi (yaukeywang@gmail.com) all rights reserved. -- @license The MIT License (MIT) -- @author Yaukey -- @date 2015-09-02 -- local DLog = YwDebug.Log local DLogWarn = YwDebug.Log...
nilq/small-lua-stack
null
local K = unpack(KkthnxUI) local Module = K:GetModule("AurasTable") if K.Class ~= "PRIEST" then return end local list = { ["Player Aura"] = { -- 玩家光环组 { AuraID = 586, UnitID = "player" }, -- 渐隐术 { AuraID = 45242, UnitID = "player" }, -- 专注意志 { AuraID = 121557, UnitID = "player" }, -- 天堂之羽 { AuraID = 194022,...
nilq/small-lua-stack
null
-- Copyright (C) 2012 Nicholas Carlson -- -- 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, publi...
nilq/small-lua-stack
null
local DataDependentModule, parent = torch.class('nn.DataDependentModule', 'nn.Module') function DataDependentModule:__init(DDM_learning_rate) parent.__init(self) self.gradInput = {} self.DDM_learning_rate = DDM_learning_rate or 0 end function DataDependentModule:updateOutput(input) self.output = input[1] ...
nilq/small-lua-stack
null
-- Copyright (C) 2016 Gernot Riegler -- Institute for Computer Graphics and Vision (ICG) -- Graz University of Technology (TU GRAZ) -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- 1. Redistributions of source code m...
nilq/small-lua-stack
null
local ANIMALS = {"Rat","Ox","Tiger","Rabbit","Dragon","Snake","Horse","Goat","Monkey","Rooster","Dog","Pig"} local ELEMENTS = {"Wood","Fire","Earth","Metal","Water"} function element(year) local idx = math.floor(((year - 4) % 10) / 2) return ELEMENTS[idx + 1] end function animal(year) local idx = (year - ...
nilq/small-lua-stack
null
local messager = require 'script.messager' local code = require 'script.code' local redis = require 'script.redis' local cheat = require 'script.common.cheat' local data, err = messager.recive() if not data then ngx.log(ngx.WARN, err) messager.response { result = false, error = cod...
nilq/small-lua-stack
null
-- Obstacle.lua Obstacle = class('Obstacle') function Obstacle.initialize(this) this.Pos = {X = 0, Y = 300} this.Vel = {X = 500, Y = 0} this.Graphic = nil end function Obstacle.draw(this) love.graphics.draw(this.Graphic, this.Pos.X, this.Pos.Y) end function Obstacle.update(this, dt) -- Movement this.Pos.X = t...
nilq/small-lua-stack
null
object_draft_schematic_weapon_component_shared_new_weapon_comp_blade_vibro_unit = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/weapon/component/shared_new_weapon_comp_blade_vibro_unit.iff" } ObjectTemplates:addClientTemplate(object_draft_schematic_weapon_component_shared_n...
nilq/small-lua-stack
null
package("newtondynamics") set_homepage("http://newtondynamics.com") set_description("Newton Dynamics is an integrated solution for real time simulation of physics environments.") set_license("zlib") set_urls("https://github.com/MADEAPPS/newton-dynamics.git") add_versions("v3.14d", "e501c6d13e127a5...
nilq/small-lua-stack
null
local p = game.Players.LocalPlayer local Mpc = p.Character local mouse = p:GetMouse() visible=false function fgeld(zName,zParent,zPart0,zPart1,zCoco,a,b,c,d,e,f) local funcw = Instance.new("Weld") funcw.Name = zName funcw.Parent = zParent funcw.Part0 = zPart0 funcw.Part1 = zPart1 if (zCoco == true) then funcw.C0 = CFra...
nilq/small-lua-stack
null
local request = KEYS[1] local value = ARGV[1] if redis.call('get', request) == value then return redis.call('del', request) else return -1 end
nilq/small-lua-stack
null
--[[ Load this test file by adding lua_preload_file ./lua_preload_file.lua to the civetweb.conf file ]] mg.preload = "lua_preload_file successfully loaded"
nilq/small-lua-stack
null
local collectionService = game:GetService("CollectionService") local insert = game:GetService("InsertService") -- https://devforum.roblox.com/t/how-can-i-get-a-random-position-located-through-the-size-of-the-part/253540/6 function getRandomInPart(part) local random = Random.new() local randomCFrame = part.CFrame * CF...
nilq/small-lua-stack
null
--====================================================================-- -- dmc_ui/dmc_widget/widget_text.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2015 David McCuskey Permission is hereby...
nilq/small-lua-stack
null
FLAG.PrintName = "Squad Leader"; FLAG.Flag = "C"; FLAG.Color = Color( 60, 20, 20, 255 ); FLAG.Loadout = { }; FLAG.ItemLoadout = { "radio", "zipties", "smallmedkit", "weapon_cc_medkit", "weapon_cc_stunstick", "weapon_cc_flare", "weapon_cc_pistol", "weapon_cc_smg", "weapon_cc_shotgun", "weapon_cc_doorbreach", "...
nilq/small-lua-stack
null
game.reload_script() for index, force in pairs(game.forces) do local technologies = force.technologies; local recipes = force.recipes; force.reset_recipes() force.reset_technologies() end
nilq/small-lua-stack
null
FYAC_BWords = {} FYAC_BWords.Words = { -- 'haha', -- 'lol', -- 'xddd', 'chocolate', 'panickey', 'jolmany', 'killmenu' }
nilq/small-lua-stack
null
local server = require "nvim-lsp-installer.server" local path = require "nvim-lsp-installer.path" local std = require "nvim-lsp-installer.installers.std" local context = require "nvim-lsp-installer.installers.context" local installers = require "nvim-lsp-installer.installers" local process = require "nvim-lsp-installer...
nilq/small-lua-stack
null
local function CreditsText( pn ) local text = Def.ActorFrame{ InitCommand=function(self) self:name("Credits" .. PlayerNumberToString(pn)) end; UpdateVisibleCommand=function(self) local screen = SCREENMAN:GetTopScreen(); local bShow = true; if screen then local sClass = screen:GetName(); ...
nilq/small-lua-stack
null
if CLIENT then return end include( 'shared.lua' ) AddCSLuaFile( 'cl_init.lua' ) util.AddNetworkString('bail_player_now') local wait = wait or {} local npcclass = 'npc_courier' function ENT:Initialize() self:InitVars() self:DontDeleteOnRemove( self ) self.CanUse = true self:SetModel( ARREST_NPC_MODEL ) self:SetH...
nilq/small-lua-stack
null
antimage_spell_shield_lua = class({}) LinkLuaModifier( "modifier_antimage_spell_shield_lua", "lua_abilities/antimage_spell_shield_lua/modifier_antimage_spell_shield_lua", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- function antimage_spell_shield_lua:GetI...
nilq/small-lua-stack
null
if not pcall(require, "telescope") then return end local sorters = require "telescope.sorters" TelescopeMapArgs = TelescopeMapArgs or {} local map_tele = function(mode, key, f, options, buffer) local map_key = vim.api.nvim_replace_termcodes(key .. f, true, true, true) TelescopeMapArgs[map_key] = options or {}...
nilq/small-lua-stack
null
function dataRequest(host,service) m.broadcast(host,service) _,_,_,_,_,data = event.pull("modem_message") m.send(client,response,data) print(tostring(service)) return end
nilq/small-lua-stack
null
--[[ Print the time in particular timeZone Refs: http://man7.org/linux/man-pages/man1/date.1.html https://stackoverflow.com/questions/9676113/lua-os-execute-return-value ]] local handle = io.popen("TZ='America/New_York' date") local result = handle:read("*a") print(result) --[[ Prints complete da...
nilq/small-lua-stack
null
-- OptimisticSide -- 5/9/2021 -- Command manager local REVOKE_PREFIX = "un" local Commands = {} -- Find a command. function Commands.findCommand(call) -- Commands are not case-sensitive. call = string.lower(call) -- Handle reverse commands. local procedure = "invoke" if string.sub(call, 1, #REVOKE_PREFIX) == R...
nilq/small-lua-stack
null
local String = require('string') local Table = require('table') --[[ local s = '/iframe-12.34234.html' local params = {} p(String.gsub(s, '/iframe(.*).html', function(prm) if prm then Table.insert(params, prm) end end)) p('gsub', s, params) local s = '/iframe-12.34234.html' p('match', String.match(s, '/iframe(.-)%....
nilq/small-lua-stack
null
--[[ pls give credit and dont name it the same thing and have fun ]]
nilq/small-lua-stack
null
ENT.Type = "anim" ENT.Base = "cw_ammo_ent_base" ENT.PrintName = ".44 Magnum Ammo" ENT.Author = "Spy" ENT.Spawnable = true ENT.AdminSpawnable = true ENT.Category = "CW 2.0 Ammo" ENT.CaliberSpecific = true ENT.AmmoCapacity = 30 ENT.ResupplyAmount = 6 ENT.Caliber = ".44 Magnum" ENT.Model = "models/Items/BoxSRounds.mdl"
nilq/small-lua-stack
null
local L = LibStub("AceLocale-3.0"):GetLocale("ClassicCodex") local AceConfigRegistry = LibStub("AceConfigRegistry-3.0") local AceConfigDialog = LibStub("AceConfigDialog-3.0") local AceConfigCmd = LibStub("AceConfigCmd-3.0") CodexConfig = {} CodexColors = {} DefaultCodexConfig = { ["trackingMethod"] = 1, -- 1: All...
nilq/small-lua-stack
null
local timestamp = require "kong.tools.timestamp" describe("Timestamp", function() local table_size = function(t) local s = 0 for _ in pairs(t) do s = s + 1 end return s end it("should get UTC time", function() assert.truthy(timestamp.get_utc()) assert.are.same(13, string.len(tostring(times...
nilq/small-lua-stack
null
require "nn" mlp = nn.ParallelTable() mlp:add(nn.Linear(10, 2)) mlp:add(nn.Linear(5, 3)) x = torch.randn(10) y = torch.rand(5) pred = mlp:forward{x, y} -- pred = mlp:forward(x, y) error for i, k in pairs(pred) do print(i, k) end
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: romansztergbaum -- Date: 06/08/2018 -- Time: 22:07 -- To change this template use File | Settings | File Templates. -- local entities = {} function update() if (shiva.is_key_pressed(Keyboard.Z) == true) then print("Z pressed") end end function on_key_pressed(e...
nilq/small-lua-stack
null
--14.file a = 3 for n in pairs(_G) do print(n) end
nilq/small-lua-stack
null
--[[ Phantom Forces Cheat - Herrtt Supports * No Fall Damage * WalkSpeed * JumpPower * SilentAim * Headshot Percentage * Wallhacks ]] -- Default launch settings local settings = { silentaim = true, nofalldamage = false, setwalkspeed = ...
nilq/small-lua-stack
null
-- Called OnSpellStart function MysticBoltSpendMana(event) local caster = event.caster local ability = event.ability -- Storing current mana into a local variable local current_caster_mana = caster:GetMana() -- If the table is nil or empty, create a new one with same name and insert one element into it if cas...
nilq/small-lua-stack
null
----------------------------------- -- Area: The Sanctuary of Zitah -- NPC: ??? -- Finishes Quest: Lovers in the Dusk -- !zone 121 ----------------------------------- local ID = require("scripts/zones/The_Sanctuary_of_ZiTah/IDs") require("scripts/globals/npc_util") require("scripts/globals/weather") require("scripts/g...
nilq/small-lua-stack
null
local uv = require "lluv" local iconv = require "iconv" local json = require "dkjson" local NULL = require "null".null local utils = {} utils.json = json utils.NULL = NULL utils.STATUS = { SENDING = 'sending', SUCCESS = 'success', FAIL = 'fail', } function utils.coales...
nilq/small-lua-stack
null
--- A western style swinging door with key. Door = { -- specifies whether it is in the closed or opened state open = nil, -- specifies whether the key is turned or not locked = nil } function Door.new( map, x, y, dir ) local door = Object.new( map, x, y, 0, dir ) door.open...
nilq/small-lua-stack
null
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("Alignment", function() local align = require "moonpie.ui.alignment" it("align left uses the smallest value possible", function() local x = ali...
nilq/small-lua-stack
null
local config = require "formatter.config" local M = {} function M.setup(o) config.set_defaults(o) end return M
nilq/small-lua-stack
null
object_building_player_construction_construction_player_tcg_relaxation_pool = object_building_player_construction_shared_construction_player_tcg_relaxation_pool:new { } ObjectTemplates:addTemplate(object_building_player_construction_construction_player_tcg_relaxation_pool, "object/building/player/construction/construct...
nilq/small-lua-stack
null
return { ["LOP_NOP"]= 1, ["LOP_BREAK"]= 2, ["LOP_LOADNIL"]= 3, ["LOP_LOADB"]= 4, ["LOP_LOADN"]= 5, ["LOP_LOADK"]= 6, ["LOP_MOVE"]= 7, ["LOP_GETGLOBAL"]= 8, ["LOP_SETGLOBAL"]= 9, ["LOP_GETUPVAL"]= 10, ["LOP_SETUPVAL"]= 11, ["LOP_CLOSEUPVALS"]= 12, ["LOP_GE...
nilq/small-lua-stack
null
skills = {001} -- 범위에서 몹을 대상으로 가장 가까운 대상을 타겟으로 삼아 공격 local me = Client.myPlayerUnit local target = nil local range = 249 -- 내 위치로부터 238 범위가 사거리, 초과할 시 보는 방향으로 나감 local skillID = 001 -- 발사될 스킬 번호 1번 target = Client.field.FindNearUnit(me.x, me.y, range, 2, me) if (target ~= nil) then ...
nilq/small-lua-stack
null
local GuidLibary = { } function GuidLibary:Hexidecimal(Size) local HexValues = { } for Index = 1, Size do local HexValue = ("%x"):format((Index == Size and math.random(8, 11)) or math.random(0, 15)) table.insert(HexValues, HexValue) end return table.concat(HexValues) end function Gu...
nilq/small-lua-stack
null
mysql = exports.mysql function leader_check (accountName, password) local leader = tonumber( getElementData(source, "factionleader") ) if not (tonumber(leader)==1) then -- If the player is not the leader triggerClientEvent("notLeader",source) else register_email(accountName, password) end end add...
nilq/small-lua-stack
null
 --------------------------------------------- How to populate the lookup table -------------------------------------------------------------- -- --The lookup table is indexed by a string, which should match the DialogueKey value on the corresponding trigger --The values for the lookup table are lists of tables. Ea...
nilq/small-lua-stack
null
Config = {} Config.Locale = 'fr' -- Localisation Config.CurrencyPrefix = '$' -- Ex. $ for USD - will be in front of the price Config.CurrencySuffix = '' -- Ex. DKK for Danish Kroner - will be behind the price, remember a space in the start. Config.Zones = { BikeRental = { Enable = true, -- Enable/Disable ...
nilq/small-lua-stack
null
--点晴大兽-Cyclogic local m=14000043 local cm=_G["c"..m] cm.named_with_another=1 function cm.initial_effect(c) --SpecialSummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(m,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFEC...
nilq/small-lua-stack
null
local M = {} local selector = require 'lumen.tasks.selector' local sched = require 'lumen.sched' local log = require 'lumen.log' local function script_path() local str = debug.getinfo(2, "S").source:sub(2) return str:match("(.*/)") end M.new = function(conf) local encoder_lib = require( conf.encoder or 'lu...
nilq/small-lua-stack
null
local Tools={ CurrentSortItem = nil, } AAH.Tools=Tools function AAHDebug(msg) --[===[@alpha@ DEFAULT_CHAT_FRAME:AddMessage(msg) --@end-alpha@]===] end function Tools.SortBidLess(item1, item2) if item1.bidPrice == item2.bidPrice then return item1.auctionid < item2.auctionid end return item1.bidPrice...
nilq/small-lua-stack
null
module 'belua' { lib { define 'BE_BELUA_IMPL', link_project 'luaxx', link_project 'core' } }
nilq/small-lua-stack
null
function love.load() auth = require "lib/auth" login = require "bin/login" process = require "lib/process" sha256 = require "lib/sha256" end function love.update() process.update() end function love.draw() windowCanvases = process.renderCanvases() window.drawWindows(windowCanvases) end
nilq/small-lua-stack
null
local Prop = {} Prop.Name = "Nº401 Rua do Trabalhador" Prop.Cat = "House" Prop.Price = 340 Prop.Doors = { Vector(-818, -1363, -142), } GM.Property:Register( Prop )
nilq/small-lua-stack
null
require 'torch' left = torch.FloatTensor(torch.FloatStorage('../left.bin')):view(1, 70, 370, 1226) right = torch.FloatTensor(torch.FloatStorage('../right.bin')):view(1, 70, 370, 1226) disp = torch.FloatTensor(torch.FloatStorage('../disp.bin')):view(1, 1, 370, 1226)
nilq/small-lua-stack
null
local lshift = bit32.lshift local band = bit32.band function apply(opcodes, opcode_cycles, z80, memory) local reg = z80.registers local flags = reg.flags local read_byte = memory.read_byte local write_byte = memory.write_byte set_inc_flags = function(value) flags.z = value == 0 flags.h = value % 0x10 == 0x0...
nilq/small-lua-stack
null
-- loading.lua -- Copyright (c) 2018 Jon Thysell local game = require "game" local Splash = game.Game:new({ id = "splash", title = "RetroLove 1.0.0", caption = "Made with LÖVE", timeRemaining = 2.0, }) function Splash:initGame() self.logo = love.graphics.newImage("logo.png") end function Splash:...
nilq/small-lua-stack
null
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") local enum = require("enum") local stringstream = require("string_stream") local str_decode = require("string_decode") -...
nilq/small-lua-stack
null
Cfg = {} Cfg.ped = true Cfg.pos = {x = -1985.80, y = -232.253, z = 28.611, h = 241.65} KCDD = { ['Heavy'] = { inform = { label = "Heavy 3xGövde,1xNamlu,1x Sarjör,1xKabza,2xYay ", -- Menüde gözükecek olan isim value = "pistol", -- Bir değer g...
nilq/small-lua-stack
null
local msgpack = require("omgameserver.msgpack") local buffer = require("omgameserver.buffer") local function create_buffer_from_byte_array(array) local b = buffer.create_empty() for i = 1, #array do buffer.write_unsigned_byte(b, array[i]) end return b end local function compare_table(t1, t2) for k, v in pairs(t1)...
nilq/small-lua-stack
null
-- license:MIT -- copyright-holders:Gavin Kistner local exports = {} exports.name = "SLAXML" exports.version = "0.8" exports.homepage = "http://github.com/Phrogz/SLAXML" exports.description = "Lua SLAX XML parser" exports.tags = {"xml"} exports.license = "MIT" exports.author = { name = "Gavin Kistner", } local SLAX...
nilq/small-lua-stack
null
local BulletChar = require "bosses/lekkerchat/projectiles/bulletchar" local BulletCharGT = BulletChar:extend("BulletCharGT") function BulletCharGT:new(x, y, part) BulletCharGT.super.new(self, x, y) if part then self.isPart = true self:setImage("bosses/lekkerchat/char_gt_part") if part == "up" then self.vel...
nilq/small-lua-stack
null
project "Lumi" kind "StaticLib" language "C++" cppdialect "C++20" staticruntime "on" targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}") pchheader "pch.h" pchsource "src/pch.cpp" files { "src/**.h", "src/**.hpp", "src/**...
nilq/small-lua-stack
null
local test_cache = ngx.shared.test_cache0 local key = {} test_cache:set('key', 100, 10) ngx.say(type(test_cache)) ngx.say(ngx.shared)
nilq/small-lua-stack
null
-- NOTE that the standard is to pass/return signal and block NAMES, not tables, to/from functions. This shd save on overheads -- Initial setup; all three of these are dictionaries local Signals = require(script.SignalData) local Config = require(script.Config) local Blocks = {} local Reservations = {} -- Sorted by hit...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- single-BROKEN-with-decorator-suite.lua: suite used for full suite tests -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) --------------------------------------------...
nilq/small-lua-stack
null
-- This file has dependencies to BOTH, the TeX part of pgfplots and the LUA part. -- It is the only LUA component with this property. -- -- Its purpose is to encapsulate the communication between TeX and LUA in a central LUA file local pgfplotsmath = pgfplots.pgfplotsmath local error=error local table=table local stri...
nilq/small-lua-stack
null
-- vi: expandtab ts=2 sw=2 local fn = vim.fn local api = vim.api local cmd = vim.cmd local function tryload(module) local has_mod,mod = pcall(require,module) if has_mod then return mod end end local M = {} -- highlight groups M.colors = { active = '%#StatusLine#', inactive = '%#StatuslineN...
nilq/small-lua-stack
null
local options = rbxmk.load{rbxmk.path{"$sd/options.lua"}, ...} rbxmk.load{rbxmk.path{"$sd/defines.lua"}, options} if options.help then print(rbxmk.load{rbxmk.path{"$sd/help.lua"}}) return end local targetPath = options.target if type(targetPath) ~= "string" then error("options.target: string expected, got " .. type...
nilq/small-lua-stack
null
assert(Skada, "Skada not found!") Skada:AddLoadableModule("Friendly Fire", function(Skada, L) if Skada:IsDisabled("Friendly Fire") then return end local mod = Skada:NewModule(L["Friendly Fire"]) local spellmod = mod:NewModule(L["Damage spell list"]) local targetmod = mod:NewModule(L["Damage target list"]) local ...
nilq/small-lua-stack
null
local M = {} function M.get(cp) return { TelescopeNormal = { bg = cp.black3 }, TelescopePromptNormal = { bg = cp.black4 }, TelescopePreviewNormal = { bg = cp.black1 }, TelescopeBorder = { bg = cp.black3, fg = cp.black3 }, TelescopePromptBorder = { bg = cp.black4, fg = cp.black4 }, TelescopePrevi...
nilq/small-lua-stack
null
RegisterProtectedOsirisListener("CharacterKilledBy", Data.OsirisEvents.CharacterKilledBy, "after", function(defender, owner, attacker) if GameHelpers.Character.IsPlayer(owner) then CustomStatSystem:ModifyStat(owner, ID.Kills, 1, ModuleUUID) end end) RegisterProtectedOsirisListener("CharacterDied", Data.OsirisEvent...
nilq/small-lua-stack
null
local coroutine_pool = setmetatable({}, { __mode = "kv" }) local function co_create(f) local co = table.remove(coroutine_pool) if co == nil then co = coroutine.create(function(...) f(...) while true do f = nil coroutine_pool[#coroutine_pool + ...
nilq/small-lua-stack
null
-- test_framebuffer.lua package.path = package.path..";../?.lua" local DRMCard = require("DRMCard") -- Try to create a connection to a card first local card, err = DRMCard(); if not card then print("Error creating card: ", err) return false; end
nilq/small-lua-stack
null
local class = require 'libs.middleclass' local Bullet = class('Bullet') function Bullet:initialize(speed, width, height,bullets) self.width = width self.height = height self.speed = speed self.bullets = bullets end function Bullet:create(x,y) self.x = x self.y = y table.insert(self.bullet...
nilq/small-lua-stack
null
-- -- gcc.lua -- Provides GCC-specific configuration strings. -- Copyright (c) 2002-2008 Jason Perkins and the Premake project -- premake.gcc = { } -- -- Set default tools -- premake.gcc.cc = "gcc" premake.gcc.cxx = "g++" premake.gcc.ar = "ar" -- -- Translation of Premake flags into GCC flags ...
nilq/small-lua-stack
null
require 'base' require 'os' MST_ONLY = Clock:new('MST', nil, CLOCK_FONT, 'Arizona') MST_ONLY.condition(function() os.date("*t", os.time()).isdst end) CLOCKS = { Clock:new('EST5EDT', nil, BIG_CLOCK_FONT, 'DC'), Clock:new('JST', nil, CLOCK_FONT, 'Tokyo'), Clock:new('GMT', nil, CLOCK_FONT, 'UTC'), Clock:new('CST6C...
nilq/small-lua-stack
null
local p = peripheral.find("redstoneProbe") test.assert(p, "no capacitor")
nilq/small-lua-stack
null
local ucursor = require 'luci.model.uci'.cursor() local json = require 'luci.jsonc' local server_section = arg[1] local local_port = arg[3] local host = arg[4] local server = ucursor:get_all('vssr', server_section) local ss = { server = host, server_port = server.server_port, local_address = '0.0.0.0', ...
nilq/small-lua-stack
null
local Ball3DRender = class("Ball3DRender") function Ball3DRender.new(nTag, rootBall) local rbDes = { } rbDes.disableSleep = true rbDes.mass = 1.0 rbDes.shape = cc.Physics3DShape:createSphere(0) Ball3DRender = cc.PhysicsSprite3D:create("gameBilliards/3d_ball/ball.c3b", rbDes) if Ball3DRender the...
nilq/small-lua-stack
null
--sandbox.lua require("lualog") local lstdfs = require("lstdfs") local pairs = pairs local loadfile = loadfile local iopen = io.open local mabs = math.abs local tpack = table.pack local tunpack = table.unpack local tinsert = table.insert local sformat = string.format local dgetinfo = debug....
nilq/small-lua-stack
null
workspace "Sentry-Native" function sentry_native_common() language "C++" cppdialect "C++14" includedirs { SRC_ROOT.."/include", } pic "on" filter "system:macosx or linux" toolset("clang") filter "system:windows" buildoptions { "/wd4201", -- nonstandard extension used : nameless str...
nilq/small-lua-stack
null
return {'arabier','arabisch','arabische','arabischtalig','aramees','arameeer','ara','arabesk','arabier','arabisatie','arabiseren','arabisering','arabist','arabistiek','arachideolie','arachnofobie','arak','aramide','aramidevezel','arabicakoffie','arachidonzuur','arab','arabica','arabie','arafurazee','aragon','aralmeer',...
nilq/small-lua-stack
null
-- See LICENSE for terms local mod_EnableMod local function ModOptions(id) -- id is from ApplyModOptions if id and id ~= CurrentModId then return end mod_EnableMod = CurrentModOptions:GetProperty("EnableMod") end -- load default/saved settings OnMsg.ModsReloaded = ModOptions -- fired when Mod Options>Apply but...
nilq/small-lua-stack
null
local wibox = require("wibox") local awful = require("awful") local watch = require("awful.widget.watch") local beautiful = require("beautiful") rhythmbox_widget = wibox.widget { font = 'Play 9', widget = wibox.widget.textbox } rhythmbox_icon = wibox.widget watch( "rhythmbox-client --no-start --print-pl...
nilq/small-lua-stack
null
local Native = require('lib.native.native') ---@class ItemRealField local ItemRealField = { ScalingValue = Native.ConvertItemRealField(0x69736361), --ITEM_RF_SCALING_VALUE } return ItemRealField
nilq/small-lua-stack
null
require 'nnlr' function createModel(nGPU) -- from https://code.google.com/p/cuda-convnet2/source/browse/layers/layers-imagenet-1gpu.cfg -- this is AlexNet that was presented in the One Weird Trick paper. http://arxiv.org/abs/1404.5997 local features = nn.Sequential() local SpatialConvolution = nn.SpatialC...
nilq/small-lua-stack
null
local function parse_args() local cmd = torch.CmdLine() cmd:option("-TrainingData", "", "path for your training data to distill") cmd:option("-TopResponseFile", "", "path for your extracted top frequent responses") cmd:option("-saveFolder", "", "directory for saving output data") cmd:option("-batch...
nilq/small-lua-stack
null
-- =========================================================================== -- Status Message Manager -- Non-interactive messages that appear in the upper-center of the screen. -- =========================================================================== include( "InstanceManager" ); -- =========================...
nilq/small-lua-stack
null
zBTN = 3 -- GPIO0 button zRelay = 6 -- GPIO12 PWM0 relay (active high) zLED = 7 -- GPIO13 PWM1 GREEN LED (active low) --pwm.setup(zLED, 1, 500) --pwm.start(zLED) gpio.mode(zBTN,gpio.INT) pwm.stop(zLED) gpio.write(zLED,1) gpio.trig(zBTN, "both",function() if gpio.read(zBTN)==0 then pwm.stop(zLED) ...
nilq/small-lua-stack
null