repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
micheleorsi/contrib
ingress/controllers/nginx/lua/trie.lua
56
1428
-- Simple trie for URLs local _M = {} local mt = { __index = _M } -- http://lua-users.org/wiki/SplitJoin local strfind, tinsert, strsub = string.find, table.insert, string.sub function _M.strsplit(delimiter, text) local list = {} local pos = 1 while 1 do local first, last = strfind(text, deli...
apache-2.0
rgieseke/scintillua
lexers/django.lua
1
2102
-- Copyright 2006-2018 Mitchell mitchell.att.foicica.com. See LICENSE. -- Django LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local lex = lexer.new('django') -- Whitespace. lex:add_rule('whitespace', token(lexer.WHITESPACE, ...
mit
rrpgfirecast/firecast
Plugins/ChatMods/NickSaver/sdk/rrpgDialogs.lua
98
12109
local objs = require("rrpgObjs.lua"); local lDialogs = {}; local function newDialogObject(className) return objs.objectFromHandle(_obj_newObject(className)); end; lDialogs.DT_INFORMATION = "information"; lDialogs.DT_ERROR = "error"; lDialogs.DT_WARNING = "warning"; lDialogs.DT_CONFIRMATION = "confirmation"; lDialo...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/PokeRPG/sdk/rrpgDialogs.lua
98
12109
local objs = require("rrpgObjs.lua"); local lDialogs = {}; local function newDialogObject(className) return objs.objectFromHandle(_obj_newObject(className)); end; lDialogs.DT_INFORMATION = "information"; lDialogs.DT_ERROR = "error"; lDialogs.DT_WARNING = "warning"; lDialogs.DT_CONFIRMATION = "confirmation"; lDialo...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/AD&D 2e/sdk/rrpgDialogs.lua
98
12109
local objs = require("rrpgObjs.lua"); local lDialogs = {}; local function newDialogObject(className) return objs.objectFromHandle(_obj_newObject(className)); end; lDialogs.DT_INFORMATION = "information"; lDialogs.DT_ERROR = "error"; lDialogs.DT_WARNING = "warning"; lDialogs.DT_CONFIRMATION = "confirmation"; lDialo...
apache-2.0
rrpgfirecast/firecast
Plugins/TablesDock/Lista de NPCs/sdk/rrpgDialogs.lua
98
12109
local objs = require("rrpgObjs.lua"); local lDialogs = {}; local function newDialogObject(className) return objs.objectFromHandle(_obj_newObject(className)); end; lDialogs.DT_INFORMATION = "information"; lDialogs.DT_ERROR = "error"; lDialogs.DT_WARNING = "warning"; lDialogs.DT_CONFIRMATION = "confirmation"; lDialo...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Ficha Tormenta 20/sdk/rrpgDialogs.lua
98
12109
local objs = require("rrpgObjs.lua"); local lDialogs = {}; local function newDialogObject(className) return objs.objectFromHandle(_obj_newObject(className)); end; lDialogs.DT_INFORMATION = "information"; lDialogs.DT_ERROR = "error"; lDialogs.DT_WARNING = "warning"; lDialogs.DT_CONFIRMATION = "confirmation"; lDialo...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Ficha Star Wars 5e/sdk/rrpgDialogs.lua
98
12109
local objs = require("rrpgObjs.lua"); local lDialogs = {}; local function newDialogObject(className) return objs.objectFromHandle(_obj_newObject(className)); end; lDialogs.DT_INFORMATION = "information"; lDialogs.DT_ERROR = "error"; lDialogs.DT_WARNING = "warning"; lDialogs.DT_CONFIRMATION = "confirmation"; lDialo...
apache-2.0
bartvm/nn
Criterion.lua
38
1273
local Criterion = torch.class('nn.Criterion') function Criterion:__init() self.gradInput = torch.Tensor() self.output = 0 end function Criterion:updateOutput(input, target) end function Criterion:forward(input, target) return self:updateOutput(input, target) end function Criterion:backward(input, target) ...
bsd-3-clause
laincloud/lain-sdk
lain_sdk/yaml/lua_parser/jsonCompletion.lua
2
16365
json = require "ljson" --------------------------------------------------------------------------------------------------------------- -- Enum for SocketType & ProcType SocketType={tcp=0,udp=1} ProcType={worker=0,web=1,oneshot=2,portal=3} ConfLen = {build=3,release=2,test=1,notify=1} -----------------------------------...
mit
shingenko/darkstar
scripts/commands/capskill.lua
27
3148
--------------------------------------------------------------------------------------------------- -- func: capskill -- desc: Caps a specific skill. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1, parameters = "s" }; ...
gpl-3.0
TheAncientGoat/GodheadLips
data/godhead/scripts/client/event.lua
1
6254
local editor_gui_actions = {menu = true, screenshot = true} Eventhandler{type = "keypress", func = function(self, args) if Client.views.controls.editing_binding then -- Binding input. Client.views.controls:input(args) Action:event(args, {}) elseif Client.mode == "editor" then -- Editor input. if not Progra...
gpl-3.0
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/cgilua/examples/authentication_conf.lua
1
3628
---------------------------- -- Authentication configuration file -- -- Defines the method and details of the authentication mechanism -- -- $Id: authentication_conf.lua,v 1.1 2007/12/05 18:40:17 carregal Exp $ ---------------------------- require"cgilua.authentication" local options = { -- Authentica...
lgpl-3.0
PorkShoulderHolder/lstm
main.lua
1
15371
-- ---- Copyright (c) 2014, Facebook, Inc. ---- All rights reserved. ---- ---- This source code is licensed under the Apache 2 license found in the ---- LICENSE file in the root directory of this source tree. ---- ok,cunn = pcall(require, 'fbcunn') if not ok then ok,cunn = pcall(require,'cunn') if ok then ...
apache-2.0
shingenko/darkstar
scripts/globals/besieged.lua
52
10827
----------------------------------------------------------------- -- Variable for getNationTeleport and getRegionPoint ----------------------------------------------------------------- IS = 3; ZENI = 10; AHTURHGAN = 3; LEUJAOAM_ASSAULT_POINT = 0; MAMOOL_ASSAULT_POINT = 1; LEBROS_ASSAULT_POINT = 2; PERIQIA_ASSAULT_PO...
gpl-3.0
shingenko/darkstar
scripts/globals/weaponskills/leaden_salute.lua
18
4486
----------------------------------- -- Leaden Salute -- Sword weapon skill -- Skill Level: N/A -- Delivers a Twofold attack. Damage varies with TP. Death Penalty: Aftermath effect varies with TP. -- Available only after completing the Unlocking a Myth (Corsair) quest. -- Aligned with the Shadow Gorget, Soil Gorge...
gpl-3.0
matinJ/skynet
service/snaxd.lua
42
2189
local skynet = require "skynet" local c = require "skynet.core" local snax_interface = require "snax.interface" local profile = require "profile" local snax = require "snax" local snax_name = tostring(...) local func, pattern = snax_interface(snax_name, _ENV) local snax_path = pattern:sub(1,pattern:find("?", 1, true)-...
mit
psychon/awesome
lib/naughty/dbus.lua
1
11341
--------------------------------------------------------------------------- -- DBUS/Notification support -- Notify -- -- @author koniu <gkusnierz@gmail.com> -- @copyright 2008 koniu -- @module naughty.dbus --------------------------------------------------------------------------- assert(dbus) -- Package enviro...
gpl-2.0
shingenko/darkstar
scripts/zones/Monarch_Linn/mobs/Ouryu.lua
13
2166
----------------------------------- -- Area: -- NPC: Ouryu ----------------------------------- ----------------------------------- require("scripts/globals/titles"); ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) end; function on...
gpl-3.0
shingenko/darkstar
scripts/zones/Outer_Horutoto_Ruins/npcs/_5ee.lua
17
3321
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: Ancient Magical Gizmo #1 (E out of E, F, G, H, I, J) -- Involved In Mission: The Heart of the Matter ----------------------------------- package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil; ---------------------------------...
gpl-3.0
Clavus/Conclavus
engine/lib/loveframes/objects/tabs.lua
2
19394
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- get the current require path local path = string.sub(..., 1, string.len(...) - string.len(".objects.tabs")) local lovefra...
mit
fridolin2/morethings_modpack
morethings_nodes/arrayed_bricks_crafting.lua
1
2542
---Crafting Arrayed Bricks minetest.register_craft( { type = "shapeless", output = '"morethings_nodes:arrayed_brick_sandstone" 2', recipe = {"morethings_nodes:building_concrete", "default:sandstone"}, }) minetest.register_craft( { type = "shapeless", output = '"morethings_nodes:arrayed_brick_silver_sandstone" 2...
gpl-3.0
shingenko/darkstar
scripts/globals/mobskills/Chains_of_Arrogance.lua
25
1175
--------------------------------------------- -- Chains of Apathy -- --------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); require("scripts/globals/keyitems"); require("scripts/zones/Empyreal_Paradox/TextIDs"); -...
gpl-3.0
shingenko/darkstar
scripts/zones/Palborough_Mines/TextIDs.lua
9
1671
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6384; -- Obtained: <item>. GIL_OBTAINED = 6385; -- Obtained <number> gil. KEYITEM_OBTAINED = 6387; -- Obtained...
gpl-3.0
shingenko/darkstar
scripts/zones/Port_Bastok/npcs/Otto.lua
17
1152
----------------------------------- -- Area: Port Bastok -- NPC: Otto -- Standard Info NPC -- Involved in Quest: The Siren's Tear -- @zone: 236 -- @pos -145.929 -7.48 -13.701 ----------------------------------- require("scripts/globals/quests"); ----------------------------------- -- onTrade -----------...
gpl-3.0
openwayne/chaos_theory
mods/digilines/util.lua
3
4058
function digilines.addPosRule(p, r) return {x = p.x + r.x, y = p.y + r.y, z = p.z + r.z} end function digilines.cmpPos(p1, p2) return (p1.x == p2.x and p1.y == p2.y and p1.z == p2.z) end --Rules rotation Functions: function digilines.rotate_rules_right(rules) local nr={} for i, rule in ipairs(rules) do nr[i]={}...
lgpl-2.1
ArcherSys/ArcherSys
Lua/lua/pl/OrderedMap.lua
12
4122
--- OrderedMap, a map which preserves ordering. -- -- Derived from `pl.Map`. -- -- Dependencies: `pl.utils`, `pl.tablex`, `pl.List` -- @module pl.OrderedMap local tablex = require 'pl.tablex' local utils = require 'pl.utils' local List = require 'pl.List' local index_by,tsort,concat = tablex.index_by,table.sort,table....
mit
shingenko/darkstar
scripts/zones/Upper_Jeuno/npcs/Leillaine.lua
37
1276
----------------------------------- -- Area: Upper Jeuno -- NPC: Leillaine -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; require("scripts/zones/Upper_Jeuno/TextIDs"); ----------------------------------...
gpl-3.0
psychon/awesome
tests/examples/wibox/layout/grid/spacing.lua
6
1770
--DOC_GEN_IMAGE local generic_widget = ... --DOC_HIDE_ALL local wibox = require("wibox") --DOC_HIDE local beautiful = require("beautiful") --DOC_HIDE local w = wibox.widget { { { markup = "<b>spacing</b> = <i>0</i>", widget = wibox.widget.textbox }, { ...
gpl-2.0
Clavus/Conclavus
engine/classes/level/tiledleveldata.lua
2
5748
------------------------ -- TiledLevelData class. -- Build an level environment from Tiled data. -- -- Derived from @{LevelData}. -- @cl TiledLevelData local TiledLevelData = class('TiledLevelData', LevelData) function TiledLevelData:initialize( file_path ) LevelData.initialize(self) local succ, tab = pcall(functi...
mit
aboskroop/smilev2
plugins/banhammer.lua
1
34582
local function pre_process(msg) if msg.to.type ~= 'pv' then chat = msg.to.id user = msg.from.id local function check_newmember(arg, data) test = load_data(_config.moderation.data) lock_bots = test[arg.chat_id]['settings']['lock_bots'] local hash = "gp_lang:"..arg.chat_id local lang = redis:get(hash) if data...
gpl-3.0
raffomania/ideophilia
src/systems/physic/AccelerationSystem.lua
1
1149
AccelerationSystem = class("AccelerationSystem", System) function AccelerationSystem:update(dt) for index, entity in pairs(self.targets) do local speed = entity:get("Moving").speed local maxSpeed = entity:get("Moving").maxSpeed local acceleration = entity:get("Accelerating").acceleration ...
mit
ArchAngel075/CurseEngine-TheDarkness
mods/CORE/CurseMod.lua
1
1142
local Mod = {} Mod.NAME = "NET" function Mod.checkValid() return true end function Mod:onActivate() print("[NET] Activated") local channels = 8 local path = self.path self.netSoundsPaths = { torch_click1 = path.."/sounds/torch/torch_one.mp3", torch_click2 = path.."/sounds/torch/torch_two.mp3", torch_clic...
gpl-2.0
wagonrepairer/Zero-K
scripts/armsnipe.lua
8
10377
include "constants.lua" -------------------------------------------------------------------------------- -- pieces -------------------------------------------------------------------------------- local base = piece 'base' local hips = piece 'hips' local torso = piece 'torso' local camera = piece 'camera' local sho...
gpl-2.0
shingenko/darkstar
scripts/zones/Kamihr_Drifts/Zone.lua
34
1243
----------------------------------- -- -- Zone: Kamihr Drifts -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Kamihr_Drifts/TextIDs"] = nil; require("scripts/zones/Kamihr_Drifts/TextIDs"); ----------------------------------- -- onInitialize ----...
gpl-3.0
xswm1123/vlc
share/lua/sd/jamendo.lua
58
5786
--[[ $Id$ Copyright © 2010 VideoLAN and AUTHORS Authors: Fabio Ritrovato <sephiroth87 at videolan dot org> Rémi Duraffort <ivoire at videolan dot org> Gian Marco Sibilla <techos at jamendo dot com> This program is free software; you can redistribute it and/or modify it under the terms of th...
gpl-2.0
yogome/HeroesSaludables
libs/helpers/testmenu.lua
1
4319
------------------------------------------------ Test Menu local path = ... local folder = path:match("(.-)[^%.]+$") local director = require( folder.."director" ) local logger = require( folder.."logger" ) local widget = require( "widget" ) local settings = require( "settings" ) local scene = director.newScene("tes...
agpl-3.0
shingenko/darkstar
scripts/globals/mobskills/High-Tension_Discharger.lua
18
1253
--------------------------------------------------- -- High-Tension_Discharger -- Description: -- Type: Magical -- additional effect : Stun --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); -----...
gpl-3.0
wagonrepairer/Zero-K
LuaRules/Gadgets/endgame_graphs.lua
2
5186
if not gadgetHandler:IsSyncedCode() then return end function gadget:GetInfo() return { name = "Endgame Graphs", desc = "Gathers misc stats", author = "Sprung", date = "2016-02-14", license = "PD", layer = 999999, enabled = true, } end local teamList = Spring.GetTeamList() local gaiaTeamID = Spring....
gpl-2.0
shingenko/darkstar
scripts/zones/Qufim_Island/Zone.lua
17
2558
----------------------------------- -- -- Zone: Qufim_Island (126) -- ----------------------------------- package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/titles"); require("scripts/globals/quests"); ...
gpl-3.0
AleksCore/Mr.Green-MTA-Resources
resources/[managers]/votemanager/votemanager_polls.lua
3
26738
local rootElement = getRootElement() local thisResourceRoot = getResourceRootElement(getThisResource()) local serverConsole = getElementByIndex("console", 0) local modeOptions = 0 local mapOptions = 0 local DONT_CHANGE_OPTION = {"Don't change", default=false} local currentPollSize = 0 local vote = { map = {}, mode...
mit
shingenko/darkstar
scripts/zones/Southern_San_dOria/npcs/Arpevion_TK.lua
28
4813
----------------------------------- -- Area: Southern San d'Oria -- NPC: Arpevion, T.K. -- X Grant Signet -- X Recharge Emperor Band, Empress Band, or Chariot Band -- X Accepts traded Crystals to fill up the Rank bar to open new Missions. -- X Sells items in exchange for Conquest Points -- X Start Supply Ru...
gpl-3.0
simon-wh/PAYDAY-2-BeardLib
Hooks/Network/NetworkPeer.lua
1
20099
local peer_send_hook = "NetworkPeerSend" local NetworkPeerSend = NetworkPeer.send local SyncUtils = BeardLib.Utils.Sync local SyncConsts = BeardLib.Constants.Sync Hooks:Register(peer_send_hook) Hooks:Add(peer_send_hook, "BeardLibCustomHeistFix", function(self, func_name, params) if self ~= managers.network:sessi...
mit
wagonrepairer/Zero-K
scripts/armwin.lua
7
3190
local base, fan, cradle, flaot = piece('base', 'fan', 'cradle', 'flaot') include "constants.lua" local baseDirection local smokePiece = {base} local tau = math.pi*2 local pi = math.pi local hpi = math.pi*0.5 local pi34 = math.pi*1.5 local UPDATE_PERIOD = 1000 local BUILD_PERIOD = 500 local turnSpeed = math.rad(20)...
gpl-2.0
wagonrepairer/Zero-K
effects/raider.lua
25
5577
-- raidshells -- raiddust -- raidmuzzle return { ["raidshells"] = { muzzleflash = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, properties = { airdrag ...
gpl-2.0
robosaz/rosinxt
libs/dateparser.lua
502
6212
local difftime, time, date = os.difftime, os.time, os.date local format = string.format local tremove, tinsert = table.remove, table.insert local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable local dateparser={} --we shall use the host OS's...
unlicense
Clavus/Conclavus
engine/lib/loveframes/objects/collapsiblecategory.lua
14
8764
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- get the current require path local path = string.sub(..., 1, string.len(...) - string.len(".objects.collapsiblecategory")...
mit
obsy/luci
protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua
40
2661
-- Copyright 2014 Nikos Mavrogiannopoulos <nmav@gnutls.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local server, username, password, cert, ca local oc_cert_file, oc_key_file, oc_ca_file local ifc = net:get_interface():name() oc_cert_file = "/etc/openconnect/user-cert-"...
apache-2.0
imzyxwvu/objective-and-sync
src/FcgiProvider.lua
1
6196
require "Reader" FcgiProvider = (require "Object"):extend() local uv = require "luv" local coyield, tconcat = coroutine.yield, table.concat local schar, band = string.char, (bit or bit32).band local resume = HttpMisc.resumefunc function FcgiProvider:handle(servervars, postdata, res) local stream = self:cr...
mit
psychon/awesome
spec/menubar/utils_spec.lua
6
5720
--------------------------------------------------------------------------- -- @author Zach Peltzer -- @copyright 2017 Zach Peltzer --------------------------------------------------------------------------- local utils = require("menubar.utils") local theme = require("beautiful") local glib = require("lgi").GLib loca...
gpl-2.0
diz-vara/nn
Sum.lua
6
2000
local Sum, parent = torch.class('nn.Sum', 'nn.Module') function Sum:__init(dimension, nInputDims, sizeAverage) parent.__init(self) self.dimension = dimension or 1 -- do not assign default value to nInputDims or it will break backward compatibility self.nInputDims = nInputDims self.sizeAverage = sizeA...
bsd-3-clause
openwayne/chaos_theory
mods/technic/technic_worldgen/crafts.lua
3
5397
local S = technic.worldgen.gettext minetest.register_craftitem(":technic:uranium_lump", { description = S("Uranium Lump"), inventory_image = "technic_uranium_lump.png", }) minetest.register_alias("technic:uranium", "technic:uranium_lump") minetest.register_craftitem(":technic:uranium_ingot", { description = S("Ur...
lgpl-2.1
veden/Rampant
libs/UnitGroupUtils.lua
1
5368
-- Copyright (C) 2022 veden -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- This program is distributed...
gpl-3.0
shingenko/darkstar
scripts/zones/Zeruhn_Mines/npcs/Grounds_Tome.lua
34
1121
----------------------------------- -- Area: Zeruhn Mines -- NPC: Grounds Tome ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/groundsofvalor"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(pl...
gpl-3.0
shingenko/darkstar
scripts/zones/Temenos/mobs/Thrym.lua
16
1190
----------------------------------- -- Area: Temenos N T -- NPC: Thrym ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); --------------------------------...
gpl-3.0
apaszke/nn
MultiCriterion.lua
28
1216
local MultiCriterion, parent = torch.class('nn.MultiCriterion', 'nn.Criterion') function MultiCriterion:__init() parent.__init(self) self.criterions = {} self.weights = torch.DoubleStorage() end function MultiCriterion:add(criterion, weight) assert(criterion, 'no criterion provided') weight = weight or...
bsd-3-clause
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/luajson/lua/json/encode/output.lua
1
2392
--[[ Licensed according to the included 'LICENSE' document Author: Thomas Harning Jr <harningt@gmail.com> ]] local type = type local assert, error = assert, error local table_concat = require("table").concat local loadstring = loadstring local io = require("io") local setmetatable = setmetatable local...
lgpl-3.0
crazyquark/cardpeek
dot_cardpeek_dir/scripts/lib/apdu.lua
17
7040
-- -- This file is part of Cardpeek, the smartcard reader utility. -- -- Copyright 2009-2013 by 'L1L1' -- -- Cardpeek is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (a...
gpl-3.0
openwayne/chaos_theory
mods/moretrees/saplings.lua
12
2577
-- sapling growth for i in ipairs(moretrees.treelist) do local treename = moretrees.treelist[i][1] local tree_model = treename.."_model" local tree_biome = treename.."_biome" if treename ~= "birch" and treename ~= "spruce" and treename ~= "fir" and treename ~= "jungletree" then biome_lib:dbg(dump(moretrees[tre...
lgpl-2.1
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/loop/lua/loop/serial/Serializer.lua
1
8136
-------------------------------------------------------------------------------- ---------------------- ## ##### ##### ###### ----------------------- ---------------------- ## ## ## ## ## ## ## ----------------------- ---------------------- ## ## ## ## ## ###### -----------------...
lgpl-3.0
simon-wh/PAYDAY-2-BeardLib
Classes/UI/Dialogs/SelectListDialog.lua
2
4149
SelectListDialog = SelectListDialog or class(ListDialog) SelectListDialog.type_name = "SelectListDialog" SelectListDialog.MAX_ITEMS = 150 function SelectListDialog:init(params, menu) if self.type_name == SelectListDialog.type_name then params = params and clone(params) or {} end self._visible_items...
mit
Antokolos/NLB
NLBW/res/vnstead/dice/modules/dice.lua
1
8269
require "modules/vn" require "dice/modules/dicegames" dice = menu { nam = "dice", system_type = true, dsc = function(s) return '{' .. s:disp() .. '}' .. img 'blank:64x64'; end, disp = function(s) if s.diceOnScreen then return img('dice/gfx/dice.png') .. ' ' .. s:hideTxt(...
agpl-3.0
jyggen/lua-parser
tests/Fixtures/21/eb/30/894ea86dd96524e78533aabc4029488ea6cd5185fee5eec315f10cace1.lua
1
2591
HandyNotesDB = { ["profileKeys"] = { ["Keestra - Argent Dawn"] = "Keestra - Argent Dawn", ["Rëmus - Argent Dawn"] = "Rëmus - Argent Dawn", ["Rochbert - Argent Dawn"] = "Rochbert - Argent Dawn", ["Jyggen - Draenor"] = "Jyggen - Draenor", ["Sîd - Argent Dawn"] = "Sîd - Argent Dawn", ["Picaboo - Arge...
mit
lixiantai/barrier_breaker
feeds/luci/modules/base/luasrc/dispatcher.lua
72
23586
--[[ LuCI - Dispatcher Description: The request dispatcher and module dispatcher generators FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> 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...
gpl-2.0
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/cgilua/src/cgilua/lp.lua
1
4685
---------------------------------------------------------------------------- -- Lua Pages Template Preprocessor. -- -- @release $Id: lp.lua,v 1.15 2008/12/11 17:40:24 mascarenhas Exp $ ---------------------------------------------------------------------------- local assert, error, getfenv, loadstring, setfenv =...
lgpl-3.0
shingenko/darkstar
scripts/zones/Apollyon/mobs/Adamantshell.lua
16
1266
----------------------------------- -- Area: Apollyon SE -- NPC: Adamantshell ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); -----------------------...
gpl-3.0
TheAncientGoat/GodheadLips
data/godhead/scripts/client/shaders/animdiff.lua
1
1906
Shader{name = "animdiff", -- Low quality program. -- No lighting. low = { pass4_animated = true, pass4_depth_func = "lequal", pass4_depth_write = true, pass4_vertex = [[ out vec2 F_texcoord; void main() { ]] .. Shader.los_animation_default() .. [[ vec4 tmp = LOS_matrix_modelview * vec4(anim_coord,1.0); F_texcoord =...
gpl-3.0
shingenko/darkstar
scripts/zones/Upper_Jeuno/npcs/Shiroro.lua
34
1372
----------------------------------- -- Area: Upper Jeuno -- NPC: Shiroro -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Upper_Jeuno/TextIDs"); require("scripts/globals/quests"); -...
gpl-3.0
aTastyCookie/telegram-bot
plugins/channels.lua
5
1670
-- Checks if bot was disabled on specific chat local function is_channel_disabled( receiver ) if not _config.disabled_channels then return false end if _config.disabled_channels[receiver] == nil then return false end return _config.disabled_channels[receiver] end local function enable_channel(receiver) if...
gpl-2.0
wagonrepairer/Zero-K
effects/nuke_450.lua
17
15885
-- nuke_450_seacloud_pillar -- nuke_450_landcloud_pillar -- nuke_450_seacloud_ring -- nuke_450 -- nuke_450_landcloud -- nuke_450_landcloud_topcap -- nuke_450_seacloud_cap -- nuke_450_landcloud_ring -- nuke_450_seacloud_topcap -- nuke_450_landcloud_cap -- nuke_450_seacloud return { ["nuke_450_seacloud_pillar"] = { ...
gpl-2.0
fzimmermann89/texlive.js
texlive/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/doc/ogdf/layered/SugiyamaLayout.lua
1
3969
-- Copyright 2013 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header$ local key = require 'pgf.gd.doc'.key loc...
gpl-2.0
AleksCore/Mr.Green-MTA-Resources
resources/[race]/customblips/utility.lua
5
3504
--This script estimates the size of the radar, based upon some simple calculations local MIN_VELOCITY = 0.3 local MIN_DISTANCE = 180 local MAX_VELOCITY = 1 local MAX_DISTANCE = 350 -- local localPlayer = getLocalPlayer() local ratio do local velocityDiff = MAX_VELOCITY - MIN_VELOCITY local distanceDiff = MAX_DISTANC...
mit
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/penlight/tests/test-set.lua
1
2135
require 'pl' classes = require 'pl.class' classx = require 'pl.classx' asserteq = require 'pl.test' . asserteq asserteq2 = require 'pl.test' . asserteq2 S = classes.Set M = classes.Map class = classes.class MultiMap = classx.MultiMap OrderedMap = classx.OrderedMap s1 = S{1,2} s2 = S{1,2} -- equality asse...
lgpl-3.0
hoelzro/queqiao
plugin/queqiao.lua
1
2886
-- Copyright (c) 2011 Rob Hoelz -- -- 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, merge, publish, dis...
mit
Clavus/Conclavus
engine/util/vector2d.lua
2
4578
------------------------ -- Vector functions. -- @util vector2d local vector2d = {} -- cache functions local sqrt, cos, sin, atan2, round = math.sqrt, math.cos, math.sin, math.atan2, math.round -- cache vector functions for quick access within this context local normal, length, length2, angle --- Get distance from ...
mit
shingenko/darkstar
scripts/zones/Port_Bastok/npcs/Vattian.lua
36
1487
----------------------------------- -- Area: Port Bastok -- NPC: Vattian -- Only sells when Bastok controlls Kuzotz Region -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Port_Bastok/Te...
gpl-3.0
shingenko/darkstar
scripts/globals/items/gurnard.lua
18
1256
----------------------------------------- -- ID: 5132 -- Item: Gurnard -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----------...
gpl-3.0
Illarion-eV/Illarion-Content
item/id_61_goldcoins.lua
1
2465
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
shingenko/darkstar
scripts/zones/West_Ronfaure/npcs/qm1.lua
34
1500
----------------------------------- -- Area: West Ronfaure -- NPC: qm1 (???) -- Involved in Quest: The Dismayed Customer -- @pos -453 -20 -230 100 ----------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
shingenko/darkstar
scripts/zones/King_Ranperres_Tomb/npcs/Tombstone.lua
15
2930
----------------------------------- -- Area: King Ranperre's Tomb -- NPC: Tombstone -- Involved in Quest: Grave Concerns -- @pos 1 0.1 -101 190 ----------------------------------- package.loaded["scripts/zones/King_Ranperres_Tomb/TextIDs"] = nil; ----------------------------------- require("scripts/globals/s...
gpl-3.0
nicholas-leonard/dpnn
BinaryClassReward.lua
3
2902
------------------------------------------------------------------------ --[[ BinaryClassReward ]]-- -- Variance reduced binary classification reinforcement criterion. -- The binary class version of VRClassReward. -- input : {class prediction, baseline reward} -- Reward is 1 for success, Reward is 0 otherwise. -- rewar...
bsd-3-clause
obsy/luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/dialplans.lua
68
2597
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") cbimap = Map("asterisk", "Registered Trunks") cbimap.pageaction = false local sip_peers = { } cbimap.uci:foreach("asterisk", "sip", function(s) if s.type == "peer" then ...
apache-2.0
ioiasff/aer
plugins/xkcd.lua
628
1374
do function get_last_id() local res,code = https.request("http://xkcd.com/info.0.json") if code ~= 200 then return "HTTP ERROR" end local data = json:decode(res) return data.num end function get_xkcd(id) local res,code = http.request("http://xkcd.com/"..id.."/info.0.json") if code ~= 200 then return "HT...
gpl-2.0
aTastyCookie/telegram-bot
plugins/xkcd.lua
628
1374
do function get_last_id() local res,code = https.request("http://xkcd.com/info.0.json") if code ~= 200 then return "HTTP ERROR" end local data = json:decode(res) return data.num end function get_xkcd(id) local res,code = http.request("http://xkcd.com/"..id.."/info.0.json") if code ~= 200 then return "HT...
gpl-2.0
TheAncientGoat/GodheadLips
data/godhead/scripts/common/marker.lua
1
1108
Marker = Class() Marker.dict_name = {} Marker.dict_discoverable = {} --- Finds a map marker. -- @param clss Marker class. -- @param args Arguments.<ul> -- <li>name: Marker name.</li></ul> -- @return Marker or nil. Marker.find = function(clss, args) return clss.dict_name[args.name] end --- Creates a new map marker....
gpl-3.0
wagonrepairer/Zero-K
effects/gundam_lrpc_expl.lua
50
1295
-- lrpc_expl return { ["lrpc_expl"] = { usedefaultexplosions = true, bang = { air = true, class = [[heatcloud]], count = 2, ground = true, water = true, properties = { heat = 12, ...
gpl-2.0
shingenko/darkstar
scripts/globals/abilities/puppet_roll.lua
9
2805
----------------------------------- -- Ability: Puppet Roll -- Enhances pet magic attack and magic accuracy for party members within area of effect -- Optimal Job: Puppetmaster -- Lucky Number: 3 -- Unlucky Number: 7 -- Level: 52 -- -- Die Roll |No PUP |With PUP -- -------- ------- ---------- -- 1 ...
gpl-3.0
shingenko/darkstar
scripts/zones/Leujaoam_Sanctum/npcs/rune_of_release.lua
32
1876
----------------------------------- -- Area: Leujaoam Sanctum ----------------------------------- require("scripts/globals/besieged") require("scripts/zones/Leujaoam_Sanctum/IDs"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; -----...
gpl-3.0
apaszke/nn
TemporalMaxPooling.lua
9
1160
local TemporalMaxPooling, parent = torch.class('nn.TemporalMaxPooling', 'nn.Module') function TemporalMaxPooling:__init(kW, dW) parent.__init(self) dW = dW or kW self.kW = kW self.dW = dW end function TemporalMaxPooling:updateOutput(input) self.indices = self.indices or torch.LongTensor() if torch...
bsd-3-clause
shingenko/darkstar
scripts/zones/Temenos/npcs/Scanning_Device.lua
19
1711
----------------------------------- -- Area: Temenos -- NPC: Scanning_Device -- @pos ----------------------------------- require("scripts/globals/limbus"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; -----------------------------...
gpl-3.0
soonhokong/travis_test
tests/lua/old/front.lua
6
1336
import("util.lua") local env = environment() env:import("Int") print(get_options()) parse_lean_cmds([[ variable f : Int -> Int -> Int variable g : Bool -> Bool -> Bool variables a b : Int variables i j : Int variables p q : Bool notation 100 _ ++ _ : f notation 100 _ ++ _ : g set_option pp::colors true set_option pp::w...
apache-2.0
wagonrepairer/Zero-K
effects/lrpc.lua
12
9679
-- armbrtha_flare -- armbrtha_smoke -- armbrtha_shockwave return { ["armbrtha_flare"] = { clouds0 = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, underwater = 0, water = fals...
gpl-2.0
shingenko/darkstar
scripts/zones/Outer_Horutoto_Ruins/npcs/_5ej.lua
17
3315
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: Ancient Magical Gizmo #6 (J out of E, F, G, H, I, J) -- Involved In Mission: The Heart of the Matter ----------------------------------- package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil; ---------------------------------...
gpl-3.0
ArcherSys/ArcherSys
Lua/lua/loop/simple.lua
13
3619
-------------------------------------------------------------------------------- ---------------------- ## ##### ##### ###### ----------------------- ---------------------- ## ## ## ## ## ## ## ----------------------- ---------------------- ## ## ## ## ## ###### --------------------...
mit
shingenko/darkstar
scripts/zones/Xarcabard/npcs/qm5.lua
19
1344
----------------------------------- -- Area: Xarcabard -- NPC: qm5 (???) -- Involved in Quests: Breaking Barriers -- @pos 179 -33 82 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Xarcabard/TextIDs"); require(...
gpl-3.0
henry4k/LDoc
ldoc/markdown.lua
7
40022
#!/usr/bin/env lua --[[ # markdown.lua -- version 0.32 <http://www.frykholm.se/files/markdown.lua> **Author:** Niklas Frykholm, <niklas@frykholm.se> **Date:** 31 May 2008 This is an implementation of the popular text markup language Markdown in pure Lua. Markdown can convert documents written in a simple and easy t...
mit
AleksCore/Mr.Green-MTA-Resources
resources/[admin]/admin/client/gui/admin_message.lua
7
2558
--[[********************************** * * Multi Theft Auto - Admin Panel * * gui\admin_message.lua * * Original File by lil_Toady * **************************************]] aViewMessageForm = nil function aViewMessage ( id ) if ( aViewMessageForm == nil ) then local x, y = guiGetScreenSize() aViewMessageForm =...
mit
psychon/awesome
spec/wibox/widget/imagebox_spec.lua
10
1632
--------------------------------------------------------------------------- -- @author Emmanuel Lepage Vallee -- @copyright 2017 Emmanuel Lepage Vallee --------------------------------------------------------------------------- local imagebox = require("wibox.widget.imagebox") local cairo = require("lgi").cairo descr...
gpl-2.0
shingenko/darkstar
scripts/zones/Al_Zahbi/npcs/Gajaad.lua
14
2133
----------------------------------- -- Area: Al Zahbi -- NPC: Gajaad -- Type: Donation Taker -- @zone: 48 -- @pos 40.781 -1.398 116.261 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; -----------------------...
gpl-3.0
shingenko/darkstar
scripts/zones/Labyrinth_of_Onzozo/mobs/Goblin_Bandit.lua
23
1057
----------------------------------- -- Area: Labyrinth of Onzozo -- MOB: Goblin Bandit -- Note: Place holder Soulstealer Skullnix ----------------------------------- require("scripts/zones/Labyrinth_of_Onzozo/MobIDs"); ----------------------------------- -- onMobDeath ----------------------------------- ...
gpl-3.0