content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
--!A cross-platform build utility based on Lua -- -- 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...
nilq/small-lua-stack
null
local file = require('pl.file') local stringx = require('pl.stringx') function paraseBabiTask( data_path, dict, include_question ) local story = torch.zeros(1000, 1000, 20) local story_ind = 0 local sentence_ind = 0 local max_words = 0 local max_senteces = 0 local questions = torch.zeros(1000,10) local questi...
nilq/small-lua-stack
null
-- Daneel.lua -- Contains Daneel's core functionalities. -- -- Last modified for v1.5.0 -- Copyright © 2013-2014 Florent POUJOL, published under the MIT license. Daneel = {} Daneel.modules = { moduleNames = {} } setmetatable( Daneel.modules, { __newindex = function( _, moduleName, moduleObject ) -- "_" argument i...
nilq/small-lua-stack
null
local parser = require('cmp_nvim_ultisnips.parser') describe('parser for grammar', function() describe('with terminal symbol', function() it('should match second rule if first one failed', function() local productions = { S = { rhs = { '^%a+', '^%d+'} } } local grammar...
nilq/small-lua-stack
null
print("CTEST_FULL_OUTPUT") local vec = osg.Vec3d(5, 5, 5) local vec2 = osg.Vec3d(52, 25, 52) local mat = osg.Matrix.scale(vec) print(mat.Scale) assert(vec == mat.Scale) mat.Trans = vec2 print(mat.Trans) assert(vec2 == mat.Trans) assert(vec == mat.Scale) require("help") help(mat) help(osg.Group()) print("Done!")
nilq/small-lua-stack
null
local Player = {} Player.players = {} Player.alive = {} Player.playerCount = 0 Player.aliveCount = 0 Player.__index = Player Player.__tostring = function(self) return table.tostring(self) end setmetatable(Player, { __call = function (cls, name) return cls.new(name) end, }) function Player.new(na...
nilq/small-lua-stack
null
local path = require "path" local date = require "date" local function older_then(days) local now = date() return function (fname, ftime) return days <= date.diff(now, date(ftime):tolocal()):spandays() end end local function old_files_(mask, days, cmd) assert(days) assert(cmd) -- призна...
nilq/small-lua-stack
null
require "Assets.LuaScripts.Modulus.Common.Define.Define" require "Assets.LuaScripts.Modulus.Common.Cmd.__init" require "Assets.LuaScripts.Modulus.Common.TransClass.TransClass" require "Assets.LuaScripts.Modulus.Common.Utils.Utils"
nilq/small-lua-stack
null
local BaseLoginDialog = require("hall/login/widget/baseLoginDialog"); local login_regAccount_psdVerify_close = require("view/kScreen_1280_800/hall/login/login_regAccount_psdVerify_close"); --(注册)密码验证提示 local RegisterAccountVerifyCloseDialog = class(BaseLoginDialog,false); local h_index = 0; local getIndex = fu...
nilq/small-lua-stack
null
name "github.com/lemonkit/lemon" -- package name plugin "github.com/gsmake/clang" properties.clang = { ["lemon"] = { path = "."; type = "static"; config = "config.cmake"; -- the cmake config file test_dependencies = {}; }; }
nilq/small-lua-stack
null
EditCtrl = relative_import('edit_utils').create_edit_class(nil, 'editor/edit/uieditor_edit_callback_btn') --点击 function EditCtrl:on_init_ui() self.btn.OnClick = function() if self._editCallback then self._editCallback() end end if self._validateParm and self._validateParm['edit_name'] then self.b...
nilq/small-lua-stack
null
return { TextSize = 14, Font = Enum.Font.Gotham, HeaderTextSize = 18, HeaderFont = Enum.Font.GothamBlack, Padding = 16, BigPadding = 24, }
nilq/small-lua-stack
null
package.path = package.path .. ";./common/?.lua" -- print(package.path) -- print(package.cpath) local tor2url = require("torrent_to_magnet") print(tor2url.torrent_to_magnet("./moli.torrent"))
nilq/small-lua-stack
null
fx_version 'bodacious' game 'gta5'
nilq/small-lua-stack
null
--[[------------------------------------------------------ lk.Properties ------------- Storage with notification on change. --]]------------------------------------------------------ require 'lubyk' local should = test.Suite('lk.Properties') function should.createPropOnNewPropertiesAccessor() local node = ...
nilq/small-lua-stack
null
include("shared.lua") AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") function ENT:SpawnDebris(mdl) local e = ents.Create("prop_physics") e:SetPos(self:GetPos() + VectorRand() * 150) e:SetModel(mdl) e:Spawn() local phys = e:GetPhysicsObject() phys:ApplyForceCenter(VectorRand() * 320000) phys:AddAngleVel...
nilq/small-lua-stack
null
return { ["sprite path"] = "sprite path", ["right upperarm"] = "右 上腕", ["neck"] = "首", ["size y"] = "Y軸のサイズ", ["draw shadow"] = "影を表示", ["copy"] = "コピー", ["start size"] = "開始 サイズ", ["clip"] = "クリップ", ["size"] = "サイズ", ["reset view"] = "カメラをリセット", ["right calf"] = "右 ふくらはぎ", ["effect"] = "エフェクト", ["max"] = "最大", ["angle...
nilq/small-lua-stack
null
function Strawman_Burning_Straw(Unit, event, miscUnit, misc) Unit:FullCastSpellOnTarget(31075, Unit:GetClosestPlayer()) end function Strawman_Brain_Bash(Unit, event, miscUnit, misc) Unit:FullCastSpellOnTarget(31046, Unit:GetClosestPlayer()) end function Strawman(Unit, event, miscUnit, misc) Unit:RegisterEvent("Str...
nilq/small-lua-stack
null
--- -- @module ItemStack -- -- ------------------------------------------------ -- Required Modules -- ------------------------------------------------ local Class = require( 'lib.Middleclass' ) -- ------------------------------------------------ -- Module -- ------------------------------------------------ local I...
nilq/small-lua-stack
null
local model={} local base_model=torch.reload("../../../Atten/data") setmetatable(model,{ __index = base_model }) function model:GenerateSample() self.mode="decoding" self.sample_target=self:sample() self.Words_sample,self.Masks_sample,self.Left_sample,self.Padding_sample=self.Data:get_batch(self.sample_ta...
nilq/small-lua-stack
null
-- if -- [ 0 为 true ] if(0) then print("0 为 true") end -- if else --[ 定义变量 --] a = 100; --[ 检查条件 --] if( a < 20 ) then --[ if 条件为 true 时执行该语句块 --] print("a 小于 20" ) else --[ if 条件为 false 时执行该语句块 --] print("a 大于 20" ) end print("a 的值为 :", a) -- if...elseif...else --[ 定义变量 --] ...
nilq/small-lua-stack
null
local flag = true local count = 0 local lTime = GetTime() local prevTime = 0 local xp = UnitXP("player") local xpPrev = 0 local xpMax = UnitXPMax("player") MyAddon = LibStub("AceAddon-3.0"):NewAddon("OmegaSTATS", "AceConsole-3.0") MyAddon:Print(string.format("Hail "..UnitName("player").."! Type \'|cFFFFFF33...
nilq/small-lua-stack
null
local function toRadians(degrees) return ((degrees % 360) * math.pi / 180) end local function isRectPath(obj) return obj and (obj.x1 ~= nil) and (obj.y1 ~= nil) and (obj.x2 ~= nil) and (obj.y2 ~= nil) and (obj.x3 ~= nil) and (obj.y3 ~= nil) and (obj.x4 ~= nil) and (obj.y4 ~= nil) end local function hasRec...
nilq/small-lua-stack
null
local t = require( "taptest" ) local deepcopy = require( "deepcopy" ) local same = require( "same" ) tab = { "abc", "def", { 123, 456 } } copy = deepcopy( tab ) t( tab ~= copy, true ) t( tab[ 3 ] ~= copy[ 3 ], true ) t( same( tab, copy ), true ) t()
nilq/small-lua-stack
null
---- Copyright(c) Cragon. All rights reserved. -- --ViewForestPartyMenu = ViewBase:new() -- --function ViewForestPartyMenu:new(o) -- o = o or {} -- setmetatable(o, self) -- self.__index = self -- if (self.Instance == nil) -- then -- self.ViewMgr = nil -- self.GoUi = nil -- self.ComUi...
nilq/small-lua-stack
null
local fn = vim.fn local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) end require('packer').startup(function(use) use ...
nilq/small-lua-stack
null
function sysCall_info() return {autoStart=false,menu='Importers\nFloor plan importer'} end function optimize(grid) local function findLargestRectFrom(grid,i,j) local function maxHeightWithFixedW(grid,i,j,w) local jj=-1 if grid[j][i]~=0 then jj=j w...
nilq/small-lua-stack
null
package.path = "../?.lua;"..package.path local testns = require("namespace")() local funk = require("wordplay.funk")(testns) print(filter, _G.filter) print("FUNK EXAMPLES") print("version: ", funk._VERSION[1], funk._VERSION[2]) print("URL: ", funk._URL) print("LICENSE: ", funk._LICENSE) print("DESCRIPTION: ", funk._...
nilq/small-lua-stack
null
local _, y = term.getCursorPos() term.scroll(y - 1) term.setCursorPos(1, 1)
nilq/small-lua-stack
null
local None = newproxy() local Mock = {} function Mock.new(name: string?) local self = {} self._implementation = None self._children = {} self.mock = { name = name or "Mock", calls = {}, } return setmetatable(self, Mock) end function Mock:__index(key: string) local member = rawget(self, key) or rawget(M...
nilq/small-lua-stack
null
return function() local Clock = require(script.Parent.Parent.Clock) local Collection = require(script.Parent.Collection) local Error = require(script.Parent.Error) local Managers = require(script.Parent.Parent.DataStoreServiceMock.Managers) local document local collection beforeEach(function() collection = Co...
nilq/small-lua-stack
null
--[[ Expects the door peripherals to be on the right. Expects system network on the left. MIT License Copyright (c) 2020 Fatboychummy-CC 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 Soft...
nilq/small-lua-stack
null
OGLHook_Sprites = { list = {} } require([[autorun\OGLHook\Commands]]) require([[autorun\OGLHook\Textures]]) require([[autorun\OGLHook\Utils]]) OGLHook_Sprites.RenderObject = { x = nil, y = nil, width = nil, height = nil, scale_x = nil, scale_y = nil, rotation = nil, pivot_x = nil, pivot_y = nil, color ...
nilq/small-lua-stack
null
local M = {} local mkutils = require "mkutils" function M.prepare_extensions(extensions) return mkutils.add_extensions("+common_domfilters", extensions) end function M.prepare_parameters(parameters,extensions) parameters.tex4ht_sty_par = parameters.tex4ht_sty_par .. ",html5" parameters = mkutils.extensions_pr...
nilq/small-lua-stack
null
local onduty = false local currentAction = "none" local obj_net = nil local handCuffed = false local drag = false local officerDrag = -1 local propslist = {} local lockAskingFine = false SpawnedSpikes = {} RegisterCommand('onduty', function() onduty = not onduty local str = nil if onduty then str = "^2 ondut...
nilq/small-lua-stack
null
require("utils.string") local prompt = require("protocol.prompt") local gmcp = require("protocol.gmcp") local statusbar = require("ui.statusbar") local self = { host = store.session_read("current_host"), port = tonumber(store.session_read("current_port") or "0") } local function on_connect(host, port) sto...
nilq/small-lua-stack
null
export type SquareData = { Bottom: number, Left: number, Right: number, Top: number, } return { Rectangle = function(Horizontal: number, Vertical: number): SquareData return { Bottom = Vertical; Left = Horizontal; Right = Horizontal; Top = Vertical; } end; Square = function(Side: number): Squar...
nilq/small-lua-stack
null
local pairs = _G.pairs local libpath = select(1, ...):match(".+%.") or "" local NIL = require(libpath .. "nil") local function inplace_update(tbl, upd, nilval) nilval = nilval or NIL for k, v in pairs(upd) do if v == nilval then tbl[k] = nil else tbl[k] = v end end return tbl end return inplace_upda...
nilq/small-lua-stack
null
cfg = {} cfg.blips = true -- enable blips cfg.seconds = 300 -- seconds to rob cfg.cooldown = 3600 -- time between robbaries cfg.cops = 3 -- minimum cops online cfg.permission = "lojinha.police" -- permission given to cops cfg.holdups = { -- list of stores ["paleto_twentyfourseven"] = { position = { ['x'] = 1734...
nilq/small-lua-stack
null
--############################################################################# --# StartScene --############################################################################# local SceneEvents = require("lib.SceneEvents")
nilq/small-lua-stack
null
local AS = unpack(AddOnSkins) if not AS:CheckAddOn('Lightheaded') then return end function AS:LightHeaded() AS:SkinFrame(LightHeadedFrame) QuestNPCModel:SetScale(UIParent:GetScale()) LightHeadedFrame:SetScale(UIParent:GetScale()) AS:SkinFrame(LightHeadedSearchBox) AS:SkinTooltip(LightHeadedTooltip) AS:StripText...
nilq/small-lua-stack
null
--- -- @module Pulser -- -- ------------------------------------------------ -- Required Modules -- ------------------------------------------------ local Class = require( 'lib.Middleclass' ) -- ------------------------------------------------ -- Module -- ------------------------------------------------ local Puls...
nilq/small-lua-stack
null
module(..., package.seeall) function add_creatures(map_id, start_coord, end_coord, creature_ids, num_creatures, hostility_val) local avail_coords = map_get_available_creature_coords(map_id, start_coord[1], start_coord[2], end_coord[1], end_coord[2]) for i = 1, num_creatures do if #avail_coords == 0 then...
nilq/small-lua-stack
null
local stats = { [69]=900, [70]=999, [71]=999, [72]=999, [73]=900, [74]=999, [75]=900, [76]=999, [77]=999, [78]=999, [79]=999, [160]=999, [225]=999, [229]=999, [230]=999 } do local random = math.random function table.shuffle(t) local n = #t while n > 1 do...
nilq/small-lua-stack
null
--- This is the networked variant of local_detectable. It simply runs -- detection.determine_and_network_detection -- @classmod DetectableEvent -- region imports local class = require('classes/class') local prototype = require('prototypes/prototype') require('prototypes/event') require('prototypes/serializable') loc...
nilq/small-lua-stack
null
--[[-- Holds items within a grid layout. Inventories are an object that contains `Item`s in a grid layout. Every `Character` will have exactly one inventory attached to it, which is the only inventory that is allowed to hold bags - any item that has its own inventory (i.e a suitcase). Inventories can be owned by a ch...
nilq/small-lua-stack
null
local common = { Env = { ISPCOPTS = { "--target=sse4 --cpu=corei7", { "--arch=x86"; Config = "win32-*" }, { "--arch=x86-64"; Config = { "win64-*", "macosx-*" } }, }, CPPPATH = { -- Pick up generated ISPC headers from the object directory "$(OBJECTDIR)" } }, ReplaceEn...
nilq/small-lua-stack
null
----------------------------------- -- Area: Bastok Markets -- NPC: Carmelide -- Standard Merchant NPC -- !pos -151.693 -4.819 -69.635 235 ----------------------------------- local ID = require("scripts/zones/Bastok_Markets/IDs") require("scripts/globals/shop") function onTrigger(player,npc) local stock = { ...
nilq/small-lua-stack
null
return { hand_left = { { {8, 40}, {9, 39}, {8, 40}, {8, 39}, {8, 40}, {4, 42}, {8, 40}, {8, 40}, {17, 16}, }, { {8, 41}, {8, 40}, {8, 41}, {8, 40}, {8, 41}, {16, 45}, {8, 41}, {8, 41}, {0, 0}, }, { {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, }, { {8, 41}, {9, 38}, ...
nilq/small-lua-stack
null
--[[ ä Name: Advanced Questbook By: Crypton ]] --[[ %s is a "Wild Card" character. AQB uses these to replace with data such as names of items, players, etc.. It is important not to remove them or you will receive errors. For translating, you can move them where they need to go in the sentence so the data forms ...
nilq/small-lua-stack
null
------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "drop", desc = "drop", author = "Nixtux", date = "Jun 3, 2017...
nilq/small-lua-stack
null
io.input 'const.txt' io.output '../../src/const.h' io.write [[ #ifndef __MAGNET_CONST__ #define __MAGNET_CONST__ #include "api.h" #define MAGNET_CONST(v) lua_pushinteger(L, v); lua_setfield(L, -2, #v); int open_const(lua_State* L) { ]] for line in io.lines() do if #line > 0 then io.write(string.format...
nilq/small-lua-stack
null
--[[ _ _ _ _ _ _ _ | | | || || | (_) | | | | | | | || || |_ _ _ __ ___ __ _ | |_ ___ | | ___ __ _ ___ | | | || || __|| || '_ ` _ \ / _` || __| / _ \ | | / _ \ / _` |...
nilq/small-lua-stack
null
fx_version 'adamant' game 'gta5' author "Kibra Developments" description "EXMode Cocaine Job" client_script { 'client/client.lua', 'config.lua' } server_script { 'server/server.lua', 'config.lua' }
nilq/small-lua-stack
null
cloth = { on_drop = function(player, item) if player.mapTitle == "Dae Shore" and player.x >= 69 and player.x <= 77 and player.y >= 0 and player.y <= 39 then local t = {graphic = convertGraphic(838, "item"), color = 0} player.npcGraphic = t.graphic player.npcColor = t.color player.dialogType = 0 player...
nilq/small-lua-stack
null
----------------------------------- -- Area: Maze of Shakhrami -- Quest: Corsair Af1 "Equipped for All Occasions" -- NPC: Iron Door (Spawn Lost Soul) -- !pos 247.735 18.499 -142.267 198 ----------------------------------- local ID = require("scripts/zones/Maze_of_Shakhrami/IDs") require("scripts/globals/keyitems") req...
nilq/small-lua-stack
null
AutoDisenchantIgnoreList = { }
nilq/small-lua-stack
null
--require "psetup_lib.plugins"
nilq/small-lua-stack
null
--[[ TheNexusAvenger Manages the selections groups. Class is static. --]] local ReplicatedStorage = game:GetService("ReplicatedStorage") local GuiService = game:GetService("GuiService") local UserInputService = game:GetService("UserInputService") local ReplicatedStorageProject = require(ReplicatedStorage:WaitForChil...
nilq/small-lua-stack
null
--[[ Carbon for Lua Test: Carbon.Math.Matrix3x3 ]] local Carbon = (...) local Dictionary = Carbon.Collections.Dictionary local Matrix3x3 = Carbon.Math.Matrix3x3 local Test = {} Carbon.Testing:TestFor(Matrix3x3, Test) local sqrt = math.sqrt local function approxeq(a, b, E) return math.abs(a - b) < (E or 1e-6) en...
nilq/small-lua-stack
null
-- StormFox2 E2 extension -- By Nak E2Lib.RegisterExtension("stormfox2", true, "Lets E2 chips use StormFox functions") __e2setcost( 3 ) -- Time e2function number sfTime() return StormFox2.Time.Get() end e2function number isNight() return StormFox2.Time.IsNight() and 1 or 0 end e2function number isDay() re...
nilq/small-lua-stack
null
require 'spec_helper' describe["_.extend"] = function() before = function() source = { a = 1 } destination = { b = 2, c = 3 } result = _.extend(source, destination) end it["should add all values from the destination table into the source table"] = function() expect(result).should_equal {a=1,b=2,c=3} end ...
nilq/small-lua-stack
null
-- Performs the following transformations on Link targets: -- -- Case 1: -- [text](/chapter/#more-stuff) -> [text](#chapter-more-stuff) -- -- Case 2: -- [text](/chapter/) -> [text](#chapter) -- -- All other Links are ignored. function Link (el) local n -- Case 1: el.target, n = ...
nilq/small-lua-stack
null
local WIDTH = 800 -- All other widths reference this value local EDITOR_WIDTH = WIDTH local EDITOR_HEIGHT = 600 data.raw["gui-style"].default.flang_editor_window_style = { type = "textbox_style", minimal_height = EDITOR_HEIGHT, minimal_width = EDITOR_WIDTH, maximal_height = EDITOR_HEIGHT, maximal_width = EDI...
nilq/small-lua-stack
null
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { group = "InGame", id = "ResupplyPassengers", PlaceObj('XTemplateWindow', { '__context', function (parent, context) return TraitsObjectCreateAndLoad() end, '__class', "XDialog", 'Id', "idPassengers", 'Padding', box(60, ...
nilq/small-lua-stack
null
local Typer = require(script.Parent.Parent.Parent.Typer) local function keys(dictionary) local keysList = {} local index = 1 for key in next, dictionary do keysList[index] = key index = index + 1 end return keysList end return Typer.AssignSignature(Typer.Table, keys)
nilq/small-lua-stack
null
--[[ The MIT License (MIT) Copyright (c) 2015 xuwaters@gmail.com 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,...
nilq/small-lua-stack
null
-- tree.lua, Lua representation of trees with edge lengths -- Copyright (C) 2015 Boris Nagaev -- See the LICENSE file for terms of use. --[[ https://en.wikipedia.org/wiki/Newick_format#Grammar The grammar nodes ================= Tree: The full input Newick Format for a single tree Subtree: an internal node (and its ...
nilq/small-lua-stack
null
local _ab_testing = {} local http = require "resty.http" local init_config = require "ngx_spider.config.config" local ngx = require "ngx" local op_mysql = require "ngx_spider.lua_script.moudle.op_mysql" local set_ngx_shared = function(host,uri,uri_type) local httpc = http.new() httpc:set_timeout(15000) lo...
nilq/small-lua-stack
null
AddCSLuaFile() ENT.Base = "bw_printer" ENT.NiceName = "Nuclear Money Factory" ENT.MaxHealth = 1650 ENT.Model = "models/props_lab/servers.mdl" ENT.Material = "models/debug/debugwhite" ENT.Color = Color(33, 255, 0, 255) ENT.Power = 4 ENT.LevelStats = { [0] = {8725000, 9725000, 700000000}, [1] = {17450000, 18...
nilq/small-lua-stack
null
#!/bin/sh _=[[ . "${0%%/*}/regress.sh" exec runlua "$0" "$@" ]] -- -- Issue #194 -- AF_UNIX can't bind source and destination -- require"regress".export".*" assert(socket.connect { path = "foo"; bind = {path="bar"}; }) say("OK")
nilq/small-lua-stack
null
--[========================================================================[ This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any...
nilq/small-lua-stack
null
-- minmax.lua local function minmax(values) local vmin = math.huge local vmax = -math.huge for i=1, #values do vmin = math.min(vmin, values[i]) vmax = math.max(vmax, values[i]) end return vmin, vmax end local values = {10, 2, 5, 20, 3, 12} local min, max = minmax(values) io.write("mi...
nilq/small-lua-stack
null
local plugin_c = import("classes.plugin") local command = import("classes.command") local plugin = plugin_c("pluginmanager") local utilities = require("table-utils") local generic_admin_template = { args = {"string"}, perms = { "administrator" }, } local enable = command("enable",utilities.overwri...
nilq/small-lua-stack
null
-- creates a new media item. -- @return MediaItem function Track:add_media_item_to_track() return r.AddMediaItemToTrack(self.pointer) end -- [BR] Get media track freeze count (if track isn't frozen at all, returns 0). -- @return integer function Track:b_r__get_media_track_freeze_count() return r.BR_GetMediaT...
nilq/small-lua-stack
null
local component = require("component") if component.isAvailable("nc_fission_reactor") then r = component.proxy(component.nc_fission_reactor.address) else --Some kind of error handling or break end tMax = r.getMaxHeatLevel() eMax = r.getMaxEnergyStored() while true t = r.getHeatLevel() e = r.getEnergy...
nilq/small-lua-stack
null
graphics.enableGraphicsMode(256) x,y = graphics.getSize() graphics.drawRect(1,1,x,y,0) graphics.drawRect(1,25,x,y,1) graphics.drawRect(1,50,x,y,2) graphics.drawRect(1,75,x,y,3) graphics.drawRect(1,100,x,y,4) graphics.drawRect(1,125,x,y,5) graphics.drawRect(1,150,x,y,6) graphics.drawRect(1,175,x,y,7) graphics.drawRect(1...
nilq/small-lua-stack
null
if FirstLoad then g_TitleObj = false g_RenameRocketObj = false g_UIAvailableRockets = 0 g_UITotalRockets = 0 end DefineClass.PGTitleObject = { __parents = { "PropertyObject" }, replace_param = false, replace_value = false, map_challenge_rating = false, } function PGTitleObject:GetTitleText() local dlg = GetP...
nilq/small-lua-stack
null
tutorialsIndex_en = {"I. How to play Greed?", "II. Kilika", "III. Mi'hen", "IV. Merchants"} tutorialsInfo_en = { { {name = "01. Introduction", text = "Greed Online is an online MMORPG based on Tibia version 8.6. It is built with The Forgotten Server 1.5, a virtual server capable of emulating the game and k...
nilq/small-lua-stack
null
--[[ Pixel Vision 8 - Display Example Copyright (C) 2017, Pixel Vision 8 (http://pixelvision8.com) Created by Jesse Freeman (@jessefreeman) Learn more about making Pixel Vision 8 games at https://www.pixelvision8.com/getting-started ]]-- -- Create a canvas to visualize the screen sizes local canvas = NewCan...
nilq/small-lua-stack
null
local helpers = require('test.functional.helpers')(after_each) local clear, meths, funcs, eq = helpers.clear, helpers.meths, helpers.funcs, helpers.eq describe('history support code', function() before_each(clear) it('correctly clears start of the history', function() -- Regression test: check absense of th...
nilq/small-lua-stack
null
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] CW_TURKISH = Clockwork.lang:GetTable("Turkish"); CW_TURKISH["Acrobatics"] = "Akro...
nilq/small-lua-stack
null
object_tangible_storyteller_prop_pr_ch9_pillar_corellia_02 = object_tangible_storyteller_prop_shared_pr_ch9_pillar_corellia_02:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_ch9_pillar_corellia_02, "object/tangible/storyteller/prop/pr_ch9_pillar_corellia_02.iff")
nilq/small-lua-stack
null
addEventHandler('onClientPlayerJoin', getRootElement(),function() if (#getElementsByType("player")>50) then return end local t=string.format("Na serwer wchodzi %s.", string.gsub(getPlayerName(source),"#%x%x%x%x%x%x","")) outputChatBox( "» "..t, 255,100,100) end) addEventHandler('onClientPlay...
nilq/small-lua-stack
null
local Version = require("Quadtastic.Version") -- Check simple format do local s = "v1.2.4" local v = Version(s) assert(type(v.major) == "number") assert(v.major == 1) assert(type(v.minor) == "number") assert(v.minor == 2) assert(type(v.patch) == "number") assert(v.patch == 4) end -- Check format that includes...
nilq/small-lua-stack
null
require('pgproc').bind('test') print(test.fun('world!')['fun']) print(test.create('{ "some" : "json" }')['create'])
nilq/small-lua-stack
null
--- === plugins.finalcutpro.fullscreen.disableesc === --- --- Disables the ESC key when Final Cut Pro is in fullscreen mode. local require = require local eventtap = require "hs.eventtap" local keycodes = require "hs.keycodes" local app = require "cp.app" local config = require "cp.c...
nilq/small-lua-stack
null
-------------------------- DEEP STORAGE ---------------------------- -- Entity -- dsE = {} dsE.type = "container" dsE.name = "DeepStorage" dsE.icon = "__Mobile_Factory_Graphics__/graphics/icons/DeepStorageI.png" dsE.icon_size = 256 dsE.flags = {"placeable-neutral", "player-creation"} dsE.minable = {mining_time = 0.8, ...
nilq/small-lua-stack
null
print('session.storage') session = box.session dump = function(data) return "'" .. require('json').encode(data) .. "'" end type(session.id()) session.unknown_field type(session.storage) session.storage.abc = 'cde' session.storage.abc all = getmetatable(session).aggregate_storage dump(all) --# create connection se...
nilq/small-lua-stack
null
local a=require("cc.expect")require(settings.get("ghu.base").."core/apis/ghu")local b=require("am.ui")local c=require("am.event")local d=require("am.core")local e=require("am.progress.helpers")local f=require("am.log")local g=require("am.progress.quarry")local h=require("am.progress.collect")local i=require("am.progres...
nilq/small-lua-stack
null
--[[ Swaggy Jenkins Jenkins API clients generated from Swagger / Open API specification The version of the OpenAPI document: 1.1.2-pre.0 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech ]] -- github_repository class local github_repository = {} local github_repository_mt = { __name ...
nilq/small-lua-stack
null
return function() return { on_attach = function(client) client.resolved_capabilities.document_formatting = false client.resolved_capabilities.document_range_formatting = false end, } end
nilq/small-lua-stack
null
return require(script.Parent.Parent.Parent.Proxy)
nilq/small-lua-stack
null
local json_encode = require("cjson.safe").new().encode local protocols = { ec2 = true, json = true, query = true, ["rest-xml"] = true, ["rest-json"] = true, } local function poor_mans_xml_encoding(output, shape, shape_name, data, indent) local indent = indent or 0 local prefix = string.rep(" ", inden...
nilq/small-lua-stack
null
function Server_Created(game, settings) local overriddenBonuses = {}; for _, bonus in pairs(game.Map.Bonuses) do --skip negative bonuses unless AllowNegative was checked if (bonus.Amount > 0 or Mod.Settings.AllowNegative) then local rndAmount = math.random(-Mod.Settings.RandomizeAmount, Mod.Settings.R...
nilq/small-lua-stack
null
#!/usr/bin/lua5.1 nexthop="bulcs" localpath="/srv/www/lights/" local forwarder=false package.path = localpath .. "lib/?.lua;" .. package.path local file,err = io.open( localpath .. "switches.txt", "r" ) if file~=nil then forwarder=false or forwarder local tmpfile,err = io.open( "/tmp/switches.txt", "r" ) if tmpf...
nilq/small-lua-stack
null
#!/usr/bin/env tarantool local listen = os.getenv('TNT_LISTEN_URI') box.cfg { listen = (listen == '' or listen == nil) and 3301 or listen, log_level = 6, wal_mode = 'none', snap_dir = '/tmp' } box.schema.user.grant('guest', 'read,write,execute,create,drop,alter', 'universe', nil, {if_not_exists = tru...
nilq/small-lua-stack
null
-- compatibility wrapper fx_version 'adamant' game 'common' dependency 'basic-gamemode'
nilq/small-lua-stack
null
-- WARNING: DO NOT USE THIS SCRIPT ITS CURRENTLY EXPERIMENTAL if game.PlaceId ~= 263135585 then print("run this in galaxy beta you monkey 🐒") return end local character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait() character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping) ...
nilq/small-lua-stack
null
local threads = require 'threads' local nthread = 4 local njob = 100 local pool = threads.Threads( nthread, function(threadid) print('starting a new thread/state number ' .. threadid) end ) local jobid = 0 local result -- DO NOT put this in get local function get() -- fill up the queue as much...
nilq/small-lua-stack
null