content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local _G = getfenv() --[[For automation translate convert Global strings like ABANDON_QUEST_CONFIRM = [=[Cancel quest \"%s\"?]=] to [=[Cancel quest \"(.+))\"%?]=] for using in string.find examples and syntax of pattern list: {HELLO = {COLOR = {ITEM_LINK = {BONUS = {"item_db", generate = "....."}}}}} {TEST = {s...
nilq/small-lua-stack
null
HouseVolume = { type = "HouseVolume", Properties = { }, Editor = { Model="Editor/Objects/T.cgf", Icon="Water.bmp", ShowBounds = 1, IsScalable = false; IsRotatable = true; }, } function HouseVolume:OnInit() self:SetFlags(ENTITY_FLAG_SERVER_ONLY,0); end function HouseVolume:OnPropertyChange() e...
nilq/small-lua-stack
null
return wincent.autoload('wincent.tabline')
nilq/small-lua-stack
null
return { id = 10002, name = "random move", desc = "demo behaviour tree haha", blackboard_id = "demo", root = { _type_ = 'Sequence', id = 1, node_name = "test", decorators = { { _type_ = 'UeLoop', id = 3, node...
nilq/small-lua-stack
null
slot0 = class("ProposeMediator", import("..base.ContextMediator")) slot0.ON_PROPOSE = "ProposeMediator:ON_PROPOSE" slot0.RENAME_SHIP = "ShipMainMediator:RENAME_SHIP" slot0.HIDE_SHIP_MAIN_WORD = "ShipMainMediator:HIDE_SHIP_MAIN_WORD" slot0.EXCHANGE_TIARA = "ProposeMediator:EXCHANGE_TIARA" slot0.register = function (slo...
nilq/small-lua-stack
null
-- Load support for Minebase translation. local S = minetest.get_translator("buckets_water") buckets.register_liquid("buckets_water:bucket", { description = S("Water Bucket"), source = "base_liquids:water_source", flowing = "base_liquids:water_flowing", groups = {tool = 1, water_bucket = 1} })
nilq/small-lua-stack
null
include('shared.lua') ENT.RenderGroup = RENDERGROUP_BOTH function ENT:Draw() self.BaseClass.Draw(self) Wire_Render(self) end
nilq/small-lua-stack
null
--[[ # Element: Additional Power Bar Handles the visibility and updating of a status bar that displays the player's additional power, such as Mana for Balance druids. ## Widget AdditionalPower - A `StatusBar` that is used to display the player's additional power. ## Sub-Widgets .bg - A `Texture` used a...
nilq/small-lua-stack
null
local KUI, E, L, V, P, G = unpack(select(2, ...)) local KS = KUI:GetModule("KuiSkins") local S = E:GetModule("Skins") -- Cache global variables -- Lua functions local _G = _G -- WoW API -- Global variables that we don't cache, list them here for the mikk's Find Globals script -- GLOBALS: function KS.SocialToastTempl...
nilq/small-lua-stack
null
local Target = _G.Target; function Target.depend( toolset, target, dependencies ) assert( type(dependencies) == 'table', 'Target.depend() parameter not a table as expected' ); merge( target, dependencies ); for _, value in walk_tables(dependencies) do local source_file = toolset:SourceFile( value...
nilq/small-lua-stack
null
local strings = require('strings') local Tap = require('tap') local fmt = require('fmt') local F = require('func') local curried = require('curried') local StopWatch = require('stopwatch') local __disablePerfTests = false local tap = Tap.new {name = 'strings.lua'} tap:addTest( 'strings.split', function (test) ...
nilq/small-lua-stack
null
return { tag = 'sourcePlayback', summary = 'Get the duration of the Source.', description = 'Returns the duration of the Source.', arguments = { { name = 'unit', type = 'TimeUnit', default = [['seconds']], description = 'The unit to return.' } }, returns = { { name ...
nilq/small-lua-stack
null
local util = require 'util.util' local grammar = require 'script.grammar' -- print original text print("--------------Original Text--------------") local scriptText = util.readFile("script/hive.sql") print(scriptText) -- convert 2 lua print("--------------Parse Temp Data------------") local parse2Tree = grammar.pa...
nilq/small-lua-stack
null
require 'nn' require 'nnx' require 'cunn' require 'cudnn' require 'io' require 'cutorch' require 'image' paths.dofile('myutils.lua') local select_model = "Neomask.lua" -- "blg6naive.lua" -- "model.lua" paths.dofile(select_model) default_config = paths.dofile('getconfig.lua') local utils = paths.dofile('modelUtils.lu...
nilq/small-lua-stack
null
local const = require 'const' local util = require 'util' local class = require 'middleclass' local lovetoys = require 'lovetoys.lovetoys' local rot = require 'rot' local Collection = require 'events.Collection' local DisplaySystem = class('DisplaySystem', lovetoys.System) function DisplaySystem:initialize(engine,...
nilq/small-lua-stack
null
--- -- @classmod StatsGroup local middleclass = require("middleclass") local types = require("luaplot.types") local iterators = require("luaplot.iterators") local DistanceLimit = require("luaplot.distancelimit") local Stats = require("models.stats") local GameSettings = require("models.gamesettings") local PlotGroup =...
nilq/small-lua-stack
null
local digall_description = [[ Mod for bulk mining Commands: - /digall:activate - Activate digall - /digall:deactivate - Deactivate digall - /digall:init - Initialize the settings - /digall:conf - Display the setting screen - /digall:status - Display the current status - /digall:quickmode - Enable / Disable QuickMode (s...
nilq/small-lua-stack
null
-- -- test simple transitions -- package.path = package.path .. ';../?.lua' require("rfsm2uml") require("rfsm2tree") require("rfsm") require("rfsm_testing") require("rfsmpp") require("utils") testfsm = rfsm.load("../examples/connector_simple.lua") testfsm.dbg=false test = { id = 'simple_conn_test', pics = tru...
nilq/small-lua-stack
null
-- define general BSD system calls for ffi -- note that some functions may not be available in all, but so long as prototype is standard they can go here local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumbe...
nilq/small-lua-stack
null
impulse.Ops = impulse.Ops or {} impulse.Ops.Reports = impulse.Ops.Reports or {} local newReportCol = Color(173, 255, 47) local claimedReportCol = Color(147, 112, 219) file.CreateDir("impulse/ops") util.AddNetworkString("opsNewReport") util.AddNetworkString("opsReportMessage") util.AddNetworkString("opsReportUpdate")...
nilq/small-lua-stack
null
function InfixToPostfix(infix) infix = string.gsub(infix, "%s+", "")--.gsub -> Global Substitution length = string.len(infix) --.len --> length of string newString = "" for n=1,length do letter = string.sub(infix,n,n)--extracts a piece of string from string infix, from the n-th to the n-th character if(lette...
nilq/small-lua-stack
null
local ffi = require "ffi" local types = require "path.win32.ffi.types" ffi.cdef[[ DWORD __stdcall GetCurrentDirectoryA( DWORD nBufferLength, CHAR* lpBuffer); DWORD __stdcall GetCurrentDirectoryW( DWORD nBufferLength, CHAR* lpBuffer); BOOL __stdcall SetCurrentDirectoryA(const CHAR* lpPathName); BOOL __s...
nilq/small-lua-stack
null
ccs = ccs or {} ---ActionFrame object ---@class ActionFrame : Ref local ActionFrame = {} ccs.ActionFrame = ActionFrame -------------------------------- ---@overload fun(float, ActionFrame):ActionInterval ---@overload fun(float):ActionInterval ---@param duration float ---@param srcFrame ActionFrame ---@return ActionInt...
nilq/small-lua-stack
null
local running = true local op = gpu.getPalette() local pal = {{0, 0, 0}} for i = 2, 15 do local v = i / 15 pal[i] = {0 * v, 246 * v, 255 * v} end pal[16] = {255, 255, 255} gpu.blitPalette(pal) local size = 64 local sw, sh = gpu.width, gpu.height local Vector = dofile("../lib/vector.lua") local class = require(...
nilq/small-lua-stack
null
------------------------------------------------ ----[ VOTING ]----------------------------- ------------------------------------------------ SS.Voting = {} -- Voting SS.Voting.Votes = {} -- Where votes are stored // Start vote function SS.Voting:New(ID, Title, Message) if (SS.Voting.Votes[ID]) then return fa...
nilq/small-lua-stack
null
-- RemoteProperty -- Stephen Leitnick -- January 07, 2021 --[[ remoteProperty = RemoteProperty.new(value: any [, overrideClass: string]) remoteProperty:Get(): any remoteProperty:Set(value: any): void remoteProperty:Replicate(): void [Only for table values] remoteProperty:Destroy(): void remoteProperty.Chang...
nilq/small-lua-stack
null
local _G = _G or getfenv(0) local module = ShaguTweaks:register({ title = "WorldMap Class Colors", description = "Show class colored circles on world and battlefield map.", expansions = { ["vanilla"] = true, ["tbc"] = true }, category = "World & MiniMap", enabled = true, }) local addonpath local tocs = { ""...
nilq/small-lua-stack
null
ITEM.name = "Colt M1911" ITEM.desc = "A Standard Issue American Pistol." ITEM.model = "models/weapons/w_colt.mdl" ITEM.class = "dod_m1911" ITEM.weaponCategory = "sidearm" ITEM.width = 1 ITEM.height = 2 ITEM.flag = "Y"
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: chen0 -- Date: 9/7/2017 -- Time: 10:32 AM -- To change this template use File | Settings | File Templates. -- local list = require('luagraphs.data.list') describe('list', function() describe('list()', function() it('should add and remove item', function() ...
nilq/small-lua-stack
null
local holo local RTE_w = 0 local RTE_h = 0 addEventHandler( "onClientResourceStart", resourceRoot, function ( startedRes ) holo,RTE_w,RTE_h = createHoloScreen(149,2482,16.5,40,0,90,1.35,2) --Create our holoscreen setElementData(holo,"interactive","aim") addEventHandler ( "onHoloScrenRender", holo,drawH...
nilq/small-lua-stack
null
local client_areas = {} AddEventHandler("vRP:playerLeave",function(user_id,source) local areas = client_areas[source] if areas then for k,area in pairs(areas) do if area.inside and area.leave then area.leave(source,k) end end end client_areas[source] = nil end) function vRP.setArea(source,name,x,y,z,...
nilq/small-lua-stack
null
-- Token moderation -- this module looks for a field on incoming JWT tokens called "moderator". -- If it is true the user is added to the room as a moderator, otherwise they are set to a normal user. -- Note this may well break other affiliation based features like banning or login-based admins -- Copyright (c) 2019, ...
nilq/small-lua-stack
null
-- Sets up fonts for Media.font if nil ~= require then require "wow/FontString"; require "fritomod/Frames"; require "fritomod/currying"; require "fritomod/Media"; end; local fonts; function Media.font.wowDelegate(name) if not fonts then local FRITOMOD="Interface/AddOns/FritoMod/media"; fo...
nilq/small-lua-stack
null
-- |=================================| -- | Основная программа для печати | -- | Голограмм на гологр.проекторе | -- | Проект: MCSkill.ru Сервер:TMSB | -- | Developer: Barawik_ Modded: No | -- |=================================| local shell = require("shell") local fs = require("filesystem") shell.execute(...
nilq/small-lua-stack
null
local TaxiMap = { Name = "TaxiMap", Type = "System", Namespace = "C_TaxiMap", Functions = { { Name = "GetAllTaxiNodes", Type = "Function", Documentation = { "Returns information on taxi nodes at the current flight master." }, Arguments = { { Name = "uiMapID", Type = "number", Nilable = false...
nilq/small-lua-stack
null
-- Creator: -- AltiV - June 7th, 2019 LinkLuaModifier("modifier_item_imba_ring_of_aquila", "components/items/item_ring_of_aquila", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_imba_ring_of_aquila_aura_bonus", "components/items/item_ring_of_aquila", LUA_MODIFIER_MOTION_NONE) item_imba_ring_of_aquila =...
nilq/small-lua-stack
null
help( [[ AutoDock is a suite of automated docking tools. It is designed to predict how small molecules, such as substrates or drug candidates, bind to a receptor of known 3D structure. ]]) whatis("autodock, is a suite of automated docking tools") local version = "4.2.6" local base = "/cvmfs/oasis.opensciencegrid.org/o...
nilq/small-lua-stack
null
--[[----------------------------------------------------------------------------------- Original Drathals HUD (c) 2006 by Markus Inger / Drathal / Silberklinge / Silbersegen DHUD for WotLK and later expansions (c) 2013 by MADCAT (EU-Гордунни, Мадкат) (http://eu.battle.net/wow/en/character/гордунни/Мадкат/advanced...
nilq/small-lua-stack
null
translations = { en = { liblobby_not_installed = "liblobby is not installed. Lobby support disabled.", liblobby_is_installed = "liblobby is installed. Lobby support enabled.", login_desc = "Login to Spring Lobby", joined = "Joined", user_joined = "joined", connected_server = "Connected to server.", ...
nilq/small-lua-stack
null
import "li1" import 'lib2' import "lib3" -- this is body
nilq/small-lua-stack
null
if (SERVER) then AddCSLuaFile("shared.lua") end if (CLIENT) then SWEP.PrintName = "KSwep Night Vision" SWEP.Author = "vurtual" SWEP.Slot = 4 SWEP.SlotPos = 99 end SWEP.Spawnable = true SWEP.AdminSpawnable = true SWEP.ViewModel = nil SWEP.Category = "KSwep Equipment" SWEP.WorldModel = "models/weapons/w_toolgun.mdl"...
nilq/small-lua-stack
null
function onCreate() for i = 0, getProperty('unspawnNotes.length')-1 do if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'POISON' then setPropertyFromGroup('unspawnNotes', i, 'texture', 'POISON_assets'); --Change texture setPropertyFromGroup('unspawnNotes', i, 'hitHealth', '-500'); --Default value is: ...
nilq/small-lua-stack
null
return function(request, next_middleware) local webhook_url = 'http://example.org/' local response = next_middleware() if response.status == 500 then -- send POST request to webhook http.simple{method = 'POST', url = webhook_url, body = {error = response.body}} -- register webhook request bucke...
nilq/small-lua-stack
null
bracketl = "{" bracketr = "}" natur0 = "\(\small N_0\)" dot = "\(\dots\)" prime = {2,3,5,7} q = {} qq = {} numb = {} q[1] = math.random(3) q[2] = q[1] + math.random(6 - q[1]) q[3] = q[2] + math.random(9 - q[2]) for i = 1, 3 do qq[i] = q[1] qq[i+3] = q[2] qq[i+6] = q[3] end numb = lib.math.random_shuffle(qq) ...
nilq/small-lua-stack
null
local function css() return [[ :root { /*Grey-100*/ --light-grey: #EEEEEE; /*Grey-600*/ --grey: #757575; /*Grey-900*/ --dark-grey: #1F1F1F; /*Blue-500*/ --blue: #0790ED; /*Teal-500*/ --teal: #00B3E3; /*Red-500*/ --red: #FF4337; /*Yellow-500*/ --yellow: #FFB546...
nilq/small-lua-stack
null
require("love.event") local function prompt(cont_3f) local function _1_() if cont_3f then return ".." else return ">> " end end io.write(_1_()) io.flush() return (io.read() .. "\n") end local function looper(event, channel) do local _2_ = channel:demand() if ((_G.type(_2_) ==...
nilq/small-lua-stack
null
-- -- The k-means algorithm. -- -- > x: is supposed to be an MxN matrix, where M is the nb of samples and each sample is N-dim -- > k: is the number of kernels -- > niter: the number of iterations -- > batchsize: the batch size [large is good, to parallelize matrix multiplications] -- > callback: optional cal...
nilq/small-lua-stack
null
-- Movie Tickets MissionSetup = function() LoadAnims() ClockSet(9) SoundDisableSpeech_ActionTree() ToggleHUDComponentVisibility(11, false) ToggleHUDComponentVisibility(4, false) ToggleHUDComponentVisibility(0, false) PauseGameClock() DisablePunishmentSystem(true) end main = function...
nilq/small-lua-stack
null
------------------------------------------------------------ -- Localization.lua -- -- Abin -- 2010/10/24 ------------------------------------------------------------ CompactRaid:RegisterLocale("ClickSets", "enUS", { ["title"] = "Click Cast", ["desc"] = "Binds click actions to CompactRaid unit frames, these options ...
nilq/small-lua-stack
null
local skynet = require "skynet" require "skynet.manager" local max_client = skynet.getenv("max_client") local tcp_port = skynet.getenv("tcp_port") local udp_port = skynet.getenv("udp_port") local debug_port = skynet.getenv("debug_port") ---@class game local game = {} local cmd = {} game.init = function() local a...
nilq/small-lua-stack
null
-- LUALOCALS < --------------------------------------------------------- local error, ipairs, minetest, pairs, string, table, tonumber, type = error, ipairs, minetest, pairs, string, table, tonumber, type local string_format, table_concat, table_remove, table_sort = string.format, table.concat, table.remove, ta...
nilq/small-lua-stack
null
function Initialize(Plugin) PLUGIN = Plugin PLUGIN:SetName("ChestShop") PLUGIN:SetVersion("1") cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_RIGHT_CLICK, OnPlayerRightClick) cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_BREAKING_BLOCK, OnPlayerBreakingBlock) cPluginManager.AddHook(cPluginManager.HO...
nilq/small-lua-stack
null
--[[--------------------------------------------------------------------------------------- Wraith ARS 2X Created by WolfKnight For discussions, information on future updates, and more, join my Discord: https://discord.gg/fD4e6WD MIT License Copyright (c) 2020-2021 WolfKnight Permission is hereby granted, f...
nilq/small-lua-stack
null
--TO DO -- in server.spawn, track timers that spawn players and timers that show gui, so they can be destroyed if the map ends, etc. (done, need testing) -- make team menu gui support higher number of teams (screen only shows up to 17 teams right now) -- make variable teams option.. teams are auto-generated as player c...
nilq/small-lua-stack
null
function x() end function Account:new (o) end
nilq/small-lua-stack
null
return { redirPort = 1088, udpPort = 5353, socks5Port = 1080, serverHost = 'google.com', serverPort = 80, password = "1234" }
nilq/small-lua-stack
null
local transform; local gameObject; NoticeView = {}; local this = NoticeView; function NoticeView.Start(obj) gameObject = obj; transform = obj.transform; logWarn('NoticeView Start--->>>'..gameObject.name); this.confimBtn = transform:Find("content/btn_confim").gameObject end
nilq/small-lua-stack
null
-- Recursive object dumper, for debugging. -- (c) 2010 David Manura, MIT License. local M = {} -- My own object dumper. -- Intended for debugging, not serialization, with compact formatting. -- Robust against recursion. -- Renders Metalua table tag fields specially {tag=X, ...} --> "`X{...}". -- On first call, only p...
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
nilq/small-lua-stack
null
local Plugin = script.Parent.Parent local Libs = Plugin.Libs local Roact = require(Libs.Roact) local Rodux = require(Libs.Rodux) local MainTheme = require(Plugin.Core.Util.MainTheme) local Components = Plugin.Core.Components local MainPlugin = require(Components.MainPlugin) local MainManager = require(Plugin.Core.Ma...
nilq/small-lua-stack
null
vim.cmd'packadd vim-fugitive' vim.cmd'nnoremap <silent> <Leader>g <cmd>belowright G<CR>'
nilq/small-lua-stack
null
local ChangeLevel = {} -- -- local ChangeLevelBM = BouttonManager.newBM() local Boutton = {} -- local AM = AudioManager.newAM() local sound_clic = AM:addSound("scenes/MahJong/sound/clic.wav", false, 0.4) -- local fenetre = {} local fenetreText = {} -- local lg = love.graphics function Boutton.init() ChangeLevelBM:s...
nilq/small-lua-stack
null
-- -- Copyright (c) 2017, Billie Soong <nonkr@hotmail.com> -- All rights reserved. -- -- This file is under MIT, see LICENSE for details. -- -- Author: Billie Soong <nonkr@hotmail.com> -- Datetime: 2017/12/17 21:48 -- local foo = require "myLualib" local ave, sum = foo.average(1, 2, 3, 4, 5) -- 参数对应堆栈中的数据 print(ave, s...
nilq/small-lua-stack
null
local TestUI = NewUILuaClass() function TestUI:Ctor() self:Wnd("Button_77"):Event("OnClicked", self.Click, self) self:Wnd("Button_54"):Event("OnClicked", self.ChangeText, self) self:Wnd("Button_45"):Event("OnClicked", self.TestRegister, self) self:Wnd("Button_91"):Event("OnClicked", self.TestFire, self) end funct...
nilq/small-lua-stack
null
return { Name = "Queen of Atlas", Description = "Unknown defensive unit capable of erratic behavior changes and lethal long range weaponry. Increases attack speed overtime." }
nilq/small-lua-stack
null
local a = 1; local b = 2; print(a == b); -- Equality test print(a ~= b); -- Non-equality test, it's not the usual != print(a > b); -- More-than test print(a < b); -- Less-than test print(a >= b); -- More-or-equal test print(a <= b); -- Less-or-equal test
nilq/small-lua-stack
null
ESX = nil TriggerEvent(config.ESX, function(obj) ESX = obj end) Citizen.CreateThread(function() blips() end) local List = config.Informations.List local listmoney = config.Informations.listmoney local money = config.Informations.ListePayement local total = config.Informations.totalprix local panieer = confi...
nilq/small-lua-stack
null
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BseRequestFriendInfo_pb', package.seeall) local BSEREQUESTFRIENDINFO = protobuf.Descriptor(); local BSEREQUESTFRIENDINFO_FRIENDINFO_FIELD = protobuf.FieldDescriptor(); local BSEREQUESTFRIENDINFO_TYPE_FIELD = protobuf.FieldDescripto...
nilq/small-lua-stack
null
function OnEnable() end function OnDisable() end function OnCreate() Joker = Card.create("Joker", "Assets/Card_Damage.png") Card.show(Joker, true) Info = {Damage = 3,Health=3,Mana = 4,Name="Joker",Description = "I do Nothing"} end
nilq/small-lua-stack
null
local skynet = require "skynet" local redis = require "redis" local CMD = {} local db function CMD.start() db = redis.connect{ host = "127.0.0.1", port = 6379, auth = "123456", } if db then -- db:flushdb() skynet.error("redis connect success.") else skynet.error("redis connect error.") end end func...
nilq/small-lua-stack
null
local debugmode = true --// Leaderstat Service --// Created on 13/11/2021 by Endernymous local LeaderstatService = {} function LeaderstatService:Create(player, name, class, value) local leaderstats = player:FindFirstChild("leaderstats") if not leaderstats then leaderstats = Instance.new("Folder") lead...
nilq/small-lua-stack
null
function xWhitelist.Core.CanWhitelist(ply, job) if ply:IsAdmin() then return true end if xWhitelist.Config.WhitelistPermissions[ply:Team()] and xWhitelist.Config.WhitelistPermissions[ply:Team()][job] then return true end return false end function xWhitelist.Core.CanBlacklist(ply, job) if ply:IsSuperAdmin() then re...
nilq/small-lua-stack
null
DFCL = {}; --[[ Description: Creates a class object. --]] function DFCL:New( ui_name ) ui_name = string.Replace( ui_name, ' ', '' ); -- Private fields local private = {}; private.mainPanel = {}; -- Main panel private.panels = {}; -- All registered panels private.focusP...
nilq/small-lua-stack
null
function startup() -- GAME WINDOW CONFIGURATION -- Window title love.window.setTitle("CAVERN") -- Window icon local icon = love.image.newImageData('sprites/newPlayer2/helmet.png') love.window.setIcon(icon) -- Game resolution gameWidth = 1152 gameHeight = 768 scale = 1 -- adjusts game window to ...
nilq/small-lua-stack
null
function love.load() map = {} map[1] = {1, 1, 1, 1, 1, 1, 1, 1} map[2] = {1, 0, 0, 1, 0, 0, 0, 1} map[3] = {1, 0, 0, 1, 0, 1, 1, 1} map[4] = {1, 0, 0, 0, 0, 0, 0, 1} map[5] = {1, 1, 0, 1, 0, 0, 0, 0} map[6] = {1, 0, 0, 0, 0, 1, 0, 1} map[7] = {1, 0, 0, 0, 0, 1, 0, 1} map[8] = {1, 1, 1, 1, 1, 1, 1, 1} ...
nilq/small-lua-stack
null
function OpenPreGameMainMenu(mode) LoadingScreenOpen("idLoadingScreen", "pregame menu") ResetGameSession() local savegame_count = WaitCountSaveGames() local dlg = OpenDialog("PGMainMenu", nil, {savegame_count = savegame_count}) if dlg and mode then dlg:SetMode(mode) end LoadingScreenClose("idLoadingScreen", "p...
nilq/small-lua-stack
null
--[[---------------------------------------------------------------------------- PluginInfoProvider.lua Responsible for managing the dialog entry in the Plugin Manager dialog window which manages the individual plug-ins installed in the Lightroom application. This will create a section in the Plugin Manager Dialog w...
nilq/small-lua-stack
null
local Lerp = Lerp local tonumber = tonumber local table_insert = table.insert local table_remove = table.remove local math_ceil = math.ceil local math_abs = math.abs local render_StartBeam = render.StartBeam local cam_IgnoreZ = cam.IgnoreZ local render_EndBeam = render.EndBeam local render_AddBeam = render.Add...
nilq/small-lua-stack
null
--[[---------------------------------------------------------------------------- This file is part of Friday Night Funkin' Rewritten by HTV04 ------------------------------------------------------------------------------]] -- Automatically generated from tutorial.json return { speed = 1, { mustHitSection =...
nilq/small-lua-stack
null
set_project("Jepsen-in-cpp") set_version("0.0.1", {build = "%Y%m%d%H%M"}) add_rules("mode.debug", "mode.release") add_requires("libssh2") add_requires("log4cplus") add_requires("jsoncpp") add_requires("boost") add_requires("concurrentqueue") add_requires("tbb") set_languages("cxx17") -- Configuration includes("chec...
nilq/small-lua-stack
null
local ffi = require("ffi") local bit = require("bit") local system = require("schedlua.linux") local Clock = {} setmetatable(Clock, { __call = function(self, ...) return self:create(...); end; }) local Clock_mt = { __index = Clock; } function Clock.init(self, ...) local obj = { tspec = system.timespec()...
nilq/small-lua-stack
null
--[[ Sequence tagger. ]] local SeqTagger, parent = torch.class('SeqTagger', 'Model') local options = { { '-word_vec_size', { 500 }, [[List of embedding sizes: `word[ feat1[ feat2[ ...] ] ]`.]], { structural = 0 } }, { '-pre_word_vecs_enc', '', [[Path to pretrained word embeddings on...
nilq/small-lua-stack
null
----------------------------------- -- Area: Bastok Markets (S) (G-10) -- NPC: Loussaire -- !pos -248.677 -8.523 -125.734 87 ----------------------------------- local ID = require("scripts/zones/Bastok_Markets_[S]/IDs") require("scripts/globals/keyitems"); require("scripts/globals/quests"); require("scripts/globals/ti...
nilq/small-lua-stack
null
gl.setup(1024, 768) local json = require "json" util.resource_loader{ "light.ttf"; "bold.ttf"; } util.file_watch("hashtag", function(content) hashtag = content:gsub("([^\n]+).*", "%1") end) util.file_watch("tweets.json", function(content) tweets = {} for idx, tweet in ipairs(json.decode(content)...
nilq/small-lua-stack
null
require'nvim-tree'.setup {} local set_keymap = vim.api.nvim_set_keymap local opts = { noremap=true, silent=true } set_keymap('n', '<C-n>', '<cmd>NvimTreeToggle<CR>', opts) set_keymap('n', '<leader>n', '<cmd>NvimTreeFindFile<CR>', opts)
nilq/small-lua-stack
null
local Class = require "Utils/Class" local SubCtrl = require "UI/SubCtrl" local Logger = require "Logger/Logger" local Test2Ctrl = Class("TestCtrl", SubCtrl) local function OnInit() Logger.log("Test2Ctrl => OnInit") end local function InitEvent(self) Logger.log("Test2Ctrl => InitEvent") self:RegisterEv...
nilq/small-lua-stack
null
local Population = class('Population') function Population:initialize(count) local function new_person() return Sim.Person:new() end self.people = chance.misc.n(new_person, (count and count > 0 and count) or Config.Population) end return Population
nilq/small-lua-stack
null
local Prop = {} Prop.Name = "House 26153 Highway" Prop.Cat = "House" Prop.Price = 2130 Prop.Doors = { Vector( -8098, -13830, 196 ), Vector( -7998, -13886.099609375, 196 ), Vector( -7998, -13998.099609375, 196 ), Vector( -7998, -14022, 196 ), Vector( -8262, -14090, 196 ), Vector( -8394, -13826, 196 ), Vector( -85...
nilq/small-lua-stack
null
-- -- Grail-When -- Written by scott@mithrandir.com -- -- UTF-8 file -- -- This records when a quest is last completed, and if the quest can be completed more than once, -- the count of completions is recorded. -- -- Version History -- 001 Initial version. -- GrailWhenPlayer = { ['when'] = {}, ['count'] = {} } local...
nilq/small-lua-stack
null
local utils = require 'mp.utils' function find_and_add_entries() local default_audio_paths = {"", "RUS%20Subs/", "Rus%20Subs/", "SUBS/", "Subs/", "subs/", "Sub/", "Rus%20Sub/"} local path = mp.get_property("path", "") local dir, filename = utils.split_path(path) local audio_filename = string.gsub(filename, "%.%...
nilq/small-lua-stack
null
--lifted mostly straight from ethereal local _ = {name = "air", prob = 0} local M = {name = "default:coral_orange", prob = 255} local T = {name = "default:coral_skeleton", prob = 255} --local P = {name = "realms:mushroom_pore", prob = 255} bd_odd_biomes.mushroom_giant_tall = { size = {x = 18, y = 17, z = 18}, ysl...
nilq/small-lua-stack
null
function love.load() d1 = 0 d2 = 0 colliderToggle = false require("src/startup/gameStart") gameStart() createNewSave() loadMap("test") dj.volume("effect", 1) spawnChest(100, 100) end function love.update(dt) updateAll(dt) end function love.draw() drawBeforeCamera() ...
nilq/small-lua-stack
null
return { id = "JIARIHANGXIAN4", mode = 2, once = true, fadeType = 1, fadein = 1.5, scripts = { { dir = 1, side = 2, bgm = "doa_daozhong", say = "数日后,度假之岛近海。", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 10600030,...
nilq/small-lua-stack
null
local discount = require "discount" local input_file = select(1, ...) or "manual.md" local output_file = select(2, ...) or "manual.html" local f = io.open(input_file, "rb") local code = f:read("*a") f:close() local html = ([[ <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/...
nilq/small-lua-stack
null
--[[ globals.lua (FindGlobals), a useful script to find global variable access in .lua files, placed in the public domain by Mikk in 2009. HOW TO INVOKE: luac -l MyFile.lua | lua globals.lua MyFile.lua or: c:\path\to\luac.exe -l MyFile.lua | c:\path\to\lua.exe c:\path\to\globals.lua MyFile.lua Dire...
nilq/small-lua-stack
null
ZoomCcsBtn = class("ZoomCcsBtn") ZoomCcsBtn.ctor = function (slot0, slot1, slot2) createSetterGetter(slot0, "isClickZoom", true) slot0._pushZoomScale = 1.03 slot0._zoomLayer = slot2 or slot0 if slot1 then ClassUtil.extends(slot0, BaseCcsBtn, true, slot1) end slot0:checkScale() end ZoomCcsBtn.checkScale = f...
nilq/small-lua-stack
null
--[[ File @description: This file is to define the architecture of a CNN based on VGG. @version: V0.00 @author: Fangyi Zhang email:gzzhangfangyi@gmail.com @acknowledgement: ARC Centre of Excellence for Robotic Vision (ACRV) Queensland Univsersity of Technology (QUT) Google DeepMind @history: V0.00...
nilq/small-lua-stack
null
if (fs.exists("./installer") == false) then fs.makeDir("./installer") end if (fs.exists("./installer/init.lua")) then fs.delete('./installer/init.lua') end shell.run("wget","https://raw.githubusercontent.com/DJj123dj/simpleOS/main/setup/init.lua","./installer/init.lua") shell.run("./installer/init.lua")
nilq/small-lua-stack
null
CLASS.name = "Bartender" CLASS.desc = "A person who serves food and drink." CLASS.faction = FACTION_DWELLER CLASS.color = Color(126, 80, 21) CLASS.flag = "B" CLASS.pay = 4 CLASS.payTime = 3600 --1 hour in seconds function CLASS:onCanBe(client) local character = client:getChar() local inventory = character:...
nilq/small-lua-stack
null
--[[ Split `str` on string or pattern separator `sep`. Compared to the standard Lua split function, this one does not drop empty fragment. ]] local function split(str, sep) local res = {} local index = 1 while index <= str:len() do local sepStart, sepEnd = str:find(sep, index) local sub if not s...
nilq/small-lua-stack
null