content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
local MJ_CARDS_TYPE = {
[1] = "🀇",
[2] = "🀈",
[3] = "🀉",
[4] = "🀊",
[5] = "🀋",
[6] = "🀌",
[7] = "🀍",
[8] = "🀎",
[9] = "🀏",
[11] = "🀐",
[12] = "🀑",
[13] = "🀒",
[14] = "🀓",
[15] = "🀔",
[16] = "🀕",
[17] = "🀖",
[18] = "🀗",
[19] = "🀘",
[21] = "🀙",
[22] = "🀚",
[23] = "🀛",
[24] = "... | nilq/small-lua-stack | null |
do
local _ = {
['steel-furnace'] = {
icon = '__base__/graphics/icons/steel-furnace.png',
close_sound = 0,
crafting_categories = {'smelting'},
working_visualisations = {
{
fadeout = true,
effect = 'flicker... | nilq/small-lua-stack | null |
-- WinSetting
-- author by Liu Hao
-- 2017/06/18
local Lplus = require "Lplus"
local UserData = require "UserData"
local RenderManager = require "RenderManager"
local WinSetting = Lplus.Class("WinSetting")
local def = WinSetting.define
def.field("number").m_width = 0
def.field("number").m_height = 0
def... | nilq/small-lua-stack | null |
package.path = package.path .. ";"..app.dir.."/Lib/lua/?.lua"
--package.path = package.path .. ";"..app.datadir.."/Lib/lua/?.lua"
package.cpath = package.cpath .. ";"..app.dir.."/Lib/clibs/?.dll"
ctk = require "Catalunya"
require "Underscript"
usrun = require "Underscript.Runner"
usrun.options.redirectio = true
require... | nilq/small-lua-stack | null |
----Events-----
function Ignis_OnCombat(pUnit, Event)
pUnit:SendChatMessage(14, 0, "Insolent whelps! Your blood will temper the weapons used to reclaim this world!")
end
function Ignis_OnDied(pUnit, Event)
pUnit:SendChatMessage(14, 0, "I. Have. Failed.")
end
function Ignis_OnKilledPlayer(pUnit, Event)
pUnit:SendChat... | nilq/small-lua-stack | null |
Factory = {}
Operation = {}
function Factory:new(o)
o = o or {}
setmetatable(o, self)
self.__index = self
return o
end
function Operation:new(o)
o = o or {}
setmetatable(o,self)
self.__index = self
return o
end
OperationAdd = Operation:new()
function OperationAdd:GetResult()
if self.numberA and self.number... | nilq/small-lua-stack | null |
-- Copyright 2020 Wirepath Home Systems, LLC. All rights reserved.
COMMON_LIB_VER = 26
JSON = require ('drivers-common-public.module.json')
pcall (require, 'drivers-common-internal.global.production')
do -- set AES and SHA defaults
AES_DEC_DEFAULTS = {
return_encoding = 'NONE',
key_encoding = 'NONE',
iv_enco... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Apollyon SW
-- Mob: Ice Elemental
-----------------------------------
require("scripts/globals/limbus")
local ID = require("scripts/zones/Apollyon/IDs")
function onMobEngaged(mob, target)
GetMobByID(ID.mob.APOLLYON_SW_MOB[4]+4):updateEnmity(target)
GetMobByID(ID.mo... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------------------------------------------------
-- Desktop widgets config --
--------------------------------------------------------------------------------... | nilq/small-lua-stack | null |
local _, L = ...
local UI, Control, Data = ConsolePortUI:GetEssentials()
local KEY = Data.KEY
local LootButton = {}
L.LootButtonMixin = LootButton
local tooltipBackdrop
local tipR, tipG, tipB
function LootButton:OnDragStart()
self:GetParent():StartMoving()
end
function LootButton:OnDragStop()
self:GetParent():Stop... | nilq/small-lua-stack | null |
local varm_util = require("modules/varm_util")
local node_reqs = {}
-- ('Set Variable' Node)
function node_reqs.ensure_support_methods(node, proj_state)
-- Only primitive types, so no required includes to check.
return true
end
-- ('Set Variable' Node)
function node_reqs.append_node(node, node_graph, proj_state)... | nilq/small-lua-stack | null |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
title 'Auto Announcements'
author 'Rage_YouTube'
client_scripts {
'config.lua',
'client.lua'
} | nilq/small-lua-stack | null |
local valueSemantic = {}
valueSemantic.__index = valueSemantic
function valueSemantic.new()
local self = setmetatable({}, valueSemantic)
self._default = nil -- any
self._implicit = nil -- any
self._name = "ARG"
self._notifier = function (_) end
self._appender = function (_, val) retu... | nilq/small-lua-stack | null |
return {
-- Air
i12007 = {
desc = '气态分析仪工作状态',
format = 'N2',
},
i12008 = {
desc = '气态分析仪报警状态',
format = 'N2',
},
i12009 = {
desc = '气态分析仪报警详情',
format = 'N2',
},
--- Water
i12101 = {
desc = '工作状态',
format = 'N2'
},
i12102 = {
desc = '报警状态',
format = 'N2',
},
i12103 = {
desc = '报警详情',... | nilq/small-lua-stack | null |
-----------------------------
--这是一个模板,可直接拷贝到app根目录下
--
---------------------------------------
----beans 是一个记录所有类的工厂
--@field #table id 记录了每个类的id,key值是自己给定的,value关联 @field bean所对应的key。 用于获取类、实例化,继承所用(仅限于自己编写的类,app目录下的所有类)
--@field #table bean 记录每个类的的名字,key值是类名,value关联 @field package[1]所对应的key用于需找上级目录(所在包)
--@field #ta... | nilq/small-lua-stack | null |
g_ItemPrecache = {
"item_blood_sword",
"item_bubble_orb_1",
"item_butterfly_oaa",
"item_dagger_of_moriah",
"item_dagon_oaa",
"item_demon_stone",
"item_devastator_3",
"item_dispel_orb_1",
--"item_dragon_scale_oaa",
"item_elixier_burst",
"item_elixier_hybrid",
"item_elixier_sustain",
"item_enrag... | nilq/small-lua-stack | null |
ModUtil.RegisterMod("EllosRerollEverythingMod")
local config = {
NumStartingRerolls = nil,
BaseRerollCosts = { -- Cost of first reroll, set to -1 to disable reroll
Hammer = 1, -- Hammers
Chaos = 1, -- Chaos
Hermes = 1, -- Hermes
Boon = 1, -- Boons
Pom = 1, -- Poms
Shop = 1, -- Wells of Char... | nilq/small-lua-stack | null |
local registerAsserts = require 'registerAsserts'
local KMeans = require 'stuart-ml.clustering.KMeans'
registerAsserts(assert)
describe('clustering.KMeans', function()
it('default parameters', function()
local kmeans = KMeans:new()
assert.equal(2, kmeans:getK())
assert.equal(20, kmeans:getMaxIterations... | nilq/small-lua-stack | null |
local modname = "pizza"
local modpath = minetest.get_modpath(modname)
local mg_name = minetest.get_mapgen_setting("mg_name")
local S = minetest.get_translator(minetest.get_current_modname())
-- Additional material for pizzas
minetest.register_craftitem("pizza:cheddar", {
description = S("Cheddar"),
inve... | nilq/small-lua-stack | null |
local Class = require("facto.class")
local ContainerType = require("facto.gui.containertype")
local EmptyWidget = Class.extend({}, ContainerType)
EmptyWidget.type = "empty-widget"
EmptyWidget.RuleSupports = {
"height", "width", "hstretch","nat-height","max-height","min-width"
}
function EmptyWidget:getProps(prop... | nilq/small-lua-stack | null |
SaunanTaakseQuotes = LibStub("AceAddon-3.0"):NewAddon("SaunanTaakseQuotes1")
local SaunanTaakseQuotes = LibStub("AceAddon-3.0"):GetAddon("SaunanTaakseQuotes1")
SLASH_SAUNANTAAKSEQUOTES1 = "/teho"
SlashCmdList["SAUNANTAAKSEQUOTES"]=function(msg)
print(getTeho())
end | nilq/small-lua-stack | null |
Config = {}
Config.OpenKeyMenu = 0x26E9DC00
Config.Language = {
['menuHorsesTitle'] = "Shop Horses",
['menuComplementsTitle'] = "Accessories",
['menuComplementsSubTitle'] = "Mount Accessories",
['subMenuComplementsHorsesTitle'] = "Horses",
['subMenuComplementsHorsesSubTitle'] = "Horse Acc... | nilq/small-lua-stack | null |
return {'hugenoot','hugo','hughes','hugen','huggers','hugenoten','hugos'} | nilq/small-lua-stack | null |
local getAliveHumanoidFromModel = require(script.Parent.getAliveHumanoidFromModel)
local function getAliveHumanoidFromDescendant(descendant: Instance)
local model = descendant:FindFirstAncestorWhichIsA("Model")
return if model then getAliveHumanoidFromModel(model) else nil
end
return getAliveHumanoidFromDescendant
| nilq/small-lua-stack | null |
CMD.name = 'FreezeBots'
CMD.description = 'command.freezebots.description'
CMD.permission = 'moderator'
CMD.category = 'permission.categories.server_management'
CMD.aliases = { 'botfreeze', 'freezebot', 'bot_freeze', 'bot_zombie' }
function CMD:on_run(player)
self:notify_staff('command.freezebots.message', {
pla... | nilq/small-lua-stack | null |
--[[
Namespace: Helpers
All helper modules.
]]
local Namespace = {}
Namespace.Class = require("Helpers.Class")
Namespace.Common = require("Helpers.Common")
return Namespace
| nilq/small-lua-stack | null |
return {
[1] = {product=1, price = 10.00, card = 10 + 1,},
[2] = {product=2, price = 20.00, card = 20 + 4,},
[3] = {product=3, price = 50.00, card = 50 + 15},
[4] = {product=4, price = 100.00, card = 100 + 35},
-- 抽奖商品
[6] = {product=6, price = 2.00, random_tbl={[3]=1}, sho... | nilq/small-lua-stack | null |
-- Generated by LairTool
rori_shallow_torton_lair_neutral_medium = Lair:new {
mobiles = {{"shallow_torton", 1}},
spawnLimit = 12,
buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_dead_log_large_evil_fire_small.iff"},
buildingsEasy = {"object/tangible/lair/base/poi_all_lair_dead_log_large_evil_fire_small... | nilq/small-lua-stack | null |
--[[
Manager module that allows to keep the state of multiple gamepads
at a given frame of the game.
Each input registered in each gamepad input's table can only have 3 states :
- true: input has been pressed THIS frame of the game
- false: input has been released THIS frame of the game
... | nilq/small-lua-stack | null |
require('prototypes.recipe.fluid-recipe')
require('prototypes.recipe.recipe')
| nilq/small-lua-stack | null |
local EventManager = require('ge_tts.EventManager')
local Notebook = require("sebaestschjin-tts.Notebook")
local StringUtil = require("sebaestschjin-tts.StringUtil")
local TableUtil = require("sebaestschjin-tts.TableUtil")
local Component = require("gloomhaven-campaign-manager.Component")
local EventType = require("gl... | nilq/small-lua-stack | null |
function onLoad()
self.interactable = false
end
| nilq/small-lua-stack | null |
minetest.register_alias("watershed:appleleaf", "default:leaves")
minetest.register_alias("watershed:appling", "default:sapling")
minetest.register_alias("watershed:acaciatree", "moretrees:acacia_trunk")
minetest.register_alias("watershed:acacialeaf", "moretrees:acacia_leaves")
minetest.register_alias("watershed:acacial... | nilq/small-lua-stack | null |
-- Resource Metadata
fx_version 'cerulean'
games { 'gta5' }
author 'uyuyorum'
description 'UM - Hacker Phone'
version '1.0.0'
ui_page 'nui/ui.html'
files {
'nui/ui.html',
'nui/assets/img/*.png',
'nui/assets/css/*.css',
'nui/assets/js/*.js',
}
client_script {'client/client.lua'}
server_script {'server/ser... | nilq/small-lua-stack | null |
local S = ethereal.intllib
-- Banana (Heals one heart when eaten)
minetest.register_node("ethereal:banana", {
description = S("Banana"),
drawtype = "torchlike",
tiles = {"ethereal_banana_single.png"},
inventory_image = "ethereal_banana_single.png",
wield_image = "ethereal_banana_single.png",
paramtype = "light"... | nilq/small-lua-stack | null |
AddCSLuaFile()
ENT.Base = "gballoon_tower_base"
ENT.Type = "anim"
ENT.PrintName = "Gatling Gun Knight"
ENT.Category = "#rotgb.category.tower"
ENT.Author = "Piengineer12"
ENT.Contact = "http://steamcommunity.com/id/Piengineer12/"
ENT.Purpose = "#rotgb.tower.gballoon_tower_04.purpose"
ENT.Instructions = ""
ENT.Spawnable... | nilq/small-lua-stack | null |
local vim = vim
local M = {}
function M.set_lines(bufnr, s, e, lines)
vim.bo[bufnr].modifiable = true
vim.api.nvim_buf_set_lines(bufnr, s, e, false, lines)
vim.bo[bufnr].modifiable = false
end
return M
| nilq/small-lua-stack | null |
-- uespLogCharData.lua -- by Dave Humphrey, dave@uesp.net
--
--
-- Only save action bars at most every X seconds
uespLog.SAVEACTIONBAR_MINDELTATIME = 5
uespLog.LastSavedActionBar_TimeStamp = 0
uespLog.LastSavedActionBar_WeaponPair = 0
uespLog.LastBankingBag = 0
uespLog.CHARDATA_STATS = {
[1] = "Att... | nilq/small-lua-stack | null |
local _={}
_.draw=function()
end
return _ | nilq/small-lua-stack | null |
print("LabJack Lua Waveform Generator Example. Version 1.0")
-- This script will output a waveform on DAC0
-- User memory is used to set the scan frequency,
-- wave frequency, wave shape, amplitude and offset.
-- Once the script is running switch to the "Register Matrix" tab and add
-- registers 46000, 46002, 46004, 46... | nilq/small-lua-stack | null |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
local CrossingHar... | nilq/small-lua-stack | null |
--- The Roblox test runner script.
-- This script can run within Roblox to perform automated tests.
--
-- @module TestRunner
-- @version 0.1.1, 2020-11-03
-- @since 0.1
--
-- @throws when the tests fail
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Tests = require(ReplicatedStorage:WaitForChild(... | nilq/small-lua-stack | null |
-- enumerations in pure Luau
-- @docs https://roblox.github.io/enumerate/
local t = require(script.t)
local ALREADY_USED_NAME_ERROR = "Already used %q as a value name in enum %q."
local ALREADY_USED_VALUE_ERROR = "Already used %q as a value in enum %q."
local INVALID_MEMBER_ERROR = "%q (%s) is not a valid member of %... | nilq/small-lua-stack | null |
--[[
LibQuestData
by Sharlikran
https://sharlikran.github.io/
^(\d{1,4}), "(.*)"
\[\1] = "\2",
(.*) = "(.*)" = "(.*), ",
"\2", = \{\3\,},
^"(.*)", = \{(.*)\},
\["\1"] = \{\2 },
--]]
local lib = _G["LibQuestData"]
lib.quest_names["ru"] = {
[465] = "Щит, обрызганный кровью",
[467] = "Судьба сэра Хью... | nilq/small-lua-stack | null |
local em = GetEventManager()
local wm = GetWindowManager()
local dx = GuiRoot:GetWidth()/tonumber(GetCVar("WindowedWidth"))
COMBAT_METRICS_LINE_SIZE = tostring(dx)
local fontsize = 14
local currentFight
local abilitystats
local abilitystatsversion = 2
local fightData, selectionData
local currentCLPage
local selections,... | nilq/small-lua-stack | null |
local music = nil;
local ambientMusic = "";
local doors = {};
local guns2 = {};
isAmbient = false;
bg = {};
function startMusic(name, crossfade)
local newMusic = audio:createStream(name);
newMusic.loop = true;
newMusic.isMusic = true;
if crossfade then
audio:crossfade(music, newMusic, 0.5, 0.5,... | nilq/small-lua-stack | null |
-- AFK Detector script
-- Made by Dr.CrazY
-- CONSTANTS (Settings)
local UPDATE_DELAY = 1000
-- Time before warning
local MAX_WARNING_TIME = 20 -- In seconds
-- Time before killing/kicking
local MAX_AFK_TIME = 30 -- In seconds
local MAX_AFK_ROUNDS = 3
--
local localPlayer = getLocalPlayer()
local rootElement = getR... | nilq/small-lua-stack | null |
----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv()
local function SetFont(obj, font, size, style, r, g, b, sr, sg, sb, sox, soy)
obj:SetFont(font, size, style)
if sr and sg and sb then obj:SetShadowColor(sr... | nilq/small-lua-stack | null |
local vim = vim
local api = vim.api
local lsp = vim.lsp
local tag_formatting = require "lsp_smag.tags.formatting"
local list_utils = require "lsp_smag.utils.lists"
local lsp_methods = require "lsp_smag.lsp.methods"
local lsp_server_capabilities = require "lsp_smag.lsp.server_capabilities"
local tag_kinds = require "lsp... | nilq/small-lua-stack | null |
--[[
Copyright (C) 2019 Blue Mountains GmbH
This program is free software: you can redistribute it and/or modify it under the terms of the Onset
Open Source License as published by Blue Mountains GmbH.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
even the implied w... | nilq/small-lua-stack | null |
local gtsrb = {}
gtsrb.dataset = require 'dataset'
gtsrb.networks = require 'networks'
gtsrb.trainer = require 'trainer'
return gtsrb
| nilq/small-lua-stack | null |
return require('jls.lang.loader').requireOne('jls.net.dns-luv', 'jls.net.dns-socket')
| nilq/small-lua-stack | null |
-- Neuron is a World of Warcraft® user interface addon.
-- Copyright (c) 2017-2021 Britt W. Yazel
-- Copyright (c) 2006-2014 Connor H. Chenoweth
-- This code is licensed under the MIT license (see LICENSE for details)
---@class PETBTN : BUTTON @define class PETBTN inherits from class BUTTON
local PETBTN = setmetatable... | nilq/small-lua-stack | null |
add_rules("mode.debug", "mode.release")
rule("vs2015_x86")
before_load(function (target)
target:set("arch", "x86")
target:set("toolchains", "msvc", {vs = "2015"})
end)
target("testvs_vs2015_x86")
set_kind("binary")
add_files("src/*.cpp", "src/*.rc")
add_rules("vs2015_x86")
target(... | nilq/small-lua-stack | null |
--[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY OmarRea; ▀▄ ▄▀
▀▄ ▄▀ BY OmarReal (Omar_Real7) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY OmarReal ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄▀▀... | nilq/small-lua-stack | null |
local nvim_lsp = require("lspconfig")
local lsp = require("lsp.config")
nvim_lsp.metals.setup({
on_attach = lsp.on_attach,
})
| nilq/small-lua-stack | null |
local Cache = require('./Cache')
local OrderedCache, property, method = class('OrderedCache', Cache)
OrderedCache.__description = "Extention of Cache that maintains object order using a linked list. If the ordered cache is full, adding a new object will discard the oldest object."
function OrderedCache:__init(array, ... | nilq/small-lua-stack | null |
local _M = {}
_M.__index = _M
function _M.new(scenario_results)
return setmetatable({
_scenario_results = scenario_results
}, _M)
end
function _M.timethese(self)
print("\nScore:\n")
for i, r in ipairs(self._scenario_results) do
print(r.title .. ": " .. r.score:format())
end
r... | nilq/small-lua-stack | null |
print("Hello BLua!") | nilq/small-lua-stack | null |
dofile("init.lua")
recipies = JSON:decode(file_get_contents(config["cookbooks"] .. "/recipies.json"))
log("Execute recipes", LOG_LEVEL_DEBUG)
ChefClient.run(recipies, config["cookbooks"])
local attributes = readAttributes()
attributes['automatic'] = ChefClient.ohai.get()
attributes['attributes'] = nil
ChefClient.... | nilq/small-lua-stack | null |
return PlaceObj("ModDef", {
"title", "All Animals As Pets",
"version", 2,
"version_major", 0,
"version_minor", 2,
"image", "Preview.png",
"id", "ChoGGi_AllAnimalsAsPets",
"steam_id", "1747548861",
"pops_any_uuid", "eea5d130-fe84-4a33-8dae-73ebaac1f12b",
"author", "ChoGGi",
"lua_revision", 1007000, -- Picard
... | nilq/small-lua-stack | null |
basexx = require( "basexx" )
describe( "should handle ZeroMQ base85 strings", function()
it( "should fulfill spec test case", function()
-- http://rfc.zeromq.org/spec:32
local data = string.char( 0x86, 0x4f, 0xd2, 0x6f, 0xb5, 0x59, 0xf7, 0x5b )
local z85 = "HelloWorld"
assert.is.same( z8... | nilq/small-lua-stack | null |
return require 'Q/UTILS/lua/code_gen' {
declaration = [[
#include "hmap_common.h"
#include "_hmap_types.h"
extern int
${fn} ( // $hmap_getn
hmap_t *ptr_hmap,
int nT,
${ckeytype} *keys, // INPUT [nkeys]
uint32_t *locs, // INPUT [nkeys]
val_t *vals, // OUTPUT [nkeys]
uint32_t nkeys, // INPUT
... | nilq/small-lua-stack | null |
local libc = require("libc")
local bit = require("bit")
local lshift, rshift = bit.lshift, bit.rshift;
local bor, band = bit.bor, bit.band;
-- async I/O
local function libusb_control_transfer_get_data(transfer)
return transfer.buffer + LIBUSB_CONTROL_SETUP_SIZE;
end
local function libusb_control_transfer_get_setup(t... | nilq/small-lua-stack | null |
-- Entrypoint for my Neovim configuration!
-- We simply bootstrap packer and Aniseed here.
-- It's then up to Aniseed to compile and load fnl/config/init.fnl
local execute = vim.api.nvim_command
local fn = vim.fn
local pack_path = fn.stdpath("data") .. "/site/pack"
local fmt = string.format
function ensure (user, re... | nilq/small-lua-stack | null |
----------------------------------------------------------------------------------------------------
-- localized Spanish (custom module) strings
--
--get the add-on engine
local AddOnName = ...;
--Spanish or Latin America Spanish
local L = LibStub("AceLocale-3.0"):NewLocale(AddOnName, "esES")
if not L then
L = Lib... | nilq/small-lua-stack | null |
local localized, CHILDS, CONTENTS = ...
local M = {}
local json = require "json"
local initTimer
local timer_running = false
-- Timer and title variables, set dynamically via config.json
local timer = 3000
local timerStr
local timerX
local timerSize = 400 -- 400
local title
local titleX, titleSize
local font = r... | nilq/small-lua-stack | null |
local ITEM = {}
ITEM.Rarity = 100
ITEM.Name = "Kashyyyk Hilt"
ITEM.Description = "Lightsaber Hilt"
ITEM.Type = WOSTYPE.HILT
--Add user groups that are allowed to use this tree. If anyone is allowed, set this to FALSE ( TREE.UserGroups = false )
ITEM.UserGroups = false
--Does this item disappear from the inventory... | nilq/small-lua-stack | null |
-- 卸载所有src/下的模块
for k, v in pairs(package.loaded) do
if(string.find(k, "^src/")) then
package.loaded[k] = nil
end
end
require "Cocos2d"
require "Cocos2dConstants"
-- cclog
cclog = function(...)
print(string.format(...))
end
-- for CCLuaEngine traceback
function __G__TRACKBACK__(msg)
cclog("-... | nilq/small-lua-stack | null |
-- if the MenuTimer is enabled, we should reset SSM's MenuTimer now that we've reached Gameplay
if PREFSMAN:GetPreference("MenuTimer") then
SL.Global.MenuTimer.ScreenSelectMusic = ThemePrefs.Get("ScreenSelectMusicMenuTimer")
end
local Players = GAMESTATE:GetHumanPlayers()
local t = Def.ActorFrame{ Name="Gamepla... | nilq/small-lua-stack | null |
local upload = require 'resty.upload'
local next = next
local type = type
local setmetatable = setmetatable
local string_find = string.find
local string_lower = string.lower
local table_concat = table.concat
local get_headers = ngx.req.get_headers
local ngx_req = ngx.req
loca... | nilq/small-lua-stack | null |
vim.g.mkdp_browser = 'firefox'
| nilq/small-lua-stack | null |
--[[
Doctor Tools
SCRIPT BY DrPhoenix
Changelog :
1.01 : First release
1.02 : - Change each champion skin
- Cleanse support
- Potion support
1.03 : Mastery Emote on Kill is back !
1.04 : CS information
1.05 : - Zhonya supported
- Last Hit helper
- Bug fixing
1.06 : Smite Herald... | nilq/small-lua-stack | null |
--
-- Broadway build configuration script
--
-------------------------------------------------------------------------------
--
-- Maintainer notes
--
-- - we're not using the regular _scaffolding_ for this project
-- mostly b/c it's too bloated
-- - scaffolds are still used though
--
--------------------------------... | nilq/small-lua-stack | null |
-- static starting section of Afeedi
-- The island of Atarlo, may need to rename files/zones
defineTile(".", "LAND")
defineTile("~", "OCEAN")
defineTile("^", "MOUNTAIN")
defineTile("+", "TREES")
defineTile("K", "KHOLBADUL")
defineTile("S", "SUSRAK")
defineTile("<", "UP")
defineTile(">", "DOWN")
defineTile("G", "GORA"... | nilq/small-lua-stack | null |
-- TODO
local MessagingService = game:GetService("MessagingService")
local settings = require(script.Parent.Parent.Settings)
local strict = require(script.Parent.Parent.strict)
local void = require(script.Parent.Parent.void)
local activeInstances = {}
local onNewMessage = Instance.new("BindableEvent")
local tick = os... | nilq/small-lua-stack | null |
return {
version = "1.2",
luaversion = "5.1",
tiledversion = "1.2.3",
orientation = "orthogonal",
renderorder = "right-down",
width = 49,
height = 30,
tilewidth = 32,
tileheight = 32,
nextlayerid = 38,
nextobjectid = 41,
properties = {},
tilesets = {
{
name = "castletileset",
f... | nilq/small-lua-stack | null |
function start(song) -- do nothing
end
function update(elapsed)
end
function beatHit(beat) -- do nothing
end
function stepHit(step) -- do nothing
end
function playerTwoTurn()
tweenCameraZoom(1.3,(crochet * 4) / 1000)
end
function playerTwoSing()
FlxG.camera.shake(0.1, 0.1)
end
function playerOneTur... | nilq/small-lua-stack | null |
-- Copyright (C) 2011-2013 Anton Burdinuk
-- clark15b@gmail.com
-- https://tsdemuxer.googlecode.com/svn/trunk/xupnpd
-- MP4-lo
-- MP4-hi
cfg.ivi_fmt='MP4-hi'
cfg.ivi_video_count=100
-- genre:
-- arthouse, boeviki, voennye, detective, detskiy, documentary, drama, comedy, korotkometrazhki, melodramy, zolotaya_klassika,... | nilq/small-lua-stack | null |
local file
if GAMESTATE:IsCourseMode() then
file = LoadActor("./CourseContentsList.lua")
elseif SL.Global.GameMode == "ITG" then
file = LoadActor("./Grid-ITG.lua")
else
file = LoadActor("./Grid.lua")
end
return file | nilq/small-lua-stack | null |
--- A line.
-- @classmod Line
-- @usage
-- -- Create a horizontal line
-- local line = Line(0, 10, 20, 10)
Line = class(Component)
--- The color of the line.
Line.color = {0, 0, 0}
--- The width of the line.
Line.size = 1
--- Constructor
-- @section
--- Constructs a new Line.
-- @param x The x coordinate of the new c... | nilq/small-lua-stack | null |
local function lreverser(source, target)
local targetFile
local sourceFile
if target ~= nil then
local option
print("Czy na pewno chcesz nadpisać plik?\nWybierz t (tak) lub n (nie)")
option = io.read('l')
if option == 'n' then
return
end
targetF... | nilq/small-lua-stack | null |
--[[local Keys = {}
local bt = CreateFrame("CheckButton", 'NeP_KeyListener', UIParent)
bt:EnableKeyboard(true)
bt:EnableMouse(true)
bt:EnableMouseWheel(true)
bt:RegisterForClicks("AnyUp", "AnyDown")
bt:SetScript("OnKeyDown", function(self, key)
local bind = GetBindingFromClick(key)
if bind ~= "" then
RunBinding(bi... | nilq/small-lua-stack | null |
fx_version 'bodacious'
games { 'gta5' }
author 'Nazri Genfil'
description 'Script pemerintah yang sudah termasuk pajak.'
version '1.0.0'
server_scripts {
'config.lua',
'@mysql-async/lib/MySQL.lua',
'server/main.lua',
-- 'server/pajak.lua'
}
client_scripts {
'config.lua',
'client/main.lua',
-- 'client/pa... | nilq/small-lua-stack | null |
local ltn12 = require "ltn12"
local fmt = function(p, ...)
if select('#', ...) == 0 then
return p
else return string.format(p, ...) end
end
local tprintf = function(t, p, ...)
t[#t+1] = fmt(p, ...)
end
local append_data = function(r, k, data, extra)
tprintf(r, "content-disposition: form-data; name=\"%s\"... | nilq/small-lua-stack | null |
module(..., package.seeall)
local socket = require 'socket'
local Model = require 'bamboo.model'
local Group
Group = Model:extend {
__name = 'Group';
__indexfd = "name";
__fields = {
['name'] = {},
['desc'] = {},
['created_date'] = {},
['perms'] = { foreign="Permission", st="MANY" },
['owner'] ... | nilq/small-lua-stack | null |
include "third_party/ld80/build.lua"
include "third_party/zmac/build.lua"
include "build/z80test.lua"
local deblocker_tests = {
"deblocker_calculate_physical",
"deblocker_change_block",
"deblocker_calculate_buffer_address",
"deblocker_capacity",
}
for _, n in pairs(deblocker_tests) do
z80test {
... | nilq/small-lua-stack | null |
Scene_Save = Scene_File:extend("Scene_Save")
function Scene_Save.prototype:onSelect(index)
Save_Manager:save(index)
Scene_Manager:enter(Scene_Map())
Audio_Manager:playSFX("buff_up")
end
function Scene_Save.prototype:helperText()
return "Which File to save?"
end
| nilq/small-lua-stack | null |
-- pipes
minetest.register_craft({
output = "bitumen:pipe 12",
recipe = {
{"default:steel_ingot", "default:tin_ingot", "default:steel_ingot"},
{"", "", ""},
{"default:steel_ingot", "default:tin_ingot", "default:steel_ingot"},
}
})
minetest.register_craft({
output = "bitumen:intake 1",
type = "shapeless",... | nilq/small-lua-stack | null |
local M = {}
function M.default(name, attributes)
local parts = {}
for attr_name, v in pairs(attributes) do
local value = v
if type(v) == "table" then
local hl_group, default = unpack(v)
value = M.get_attribute(hl_group, attr_name) or default
elseif type(v) == "string" then
value = M.... | nilq/small-lua-stack | null |
ArkadiusTradeToolsSalesGraph = ZO_Object:Subclass()
function ArkadiusTradeToolsSalesGraph:New(control, ...)
local object = ZO_Object.New(self, ...)
object.control = control
object.minX = 0
object.maxX = 0
object.minY = 0
object.maxY = 0
object.drawArea = control:GetNamedChild("DrawArea")
... | nilq/small-lua-stack | null |
local panelName = "EquipperPanel"
local ui = setupUI([[
Panel
height: 19
BotSwitch
id: switch
anchors.top: parent.top
anchors.left: parent.left
text-align: center
width: 130
!text: tr('EQ Manager')
Button
id: setup
anchors.top: prev.top
anchors.left: prev.right
anchors.ri... | nilq/small-lua-stack | null |
--[[
Copyright (C) 2006-2007 Nymbia
Copyright (C) 2010-2017 Hendrik "Nevcairiel" Leppkes < h.leppkes@gmail.com >
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, ... | nilq/small-lua-stack | null |
local lush = require('lush')
local colors = require("codedarku.colors")
local theme = lush(function()
return {
Comment({ bg=colors.none, fg=colors.green, gui='italic' }),
ColorColumn({ bg=colors.green, fg=colors.blue }),
Conceal({ bg=colors.bg, fg=colors.fg }),
Cursor({ bg=colors.cursorlight, fg=colo... | nilq/small-lua-stack | null |
-- ABC: Noobagem!
local e = require("event")
local comp = require("component")
local gpu = comp.gpu
while true do
local _,_,x,y = e.pull("touch")
gpu.set(x,y,"X")
end
| nilq/small-lua-stack | null |
project "QtSharp.CLI"
kind "ConsoleApp"
language "C#"
SetupCppSharp()
SetupManagedProject()
--debugargs { "C:\Qt\Qt5.3.2\5.3\mingw482_32\bin\qmake.exe C:\Qt\Qt5.3.2\Tools\mingw482_32\bin\mingw32-make.exe" }
files { "*.cs" }
links { "System", "System.Core", "QtSharp" }
| nilq/small-lua-stack | null |
local playsession = {
{"mewmew", {12114}},
{"sasha21168", {806}},
{"CaAsti", {4430}},
{"DanFT", {4174}},
{"4xBen", {1347474}},
{"Menander", {687638}},
{"Atoms", {500542}},
{"1337oxi", {375}},
{"siriushoward", {46305}},
{"Vuldunobetro", {620}},
{"Eddoasso", {5098}},
{"tajemniczy_303", {290743}},
{"everLord"... | nilq/small-lua-stack | null |
local AddonName, AddonTable = ...
AddonTable.diremaul = {
-- Zevrim Thornhoof
18323,
18308,
18319,
18313,
18306,
18315,
-- Hydrospawn
18324,
18317,
18305,
18307,
18322,
-- Lethtendris
18311,
18301,
18325,
18302,
-- Alzzin the Wildshaper
183... | nilq/small-lua-stack | null |
local DIR_ROOT = (path.getabsolute('..') .. '/')
local DIR_LIB = DIR_ROOT .. 'lib/'
return function(options, core)
if not options then options = {} end
if not options.dir then options.dir = DIR_LIB .. 'galaxy/' end
if not options.config then options.config = {} end
configuration(options.config)
if core then
-... | nilq/small-lua-stack | null |
Class = require "lib.hump.class"
vector = require "lib.hump.vector"
Entity = require "entity"
SimpleParticle = Class{__includes = Entity,
init = function(self, x, y, size, dx, dy, r, g, b, a, decay)
Entity.init(self, x, y)
self.size = size
self.velocity = vector(dx, dy)
self.red = r
self.green = g
self.bl... | 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.