content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local Narrow, parent = torch.class('nn.Narrow', 'nn.Module') function Narrow:__init(dimension,offset,length) parent.__init(self) self.dimension=dimension self.index=offset self.length=length or 1 if not dimension or not offset then error('nn.Narrow(dimension, offset, length)') end end function...
nilq/small-lua-stack
null
module(..., package.seeall) -------------------------------------------------------------------------------- -- Event Handler -------------------------------------------------------------------------------- function onCreate(e) layer = flower.Layer() layer:setScene(scene) layer:setTouchEnabled(true) ...
nilq/small-lua-stack
null
------------------------------------------------------------------------------- -- Mob Framework Mod by Sapier -- -- You may copy, use, modify or do nearly anything except removing this -- copyright notice. -- And of course you are NOT allow to pretend you have written it. -- --! @file mov_gen_none.lua --! @brief a d...
nilq/small-lua-stack
null
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2013 Kenny Shields -- --]]------------------------------------------------ -- columnlistheader class local newobject = loveframes.NewObject("columnlistheader", "loveframes_object_columnlistheader", true) ...
nilq/small-lua-stack
null
--[[ _ _ _ _ _ _ _ | | | || || | (_) | | | | | | | || || |_ _ _ __ ___ __ _ | |_ ___ | | ___ __ _ ___ | | | || || __|| || '_ ` _ \ / _` || __| / _ \ | | / _ \ / _` |...
nilq/small-lua-stack
null
hs.automaticallyCheckForUpdates(true) hs.dockicon.hide() hs.menuIcon(false) hs.consoleOnTop(false) hs.uploadCrashData(false)
nilq/small-lua-stack
null
local CorePackages = game:GetService("CorePackages") local Action = require(CorePackages.AppTempCommon.Common.Action) return Action(script.Name, function(open) return { open = open, } end)
nilq/small-lua-stack
null
function Function:compile_au_call (node, base) local tp = base.au_type function get_any_module_of (tp) if not tp.any_module then local arg = module() arg.items = {{name="0", tp=tp}} tp.any_module = module() tp.any_module.base = any_m tp.any_module.argument = arg end retu...
nilq/small-lua-stack
null
-------------------------------- -- @module PhysicsJointRatchet -- @extend PhysicsJoint -- @parent_module cc -------------------------------- -- Get the ratchet angle. -- @function [parent=#PhysicsJointRatchet] getAngle -- @param self -- @return float#float ret (return value: float) -----------------------...
nilq/small-lua-stack
null
loader.SetTransparencyType(3) math.randomseed( os.time() ) -- LIGHT POSITION x = math.random() + math.random(-10.0, 9.0) y = math.random() + math.random(-10.0, 9.0) z = math.random() + math.random(-10.0, 9.0) loader.SetLightPosition(x, y, z) loader.SetCounter(5)
nilq/small-lua-stack
null
SS.Lib = {} -- Library table // Error message function SS.Lib.Error(ID) local Message = string.upper("ERROR: "..ID) Msg("\n\n") Msg(Message.."\n") Msg("\n\n") end // Debug message function SS.Lib.Debug(Message) if (SS.Config.Request("Debug")) then Msg("[SS] Debug: "..Message.."\n") end end // Format ...
nilq/small-lua-stack
null
--- lua table to literal string -- This is a module for convert the lua table(array/hash) to literal string just like the lua code itself -- It propose for the useage like convert a json format rule file to a lua file -- Then we can just require the output lua file,and it return the orig table,without further json deco...
nilq/small-lua-stack
null
-- "THE BEER-WARE LICENSE" (Revision 42): -- <jozef@sudolsky.sk> wrote this file. As long as you retain this notice you -- can do whatever you want with this stuff. If we meet some day, and you think -- this stuff is worth it, you can buy me a beer in return. Jozef Sudolsky function main(request_type) pcall(...
nilq/small-lua-stack
null
--[[ EditBoxGroup.lua @Author : DengSir (tdaddon@163.com) @Link : https://dengsir.github.io ]] local MAJOR, MINOR = 'EditBoxGroup', 1 local EditBoxGroup = LibStub('tdGUI-1.0'):NewClass(MAJOR, MINOR) if not EditBoxGroup then return end function EditBoxGroup:Constructor() self._objectOrders = {} self._objec...
nilq/small-lua-stack
null
local config = require('config'); local party = require('party'); local actions = require('actions'); local packets = require('packets'); local buffs = require('behaviors.buffs') local healing = require('behaviors.healing'); local jdnc = require('jobs.dnc'); local jbrd = require('jobs.brd'); local zones = require('zone...
nilq/small-lua-stack
null
-- -- Copyright 2012 Rackspace -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compli...
nilq/small-lua-stack
null
local oo = require("bp.common.lua_oo") local bt_helper = require 'bp.src.bt_helper' local mt = {} local class_template = {type="all_true", __index=mt} local all_true = oo.class(class_template) function mt:start(graph) self.graph = graph end -- function class_template:__call() function mt:update() for i,condition i...
nilq/small-lua-stack
null
if ( SERVER ) then AddCSLuaFile() end if ( CLIENT ) then SWEP.PrintName = "Scout" SWEP.Author = "Black Tea" SWEP.Slot = 3 SWEP.SlotPos = 1 SWEP.BobScale = 0 SWEP.SwayScale = 0 end SWEP.HoldType = "ar2" SWEP.Base = "weapon_nutcs_base" SWEP.Category = "NutScript 1.1 Weapons" SWEP.Spawnable ...
nilq/small-lua-stack
null
local utils = require "go.utils" local fn = vim.fn local o = vim.o local gomodifytags = {} local transform = _NVIM_GO_CFG_.goaddtags.transform local skip_unexported = _NVIM_GO_CFG_.goaddtags.skip_unexported local function write_out(out) if #out == 0 or fn.type(out) ~= fn.type("") then ...
nilq/small-lua-stack
null
-- This is a part of uJIT's testing suite. -- Copyright (C) 2020-2021 LuaVela Authors. See Copyright Notice in COPYRIGHT -- Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT local a = 0 ::lable1:: a = a + 1 if (a > 10) then goto lable2 end goto lable1 ::lable2:: print(a)
nilq/small-lua-stack
null
import "aergo-contract-ex/safemath" import "aergo-contract-ex/address" ------------------------------------------------------------------------------ -- FixedSupplyToken -- @see https://theethereum.wiki/w/index.php/ERC20_Token_Standard ------------------------------------------------------------------------------ sta...
nilq/small-lua-stack
null
local flagKillBox = {} flagKillBox.name = "YetAnotherHelper/FlagKillBox" flagKillBox.placements = { name = "normal", data = { flag = "example_flag" } } return flagKillBox
nilq/small-lua-stack
null
local iterator = require "ptable.iterator" local ptable = {} for key,value in pairs(iterator) do ptable[key] = value end return ptable
nilq/small-lua-stack
null
local indent = " " local function prettyPrint(value, indentLevel) indentLevel = indentLevel or 0 local output = {} if typeof(value) == "table" then table.insert(output, "{\n") for key, value2 in pairs(value) do table.insert(output, indent:rep(indentLevel + 1)) table.insert(output, tostring(key)) t...
nilq/small-lua-stack
null
------------ -- Uncomplicated Desktop for OpenComputers. -- - [Homepage](https://github.com/quentinrossetti/undesk) -- - [API documentation](https://quentinrossetti.github.io/undesk) -- @module undesk -- @license ICS -- @copyright 2020 Quentin Rossetti <code@bleu.gdn> return { factory = { -- default style, color ba...
nilq/small-lua-stack
null
som_lava_cannon_generic = { minimumLevel = 0, maximumLevel = -1, customObjectName = "Generic lava cannon", directObjectTemplate = "object/weapon/ranged/heavy/som_lava_cannon_generic.iff", craftingValues = { {"mindamage",240,476,0}, {"maxdamage",500,826,0}, {"attackspeed",7.2,4.9,1}, {"woundchance",8.0,16.0...
nilq/small-lua-stack
null
-- Copyright (C) 2018 The Dota IMBA Development Team -- -- 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 ...
nilq/small-lua-stack
null
local CurrentTime local TimeTimer AddEvent("OnPackageStart", function() CurrentTime = 10 -- server start time TimeTimer = CreateTimer(function() CurrentTime = CurrentTime + 0.20 if CurrentTime > 24 then CurrentTime = 0 end SyncTime() end, 60 * 1000) end) AddEve...
nilq/small-lua-stack
null
local key = KEYS[ 1 ] --key base local ts = KEYS[ 2 ] --timestamp local id = redis.call('lpop', key) if id then redis.call('zadd', key .. ":active", ts, id) local res = redis.call('hgetall', key .. ":" .. id) table.insert(res, 1, id) return res else return nil end
nilq/small-lua-stack
null
local lfs = lfs or require("lfs") local util = util or require("util.util") local root = lfs.currentdir() local fs = {} fs.sep = string.match(lfs.currentdir(),"([/\\])") fs.os = fs.sep ~= "/" and "windows" or "unix" local exclude = function (s) if s == "." or s == ".." then return true elseif string.match(s,"^%.git"...
nilq/small-lua-stack
null
setDefaultTab("Tools") local toggle = macro(1000, "mwall step", "F12",function() end) onPlayerPositionChange(function(newPos, oldPos) if oldPos.z ~= posz() then return end if oldPos then local tile = g_map.getTile(oldPos) if toggle.isOn() and tile:isWalkable() then useWith(3180, til...
nilq/small-lua-stack
null
data:extend( { { type = "item", name = "burner-lab", icon = "__base__/graphics/icons/lab.png", flags = {"goes-to-quickbar"}, subgroup = "burner-production-machine", order = "g[lab]", place_result = "burner-lab", stack_size = 10 }, { type = "recipe", name = "burner-lab", ...
nilq/small-lua-stack
null
-------------------------------- -- @module EventListenerKeyboard -- @extend EventListener -------------------------------- -- @function [parent=#EventListenerKeyboard] clone -- @param self -- @return EventListenerKeyboard#EventListenerKeyboard ret (return value: cc.EventListenerKeyboard) ------------------...
nilq/small-lua-stack
null
profilerApi = {} --- Initializes the Profiler and hooks all functions function profilerApi.init() if profilerApi.isInit then return end profilerApi.hooks = {} profilerApi.start = profilerApi.getTime() profilerApi.hookAll("", _ENV) profilerApi.isInit = true end --- Prints all collected data into the log orde...
nilq/small-lua-stack
null
--[[ LICENSE cargBags: An inventory framework addon for World of Warcraft Copyright (C) 2010 Constantin "Cargor" Schomburg <xconstruct@gmail.com> cargBags 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; e...
nilq/small-lua-stack
null
-- Credits to Radon & Xandaros SF.VMatrix = {} --- VMatrix type local vmatrix_methods, vmatrix_metamethods = SF.RegisterType("VMatrix") local wrap, unwrap = SF.CreateWrapper(vmatrix_metamethods, true, false, debug.getregistry().VMatrix) local vec_meta, vwrap, vunwrap, ang_meta, awrap, aunwrap local dgetmeta = debug.g...
nilq/small-lua-stack
null
-- https://rubenwardy.com/minetest_modding_book/en/map/timers.html#active-block-modifiers -- An ABM seems slow, but this is a great feature for cleaning up those crashs -- MTG minetest.register_abm({ nodenames = {"xray:mtg_stone"}, interval = 1, -- Run every X seconds action = function(pos, node, active_ob...
nilq/small-lua-stack
null
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_dark_seer...
nilq/small-lua-stack
null
--[[ © 2018 Thriving Ventures AB do not share, re-distribute or modify without permission of its author (gustaf@thrivingventures.com). ]] -- -- 2 tables -- 'buddies' -> Table containing the friends. -- 'friends' -> Table containing CPPI friend entities. -- serverguard.AddFolder("prop-protection") local plugin = plu...
nilq/small-lua-stack
null
local function init() DarkRP.removeChatCommand("advert") DarkRP.declareChatCommand({ command = "advert", description = "Displays an advertisement to everyone in chat.", delay = 1.5 }) if (SERVER) then DarkRP.defineChatCommand("advert",function(ply,args) if args == "" then DarkRP.notify(ply,...
nilq/small-lua-stack
null
-- create node Multiply require "moon.sg" local node = moon.sg.new_node("sg_mul") if node then node:set_pos(moon.mouse.get_position()) end
nilq/small-lua-stack
null
local authapp = require "authapp" local cas = require "cas" local http = require "resty.http" local cjson_safe = require "cjson.safe" -- Gets a JWT from a session cookie, if there -- is a valid one. local function get_jwt_from_session_cookie() local session, netid = cas.session_and_netid() -- There is no neti...
nilq/small-lua-stack
null
--should be placed in a SERVERSCRIPT game.Players.PlayerAdded:Connect(function(Player) local MaxStamina = Instance.new("IntValue",Player) MaxStamina.Name = "MaxStamina" MaxStamina.Value = 100 local Stamina = Instance.new("IntValue",Player) Stamina.Name = "Stamina" Stamina.Value = MaxStamina.Value end)
nilq/small-lua-stack
null
function love.conf(t) t.author = "profan" t.identity = nil t.version = "0.10.1" t.release = false t.console = false t.window.title = "DSVJAM 16" t.window.icon = nil t.window.width = 640 t.window.height = 480 t.window.vsync = true t.window.fsaa = 0 t.window.fullscreen = f...
nilq/small-lua-stack
null
-- a sample PLE configuration / extension file ------------------------------------------------------------------------ -- The configuration file is looked for in sequence at the -- following locations: -- - the file which pathname is in the environment variable PLE_INIT -- - ./ple_init.lua -- - ~/config/ple/ple_init....
nilq/small-lua-stack
null
local GameState = require 'game.state.game_state' local ww, wh = love.graphics.getDimensions() local Splash = {} Splash.__index = Splash setmetatable(Splash, { __index = GameState }) function Splash.create() local self = GameState.create() setmetatable(self, Splash) self.startTime = nil self.done = ...
nilq/small-lua-stack
null
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "Base Docking Clamp" ENT.Author = "Paradukes, Hysteria" ENT.Category = "SBEP" ENT.Spawnable = false ENT.AdminSpawnable = false ENT.Owner = nil ENT.CPL = nil ENT.MDist = 2000000 ENT.ScanDist = 2000 ENT.DockMode = 1 -- 0 = Disengaging,...
nilq/small-lua-stack
null
--- -- @description Implements surface-related classes and functions. -- @author simplex local Lambda = wickerrequire 'paradigms.functional' local Pred = wickerrequire 'lib.predicates' local Common = pkgrequire "common" local VVF = Common.VectorValuedFunction local C = wickerrequire "math.complex" Surface = Class...
nilq/small-lua-stack
null
--[[ Basic Function Setup: function(player, args) -- args is an array and can be empty ... -- do stuff ... end ]]-- --Example Without arguments function test_cmd1(player, args) for _, player_x in pairs(game.players) do player_x.print("Hello from " .. player.surface.name .. "!") end end --Example With a...
nilq/small-lua-stack
null
-- Converts messages generated from Serializers.StringChunks -- -- See Also: -- Serializers-StringChunks.lua if nil ~= require then require "fritomod/currying"; require "fritomod/Functions"; require "fritomod/OOP-Class"; end; StringChunkReader = OOP.Class("StringChunkReader"); local DELIMITER_BYTE=(":"):byte(1); ...
nilq/small-lua-stack
null
--[[ Copyright (c) 2014 Juan Carlos González Amestoy 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
-- JSProtobuf.lua -- Description: protobuf编解码封装 import('Protobuf') local JSProtobuf = class("JSProtobuf") function JSProtobuf:ctor( ) self.m_registerMap = {} self.m_configMap = {} end --[[ @desc: pb编码 author:{author} time:2019-05-21 18:42:20 --@name: GamePb.method --@data: 数据(Table) @retur...
nilq/small-lua-stack
null
print(arg[0])
nilq/small-lua-stack
null
-- Build By SilentX -- Fell Free To Copy And Removing Credit -- I Recommend Not To Use Main ID Game is For Fun Don't Take it Seriously -- Execute This script At Logo function split(szFullString, szSeparator) local nFindStartIndex = 1 local nSplitIndex = 1 local nSplitArray = {} while true do loca...
nilq/small-lua-stack
null
local text = { [1] = 'first', [2] = 'second', [3] = 'third', [4] = 'fourth', [5] = 'fifth', [6] = 'sixth', [7] = 'seventh', [8] = 'eighth', [9] = 'ninth', [10] = 'tenth', [11] = 'eleventh', [12] = 'twelfth', [13] = 'thirteenth', [14] = 'fourteenth', [15] = 'fifteenth' } local stonePositions = { Position(32851, 323...
nilq/small-lua-stack
null
package.path = package.path..';.luarocks/share/lua/5.2/?.lua;.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath..';.luarocks/lib/lua/5.2/?.so' http = require('socket.http') https = require('ssl.https') url = require('socket.url') json = require('dkjson') require("config") require("extra") function bot_r...
nilq/small-lua-stack
null
local utils = require('me.utils') local home = utils.home local on_attach = utils.on_attach local capabilities = utils.capabilities local jdtls = require('jdtls') vim.opt_local.colorcolumn = '100' local on_attach_jdtls = function(client, bufnr) on_attach(client, bufnr) jdtls.setup_dap({hotcodereplace = 'auto'...
nilq/small-lua-stack
null
-- This plugin implements http://xmpp.org/extensions/xep-0157.html local t_insert = table.insert; local df_new = require "util.dataforms".new; -- Source: http://xmpp.org/registrar/formtypes.html#http:--jabber.org-network-serverinfo local valid_types = { abuse = true; admin = true; feedback = true; sales = true; s...
nilq/small-lua-stack
null
-------------------------------- -- @module FadeOutBLTiles -- @extend FadeOutTRTiles -- @parent_module cc -------------------------------- -- @function [parent=#FadeOutBLTiles] create -- @param self -- @param #float float -- @param #size_table size -- @return FadeOutBLTiles#FadeOutBLTiles ret (return value: cc.FadeO...
nilq/small-lua-stack
null
local tools = require('Utils.ToolSet') local generateFillMesh = require('Utils.FillMesh') local UISprite = class('UISprite') local getters = UISprite.getters local setters = UISprite.setters local ZERO_ARRAY_4 = { 0,0,0,0,0,0,0,0 } local ZERO_ARRAY_8 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} local ZERO_ARRAY_16 = ...
nilq/small-lua-stack
null
----------------------------------------------------------------------------- -- Name: minimal.wx.lua -- Purpose: Minimal wxLua sample -- Author: J Winwood -- Modified by: -- Created: 16/11/2001 -- RCS-ID: $Id: minimal.wx.lua,v 1.11 2008/01/22 04:45:39 jrl1 Exp $ -- Copyright: (c) 2001 J Winw...
nilq/small-lua-stack
null
-- Zytharian (roblox: Legend26) -- Services local projectRoot = game:GetService("ServerScriptService") local RS = game:GetService("ReplicatedStorage") -- Includes local cs = require(projectRoot.Modules.ClassSystem) local Access = require(projectRoot.Modules.AccessManagement) local CEnums = require(RS.CommandEnums) lo...
nilq/small-lua-stack
null
require("prototypes.compatability.Krastorio2_Equipment"); local function AddEquipmentCategories(equipment_category) if data.raw["equipment-category"][equipment_category] then table.insert(data.raw["equipment-grid"]["cargo-plane-equipment-grid"].equipment_categories, equipment_category) table.insert(data.raw["equi...
nilq/small-lua-stack
null
return { RouteNotFoundError = require("tbsp.errors.route_not_found"), StaticFileNotFoundError = require("tbsp.errors.static_file_not_found") }
nilq/small-lua-stack
null
local a a = b or c or d == e
nilq/small-lua-stack
null
include('shared.lua') surface.CreateFont('BankFont', {font = 'Coolvetica Rg', size = 100}) function ENT:Draw() self:DrawModel() if LocalPlayer():GetPos():DistToSqr(self:GetPos()) <= 360000 then --600^2 if not self.DisplayText then self.DisplayText = {} self.DisplayText.Rotation...
nilq/small-lua-stack
null
--[[ stereo reverb with early reflection section ]] require "include/protoplug" local cbFilter = require "include/dsp/cookbook filters" local Line = require "include/dsp/delay_line" tapl = { 1, 150, 353, 546, 661, 683, 688, 1144, 1770, 2359, 2387, 2441, 2469, 2662, 2705, 3057, 3084, 3241,...
nilq/small-lua-stack
null
local function getExplosion(x, y) local explosion = {} explosion.lifetime = 10 explosion.name = 'explosion' explosion.deleted = false explosion.particleSystem = love.graphics.newParticleSystem(resources.images.explosion) explosion.particleSystem:setSpeed(70, 150) explosion.particleSystem:set...
nilq/small-lua-stack
null
Talk(8, "这”侠客行”的古诗图解,包含着古往今来最博大精深的武学秘奥...你瞧,这第一句”赵客缦胡缨”,其中对这个”胡”字的注解...", "talkname8", 0); if InTeam(38) == true then goto label0 end; do return end; ::label0:: --Add3EventNum(-2, 4, 0, 0, 26) --Add3EventNum(-2, 5, 0, 0, 26) --Add3EventNum(-2, 6, 0, 0, 3) ModifyEvent(-2, -2, -2, -2, 384, -1, -1, -2,...
nilq/small-lua-stack
null
local K = unpack(select(2, ...)) local _G = _G local select = select local pairs = pairs local Enum = _G.Enum local IsFalling = _G.IsFalling local CreateFrame = _G.CreateFrame local UnitPosition = _G.UnitPosition local GetUnitSpeed = _G.GetUnitSpeed local CreateVector2D = _G.CreateVector2D local C_Map_GetMapInfo = _G...
nilq/small-lua-stack
null
local allowCountdown = false local startedFirstDialogue = false local startedEndDialogue = false function onStartCountdown() makeAnimatedLuaSprite('ts2', 'ts2', 315, 152); setLuaSpriteScrollFactor('ts2', 0.9, 0.9); addLuaSprite('ts2', false); makeAnimatedLuaSprite('pp', 'pp', 215, 175); setLuaSpriteS...
nilq/small-lua-stack
null
--- Share operations -- -- @module share -- @pragma nostrip setfenv(1, require "sysapi-ns") require "share.share-windef" local netapi32 = ffi.load("netapi32") local M = SysapiMod("Share") --- Add share -- @param shareName share name -- @param sharePath share path -- @param[opt=STYPE_DISKTREE] shareType share type -- ...
nilq/small-lua-stack
null
config = { var0 = { var0 = 'test1', var1 = 'test2' }, var1 = { value1 = 0, value2 = 1 }, }
nilq/small-lua-stack
null
hook.Add( "PopulateMenuBar", "NPCOptions_MenuBar", function( menubar ) local m = menubar:AddOrGetMenu( "NPCs" ) m:AddCVar( "Disable Thinking", "ai_disabled", "1", "0" ) m:AddCVar( "Ignore Players", "ai_ignoreplayers", "1", "0" ) m:AddCVar( "Keep Corpses", "ai_serverragdolls", "1", "0" ) m:AddCVar( "Join Player...
nilq/small-lua-stack
null
#!/usr/bin/env tarantool test = require("sqltester") test:plan(170) --!./tcltestrunner.lua -- 2008 June 24 -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others....
nilq/small-lua-stack
null
-- zenburn-custom, awesome3 theme, by Adrian C. (anrxc) --{{{ Main local awful = require("awful") awful.util = require("awful.util") theme = {} home = os.getenv("HOME") config = awful.util.getdir("config") shared = "/usr/share/awesome" if not awful.util.file_readable(shared .. "/icons/awesome1...
nilq/small-lua-stack
null
TaungWarriorBunker = ScreenPlay:new { numberOfActs = 1, screenplayName = "TaungWarriorBunker" } registerScreenPlay("TaungWarriorBunker", true) function TaungWarriorBunker:start() if (isZoneEnabled("mandalore")) then self:spawnMobiles() self:spawnSceneObjects() end end function TaungWarriorBunker:spawnSceneOb...
nilq/small-lua-stack
null
telemetry = {} function main() local err = can.init(500, can_handler) if err and err ~= 0 then enapter.log("CAN failed: "..err.." "..can.err_to_str(err), "error", true) end scheduler.add(30000, properties) scheduler.add(1000, metrics) end function properties() enapter.send_properties({ vendor = "Pylo...
nilq/small-lua-stack
null
x = {} y = {} z = {} setmetatable(y, z) print (getmetatable(x)) print (getmetatable(y))
nilq/small-lua-stack
null
local Node = require 'amour.node' local Image = Node:extend() function Image:new(x, y, image, color) self.image = (type(image) == 'string' and love.graphics.newImage(image)) or image self.color = color or { 1, 1, 1, 1 } Image.super.new(self, x, y, self.image:getDimensions()) end function Image:realdraw() ...
nilq/small-lua-stack
null
--[[ Jeder Client der in einem Channel ist, dessen Channelnamen etwas von der Blacklist beinhaltet, wird nicht angestupst. z.B. blacklistchannel = {"Aufnahme"} Alle Clients die in den Aufnahme Channeln sind werden nicht angestupst. z.B. blacklistchannel = {"Aufnahme","Micha"} Alle Clients die in den Aufnahme Channeln ...
nilq/small-lua-stack
null
local BasePlugin = require "kong.plugins.base_plugin" local access = require "kong.plugins.network-jitter.access" local header_filter = require "kong.plugins.network-jitter.header_filter" local body_filter = require "kong.plugins.network-jitter.body_filter" local NetWorkJitterHandler = BasePlugin:extend() function Ne...
nilq/small-lua-stack
null
#!/usr/bin/env lua local exec = require "tek.lib.exec" local c = exec.run({ taskname = "worker", func = function() local exec = require "tek.lib.exec" while true do local order, sender = exec.waitmsg() if order == "getrandom" then exec.sendmsg(sender, math.random(1, 10)) elseif order == "quit" then break ...
nilq/small-lua-stack
null
--[[ CorvusSKK Lua拡張スクリプト Cから呼ばれるLuaの関数 辞書検索 lua_skk_search(key, okuri) key : 見出し語 string okuri : 送り仮名 string 戻り値 : "/<C1><;A1>/<C2><;A2>/.../<Cn><;An>/\n" or "" string 補完 lua_skk_complement(key) key : 見出し語 string 戻り値 : "/<K1>/<K2>/.../<Kn>/\n" or "" string 見出し語変換 ...
nilq/small-lua-stack
null
SKILL.name = "Thunderbolt of Urannon" SKILL.LevelReq = 15 SKILL.SkillPointCost = 3 SKILL.Incompatible = { } SKILL.RequiredSkills = { } SKILL.icon = "vgui/skills/Spell_fire_flamebolt.png" SKILL.category = "Lore of Heavens"-- Common Passives, Warrior, Lore of Light, Lore of Life SKILL.slot = "RANGED" -- ULT, RANGED, ...
nilq/small-lua-stack
null
local Map = require "maps.map" local MountainVillage = Map:new() function MountainVillage:new(o, control) o = o or Map:new(o, control) setmetatable(o, self) self.__index = self return o end function MountainVillage:create() Map.create(self) end function MountainVillage:enter() Map.enter(self) if self...
nilq/small-lua-stack
null
----------------------------------------------------------------------------------------------- -- local title = "Cave Stuff" -- local version = "0.0.3" -- local mname = "cavestuff" ----------------------------------------------------------------------------------------------- -- dofile(minetest.get_modpath("cavest...
nilq/small-lua-stack
null
ITEM.name = "Bastard" ITEM.description = "A crude SMG made out of a mix of rubber and crude steel. Firing Crude SMG Rounds." ITEM.model = "models/devcon/mrp/weapons/w_bastard.mdl" ITEM.class = "tfa_metro_exo_bastard" ITEM.weaponCategory = "primary" ITEM.width = 3 ITEM.height = 1 ITEM.chance = 45 ITEM.rare = true
nilq/small-lua-stack
null
output_terminal{type = "qt", font = "Arial,14"} --available types include qt, png, eps and tex. -- create y vector. local y ={} for i = 1, 20 do y[i] = i*i end -- case 2. --plot(line(y)) -- create x vector. local x ={} for i = 1, 20 do x[i] = i/2 end -- case 3. plot(line(x, y)) -- case 4. local vy = ta...
nilq/small-lua-stack
null
--[[ /* * V4L2 video capture example * * This program can be used and distributed without restrictions. * * This program is provided with the V4L2 API * see http://linuxtv.org/docs.php for more information */ --]] require ("videodev2") local function CLEAR(x) libc.memset(x, 0, ffi.sizeof(x)) end ...
nilq/small-lua-stack
null
local M = {} M.bounds_min = vmath.vector3(-5.0, -0.203080996871, -5.0) M.bounds_max = vmath.vector3(5.0, 1.5429489908e-09, 5.00126552582) M.size = vmath.vector3(10.0, 0.203080998414, 10.0012655258) return M
nilq/small-lua-stack
null
PPI = require("ppi") ppi = PPI.Load("aedf0cb0be5bf045860d54b7") soundvolume=30 musicvolume=30 volid=1 priorarea="none" currentarea="none" rooms={} dir=world.GetInfo(67) print(dir) cl={} function getconfig(cn) for c=1,#cl do if cl[c].name==cn then return cl[c].value end end print("error: Unable to locate "..cn.." in c...
nilq/small-lua-stack
null
-- Copyright 2011-15 Paul Kulchenko, ZeroBrane LLC -- authors: Luxinia Dev (Eike Decker & Christoph Kubisch) -- Lomtik Software (J. Winwood & John Labenski) --------------------------------------------------------- local ide = ide local unpack = table.unpack or unpack -- Pick some reasonable fixed width fonts to use ...
nilq/small-lua-stack
null
class("RenameCommanderCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot4 = slot1:getBody().name if not getProxy(CommanderProxy):getCommanderById(slot1.getBody().commanderId) then return end if not slot6:canModifyName() then return end if not slot4 or slot4 == "" then return end if HXS...
nilq/small-lua-stack
null
include( "Constants.lua" ) include("entities/gmod_wire_hud_indicator_2/util/tables.lua") HMLParser = {} function HMLParser:new( code ) local obj = {} setmetatable( obj, {__index = HMLParser} ) obj.code = code obj.tree = {} obj.valid = false obj.constants = HMLConstants() obj.inputs = {} obj.validTypes = {} ...
nilq/small-lua-stack
null
local Randomizer = require 'tetris.randomizers.randomizer' local Bag5AltRandomizer = Randomizer:extend() function Bag5AltRandomizer:initialize() self.bag = {"I", "J", "L", "O", "T"} self.prev = nil end function Bag5AltRandomizer:generatePiece() if next(self.bag) == nil then self.bag = {"I", "J", "L", "O", "T"} ...
nilq/small-lua-stack
null
local cluster_remote = { type = "capsule", name = "artillery-cluster-remote", icon = "__AdvancedArtilleryRemotesContinued__/graphics/icons/artillery-cluster-remote.png", icon_size = 32, capsule_action = { type = "artillery-remote", flare = "artillery-cluster-flare" }, subgroup = "capsule", order...
nilq/small-lua-stack
null
local playsession = { {"mewmew", {45326}}, {"EPO666", {71199}}, {"Sjetil", {69672}}, {"Sterbehilfen", {67838}}, {"FireEnder", {8646}}, {"McC1oud", {48048}}, {"Kamyk", {45174}}, {"Krono", {40783}}, {"Leon55", {38352}}, {"Lillbirro", {24133}}, {"Jardee", {27824}}, {"Zorky", {18531}}, {"Vinerr", {16559}}, {"...
nilq/small-lua-stack
null
-- NETWORK CONTROLLER OBJECT -- -- Create the Network Controller base object -- NC = { ent = nil, player = "", MF = nil, dataNetwork = nil, invObj = nil, animID = 0, updateTick = 300, lastUpdate = 0 } -- Constructor -- function NC:new(ent) if ent == nil then return end local t = {} local mt = {} setmet...
nilq/small-lua-stack
null
local af, num_panes = unpack(...) if not af or type(num_panes) ~= "number" then return end -- ----------------------------------------------------------------------- local panes, active_pane = {}, {} local style = ToEnumShortString(GAMESTATE:GetCurrentStyle():GetStyleType()) local players = GAMESTATE:GetHumanPlaye...
nilq/small-lua-stack
null