content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
------------------- ABOUT ---------------------- -- -- In this adventure hero gets the lost part with -- the help of the green bananas hogs. HedgewarsScriptLoad("/Scripts/Locale.lua") HedgewarsScriptLoad("/Scripts/Animate.lua") HedgewarsScriptLoad("/Missions/Campaign/A_Space_Adventure/global_functions.lua") ---------...
nilq/small-lua-stack
null
--[[ AuraWatch List A table of spellIDs to create icons for. To add spellIDs, look up a spell on www.wowhead.com and look at the URL: https://tbc.wowhead.com/spell=SPELLID https://cn.tbc.wowhead.com/spell=SPELLID --]] local C = unpack(select(2, ...)) local AuraWatchList = { ['ALL'] = { ...
nilq/small-lua-stack
null
Flex = { rDrag = 10, horizontal = 1, vertical = 2, } require("flex/UIGroup") require("flex/UIList") require("flex/UITextBox") require("flex/UIView") require("flex/UIButton") --[[-- calculate the rects that views will take up given the parent rect (usually {0, 0, SCREEN_WIDTH, SCREEN_HEIGHT} and the v...
nilq/small-lua-stack
null
--[[ ]]-- local addon = CharacterZoneTracker local COMPLETION_TYPES = addon:GetCompletionTypes() local ZONE_ACTIVITY_NAME_MAX_EDIT_DISTANCE = 5 local FIRST_ZONE_ID_WITH_DELVE_BOSS_UNIT_TAGS = 980 local WORLD_EVENT_MAX_DISTANCE = 0.02 local ZoneGuideTracker = ZO_Object:Subclass() local className = addon.name .. "Zone...
nilq/small-lua-stack
null
vim.opt.expandtab = false vim.opt.tabstop = 4 vim.opt.shiftwidth = 4 vim.opt.softtabstop = 4
nilq/small-lua-stack
null
print("[ENVSYNC] Loading") local M = {} -- https://stackoverflow.com/a/7615129/483349 local function splitString(inputstr, sep) if sep == nil then sep = "%s" end local t = {} for str in string.gmatch(inputstr, "([^" .. sep .. "]+)") do table.insert(t, str) end return t end loc...
nilq/small-lua-stack
null
-- SLT HammerSpoon Test Init File -- Spoon installer from www.zzamboni.org, to use the KSheet spoon hs.loadSpoon("SpoonInstall") spoon.SpoonInstall.repos.zzspoons = { url = "https://github.com/zzamboni/zzSpoons", desc = "zzamboni's spoon repository", } spoon.SpoonInstall.use_syncinstall = true Install=spoon.Spoon...
nilq/small-lua-stack
null
local composer = require("composer") local mainMenu = composer.newScene() local soundManager=require("soundManager") local printDebugStmt = require("helperScripts.printDebugStmt") local assetName = require("helperScripts.assetName") local menuMaker=require("menuHelper.menu") local app42=require("externalServices.app42...
nilq/small-lua-stack
null
Citizen.CreateThread(function() while true do -- These natives has to be called every frame. SetVehicleDensityMultiplierThisFrame(TrafficAmount/100) SetPedDensityMultiplierThisFrame(PedestrianAmount/100) SetRandomVehicleDensityMultiplierThisFrame(TrafficAmount/100) SetParkedVehicleDensityMultiplierThisFrame(...
nilq/small-lua-stack
null
local has_digilines = minetest.get_modpath("digilines") spacecannon.update_formspec_digilines = function(meta) local channel = meta:get_string("channel") or "" local formspec = "formspec_version[4]" .. "size[6,4;]" .. -- Digiline channel "field[0.5,0.5;3.5,1;digiline_channel;Digiline Channel;" .. channel...
nilq/small-lua-stack
null
local Reshape, parent = torch.class('nn.Reshape', 'nn.Module') function Reshape:__init(...) parent.__init(self) local arg = {...} self.size = torch.LongStorage() self.batchsize = torch.LongStorage() if torch.type(arg[#arg]) == 'boolean' then self.batchMode = arg[#arg] table.remove(arg, #arg...
nilq/small-lua-stack
null
ITEM.name = "Taurus Raging Bull" ITEM.description= "A double-action revolver chambered for .44 Magnum." ITEM.longdesc = "This Brazilian made revolver has somehow made in into the zone. The Raging Bull is a popular hunting weapon, as the great stopping power afforded by the large calibers it fires is handy when hunting ...
nilq/small-lua-stack
null
local hello = ... local fonts = require'fonts' function hello:init(lowrez) lowrez.depth_buffer = false local window = lowrez:window() local scene = am.group{ am.blend'alpha' ^ am.text(fonts['little-conquest8'], "Hello, LowRez!\n\nPress space\nto start", vec4(1,.75,.5,0.9)) ...
nilq/small-lua-stack
null
vim.g.dashboard_custom_header = { '⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣠⣤⣤⣴⣦⣤⣤⣄⣀', '⠀⠀⠀⠀⠀⢀⣤⣾⣿⣿⣿⣿⠿⠿⠿⠿⣿⣿⣿⣿⣶⣤⡀', '⠀⠀⠀⣠⣾⣿⣿⡿⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⢿⣿⣿⣶⡀', '⠀⠀⣴⣿⣿⠟⠁⠀⠀⠀⣶⣶⣶⣶⡆⠀⠀⠀⠀⠀⠀⠈⠻⣿⣿⣦', '⠀⣼⣿⣿⠋⠀⠀⠀⠀⠀⠛⠛⢻⣿⣿⡀⠀⠀⠀⠀⠀⠀⠀⠙⣿⣿⣧', '⢸⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⣷⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⡇', '⣿⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿', '⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⢠⣿⣿⡟⢹⣿⣿⡆⠀⠀⠀⠀⠀⠀⠀⣹⣿⣿', '⣿⣿⣷⠀⠀⠀⠀⠀⠀⣰⣿⣿⠏⠀⠀⢻⣿⣿⡄⠀⠀⠀⠀⠀⠀⣿⣿⡿', ...
nilq/small-lua-stack
null
--[[ Name: audi.lua For: TalosLife By: TalosLife ]]-- local Car = {} Car.VIP = true Car.Make = "Audi" Car.Name = "2015 Audi RS7 Private" Car.UID = "audi_rs7" Car.Desc = "A drivable Audi RS4 by TheDanishMaster" Car.Model = "models/sentry/rs7.mdl" Car.Script = "scripts/vehicles/TDMCars/audir8plus.txt" Car.Price = 100...
nilq/small-lua-stack
null
--thisThread = love.thread.getThread() local args = { ... } local channelIn = args[1] local channelOut = args[2] local PORT = args[3] local timeUntilNextMatch = args[4] local socket = require("socket") pcall(require, "TSerial") pcall(require, "Scripts/TSerial") pcall(require, "misc") pcall(require, "Scripts/misc") ...
nilq/small-lua-stack
null
local WeaponCustomization = GoonBase.WeaponCustomization if not GoonBase.WeaponCustomization then return end WeaponCustomization._advanced_menu_options = { [1] = { text = "wc_adv_toggle_preview_spin", func = "AdvancedToggleWeaponSpin", }, [2] = { text = "wc_adv_toggle_colour_grading", func = "AdvancedTogg...
nilq/small-lua-stack
null
------------------------------------------------------------------------------ -- Dialog class ------------------------------------------------------------------------------ local ctrl = { nick = "dialog", parent = iup.WIDGET, creation = "I", callback = { map_cb = "", unmap_cb = "", destroy_cb = ""...
nilq/small-lua-stack
null
include('shared.lua') function ENT:Draw() self.Entity:DrawModel() end function ENT:IsTranslucent() return false end
nilq/small-lua-stack
null
ZO_CreateStringId("SI_JOGROUP_SLASH1", "Thank you for using JoGroup!") ZO_CreateStringId("SI_JOGROUP_SLASH2", "-- Type |cFAF0E6/jogroup unlock|r to unlock and move the frames") ZO_CreateStringId("SI_JOGROUP_SLASH3", "-- Type |cFAF0E6/jogroup lock|r to lock the frames") ZO_CreateStringId("SI_JOGROUP_UNLOCKED", "JoGro...
nilq/small-lua-stack
null
#!/usr/bin/env gamecake local lcs={ ["lib_chipmonk"] ="lib_chipmonk/LICENSE.txt", ["lib_freetype"] ="lib_freetype/freetype/docs/LICENSE.TXT", ["lib_gif"] ="lib_gif/COPYING", ["lib_hidapi"] ="lib_hidapi/LICENSE-bsd.txt", ["lib_jpeg"] ="lib_jpeg/README", ["lib_lua"] ="lib_lua/COPYRIGHT", ["lib_luajit"] ="...
nilq/small-lua-stack
null
local shouldUpdatePosition = true local shouldUpdateRotation = false local shouldUpdateOrigin = false local second = 1E9 -- 1 billion nanoseconds local movingEntities function init() sub = director.subscriptions.new() sub.require(components.Transform) movingEntities = sub.build() director.addSubscr...
nilq/small-lua-stack
null
Player = Entity:extend() function Player:new() Player.super.new(self) self:loadImage("data/images/player.png", 8, 8) self:addAnimation("idle", { 1, 2 }, 1) self:playAnimation("idle") self.id = "player" end function Player:onClick() print("click!") end player = Player()
nilq/small-lua-stack
null
{ name = "evt_halloween_muertos", hasAdmin = false, authors = { "Bolodefchoco#0015" }, description = "Halloween 2018 - Day of the Dead event" }
nilq/small-lua-stack
null
local class = require "com/class" local ParticlePiece = class:derive("ParticlePiece") local Vec2 = require("src/Essentials/Vector2") local Sprite = require("src/Essentials/Sprite") function ParticlePiece:new(manager, spawner, data) self.manager = manager self.packet = spawner.packet self.spawner = spawner...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- --<[ Внутренние события ]>------------------------------------------------------ -------------------------------------------------------------------------------- addEvent( "Lobby.onClientRequestDimension", true ) -- Клиент запрос...
nilq/small-lua-stack
null
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] local META = ix.meta.charPanel or {} META.__index = META META.slots = META.slots or {} META.vars = META.vars or {} META.receivers = META.receivers or {} function META:__tostring() return "charpanel["..(self.id or 0).....
nilq/small-lua-stack
null
--[[ A header, which is always exactly two numbers: The quantity of child nodes. The quantity of metadata entries. Zero or more child nodes (as specified in the header). One or more metadata entries (as specified in the header). ]]-- infile = io.open("2018_advent_8a.txt") input = infile:read("a") infile:close() su...
nilq/small-lua-stack
null
game.Workspace.epicikr.Humanoid.MaxHealth = math.huge --Mediafire
nilq/small-lua-stack
null
if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then return; end local ability_item_usage_generic = dofile( GetScriptDirectory().."/ability_item_usage_generic" ) local utils = require(GetScriptDirectory() .. "/util") local mutil = re...
nilq/small-lua-stack
null
function love.conf(t) t.identity = nil -- The name of the save directory (string) t.version = "0.10.1" -- The LÖVE version this game was made for (string) t.console = true -- Attach a console (boolean, Windows only) t.accelerometerjoystick = true ...
nilq/small-lua-stack
null
-- Copyright 2015-2019 Sandor Balazsi <sandor.balazsi@gmail.com> -- Licensed to the public under the Apache License 2.0. function string.urlencode(str) return str:gsub("([^%w %-%_%.%~])", function (c) return string.format ("%%%02X", string.byte(c)) end):gsub("%s+", "+") end function string.ends(str, tail) return ...
nilq/small-lua-stack
null
covenant_gui_lines = {"BLURGH"} vote_gui_lines = {} gui = gui or GuiCreate() xpos_covenant = xpos_covenant or 2 ypos_covenant = ypos_covenant or 30 xpos_vote = xpos_vote or 70 ypos_vote = ypos_vote or 30 max_covenants = 3 vote_time_left = 0 max_vote_time = 80 time_between_covenants = 240 -- this will...
nilq/small-lua-stack
null
local util = require("__bzsilicon__.data-util"); if not mods["Krastorio2"] then util.remove_ingredient("concrete", "stone-brick"); if mods["Bio_Industries"] or mods["omnimatter"] then util.add_ingredient("concrete", "stone-brick", 3); util.add_ingredient("concrete", "silica", 10); else util.add_ing...
nilq/small-lua-stack
null
-- Provides: -- evil::weather -- emote (string - emoji for weather) -- temp (integer - temperatur in °C) -- wind (integer - wind velocity in km/h) local awful = require("awful") local beautiful = require("beautiful") local city = beautiful.weather_city or "Tokyo" local update_interval = 60 * 60 local ...
nilq/small-lua-stack
null
local gen_code = require("Q/UTILS/lua/gen_code") local num_produced = 0 local sp_fn = assert(require("vnot_specialize")) local function generate_files(in_qtype, args) local subs = assert(sp_fn(in_qtype, args)) assert(type(subs) == "table") gen_code.doth(subs, subs.incdir) gen_code.dotc(subs, subs.srcdir) pri...
nilq/small-lua-stack
null
local colors = { white = "#abb2bf", darker_black = "#2a303c", black = "#2E3440", -- nvim bg black2 = "#343a46", one_bg = "#373d49", one_bg2 = "#3a404c", one_bg3 = "#3d434f", grey = "#474d59", grey_fg = "#565c68", grey_fg2 = "#606672", light_grey = "#646a76", red = "#BF61...
nilq/small-lua-stack
null
local events = {} events.lk = {} --LIKO-12 events registry events.cc = {} --Computercraft events stack events.c = 0 --Events counter --Register a LIKO-12 event function events:register(event,func) if not self.lk[event] then self.lk[event] = {} end table.insert(self.lk[event],func) end --Trigger a computercraft e...
nilq/small-lua-stack
null
--========================================================= -- 消息注册管理 --========================================================= local EventRegister = class("EventRegister"); -- 构造函数 function EventRegister:ctor() self._EventCallBackTable = {}; -- 事件回调表 end -- 注册某个事件 function EventRegister:RegisterEvent(...
nilq/small-lua-stack
null
--====================================================================-- -- dmc_objects.lua -- -- by David McCuskey -- Documentation: http://docs.davidmccuskey.com/display/docs/dmc_objects.lua --====================================================================-- --[[ Copyright (C) 2011-2014 David McCuskey. All Rig...
nilq/small-lua-stack
null
revan_quest1 = Creature:new { --objectName = "@mob/creature_names:", customName = "Revan Decoy", socialGroup = "dark_jedi", pvpFaction = "", faction = "", level = 300, chanceHit = 50.00, damageMin = 1800, damageMax = 3310, baseXp = 278490, baseHAM = 421000, baseHAMmax = 592000, armor = 3, resists = {25,25...
nilq/small-lua-stack
null
--Don't use without a triggerHook logic applied to Eluna GiveXP to prevent xp loop. local function pLogin(event, player) local pAccountID = player:GetAccountId() local SQL_pMaxLevel = "SELECT COUNT(*) FROM characters WHERE level=80 AND account="..pAccountID..";" local QUERY_MaxLevelCount = CharDBQuery(SQL_pMaxLev...
nilq/small-lua-stack
null
gameNpcs.removeNPC = function(npcName, target) local npc = gameNpcs.characters[npcName] if not target then for player, v in next, npc.players do if v.image then removeImage(v.image) gameNpcs.removeTextAreas(v.id, player) v.image = nil end end npc.visible = false else local v = npc.playe...
nilq/small-lua-stack
null
--[[ @file httpd.lua @license The MIT License (MIT) @author Alex <alex@maximum.guru> @author William Fleurant <william@netblazr.com> @author Serg <sklassen410@gmail.com> @copyright 2016 Alex @copyright 2016 William Fleurant @copyright 2016 Serg --]] --- @module httpd local httpd = {} local xavante = require("xavante"...
nilq/small-lua-stack
null
AddCSLuaFile() ENT.Base = "base_brush" ENT.ShootingBarrels = false function ENT:Initialize() end function ENT:StartShootingBarrels() if self.ShootingBarrels then return end self.ShootingBarrels = true local mins = self:OBBMins() local maxs = self:OBBMaxs() timer.Create( self:EntIndex() .. "_t...
nilq/small-lua-stack
null
local _, XB = ... local usedGUIs = {} XB.Interface = {} XB.Globals.Interface = {} -- Locals local LibStub = LibStub local strupper = strupper local DiesalGUI = LibStub("DiesalGUI-1.0") local DiesalTools = LibStub("DiesalTools-1.0") local SharedMedia = LibStub("LibSharedMedia-3.0") loca...
nilq/small-lua-stack
null
-- -- Class Mods - Shaman settings -- -- Check the player's class before creating these settings if (select(2, UnitClass("player")) ~= "SHAMAN") then return end -- -- ResourceBar Module -- ClassMods.enableprediction = true ClassMods.powerGenerationSpells = { [1] = { -- Elemental { 51505, 12 }, -- Lava Burst { ...
nilq/small-lua-stack
null
ITEM.name = "Military SKAT-9M Exoskeleton" ITEM.description = "A basic SKAT-9M Exoskeleton colored in favor of Ukranian Military." ITEM.category = "Outfit" ITEM.model = "models/tnb/stalker/items/exo.mdl" ITEM.width = 2 ITEM.height = 3 ITEM.outfitCategory = "model" ITEM.pacData = {} ITEM.newSkin = 4 ITEM.replacements = ...
nilq/small-lua-stack
null
--[[ Apache License 2.0 Copyright (c) 2016-2021 SinisterRectus (Original author) Copyright (c) 2021-2022 Bilal2453 (Heavily modified to partially support EmmyLua) 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 t...
nilq/small-lua-stack
null
---------------------------------------------------------------- -- Fontのキャッシュです. -- フレームワーク内部で使用します. -- @class table -- @name FontManager ---------------------------------------------------------------- local M = { cache = {} } function M:getFont(path) if self.cache[path] == nil then local font = MO...
nilq/small-lua-stack
null
return {'folke/todo-comments.nvim', opt = true, cmd = { 'TodoQuickFix', 'TodoTrouble', 'TodoTelescope', }, keys = { '<leader>ct', '<leader>ctt', '<leader>st', '<leader>ctq', '<leader>ctd', }, requires = { 'folke/lsp-trouble.nvim' }, config = function ...
nilq/small-lua-stack
null
local ENT = FindMetaTable("Entity") function ENT:AddWUMAParent(limit) self.WUMAParents = self.WUMAParents or {} self.WUMAParents[limit:GetUniqueID()] = limit self:CallOnRemove("NotifyWUMAParents", function(ent) ent:NotifyWUMAParents() end) end function ENT:RemoveWUMAParent(limit) self.WUMAParents[li...
nilq/small-lua-stack
null
local GUI = require("GUI") local computer = require("computer") local MineOSInterface = require("MineOSInterface") local MineOSPaths = require("MineOSPaths") local MineOSCore = require("MineOSCore") local module = {} local application, window, localization = table.unpack({...}) -------------------------------------...
nilq/small-lua-stack
null
slot0 = class("MetaCharacterProxy", import(".NetProxy")) slot0.METAPROGRESS_UPDATED = "MetaCharacterProxy:METAPROGRESS_UPDATED" slot1 = pg.ship_strengthen_meta slot0.register = function (slot0) slot0.data = {} slot0.metaProgressVOList = {} slot0.metaTacticsInfoTable = nil slot0.metaTacticsInfoTableOnStart = nil s...
nilq/small-lua-stack
null
local Players = game:GetService("Players") local RunService = game:GetService("RunService") local joinTimes = {} Players.PlayerAdded:Connect(function(player) joinTimes[player] = tick() end) Players.PlayerRemoving:Connect(function(player) joinTimes[player] = nil end) for _,player in pairs(Players:GetPlayers()...
nilq/small-lua-stack
null
function on_activate(parent, ability) local targets = parent:targets() local targeter = parent:create_targeter(ability) targeter:set_selection_radius(ability:range()) targeter:set_free_select(ability:range()) targeter:set_shape_object_size("9by9round") targeter:add_all_effectable(targets) targe...
nilq/small-lua-stack
null
-- Test case 4 with 1 object with a port and the port surrounded by blocking rectangle on 3 sides and connector on the other. So drawing a connector from the port will always create a jumping connector o1 = cnvobj:drawObj("RECT",{{x=200,y=300},{x=300,y=450}}) -- Now add a port to each object p1 = cnvobj:addPort(300,38...
nilq/small-lua-stack
null
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. sith_shadow_encounter_datapad = { description = "", minimumLevel = 0, maximumLevel = 0, lootItems = { {itemTemplate = "waypoint_datapad", weight = 10000000} } } addLootGroupTemplate("sith_shadow_encounter_datapad", sith_shadow_encounter_datapad)...
nilq/small-lua-stack
null
hsyncCache = { syncIdx = 0, callback = {}, } hsync = {} ---@private hsync.key = function() hsyncCache.syncIdx = hsyncCache.syncIdx + 1 return "syk" .. hsyncCache.syncIdx end ---@private hsync.mix = function(key, array) array = array or {} if (type(array) ~= "table") then array = {} ...
nilq/small-lua-stack
null
-- add lucky blocks if minetest.get_modpath("lucky_block") then lucky_block:add_blocks({ {"dro", {"protector:protect"}, 1}, {"dro", {"protector:protect_pvp"}, 1}, {"dro", {"protector:door_wood"}, 1}, {"dro", {"protector:door_steel"}, 1}, {"dro", {"protector:chest"}, 1}, {"exp"}, }) end
nilq/small-lua-stack
null
local M = {} function M.setup() local cmp = safe_require("luasnip") if not cmp then return end require("luasnip.loaders.from_vscode").lazy_load() end return M
nilq/small-lua-stack
null
local map = {} map = { image = "tutorial_3.png", load = false, pics = "blondy_warning.png", soundClear = "japanese_yes", {-- etage 1 { 1, 1, 1, 1, 1, 1, 1, 1 }, { 1, 1, 1, 1, 1, 1, 1, 1 }, { 1, 1, 1, 1, 1, 1, 1, 1 }, { 1, ...
nilq/small-lua-stack
null
return {'yuen'}
nilq/small-lua-stack
null
local class = require 'middleclass' local Vector = require 'Vector' local TankChassis = class('littletanks.TankChassis') function TankChassis:initialize() self.turretAttachmentPoint = Vector(0, 0) end function TankChassis:destroy() -- Nothing to do here (yet) end function TankChassis:update( timeDelta ) -- N...
nilq/small-lua-stack
null
--- GENERATED CODE - DO NOT MODIFY -- Amazon Comprehend (comprehend-2017-11-27) local M = {} M.metadata = { api_version = "2017-11-27", json_version = "1.1", protocol = "json", checksum_format = "", endpoint_prefix = "comprehend", service_abbreviation = "", service_full_name = "Amazon Comprehend", signature_v...
nilq/small-lua-stack
null
hyper = {"ctrl", "alt", "cmd"} hypershift = {"ctrl", "alt", "cmd", "shift"} require('watcher') require('position')
nilq/small-lua-stack
null
local correctVersion = require 'correctversion' if correctVersion then require 'utils' local debugger = require 'debugger' local Gamestate = require 'vendor/gamestate' local Level = require 'level' local camera = require 'camera' local fonts = require 'fonts' local sound = require 'vendor/TEsound' loc...
nilq/small-lua-stack
null
require "xavante" require "xavante.davhandler" local davFileRepository = require "xavante.davFileRepository" local davFileProps = require "xavante.davFileProps" webDir = "." local simplerules = { { match = ".", with = xavante.davhandler, params = { repos_b = davFileRepository.makeSour...
nilq/small-lua-stack
null
function start (song) end function update (elapsed) end function beatHit (beat) end function stepHit (step) end function keyPressed (key) end
nilq/small-lua-stack
null
help([[ OMERO scripts ]]) local base = "/n/groups/lsp/o2/apps/omero-scripts/" local pkgName = myModuleName() local fullVersion = myModuleVersion() load("gcc") load(atleast("python", "2.7")) load("omero") append_path("PATH", pathJoin(base, fullVersion, "/venv/bin/")) whatis("Name: ".. pkgName) whatis("Vers...
nilq/small-lua-stack
null
function randomBoolean() return math.random(0, 5) == 0 end function countTries() -- Counter variable local tries = 0 -- While Loop while randomBoolean() == false do tries += 1 end -- Prints the tries it took for the loop to end print("It took " .. tries .. " tries to end the ...
nilq/small-lua-stack
null
function Client_PresentMenuUI(rootParent, setMaxSize, setScrollable, game) Game = game; --global variables print(Game.Game.ID .. ' GameID'); LastTurn = {}; --we get the orders from History later Distribution = {}; setMaxSize(450, 300); vert = UI.CreateVerticalLayoutGroup(rootParent); vert2 = UI.CreateVer...
nilq/small-lua-stack
null
entity = { special = true, name = "test", TransformComponent = { x = 0, y = 0, width = 1280, height = 720, angle = 0.0 }, RenderableComponent = { }, TextComponent = { text = "TEST!!!", font = "GameOver18", colour = { r = 255, g = 255, b = 255, a = 255 }, offsetX = 0, offse...
nilq/small-lua-stack
null
--- -- Precomputed values for DAA instruction -- 2048 local DAATable = { [0] = 68, 256, 512, 772, 1024, 1284, 1540, 1792, 2056, 2316, 4112, 4372, 4628, 4880, 5140, 5392, 4096, 4356, 4612, 4864, 5124, 5376, 5632, 5892, 6156, 6408, 8240, 8500, 8756, 9008, 9268, 9520, 8224, 8484, 8740, ...
nilq/small-lua-stack
null
if vim.fn.has "nvim-0.5.1" == 1 then vim.lsp.handlers["textDocument/codeAction"] = require("lsputil.codeAction").code_action_handler vim.lsp.handlers["textDocument/references"] = require("lsputil.locations").references_handler vim.lsp.handlers["textDocument/definition"] = require("lsputil.locations").definition_h...
nilq/small-lua-stack
null
require 'nnf' require 'inn' require 'cudnn' require 'gnuplot' cutorch.setDevice(2) dt = torch.load('pascal_2007_train.t7') if false then ds = nnf.DataSetPascal{image_set='train', datadir='/home/francisco/work/datasets/VOCdevkit', roidbdir='/home/francisco/work/datas...
nilq/small-lua-stack
null
module( "GPM", package.seeall ) local file_Exists = file.Exists local type = type Loader = Loader or {} Packages = Packages or {} do local log = Logger( 'GPM' ) concommand.Add("gpm_list", function() for name, package in pairs( Packages ) do log:info( "{1} - {2}", package, package.description == "" and "No De...
nilq/small-lua-stack
null
local cmdline = require('vfiler/libs/cmdline') local config = require('vfiler/fzf/config') local core = require('vfiler/libs/core') local vim = require('vfiler/libs/vim') local VFiler = require('vfiler/vfiler') local M = {} local function fzf_options() local configs = config.configs local options = vim.dict({}) ...
nilq/small-lua-stack
null
local ok=require("test").ok local Num=require("Num") local lib=require("lib") ok {numOkay = function( n,t) n = Num:new() t = {4,10,15,38,54,57,62,83,100,100,174,190,215,225, 233,250,260,270,299,300,306,333,350,375,443,475, 525,583,780,1000} n:incs(t) assert(lib.close(n.mu, 270.3, 0.001)...
nilq/small-lua-stack
null
_G.StorySystem = CSystem:Create("StorySystem"); StorySystem.objScene = nil; --story scene StorySystem.cfgStory = nil; --current story config StorySystem.tbTimeActors = {}; --有TimeEvent事件的Actor function StorySystem:Create() end function StorySystem:OnEnterScene(bEditorMode) if bEditorMode then -- Game:InitMai...
nilq/small-lua-stack
null
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937" server_script "GHMattiMySQL.net.dll"
nilq/small-lua-stack
null
local K, C = unpack(select(2, ...)) local _G = _G local math_ceil = _G.math.ceil local math_floor = _G.math.floor local print = _G.print local string_find = _G.string.find local string_format = _G.string.format local string_split = _G.string.split local table_wipe = _G.table.wipe local tostring = _G.tostring local C_...
nilq/small-lua-stack
null
--InputBindings.lua --[[ File used to map keys to input actions via lua Will read mappings from this file if UseLuaInputs is set to true ]] UseLuaInputs = false InputBindings = { JUMP="SPACE", SPRINT="LSHIFT", MOVE_FORWARD="W", MOVE_LEFT="A", MOVE_RIGHT="D", MOVE_BACKWARD="S", CROUCH="LCTRL", ACTION_1="E", A...
nilq/small-lua-stack
null
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BseJoinGuild_pb', package.seeall) local BSEJOINGUILD = protobuf.Descriptor(); local BSEJOINGUILD_GUILDID_FIELD = protobuf.FieldDescriptor(); local BSEJOINGUILD_GUILDNAME_FIELD = protobuf.FieldDescriptor(); local BSEJOINGUILD_RESULT...
nilq/small-lua-stack
null
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_primal_be...
nilq/small-lua-stack
null
return { "_CRT_SECURE_NO_WARNINGS", "_SCL_SECURE_NO_WARNINGS", "BOOST_ALL_NO_LIB", }
nilq/small-lua-stack
null
MousePressed = class("MousePressed") function MousePressed:initialize(x, y, button) self.button = button self.y = y self.x = x end
nilq/small-lua-stack
null
local tab = { }; tab.Name = "Jump Boots"; tab.Desc = "Lets you jump higher."; tab.Ingredients = { "metal", "circuitry", "circuitry", "fuel" }; tab.JumpMul = 3.5; tab.OnJump = function( ply ) if( SERVER ) then ply:EmitSound( Sound( "ambient/machines/machine1_hit" .. math.random( 1, 2 ) .. ".wav" ), 80, math.ran...
nilq/small-lua-stack
null
local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...") local XMLElement = require "feedparser.XMLElement" local dateparser = require "feedparser.dateparser" local URL = require "feedparser.url" local tinsert, tremove, tconcat = table.insert, table.remove,...
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...
nilq/small-lua-stack
null
--[[ 1 - 砖块 2 - 砖块顶部两个 3 - 砖块右侧两个 4 - 砖块底部两个 5 - 砖块左侧两个 11 - 钢砖 12 - 钢砖顶部两个 13 - 钢砖右侧两个 14 - 钢砖底部两个 15 - 钢砖左侧两个 21 - 水 31 - 树 41 - 冰 ]]-- auto_tile({ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 1, 0, 0, 0, 0, 0, 0, 1, 2, 5, 3, 2, 0, 0, 1, 0,31,31, 0, 1, 0, 0, 3, 1, 0, 0, 0, 1,31,31,31,31, 1, 0, ...
nilq/small-lua-stack
null
local exec = require 'espeon.util.exec' local detect_platform = require 'espeon.util.detect_platform' return { description = 'Install all external dependencies', execute = function() local platform = detect_platform() if platform == 'linux' then exec({ 'sudo apt install screen', 'su...
nilq/small-lua-stack
null
-- Copyright 2021 - Deviap (deviap.com) -- Author(s): Sanjay-B(Sanjay) -- Creates the Graphics Setting subpage. local toggle = require("devgit:source/libraries/UI/components/toggle.lua") local descriptiveSettingCard = require("devgit:source/libraries/UI/components/cards/descriptiveSetting.lua") local dropdownOptions = ...
nilq/small-lua-stack
null
local function concommand_executed(ply, cmd, args) if not args[1] then return end local name = string.lower(args[1]) if not name or not FAdmin.Commands.List[name] then FAdmin.Messages.SendMessage(ply, 1, "Command does not exist!") return end local args2 = args table.remove(args2, 1) for k,v in p...
nilq/small-lua-stack
null
--マッドマーダー -- --Script by Trishula9 function c101108013.initial_effect(c) --change name aux.EnableChangeCode(c,33420078,LOCATION_MZONE+LOCATION_GRAVE) --spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) e1:SetProperty(EFF...
nilq/small-lua-stack
null
--[[ FrostMoon, cross platform Composition Based Object Factory and GUI library targeting iOS, OSX and Windows 10 Copyright Aug. 9th, 2018 Eric Fedrowisch All rights reserved. --]] ------------------------------------------ --[[ Resources library. This script parses the "res" folder and loads various types of resources...
nilq/small-lua-stack
null
local playsession = { {"Gerkiz", {6862}}, {"Ardordo", {494254}}, {"sschippers", {316688}}, {"Pa450", {422374}}, {"Skybreaker", {477576}}, {"Zorzzz", {485636}}, {"Avelix", {464150}}, {"vvictor", {460854}}, {"sickmyduck90", {477391}}, {"ReneHSZ", {456576}}, {"autopss", {450941}}, {"CommanderFrog", {396607}}, ...
nilq/small-lua-stack
null
--[[ Wrench mod Adds a wrench that allows the player to pickup nodes that contain an inventory with items or metadata that needs perserving. The wrench has the same tool capability as the normal hand. To pickup a node simply right click on it. If the node contains a formspec, you will need to shift+right click instead...
nilq/small-lua-stack
null
local speed = settings.startup["Noxys_Swimming-swimming-speed"].value local is_deep_swimmable = settings.startup["Noxys_Swimming-is-deep-swimmable"].value local deepspeed = settings.startup["Noxys_Swimming-swimming-deep-speed"].value local waters = {"water", "water-green"} if is_deep_swimmable then table.insert(waters...
nilq/small-lua-stack
null
function init(args) entity.setGravityEnabled(false) entity.setDamageOnTouch(false) entity.setDeathParticleBurst(entity.configParameter("deathParticles")) entity.setDeathSound(entity.randomizeParameter("deathNoise")) self.dead = false end function damage() self.dead = true end function shouldDie...
nilq/small-lua-stack
null