content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
return {
source = {
type = 'dist',
location = 'https://dbus.freedesktop.org/releases/dbus/dbus-1.10.14.tar.gz',
sha256sum = '23238f70353e38ce5ca183ebc9525c0d97ac00ef640ad29cf794782af6e6a083'
},
patches = {
'capi-dbus-1-pc.patch',
'capi-dbus-add-send-with-reply-s... | nilq/small-lua-stack | null |
require("__5dim_core__.lib.resources.generation-masher")
local crafting = 2
local modules = 2
local energy = 360
local emisions = 1
local techCount = 250
-- Electric furnace 01
genMasher {
number = "01",
subgroup = "masher",
craftingSpeed = crafting,
moduleSlots = modules,
energyUsage = energy,
... | nilq/small-lua-stack | null |
Citizen.CreateThread(function()
while not ESX do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(500)
end
end)
local isNearPump = false
local isFueling = false
local currentFuel = 0.0
local currentCost = 0.0
local currentCash = 1000
local fuelSynced = false
local inBlacklisted = fal... | nilq/small-lua-stack | null |
module 'mock'
CLASS: Behaviour ( Component )
:MODEL{}
:META{
category = 'behaviour'
}
--------------------------------------------------------------------
function Behaviour:installInputListener( option )
return installInputListener( self, option )
end
function Behaviour:uninstallInputListener()
return unins... | nilq/small-lua-stack | null |
---@meta
---@class cc.EventListenerAssetsManagerEx :cc.EventListenerCustom
local EventListenerAssetsManagerEx={ }
cc.EventListenerAssetsManagerEx=EventListenerAssetsManagerEx
---* Initializes event with type and callback function
---@param AssetsManagerEx cc.AssetsManagerEx
---@param callback function
---@return... | nilq/small-lua-stack | null |
nssm:register_mob("nssm:lava_titan", "Lava Titan", {
type = "monster",
hp_max = 180,
hp_min = 180,
collisionbox = {-0.45, -0.05, -0.45, 0.45, 1.8, 0.45},
visual = "mesh",
mesh = "lava_titan.x",
textures = {{"lava_titan.png"}},
visual_size = {x=2.7, y=2.7},
makes_footstep_sound = true... | nilq/small-lua-stack | null |
local class = require 'middleclass'
local lovetoys = require 'lovetoys.lovetoys'
local System = class('BehaviorSystem', lovetoys.System)
function System:initialize()
lovetoys.System.initialize(self)
end
function System:requires()
return { 'Actor', 'Behavior' }
end
function System:update(dt)
for index, ... | nilq/small-lua-stack | null |
local utils = require("config/utils")
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.hlsearch = false
vim.opt.hidden = true
vim.opt.errorbells = false
vim.opt.wrap = false
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab =... | nilq/small-lua-stack | null |
local dap = require("dap")
dap.defaults.fallback.external_terminal = {command = "/usr/bin/kitty", args = {"-e"}}
vim.g.dap_virtual_text = true
-- Nodejs debugging
-- https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#javascript
dap.adapters.node2 = {
type = "executable",
command = "node... | nilq/small-lua-stack | null |
local L = LibStub("AceLocale-3.0"):NewLocale("BestInSlotRedux", "itIT")
if L then
end
| nilq/small-lua-stack | null |
local args = {...}
local pss = args[1]
--text for the stage counter
local stage_text
local failed = pss:GetFailed()
local dark_length = 0
if failed then
local songs_passed = pss:GetSongsPassed()
if songs_passed < 10 then dark_length = 1 end
stage_text = string.format("%02d STAGE",pss:GetSongsPassed())
else
stage_t... | nilq/small-lua-stack | null |
__source 'extensions/lua_tools/ac_ext_lua_tools.cpp'
__allow 'luatools'
require './common/internal_import'
require './common/ac_audio'
require './common/ac_light'
require './common/ac_render'
require './common/ac_ray'
require './common/ac_positioning_helper'
require './common/ac_ui'
require './common/ac_apps'
require ... | nilq/small-lua-stack | null |
local cjson = require "cjson"
ngx.say(cjson.encode({ status = true }))
return ngx.exit(ngx.HTTP_OK)
| nilq/small-lua-stack | null |
-- Script to set RGB color to a device
-- Define your device and settings here:
local trigger = deviceManager:findByName('red') -- Name of the trigger
local rgb = deviceManager:findByName('rgb') -- Name of the rgb-device
------ Do not change below ------
local deviceManager = require "telldus.DeviceManager"
function... | nilq/small-lua-stack | null |
local theme = require("vsdark.theme")
local utils = {}
utils.highlight = function(group, highlights)
local fg = highlights[1] and " guifg=" .. highlights[1] or " guifg=NONE"
local bg = highlights[2] and " guibg=" .. highlights[2] or " guibg=NONE"
local attr = highlights[3] and " gui=" .. highlights[3] or " gui=NO... | nilq/small-lua-stack | null |
local inventory = {}
function inventory.new(width, height)
local slots = {}
for x = 1, width do
slots[x] = {}
for y = 1, height do
slots[x][y] = {amount=0}
end
end
return setmetatable({
slots = slots,
}, {__index=inventory})
end
return inventory
| nilq/small-lua-stack | null |
--region CStringSpliter_Tester.lua
--Author : jefflwq
--Date : 2015/2/28
--说明 : CStringSpliter 类的测试程序
--endregion
if true then --false:启用测试, true:禁用测试(测试无问题后请设为true)
return
end
using "Joop"
using "System.Tester"
using "System.Text"
namespace "Testers.JLib"
{
static_class "CStringSpl... | nilq/small-lua-stack | null |
local skynet = require "skynet"
require "skynet.manager"
local CMD = {}
skynet.register_protocol {
name = "text",
id = skynet.PTYPE_TEXT,
unpack = skynet.tostring,
dispatch = function(_, address, msg)
log.debug(string.format("[%08x]: %s", address, msg))
end
}
skynet.register_protocol {
name = "SYSTEM",
i... | nilq/small-lua-stack | null |
local mapengine = {}
local mapBank = {}
local spritBank = {}
local spritesheet = ''
local protoMap
function mapengine:loadLevel(level, world)
protoMap = loadfile(level)()
spritesheet = love.graphics.newImage('images/roguelikeDungeon_transparent.png')
for y=1, protoMap.height do
mapBank[y] = {}
fo... | nilq/small-lua-stack | null |
local kEchoDelay = 4 -- from 5 seconds to 4 seconds.
local gTeleportClassnames
local function GetTeleportClassname(techId)
if not gTeleportClassnames then
gTeleportClassnames = {}
gTeleportClassnames[kTechId.TeleportHydra] = "Hydra"
gTeleportClassnames[kTechId.TeleportWhip] = "Whip"
... | nilq/small-lua-stack | null |
_G.scale = 3
function love.load()
resize(_G.scale)
love.graphics.setBackgroundColor(hex2rgb("25262c"))
love.graphics.setDefaultFilter('nearest', 'nearest')
loadSprites()
end
function love.update(dt)
end
function love.draw()
width = love.graphics.getWidth()
height = love.graphics.getHeight()
--drawSel... | nilq/small-lua-stack | null |
function div(a, b) return math.floor(a/b) end
for line in io.lines(arg[1]) do
local s = {}
for i in line:gmatch("%S+") do
s[#s+1] = tonumber(i)
end
local n = s[1]
s[1], s[#s] = s[#s], nil
table.sort(s)
local u, r = s[div(n, 2) + 1], 0
for _, i in ipairs(s) do
r = r + math.abs(i - u)
end
pri... | nilq/small-lua-stack | null |
local E, L, DF = unpack(ElvUI)
local RD = E:NewModule('RAIDCD', 'AceEvent-3.0')
----------------------------------------------------------------------------------------
-- Raid cooldowns
-- Modify by eui.cc at 2012.8.20
----------------------------------------------------------------------------------------
local sh... | nilq/small-lua-stack | null |
#!/bin/env lua
local values = require("custom/values")
local awful = require("awful")
modkey = values.modkey
keys = awful.util.table.join(
-- terminal
awful.key({ modkey, }, "Return", function () awful.util.spawn(values.terminal_tmux) end),
awful.key({ modkey, "Shift" }, "Return", function () awful.u... | nilq/small-lua-stack | null |
-- Команда /spectateself для тестирования наблюдения
local DEBUG_SPECTATING = false
local isActive = false
local spectatingPlayerIndex = 1
local spectatingPlayer
local mouseX = 0
local mouseY = 0
local screenSize = Vector2(guiGetScreenSize())
local cameraRotation = 0
local cameraVertical = 15
local autoSwitchTimer... | nilq/small-lua-stack | null |
local Dictionary = script.Parent
local Llama = Dictionary.Parent
local t = require(Llama.t)
local validate = t.table
local function values(dictionary)
assert(validate(dictionary))
local valuesList = {}
local index = 1
for _, value in pairs(dictionary) do
valuesList[index] = value
index = ... | nilq/small-lua-stack | null |
--***********************************************************
--** THE INDIE STONE **
--***********************************************************
---@class ISJoypadDebugUI : ISUIElement
ISJoypadDebugUI = ISUIElement:derive("ISJoypadDebugUI");
local FONT_HGT_DEBUG = getTextManag... | nilq/small-lua-stack | null |
local AutoApp = {}
AutoApp.__index = AutoApp
function AutoApp.new(appConfig, example__Printer, example__AltPrinter)
return setmetatable(
{
appConfig = appConfig,
printer = example__Printer,
altPrinter = example__AltPrinter
}, AutoApp)
end
function AutoApp.run(self)
self.printer... | nilq/small-lua-stack | null |
local mmh3 = require "murmurhash3"
local murmurhash3 = mmh3.murmurhash3
local murmurhash3_128 = mmh3.murmurhash3_128
local function assert_cmd_success(cmd)
local exit = os.execute(cmd)
-- The return value from os.execute of different LuaJIT version is
-- different, because of the compatibility with Lua 5.2... | nilq/small-lua-stack | null |
-----------------------------------
--
-- Zone: Halvung (62)
--
-----------------------------------
local ID = require("scripts/zones/Halvung/IDs")
require("scripts/globals/helm")
-----------------------------------
function onInitialize(zone)
tpz.helm.initZone(zone, tpz.helm.type.MINING)
end
function onZoneIn(pl... | nilq/small-lua-stack | null |
slash_warrior = {
cast = function(player, target)
local d = {}
local m = player.m
local x = player.x
local y = player.y
local sound = 60
local magic = 60
if not player:canCast(1, 1, 0) then
return
end
if (player.magic < magic) then
player:sendMinitext("You do not have enough mana.")
return... | nilq/small-lua-stack | null |
Config = {
ResolutionX = 1280,
ResolutionY = 720,
VolumeSfx = 1,
VolumeMusic = 1,
AutoZoom = true,
AutoFocus = true, -- only works when AutoZoomEnabled
}
| nilq/small-lua-stack | null |
P = function(v)
print(vim.inspect(v))
return v
end
RELOAD = function(...)
return require("plenary.reload").reload_module(...)
end
R = function(name)
RELOAD(name)
return require(name)
end
| nilq/small-lua-stack | null |
--[[
main file to train a deep neural network.
run as:
>> th main.lua -data mydata.dat
to see additional parameters:
>> th main.lua --help
]]
require 'nn'
require 'stratBatchIter'
require 'meanF1score'
require 'optim'
require 'hdf5'
json = require 'json'
cmd = torch.CmdLine()
cmd:text()
cmd:text()
cmd:text('Deep neur... | nilq/small-lua-stack | null |
local Milo = require('milo')
local Sound = require('sound')
local UI = require('ui')
local colors = _G.colors
local context = Milo:getContext()
local device = _G.device
local speakerNode = context.storage:getSingleNode('speaker')
if speakerNode then
Sound.setVolume(speakerNode.volume)
end
local wizardP... | nilq/small-lua-stack | null |
Object = require('./helpers/classic')
Bullet = Object:extend()
local bulletImage = love.graphics.newImage('resources/player/bullet1.png')
function Bullet:new(x, y, direction)
self.name = 'Bullet'
self.startX = x
self.startY = y
self.x = x
self.y = y
self.xVelocity = 200
self.direction = direction
sel... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------------
---main_menu_page_init_callbacks.lua
---author: Karl
---date: 2021.7.7
---desc: implements the callbacks that initializes the main menu menu pages
-------------------------------------------------------------------------... | nilq/small-lua-stack | null |
local BASE_URL = "https://raw.githubusercontent.com/Deleranax/ComputerCraft-Projects/master/"
if not _G.tpmTemp then
_G.tpmTemp = {database = {}, installed = {}}
end
function httpGet(url)
if not http then
printError("HTTP is not available.")
return nil
end
local data, err = http.get(url, n... | nilq/small-lua-stack | null |
function extDynamicLib(location, dllname, env)
local configs =
{
{
filter="platforms:*32",
arch="x86"
},
{
filter="platforms:*64",
arch="x64"
}
}
for key,config in pairs(configs) do
filter (config.filter)
... | nilq/small-lua-stack | null |
local KUI, E, L, V, P, G = unpack(select(2, ...))
function KUI:LoadDetailsProfile()
_detalhes_global["__profiles"]['Klix'] = {
["capture_real"] = {
["heal"] = true,
["spellcast"] = true,
["miscdata"] = true,
["aura"] = true,
["energy"] = true,
["damage"] = true,
},
["row_fade_in"] = {
"in"... | nilq/small-lua-stack | null |
require 'torch'
require 'cutorch'
require 'nn'
require 'cunn'
require 'cudnn'
require 'string'
require 'csvigo'
require 'image'
require 'math'
require 'randomkit'
require 'Dataframe'
require 'os'
npy4th = require 'npy4th'
local utils = {}
function utils.init_identity(net)
--[[
Inits with identity weights
Args:... | nilq/small-lua-stack | null |
include('shared.lua')
SWEP.Slot = 2 // Slot in the weapon selection menu
SWEP.SlotPos = 3 // Position in the slot
SWEP.DrawAmmo = false // Should draw the default HL2 ammo counter // Should draw the default crosshair
SWEP.DrawWeaponInfoBox = true // Should draw the weapon info box
SWEP.BounceW... | nilq/small-lua-stack | null |
lspconfig = require'lspconfig'
completion_callback = require'completion'.on_attach
lspconfig.rust_analyzer.setup{on_attach=completion_callback}
| nilq/small-lua-stack | null |
local PedList
RegisterServerEvent('InitialCore:RecupPlayerIDCardInfo')
AddEventHandler('InitialCore:RecupPlayerIDCardInfo', function()
local PlayerSteamID = GetPlayerIdentifier(source)
MySQL.Async.fetchAll("SELECT * FROM playerinfo WHERE SteamID='" .. PlayerSteamID .. "'", {}, function(idcardinfo)
loc... | nilq/small-lua-stack | null |
local segno = {}
segno.core = require "core"
segno.pa = require "pa"
segno.pac = require "pac"
segno.osc = require "osc"
segno.op = require "op"
segno.env = require "env"
segno.dl = require "dl"
segno.fx = require "fx"
segno.file = require "file"
return segno
| nilq/small-lua-stack | null |
#!/usr/bin/lua5.1
require("json")
if not jit then
print("Not using LuaJIT. This may be really slow.")
end
function file_get_contents(file)
local f = io.open(file, "rb")
local content = f:read("*all")
f:close()
return content
end
function file_put_contents(file,data)
local f = io.open(file, "w")
f:writ... | nilq/small-lua-stack | null |
local deep_equals = require 'lqc.helpers.deep_equals'
local random = require 'lqc.random'
local r = require 'lqc.report'
local lqc = require 'lqc.quickcheck'
local property = require 'lqc.property'
local int = require 'lqc.generators.int'
local str = require 'lqc.generators.string'
local bool = require 'lqc.generators.... | nilq/small-lua-stack | null |
--[[
Copyright 2018 American Megatrends Inc.
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 a... | nilq/small-lua-stack | null |
local auxdbg = require( "auxdbg" )
---------------------------------------------------------------------------
-- 任务数据
local item_t = {
cb = 0
}
---------------------------------------------------------------------------
-- promise数据的模板
local promise_t = {
items = {},
args = {},
cb_ret = {},
cb_e... | nilq/small-lua-stack | null |
local S = technic_cnc.getter
technic_cnc.register_all(
"ethereal:glostone",
{cracky = 1, not_in_creative_inventory = 1, light_source = 13},
{"ethereal_glostone.png"},
S("Glo Stone")
)
technic_cnc.register_all(
"ethereal:crystal_block",
{snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, not_in_creative_inven... | nilq/small-lua-stack | null |
ChargedShot = {
ChargeTimeMS = 400,
ShotImpulse = 620,
PlayerSpeedMod = 0.1,
BallBashTimeMS = 125,
BallBashImpulse = 1200,
} | nilq/small-lua-stack | null |
return {'vide','video','videoapparaat','videoapparatuur','videoband','videobeeld','videobewaking','videobewerking','videoboodschap','videobranche','videobrief','videobril','videocamera','videocassette','videocassetterecorder','videoclip','videoclipachtig','videoconferencing','videoconferentie','videodocumentaire','vide... | nilq/small-lua-stack | null |
------------------------------------------Overview------------------------------------------
-- Name: Calculation Functions
-- Notes: Copyright (c) 2017 Jeremy Gulickson
-- Version: 1.0.03112017
-- Usage: Functions to simplify common calculation operations.
--
-- Requirements:... | nilq/small-lua-stack | null |
local mt = {}
function vector(x, y)
local v = {x = x, y = y}
setmetatable(v, mt)
return v
end
mt.__add = function(v1, v2)
return vector(v1.x + v2.x, v1.y + v2.y)
end
mt.__sub = function(v1, v2)
return vector(v1.x - v2.x, v1.y - v2.y)
end
mt.__mul = function(v1, n)
return vector(v1.x * n, v1.y * n)
end
mt.... | nilq/small-lua-stack | null |
E2VguiCore.RegisterVguiElementType("dcombobox.lua",true)
__e2setcost(5)
local function isValidDComboBox(panel)
if not istable(panel) then return false end
if table.Count(panel) != 3 then return false end
if panel["players"] == nil then return false end
if panel["paneldata"] == nil then return false end
... | nilq/small-lua-stack | null |
----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("Skins")
local S = _Skins
local skinned = false
local function SkinBugSack()
if not IsAddOnLoaded("BugSack") or not BugSack then return end
hooksecurefunc(B... | nilq/small-lua-stack | null |
map_data = dozipfile 'data/magic.lua.gz'
function getLayer( layer )
for _, v in pairs( map_data.layers ) do
if v.type == 'tilelayer' then
if v.name == layer then
return v
end
end
end
return nil
end
function getTileGrid( ts, layerName )
loca... | nilq/small-lua-stack | null |
require 'torch'
require 'cutorch'
require 'nn'
require 'densecap.modules.ReshapeBoxFeatures'
require 'densecap.modules.ApplyBoxTransform'
require 'densecap.modules.MakeAnchors'
require 'densecap.modules.MakeBoxes'
local tests = {}
local tester = torch.Tester()
-- Make sure that MakeAnchors + ReshapeBoxFeatures + A... | nilq/small-lua-stack | null |
thread = 2
bootstrap = "snlua bootstrap"
harbor = 0
logservice = "ex_loggersvr"
daemon = nil
start = "ex_testsvr"
profile = false
if not skynet_extend then
skynet_extend = ""--"skynet_extend/"
end
local function concat_ddpath(args)
local r = ''
for i = 1, # args do
r = r .. ';' ... | nilq/small-lua-stack | null |
--[[
Nameplate Filter
Add the nameplates name that you do NOT want to see.
]]
local E, L, V, P, G = unpack(select(2, ...)); --Engine
G["nameplate"]["filters"] = {
["Boss"] = {
["triggers"] = {
["level"] = true,
["curlevel"] = -1,
["nameplateType"] = {
["enable"] = true,
["enemyNPC"] = true,
}... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0273-webengine-projection-mode.md
--
-- Description: Check videoStreamingState transitions of WEB_VIEW application on HMI events
--
-- P... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------------
-- User story: https://github.com/smartdevicelink/sdl_requirements/issues/3
-- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/SetInteriorVehicleData.md
-- Item: Use Case 1: Except... | nilq/small-lua-stack | null |
IUPSBOX = {parent = WIDGET}
function IUPSBOX:CreateIUPelement (obj)
return iupCreateSbox(obj[1])
end
function iupsbox (o)
return IUPSBOX:Constructor (o)
end
iup.sbox = iupsbox
| nilq/small-lua-stack | null |
-- import
local SignalModule = require 'candy.signal'
-- module
local RenderManagerModule = {}
DEFAULT_MAX_GLOBAL_TEXTURE_COUNT = 8
DEFAULT_GLOBAL_TEXTURE_START_INDEX = 8
-- local _draw = MOCKHelper.draw
local _draw = function () _warn ( "MOCKHelper.draw not impl!" ) end
local function _affirmMoaiTexture ( t )
loc... | nilq/small-lua-stack | null |
local AmpedUP_Balancing_GetSectorWeaponDPS = Balancing_GetSectorWeaponDPS
function Balancing_GetSectorWeaponDPS(x, y)
local dps, techLevel = AmpedUP_Balancing_GetSectorWeaponDPS(x, y)
return dps * 75, techLevel
end | nilq/small-lua-stack | null |
local misc = require 'forth.extra.misc'
local reason = require 'forth.extra.reason'
local prompt = require 'forth.extra.prompt'
local function functor (interpreter)
local dictionary = interpreter.state.dictionary
interpreter.module.dictionary.vocabulary 'world'
interpreter.module.dictionary.definitions ... | nilq/small-lua-stack | null |
local List = script.Parent
local Llama = List.Parent
local None = require(Llama.None)
local t = require(LLama.Parent.t)
local validate = t.table
local function concat(...)
local new = {}
local index = 1
for listIndex = 1, select('#', ...) do
local list = select(listIndex, ...)
if list ~= nil then
assert(... | nilq/small-lua-stack | null |
local util = require('util')
local item = {
type = "item-with-entity-data",
name = "logistic-cargo-wagon",
icon = "__logistic-cargo-wagon__/graphics/icons/logistic-cargo-wagon.png",
icon_size = 32,
flags = {},
subgroup = "transport",
order = "a[train-system]-gz[logistic-cargo-wagon]",
place_r... | nilq/small-lua-stack | null |
--内部方法
local extendFieldName = "__extendFieldName内部使用"
local function _innerBind(tab,bindID,callbacks,keyField)
if callbacks == nil then
callbacks = {}
end
if keyField == nil then
keyField = ""
else
keyField = keyField .. "_"
end
local extendField = tab[extendFieldName]... | nilq/small-lua-stack | null |
local class = require('common/utils/class')
local ItemManager = class()
function ItemManager:create(id_name, amount)
local name, weight, description = vRP.getItemDefinition(id_name)
return {
idName = id_name or 'unknown',
name = name or id_name or 'unknown name',
weight = weight or 0,
... | nilq/small-lua-stack | null |
-- Enter your code here. Read input from STDIN. Print output to STDOUT
T = io.read("*number", "*l")
for i=0, T-1,1 do
word = io.read()
even = ''
odd = ''
for j=0, word:len(), 1 do
if(j%2 == 0) then
odd = odd .. word:sub(j,j)
else
even = even .. word:sub(j,j)
... | nilq/small-lua-stack | null |
return function(state, action)
state = state or 0
if action.type == "CASH_ADD" then
return math.max(state + action.cash, 0)
elseif action.type == "CASH_REMOVE" then
return math.max(state - action.cash, 0)
elseif action.type == "CASH_SET" then
return action.cash or 0
end
... | nilq/small-lua-stack | null |
local lex = require "ltq.lex"
local utils = require "ltq.utils"
local parse_expression
local function get_token(pstate, index)
return pstate.tokens[index]
end
local function skip_token(pstate)
local token = pstate.token
pstate.token_index = pstate.token_index + 1
pstate.token = get_token(pstate, pstate.t... | nilq/small-lua-stack | null |
local ZxSimpleUI = LibStub("AceAddon-3.0"):GetAddon("ZxSimpleUI")
local UnitIsUnit, UnitPopupMenus = UnitIsUnit, UnitPopupMenus
local ToggleDropDownMenu, PlayerFrameDropDown = ToggleDropDownMenu, PlayerFrameDropDown
local TargetFrameDropDown, PetFrameDropDown = TargetFrameDropDown, PetFrameDropDown
local RegisterUnitWa... | nilq/small-lua-stack | null |
--[[
* MOCK framework for Moai
* Copyright (C) 2012 Tommo Zhou(tommo.zhou@gmail.com). All rights reserved.
*
* 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, incl... | nilq/small-lua-stack | null |
--required Libraries
--hump
local Class = require("libraries.hump.class")
local Gamestate = require("libraries.hump.gamestate")
local vector = require("libraries.hump.vector")
local Signal = require("libraries.hump.signal")
--required classes
--re-usable
local base = require("src.re-usable.baseClasses")
local physics ... | nilq/small-lua-stack | null |
----------------------------------------------------------------
-- Made By: Guy293
-- GitHub: https://github.com/Guy293
-- Fivem Forum: https://forum.fivem.net/u/guy293/
----------------------------------------------------------------
--Get ESX Data
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent(... | nilq/small-lua-stack | null |
--運命の旅路
--
--Script by IceBarrierTrishula
function c100417029.initial_effect(c)
aux.AddCodeList(c,100417125)
--Activate
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e0)
--to hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(100... | nilq/small-lua-stack | null |
-- Documentation script to find lua wrappers
Add_Folder(MODULE_FOLDER.."/DiffusionSolver/lua")
Add_Folder(MODULE_FOLDER.."/LinearBoltzmannSolver/lua")
Add_Folder(MODULE_FOLDER.."/MCParTra/lua")
Add_Folder(MODULE_FOLDER.."/KEigenvalueSolver/lua") | nilq/small-lua-stack | null |
if SERVER then
AddCSLuaFile()
end
ENT.Type = "anim"
ENT.Base = "base_ammo_ttt"
ENT.AmmoType = "AlyxGun"
ENT.AmmoAmount = 12
ENT.AmmoMax = 36
ENT.Model = Model("models/items/357ammo.mdl")
ENT.AutoSpawnable = true
ENT.spawnType = AMMO_TYPE_DEAGLE
---
-- @ignore
function ENT:Initialize()
-- Differentiate from rifle am... | nilq/small-lua-stack | null |
local mchistory = {}
local mattata = require('mattata')
local HTTPS = require('ssl.https')
local JSON = require('dkjson')
function mchistory:init(configuration)
mchistory.arguments = 'mchistory <Minecraft username>'
mchistory.commands = mattata.commands(self.info.username, configuration.commandPrefix):c('mchistory')... | nilq/small-lua-stack | null |
function setup()
-- Make a table to hold all the elements we want to update and draw each frame
sb = {}
-- Make a text screen
t = Text.new(50, 30) -- Make a 50x30 text screen
table.insert(sb, t) -- Add its reference to the "sb" table.
t:fakeBoot() -- ;)
t:color(0, 15) -- Make the text transparent on a ... | nilq/small-lua-stack | null |
function thxbob.lib.basic_item(inputs)
return thxbob.lib.item.basic_item(inputs)
end
--[[ Cannot be used in legacy, due to new group conflict.
function thxbob.lib.item(inputs)
return thxbob.lib.item.item(inputs)
end
]]--
function thxbob.lib.get_item_type(name)
return thxbob.lib.item.get_type(name)
end
function... | nilq/small-lua-stack | null |
local util = require "pallene.util"
local execution_tests = require "spec.execution_tests"
local function compile(filename, pallene_code)
assert(util.set_file_contents(filename, pallene_code))
local cmd = string.format("./pallenec --print-ir %s", util.shell_quote(filename))
local ok, _, _, errmsg = util.ou... | nilq/small-lua-stack | null |
return {
name = "Save all files on app switch",
description = "A plugin to save all modified files when app focus is lost.",
author = "Paul Kulchenko",
version = 0.1,
onAppFocusLost = function() SaveAll(true) end,
}
| nilq/small-lua-stack | null |
local theme={colors={normal={blue={0.14901960784314,0.54509803921569,0.82352941176471,1},green={0.52156862745098,0.6,0.0,1},cyan={0.16470588235294,0.63137254901961,0.59607843137255,1},white={0.57647058823529,0.63137254901961,0.63137254901961,1},red={0.86274509803922,0.19607843137255,0.1843137254902,1},magenta={0.423529... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------------------
--
-- game_ui.lua
--
-----------------------------------------------------------------------------------------
local storyboard = require "storyboard"
require "dialogs"
local Particles = require("lib_particle_candy")
----------... | nilq/small-lua-stack | null |
--[[
LICENSE
Copyright (c) 2014-2015 Daniel Iacoviello
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, ... | nilq/small-lua-stack | null |
group "apps"
include "Demo.UI"
include "Editor"
include "Messenger"
include "Preview"
| nilq/small-lua-stack | null |
-- An in-game interface for `color-schemes`
--[====[
gui/color-schemes
=================
An in-game interface for `color-schemes`.
This script must be called from either the title screen or the dwarf fortress default screen.
]====]
--[[
+----------------------------------Color Schemes+------------------------------+... | nilq/small-lua-stack | null |
hook.Add("PlayerBindPress", "Hobo sound", function(ply, bind, pressed)
if ply == LocalPlayer() and IsValid(ply:GetActiveWeapon()) and string.find(string.lower(bind), "attack2") and ply:GetActiveWeapon():GetClass() == "weapon_bugbait" then
LocalPlayer():ConCommand("_hobo_emitsound")
end
end)
| nilq/small-lua-stack | null |
-- +defense
return {
id = "hermesboots",
name = "Hermes Boots",
equipmentType = "feet",
spriteSheet = "armor",
spriteCoords = Vector2.new(3,2),
tier = 1,
stats = {
moveSpeed = 10,
},
tags = {
"armor",
},
} | nilq/small-lua-stack | null |
-- Need for Speed: Underground (NTSC v1.0)
local core = require("games.core")
return core.newGame(0x802F2A5C) | nilq/small-lua-stack | null |
--Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | nilq/small-lua-stack | null |
object_static_worldbuilding_furniture_frn_all_shelves_glass_s01 = object_static_worldbuilding_furniture_shared_frn_all_shelves_glass_s01:new {
}
ObjectTemplates:addTemplate(object_static_worldbuilding_furniture_frn_all_shelves_glass_s01, "object/static/worldbuilding/furniture/frn_all_shelves_glass_s01.iff") | nilq/small-lua-stack | null |
local S = technic.getter
local infinite_stacks = minetest.settings:get_bool("creative_mode")
and minetest.get_modpath("unified_inventory") == nil
local frames_pos = {}
-- Helpers
local function get_face(pos, ppos, pvect)
-- Raytracer to get which face has been clicked
ppos = { x = ppos.x - pos.x, y = ppos.y - po... | nilq/small-lua-stack | null |
local luash = require './lshkit'
local similarityTable = torch.load('./data/SimilarityTable.400k.m')
dataTensor = luash.getDataTensor(similarityTable)
local indexParams = {K = 10, R = 0.9, L = 10, T = 15, M = 20, W = 386.476}
local N = similarityTable.public_vectors:size(1)
local dim = similarityTable.public_vector... | nilq/small-lua-stack | null |
local snmp = require "snmp"
local mib = snmp.mib
require "stdlib"
local logging = require "logging.console"
local log = logging.console("%message")
log:setLevel("DEBUG")
local info = function(fmt, ...) log:info(string.format(fmt.."\n", unpack(arg))) end
local debug = function(fmt, ...) log:debug(string.format(fmt.."\n... | nilq/small-lua-stack | null |
local config = require 'admin.config'
local template = require "template"
local utils = require "admin.utils"
local user = require "admin.db.user"
local user_token = require "admin.db.token"
local role = require "admin.db.role"
local header = require "admin.db.header"
local Cookie = require "admin.cookie"
local json =... | nilq/small-lua-stack | null |
return {
-- Key constants.
PRESSED = 2,
PRESSED_FIRST_TIME = 1,
RELEASED = 3,
NONE = 0,
-- Actors transformations.
loc_rot_scale = function(actor, px, py, pz, rx, ry, rz, sx, sy, sz)
actor.position = hpms.vec3(px, py, pz)
actor.rotation = hpms.from_euler(hpms.to_radians(rx),... | nilq/small-lua-stack | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.