content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
package("partio") set_homepage("http://partio.us/") set_description("Partio is an open source C++ library for reading, writing and manipulating a variety of standard particle formats (GEO, BGEO, PTC, PDB, PDA).") set_license("BSD-3-Clause") add_urls("https://github.com/wdas/partio/archive/refs/tags/$(...
nilq/small-lua-stack
null
local M = {} --- Add a plugin. --- @param full_name string: {account_name}/{plugin_name} format --- @param opts table|nil: |optpack.nvim-add-option| function M.add(full_name, opts) require("optpack.command").add(full_name, opts) end --- Returns list of plugins. --- @return table: list of |optpack.nvim-plugin| funct...
nilq/small-lua-stack
null
data:extend({ { type = "string-setting", name = "autofilter_mode", default_value = "contents belt", setting_type = "runtime-per-user", order = "autofilter", }, })
nilq/small-lua-stack
null
local request = require('http/request') local url = 'http://node.sz.com/' request(url, function(error, response, body) print(error, response, body) end) local url = 'http://node.sz.com/' request(url, function(error, response, body) print(error, response, body) end)
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 --]] -- Called when Clockwork has loaded all of the entities. function cwSpawnPoints:Cl...
nilq/small-lua-stack
null
function AreStagePlayerModsForced() return false end function AreStageSongModsForced() return false end function ScreenSelectMusic:setupmusicstagemods() return self end function ScreenSelectMusic:setupcoursestagemods() local mode = GAMESTATE:GetPlayMode() if mode == "PlayMode_Oni" then local po = "clearall,d...
nilq/small-lua-stack
null
hei_hw1_blimp_interior_v_motel_mp_newb11_milo_ - Copy 1 333.692 -208.6409 -56.38824 hei_hw1_blimp_interior_v_motel_mp_newb11_milo_ - Copy 2 321.9419 -209.4849 -56.38824 hei_hw1_blimp_interior_v_motel_mp_newb11_milo_ - Copy 3 323.4738 -209.2875 -46.56323 hei_hw1_blimp_interior_v_motel_mp_newb11_milo_ - Copy 4 334.001...
nilq/small-lua-stack
null
-- Quick and dirty script of OCRopus(0.3)-NHocr bridge -- by Hideaki Goto on May 15, 2009 -- -- Example of using NHocr as a line recognizer -- with OCRopus layout analysis. -- -- Installation: -- Save this Lua script as -- ${OCROPUS_INSTALLDIR}/share/ocropus/scripts/rec-nhocr.lua -- -- Usage: -- $ OCROSCRIPTS...
nilq/small-lua-stack
null
require('constants') local literacy = get_skill_value(PLAYER_ID, CSKILL_GENERAL_LITERACY) if literacy == 0 then local currency = get_item_count(PLAYER_ID, CURRENCY_ID) if currency >= 2000 then if add_confirmation_message("TEMPLE_TUTOR_LITERACY_SID") then clear_and_add_message("TEMPLE_TUTOR_LIT...
nilq/small-lua-stack
null
local _,L = ... if GetLocale()=="frFR" then -- Main.lua L["Rematch"] = nil L["Toggle Window"] = "Basculer la fenêtre" L["Auto Load"] = "Chargement auto" L["Team Notes"] = "Notes d'équipe" L["Pets Tab"] = "Onglet de mascottes" L["Teams Tab"] = "Onglet d'équipes" L["Queue Tab"] = "Onglet de file" L["Toggle Rem...
nilq/small-lua-stack
null
return {'addax','addenda','addendum','adder','adderbeet','adderen','adderengebroed','addergebroed','addergif','adderkruid','addernest','addertong','adderwortel','addict','additie','additief','additioneel','addenoi','addink','addens','adda','adderbeten','addernesten','adders','addertje','addertongen','adderwortels','add...
nilq/small-lua-stack
null
local UI = require("rb.ui") local obj = {} local _appObj = nil local function goBack(appObj) for _, option in ipairs({"AXToolbar", "AXGroup"}) do local element = UI.getUIElement(appObj:mainWindow(), {{option, 1}, {"AXButton", "AXTitle", "Go Back"}}) if element then element:performAction("AXPress") ...
nilq/small-lua-stack
null
--[[ Track clip linearly, by The0x539 Track a rectangular \clip along with a \move. The \move tag _must_ have all six parameters, \move(x1,y1,x2,y2,t1,t2) ]] local function fmt_float(n) return ('%f'):format(n):gsub('0+$', ''):gsub('%.$', '') end local m_x1, m_y1, m_x2, m_y2, t1, t2 = get('move') local dx, dy = m_x2-m...
nilq/small-lua-stack
null
--[[============================================================ --= --= Dialogs --= --=------------------------------------------------------------- --= --= MyHappyList - manage your AniDB MyList --= - Written by Marcus 'ReFreezed' Thunström --= - MIT License (See main.lua) --= --==================================...
nilq/small-lua-stack
null
function toxml(s) s = string.gsub(s, "\\(%a+)(%b{})", function(tag, body) body = string.sub(body, 2, -2) -- remove the brackets body = toxml(body) -- handle nested command return string.format("<%s>%s</%s>", tag, body, tag) end) return s end print(toxml("\\title{The \\bold{big} example}"))
nilq/small-lua-stack
null
GCSR = Mat.new( "GCSR" ) -- eof
nilq/small-lua-stack
null
#! /usr/bin/lua require 'DataDumper' -- http://lua-users.org/wiki/DataDumper ------------------------ test infrastructure -------------------- local function warn(str) io.stderr:write(str,'\n') end local function die(str) io.stderr:write(str,'\n') os.exit(1) end local function equals(t1,t2) if DataDum...
nilq/small-lua-stack
null
-- A maze runner. -- -- This program is a maze running game. There's not death, no time limits and -- nothing in the way of story. Go from the green square to the red, little -- golden square! -- -- Inspired by https://love2d.org/wiki/Tutorial:Gridlocked_Player -- -- Developed with love 0.8.0, straight out of bitbucket...
nilq/small-lua-stack
null
-- include useful files execScript("utils.lua") execScript("common.lua") execScript("commonpatterns.lua") -- this function adds a pattern to the timeline based on a key function addPattern(mKey) if mKey == 0 then pAltBarrage(math.random(2, 4), 2) elseif mKey == 1 then pMirrorSpiral(math.random(3,...
nilq/small-lua-stack
null
require 'config' local ngx_match=ngx.re.match local unescape=ngx.unescape_uri open_url_filter=true open_logging=true -- 记录debug日志 function record_debug_log(msg) if open_logging then local logfile = log_path..'/'.."debug.log" write(logfile,msg) end end -- 判断table内是否含有元素 function tableFind(valu...
nilq/small-lua-stack
null
local unit1 = system.loadunit 'unit1' local forms = system.loadunit 'forms' local controls = system.loadunit 'controls' unit1.form1.oncreate() unit1.apfs_move[ 1 ].data = system.loadbin( 'Move_nw.pcm' ) unit1.apfs_move[ 2 ].data = system.loadbin( 'Move_ne.pcm' ) unit1.apfs_move[ 3 ].data = system.loadbin( 'Mo...
nilq/small-lua-stack
null
return {'dokkumer','dok','doka','doken','dokhaven','dokken','dokker','dokkeren','dokmeester','doks','doksaal','dokter','dokteren','dokteres','doktersadvies','doktersassistent','doktersassistente','doktersattest','doktersbehandeling','doktersbezoek','doktersgang','doktershulp','doktersjas','dokterskabinet','dokterskoste...
nilq/small-lua-stack
null
m = {} function m.add(a, b) return a + b end function m.subtract(a, b) return a - b end return m
nilq/small-lua-stack
null
----------------------------------- -- Area: Gusgen Mines -- NPC: qm4 (???) -- Involved In Quest: Ghosts of the Past -- !pos -174 0 369 196 ----------------------------------- local ID = require("scripts/zones/Gusgen_Mines/IDs"); require("scripts/globals/npc_util"); require("scripts/globals/quests"); -----------------...
nilq/small-lua-stack
null
require "Scripts/PlayerAccount/changepasswordmenu" require "Scripts/PlayerAccount/confirmsignupmenu" require "Scripts/PlayerAccount/createaccountmenu" require "Scripts/PlayerAccount/editaccountmenu" require "Scripts/PlayerAccount/editplayernamemenu" require "Scripts/PlayerAccount/forcechangepasswordmenu" require "Scrip...
nilq/small-lua-stack
null
function Client_PresentConfigureUI(rootParent) local initialValue = Mod.Settings.Amount; local initialNegatives = Mod.Settings.ChangeNegavtive; local initialMultiply = Mod.Settings.Multiply; local initialBonusValue = Mod.Settings.ChangeDefaultBonus; local initialValueRandom = Mod.Settings.RandomFactor; local ini...
nilq/small-lua-stack
null
object_tangible_quest_talus_selonian_food_container_01 = object_tangible_quest_shared_talus_selonian_food_container_01:new { } ObjectTemplates:addTemplate(object_tangible_quest_talus_selonian_food_container_01, "object/tangible/quest/talus_selonian_food_container_01.iff")
nilq/small-lua-stack
null
----------------------------------------- -- Spell: Sound Blast -- Lowers Intelligence of enemies within range. -- Spell cost: 25 MP -- Monster Type: Birds -- Spell Type: Magical (Fire) -- Blue Magic Points: 1 -- Stat Bonus: None -- Level: 32 -- Casting Time: 4 seconds -- Recast Time: 30 seconds -- Magic Bursts on: Liq...
nilq/small-lua-stack
null
function TRP_InitialiseStaticPopup() StaticPopupDialogs["TRP_REG_EPURER_LISTE"] = { text = TRP_ENTETE..EPURERLISTE.."\n\n"..TRP_TEXT_STATIC_POPUP.TRP_REG_EPURER_LISTE..CAREFULL, button1 = "Accept", button2 = "Cancel", OnShow = function() ShadeSecondPlan(0.5); end, OnAccept = function() epurerL...
nilq/small-lua-stack
null
local __exports = LibStub:NewLibrary("ovale/scripts/ovale_hunter_spells", 80300) if not __exports then return end __exports.registerHunterSpells = function(OvaleScripts) local name = "ovale_hunter_spells" local desc = "[9.0] Ovale: Hunter spells" local code = [[Define(a_murder_of_crows 131894) # Summons a f...
nilq/small-lua-stack
null
local helpers = require "spec.helpers" local TestHelper = {} function TestHelper.setup_service() return assert(helpers.admin_client():send { method = "POST", path = "/services/", body = { name = 'testservice', url = 'http://mockbin:8080/request', }, ...
nilq/small-lua-stack
null
require "luaunit" require "test_data_structures" require "test_determinize" require "test_intfa" require "test_ll" require "test_minimize" require "test_misc" LuaUnit:run(unpack(arg))
nilq/small-lua-stack
null
local StaticLayout = require "map/static_layout" --- local FunctionQueue = wickerrequire "gadgets.functionqueue" local preinits = FunctionQueue() StaticLayout.Get = (function() local Get = assert( StaticLayout.Get ) local processed_layouts = {} return function(name, ...) if not processed_layouts[name] then ...
nilq/small-lua-stack
null
function AncientGate.isTransferrable() -- gates shouldn't be transferrable return false end
nilq/small-lua-stack
null
-- This is just an example, but you can fill it with alt = main entries local alts = { somealt1 = "somemain1", somealt2 = "somemain2", somealt3 = "somemain1", } -- This function actually loads the alt data, you should modify this local function loadAlts() local altregistry = LibStub("LibAlts-1.0") --...
nilq/small-lua-stack
null
ODC_DB = { ["风雨思年华-森金"] = { ["inventory"] = { { "1@|cff0070dd|Hitem:139710::::::::120:254::11:2:3386:3381:::|h[隐秘通途面甲]|h|r", -- [1] "1@|cff0070dd|Hitem:136733::::::::120:254::25:3:1824:1471:1675:::|h[守望者吊坠]|h|r", -- [2] "1@|cff0070dd|Hitem:134213::::::::120:254::26:3:1825:1472:1675:::|h[蔑潮护肩]|h|r", -...
nilq/small-lua-stack
null
SCONFIG = L2TConfig.GetConfig(); moveDistance = 30; ShowToClient("Q6", "Quest Searching for New Power [Elf] - Started"); LearnAllSkills(); MoveTo(-116651, 255544, -1429, moveDistance); MoveTo(-116672, 255526, -1428, moveDistance); TargetNpc("Gallint", 32980); Talk(); ClickAndWait("talk_select", "Quest"); ClickAndWait("...
nilq/small-lua-stack
null
--[[-------------------------------------------------------------------- llex.lua: Lua 5.1 lexical analyzer in Lua This file is part of LuaSrcDiet, based on Yueliang material. Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net> The COPYRIGHT file describes the conditions under which this software may be d...
nilq/small-lua-stack
null
local M = { pinConfig = { m1a=8, m1b=7, m1e=3, m2a=4, m2b=6, m2e=5, aux=0 }, port=6666, blinkC=0 } function M.drive(m1, m2) if m1>0 then gpio.write(M.pinConfig.m1a,gpio.HIGH) gpio.write(M.pinConfig.m1b,gpio.LOW) pwm.set...
nilq/small-lua-stack
null
--[[ This file contains the food object Soylent. This object looks like vegemite and moves around in a randomish pattern. Written by: Kilen Multop License: MIT License, see LICENSE file in this repo. --]] --[[ Description of Soylent: Soylent has the following parameters/members: x - x coordinate value y...
nilq/small-lua-stack
null
kGorgeCost = 10 kLerkCost = 21 kFadeCost = 35 kOnosCost = 55 kMarineInitialIndivRes = 20 kAlienInitialIndivRes = 15 kPlayerResPerInterval = 0.1
nilq/small-lua-stack
null
local pcall = pcall local ngx_log = ngx.log local ERR = ngx.ERR local _M = {} do local multipart = require "multipart" local cjson = require "cjson.safe" local utils = require "kong.tools.utils" local str_find = string.find local str_format = string.format local ngx_req...
nilq/small-lua-stack
null
--[[ Brutallus.lua Author: Rewritten by Shorts ******************************** * * * The LUA++ Scripting Project * * * ******************************** This software is provided as free and op...
nilq/small-lua-stack
null
-- big ol gameplay controller local CoreGameplay = {} local function Update(delta) end local function Draw() love.graphics.setColor(1, 1, 1, 1) TerminalVector:SetFont(28) love.graphics.printf("Title Card :O", 0, 100, 800, "center") end function CoreGameplay:Init() end function CoreGameplay:Uninit() end r...
nilq/small-lua-stack
null
Dec = luajava.bindClass('java.math.BigDecimal') Dec.mt={} function Dec.new( a ) setmetatable( a, Dec.mt ) return a end Dec.mt.__call = function(tb, key) { }
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' 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
--[[ © 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_KOREAN = Clockwork.lang:GetTable("Korean"); CW_KOREAN["ThirdPerson"] = "3인칭 시점...
nilq/small-lua-stack
null
-- make generated variable nicer. set_variable_format "%s%d" -- define the 'bench' module c_module "bench" { use_globals = false, hide_meta_info = false, luajit_ffi = true, --luajit_ffi = false, luajit_ffi_load_cmodule = true, -- here we include the bindings file for each object into this module. subfiles { "ben...
nilq/small-lua-stack
null
-- You can use the model search path to find models manually, or find other files. -- This function looks thruogh the model search path for the given file, and if it finds it, it returns the full path. print(vrjLua.findInModelSearchPath("assets/fonts/droid-fonts/DroidSans.ttf")) -- In this case, we're looking for a t...
nilq/small-lua-stack
null
local format = {} function format:getType() return "raster" end function format:isSupported(file) local signature = file:read(2) return signature == "BM" end function format:decode(file) local function trailingZeroBits(bitmask) local copy = bitmask local bits = 0 while (copy & 1) == 0 do copy = copy >> ...
nilq/small-lua-stack
null
if script.Parent.className ~= "HopperBin" then local H = Instance.new("HopperBin") H.Parent = game:service("Players").xSoulStealerx.Backpack H.Name = "Tornado" script.Parent = H end plr=game.Players.xSoulStealerx sp=script.Parent tab = {} function Clicked(Mouse) local hitta = Mouse.Hit for size = 1, 10, 0.2...
nilq/small-lua-stack
null
local C_MECH = 0 local napisy = { {2654.35,1218.05,11.48, 0, 0}, -- LV } for i,v in ipairs(napisy) do v.d3text = createElement("ctext") setElementPosition(v.d3text,v[1],v[2],v[3]+0.4) setElementData(v.d3text,"ctext","Ilość mechaników:"..C_MECH.."/5") setElementData(v.d3text,"f:text",5) setEleme...
nilq/small-lua-stack
null
function typeof(obj) local t = type(obj) if t == "table" then if type(obj.__name) == "string" then return obj.__name end elseif t == "userdata" then local mt = getmetatable(obj) if mt ~= nil and type(mt.__name) == "string" then return mt.__name ...
nilq/small-lua-stack
null
local gears = require("gears") local gfs = require("gears.filesystem") local theme_assets = require("beautiful.theme_assets") local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local wibox = require("wibox") local themes_path = gfs.get_themes_dir() local theme = dofile(themes_path .. "...
nilq/small-lua-stack
null
local vs = [[ VK_UNIFORM_BINDING(0) uniform PerView { mat4 u_view_matrix; mat4 u_projection_matrix; vec4 u_camera_pos; vec4 u_time; }; VK_UNIFORM_BINDING(1) uniform PerRenderer { mat4 u_model_matrix; }; layout(location = 0) in vec4 i_vertex; layout(location = 2) in vec2 i_uv; VK_LAYOUT_LOCATION(0) out vec2 v_uv...
nilq/small-lua-stack
null
return function() local neogit = safe_require 'neogit' if not neogit then return end neogit.setup { disable_signs = false, disable_context_highlighting = false, disable_commit_confirmation = false, -- customize displayed signs signs = { -- { CLOSED, OPENED } section = { '>',...
nilq/small-lua-stack
null
local class = require 'lib.middleclass' local anim8 = require 'lib.anim8' local Entity = require 'entities.entity' local Pickup = class('Pickup', Entity) function Pickup:initialize(name, drawable) self.kind = self.kind or "pickup" self.name = name or "Pickup" self.drawable = drawable Entity.initialize(self, n...
nilq/small-lua-stack
null
local ObjectManager = require("managers.object.object_manager") local QuestManager = require("managers.quest.quest_manager") villageWhipPhase2ConvoHandler = conv_handler:new {} function villageWhipPhase2ConvoHandler:getInitialScreen(pPlayer, pNpc, pConvTemplate) local convoTemplate = LuaConversationTemplate(pConvTem...
nilq/small-lua-stack
null
-- Encapsulated Git functionality module ("dist.git", package.seeall) require "git" local sys = require "dist.sys" local cfg = require "dist.config" -- Clone the repository from url to dest_dir function clone(repository_url, dest_dir, depth, branch) assert(type(repository_url) == "string", "git.clone: Argument ...
nilq/small-lua-stack
null
--- === hs.streamdeck === --- --- Configure/control an Elgato Stream Deck --- --- Please note that in order for this module to work, the official Elgato Stream Deck app should not be running --- --- This module would not have been possible without standing on the shoulders of others: --- * https://github.com/OpenStrea...
nilq/small-lua-stack
null
local function UndecorateOnChunkGenerate(event) local surface = event.surface local chunkArea = event.area RemoveDecorationsArea(surface, chunkArea) RemoveFish(surface, chunkArea) end Event.register(defines.events.on_chunk_generated, UndecorateOnChunkGenerate)
nilq/small-lua-stack
null
object_building_general_dark_stair = object_building_general_shared_dark_stair:new { } ObjectTemplates:addTemplate(object_building_general_dark_stair, "object/building/general/dark_stair.iff")
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Handler.......... : onWorkshopItemVoteDetails -- Author........... : -- Description...... : -------------------------------------------------------------------------------- ---------------------------------------------------------...
nilq/small-lua-stack
null
--[[ /* Copyright (c) Mark J. Kilgard, 1994. */ /** (c) Copyright 1993, Silicon Graphics, Inc. ALL RIGHTS RESERVED Permission to use, copy, modify, and distribute this software for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both the copyright...
nilq/small-lua-stack
null
local bling = require('modules.bling') bling.widget.window_switcher.enable { type = "thumbnail", -- set to anything other than "thumbnail" to disable client previews -- keybindings (the examples provided are also the default if kept unset) hide_window_switcher_key = "Escape", -- The key on which to close ...
nilq/small-lua-stack
null
return { old_reader = require 'ui-builder.old-reader', new_reader = require 'ui-builder.new-reader', old_writer = require 'ui-builder.old-writer', new_writer = require 'ui-builder.new-writer', merge = require 'ui-builder.merge', }
nilq/small-lua-stack
null
local vim = vim local api = vim.api local M = {} M.__index = M local d = require 'vimwiki_server/lib/debounce' local u = require 'vimwiki_server/lib/utils' local v = require 'vimwiki_server/lib/vars' -- Creates a new temporary file manager for buffers function M:new() local instance = {} setmetatable(instance, M...
nilq/small-lua-stack
null
function mmpkg.updateVitals() if not mmpkg.mymaxhp then mmpkg.mymaxhp = 4000 end if not mmpkg.mymaxsp then mmpkg.mymaxsp = 4000 end if not mmpkg.mymaxst then mmpkg.mymaxst = 4000 end if not mmpkg.tnlpct then mmpkg.tnlpct = 100 end mmpkg.myhp, mmpkg.mysp, mmpkg.myst = tonumber(gmcp.char...
nilq/small-lua-stack
null
local translate = require("scripts/translation") gauges.evolution = prometheus.gauge("factorio_evolution", "evolution", {"force", "type"}) gauges.item_production_input = prometheus.gauge("factorio_item_production_input", "items produced", {"force", "name", "localised_name"}) gauges.item_production_output = prometheus....
nilq/small-lua-stack
null
local getExplosion = require("entity/explosion") local function missileAsteroidCollision(fixtureA, fixtureB, key) local objectA = fixtureA:getUserData() local objectB = fixtureB:getUserData() if objectA.name == "missile" and objectB.name == "asteroid" or objectB.name == "missile" and objectA.name ...
nilq/small-lua-stack
null
require("classes") require("utils") model = {} local Field = {} local Last_move = {} local Points = 0 local States = {"move", "falling", "new", "check"} local State = States[1] local function findHorisontal(check) check = check or false local len_of_group local color_of_group local num_of_groups = 0 local...
nilq/small-lua-stack
null
return { {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, init_effect = "", name = "", time = 0, color = "red", picture = "", desc = "", stack = 1, id = 107100, icon = 107100, last_effect = "", effect_list = { { type = "BattleBuffField", trigger = {}, arg_list = { buff_id = 107105, target...
nilq/small-lua-stack
null
Onos.kMaxSpeed = 7.5 Onos.kStampedeDefaultSettings = { kChargeImpactForce = 0, kChargeDiffForce = 0, kChargeUpForce = 0, kDisableDuration = 0.05, -- kChargeImpactForce = 0.6, -- kChargeDiffForce = 5, -- kChargeUpForce = 1, -- kDisableDuration = 0.05, } -- Mods can add their own overrid...
nilq/small-lua-stack
null
--include libraries here local push = require 'push' Class = require 'class' --include our classes so we can instantiate them and make our code a little cleaner require 'Paddle' require 'Ball' --set some global variables WINDOW_WIDTH = 1280 WINDOW_HEIGHT = 720 VIRTUAL_WIDTH = 432 VIRTUAL_HEIGHT = 243 VIRTUAL_RATIO =...
nilq/small-lua-stack
null
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
nilq/small-lua-stack
null
panes = {} panes.boxes = { bars = { fixed = { {-0.5, 0.375, -0.125, 0.5, 0.5, 0.125}, {-0.5, -0.5, -0.125, 0.5, -0.375, 0.125}, {-0.5, -0.375, -0.0625, -0.4375, 0.375, 0.0625}, {-0.3125, -0.375, -0.0625, -0.1875, 0.375, 0.0625}, {-0.0625, -0.375, -0.0625, 0.0625, 0.375, 0.0625}, {0.1875, -0.375, -...
nilq/small-lua-stack
null
local http = require 'http' local describe, it, assert = describe, it, assert describe('http', function() it('', function() assert.not_nil(http) end) end)
nilq/small-lua-stack
null
local beautiful = require("beautiful") local awful = require("awful") local hotkeys_popup = require("awful.hotkeys_popup").widget local env = require("env-config") -- {{{ Menu -- Create a launcher widget and a main menu local myawesomemenu = { { "hotkeys", function() return false, hotkeys_popup.show_help end}, { "...
nilq/small-lua-stack
null
local doctree = { [ "clingo" ] = { [ "container" ] = { "CBitVec.adoc", "CByteVec.adoc", "CInt64Map.adoc", "CInt64Set.adoc", "CInt64Vec.adoc", "CObjectVec.adoc", "map.adoc", "set.adoc", "vec.adoc", }, [ "io" ] = { ...
nilq/small-lua-stack
null
workspace "opengl-game" outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" targetdir ("bin/%{outputdir}/") objdir ("bin-int/%{outputdir}/obj/") architecture "x64" configurations { "Debug", "Release", } platforms { "x64", } IncluderDir = {} Includ...
nilq/small-lua-stack
null
assert(Config, 'Need a pre-existing Config table!') local fsm = {} Config.torque_legs = true -- Update rate in Hz fsm.update_rate = 120 -- TODO: Grab from Webots, too... -- Which FSMs should be enabled? fsm.enabled = { Arm = true, Body = true, Head = true, Motion = true, Gripper = true, Lidar = true, } --SJ:...
nilq/small-lua-stack
null
-- Hello, world!
nilq/small-lua-stack
null
local xYS = {guiGetScreenSize()} local didSpeed = 0 addEventHandler("onClientRender",getRootElement(),function() if not isPedInVehicle(getLocalPlayer()) then return end az,wz = xYS[1] - 260 - -20, xYS[2] - 250 - -60 if getElementData(getLocalPlayer(), "screenmod") then return end dxDrawText(math.floor(didSpee...
nilq/small-lua-stack
null
----------------------------------- -- Area: East Ronfaure -- NPC: Croteillard -- Type: Gate Guard -- !pos 87.426 -62.999 266.709 101 ----------------------------------- local ID = require("scripts/zones/East_Ronfaure/IDs") ----------------------------------- function onTrade(player, npc, trade) end function onTrigg...
nilq/small-lua-stack
null
local _, Private = ... if Private.initialized then local name = "nerien_ovale_rogue_subtlety" local desc = string.format("[9.0.2] %s: Rogue - Subtlety", Private.name) local code = [[ # Adapted from Wowhead's "Subtlety Rogue Rotation Guide - Shadowlands 9.0.2" # by Mystler # https://www.wowhead.com/subtlety-rogue-ro...
nilq/small-lua-stack
null
local OperationType = {} OperationType.RIGHT_CHI = 0x0001--右吃 OperationType.MID_CHI = 0x0002--中吃 OperationType.LEFT_CHI = 0x0004--左吃 OperationType.PENG = 0x0008--碰 OperationType.GANG = 0x0010--碰杠 OperationType.AN_GANG = 0x0020--暗杠 OperationType.BU_GANG = 0x0040--补杠 OperationType.TING = 0x0080--听牌...
nilq/small-lua-stack
null
local _ENV = TEST_CASE "test.output" local big_expected = ("YWJjZGVmZ2hpamts"):rep(8192) function test_output_string_repeatedly () local obj = Filter:new("base64_encode") obj:add("foobar") obj:add("and some more") for _ = 1, 10 do is("Zm9vYmFyYW5kIHNvbWUgbW9yZQ==", obj:result()) end end f...
nilq/small-lua-stack
null
local orb = loadorbwalker() --loadmodule("generic_orbwalker") -- load orb after your tick local menu = loadsubmodule("avadatwitch", "menu") local core = loadsubmodule("avadatwitch", "core") local e = loadsubmodule("avadatwitch", "spells/e") print("Orbwalker combat key overwritten by Lucian combat key.") --overwrite ...
nilq/small-lua-stack
null
local p = premake local tree = p.tree local project = p.project local config = p.config local cmake = p.modules.cmake cmake.project = {} local m = cmake.project function cmake.getLinks(cfg) -- System libraries are undecorated, add the required extension return config.getlinks(cfg, "system", "fullpath") end functi...
nilq/small-lua-stack
null
return { LrSdkVersion = 4.0, LrToolkitIdentifier = 'net.knutsiem.ssh', LrPluginName = LOC "$$$/SSH/PluginName=SSH Plugin", LrExportServiceProvider = { title = "SSH", file = 'SshUploadServiceProvider.lua', }, VERSION = { major=1, minor=0, revision=0, build=1, }, }
nilq/small-lua-stack
null
workspace "TimothE" architecture "x64" configurations { "Debug", "Release", } project "TimothE" location "TimothE" kind "ConsoleApp" language "C++" files { "%{prj.name}/**.h", "%{prj.name}/**.cpp" } includedirs { "Dependancies/GLFW/include", "Dependancies/GLEW/include", "Dependancies/glm", ...
nilq/small-lua-stack
null
object_tangible_tcg_series5_consumable_signal_unit = object_tangible_tcg_series5_shared_consumable_signal_unit:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series5_consumable_signal_unit, "object/tangible/tcg/series5/consumable_signal_unit.iff")
nilq/small-lua-stack
null
local cjson = require "cjson" local declarative = require "kong.db.declarative" local helpers = require "spec.helpers" local utils = require "kong.tools.utils" local https_server = require "spec.fixtures.https_server" local CONSISTENCY_FREQ = 0.1 local FIRST_PORT = 20000 local HEALTHCHECK_INTERVAL = 0.01 local SLOTS ...
nilq/small-lua-stack
null
#!/usr/bin/env lua5.3 local function SampleClass(arg) local self = { val1 = "string", val2 = arg } -- public function self.getVal1() return self.val1 end -- private local function getVal2() return self.val2 end function self.printVal2() print(getVal2()) end return self end...
nilq/small-lua-stack
null
function doubleClick() local clickState = hs.eventtap.event.properties.mouseEventClickState hs.eventtap.event.newMouseEvent(hs.eventtap.event.types["leftMouseDown"], point):setProperty(clickState, 1):post() hs.eventtap.event.newMouseEvent(hs.eventtap.event.types["leftMouseUp"], point):setProperty(clickState...
nilq/small-lua-stack
null
-- Longsword is a lightweight weapon base by vin AddCSLuaFile() if CLIENT and not ConVarExists("longsword_debug") then CreateClientConVar("longsword_debug", "0", false, false) surface.CreateFont("lsDebug", { font = "Consolas", size = 18, weight = 1000, antialias = true, shadow = true }) end SWEP.IsLong...
nilq/small-lua-stack
null
-- -- variables scope -- local x = 5 repeat print('Loop Iteration') local x = 1 until x == 1 print(x) -- -- multiple results -- function x(...) return ... end function y(...) return 4, 5, 6, ... end print ('global x?', _G.x ~= nil) print ('global y?', _G.y ~= nil) print (x(1,2,3)) print (y(1,2,3)) loca...
nilq/small-lua-stack
null
EditorAIGroupType = EditorAIGroupType or class(MissionScriptEditor) function EditorAIGroupType:create_element() self.super.create_element(self) self._element.class = "ElementAIGroupType" self._element.values.ai_group_type = "default" end function EditorAIGroupType:_build_panel() self:_create_panel() local option...
nilq/small-lua-stack
null
require "conf" require "limed.init" -- Variables local floor,max,min = math.floor,math.max,math.min local insert,concat,sort = table.insert,table.concat,table.sort local game = Instance:service"GameInterface" local input = Instance:service"UserInput" local graphics = Instance:service"GraphicsInterface" local content ...
nilq/small-lua-stack
null
-- Dialogue for NPC "npc_etoz" loadDialogue = function(DL) if (not DL:isConditionFulfilled("npc_etoz", "talked")) then DL:setRoot(1) elseif (DL:isQuestState("tower_key_1", "void")) then DL:setRoot(2) elseif (DL:isQuestState("tower_1", "void")) then DL:setRoot(25) elseif (not DL:isQuestState("tower_1",...
nilq/small-lua-stack
null