repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
Invertika/data
scripts/maps/ow-n0019-p0015-o0000.lua
1
1403
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
irr/luajit.io
lib/ljio/socket/tcpd.lua
2
6775
-- Copyright (C) Jinhua Luo local C = require("ljio.cdef") local ffi = require("ffi") local tcp = require("ljio.socket.tcp") local epoll = require("ljio.core.epoll") local master = require("ljio.core.master") local signal = require("ljio.core.signal") local log = require("ljio.core.logging").log local strfind = strin...
bsd-2-clause
zjohn4/PD2-lua-src
core/lib/system/coreextendlua.lua
1
1824
--[[ C o r e E x t e n d L u a ------------------------- The CoreExtendLua adds functions that will be available in both the global namespace and the modules namespace. The main difference between the file CorePatchLua is that this file is required after the module system is setup. Note that the modules imported here...
gpl-2.0
MeteoricGames/pioneer
data/systems/02_local_stars.lua
1
38163
-- Copyright © 2008-2014 Pioneer Developers. See AUTHORS.txt for details -- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt -- ** Modified for 2D universe to only include systems that are in the Z=0 layer -- CustomSystem:new('GJ 1075',{'STAR_K'}):add_to_sector(2,-1,-4,v(0.451,0.409,0.034)) -- CustomSys...
gpl-3.0
Invertika/data
scripts/maps/ow-n0020-p0014-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
nightcj/mmo
lualib/http/sockethelper.lua
15
1419
local socket = require "socket" local readbytes = socket.read local writebytes = socket.write local sockethelper = {} local socket_error = setmetatable({} , { __tostring = function() return "[Socket Error]" end }) sockethelper.socket_error = socket_error local function preread(fd, str) return function (sz) if st...
mit
b42-coding/luvit-zed
libs/simplehttp.lua
1
1909
--------------------------------------------------------- --- Simple HTTP library for ZD --------------------------------------------------------- local http = require("http") local fs = require("fs") return function(ZD) ZD.simpleHTTP = function(port, cb) local simpleHTTP = {} simpleHTTP.dataTypes = {} ...
apache-2.0
zjohn4/PD2-lua-src
lib/units/editor/scenarioeventelement.lua
1
3197
ScenarioEventUnitElement = ScenarioEventUnitElement or class( MissionElement ) function ScenarioEventUnitElement:init( unit ) ScenarioEventUnitElement.super.init( self, unit ) self._hed.amount = 1 self._hed.task = managers.groupai:state():task_names()[1] self._hed.base_chance = 1 self._hed.chance_inc = 0 t...
gpl-2.0
GoogleFrog/Zero-K
effects/gundam_snipercooloff.lua
25
3744
-- snipercooloff return { ["snipercooloff"] = { greytowhitepuff = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, properties = { airdrag = 1, colormap = [[0.2 0.2 0.2...
gpl-2.0
Invertika/data
scripts/maps/ow-p0021-p0009-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
Samake/BomberMan2D
shared/async.lua
6
1448
-- Developer: sbx320 -- License: MIT -- Github Repos: https://github.com/sbx320/lua_utils Async = { id = false; threads = {}} function Async.create(func) local t = setmetatable({}, { __index = Async, __call = Async.__call }) t:constructor(func) return function(...) return t:continue(...) end end function Async.c...
gpl-3.0
Invertika/data
scripts/maps/ow-p0018-n0013-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
splay-project/splay
applications/dist-db/dist-db-client-get-object.lua
2
1718
#!/usr/bin/env lua -- Client for the Splay Distributed DB -- Created by José Valerio -- Neuchâtel 2011 -- BEGIN LIBRARIES --for the communication over HTTP local socket = require"socket" local http = require"socket.http" local ltn12 = require"ltn12" --for hashing require"sha1" --for picking a random port misc = req...
gpl-3.0
Invertika/data
scripts/maps/ow-p0004-p0022-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
linxiulei/sysdig
userspace/sysdig/chisels/v_procs_fd_usage.lua
1
3527
--[[ Copyright (C) 2013-2015 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
gpl-2.0
Invertika/data
scripts/maps/ow-p0013-n0022-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
GoogleFrog/Zero-K
units/fakeunit.lua
4
2060
unitDef = { unitname = [[fakeunit]], name = [[Fake radar signal]], description = [[Created by scrambling devices.]], acceleration = 0, activateWhenBuilt = false, bmcode = [[0]], brakeRate ...
gpl-2.0
Invertika/data
scripts/maps/ow-n0025-p0015-o0000.lua
1
1401
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
windyuuy/spt
src/lua_ext/table_ext.lua
1
1402
function table.makeclone(self,tt) assert(type(self)=='table','') tt=tt or {} for k,v in pairs(self) do tt[k]=v end return tt end function table.copy(self,tt,tlist) if(type(tlist)=='table')then for k,v in ipairs(tlist)do self[v]=tt[v] end else table.makeclone(tt,self) end end function table.iextend...
gpl-2.0
GoogleFrog/Zero-K
effects/solange.lua
18
1660
-- solange -- solange_pillar return { ["solange"] = { nw = { air = true, class = [[CExpGenSpawner]], count = 150, ground = true, water = true, underwater = true, properties = { delay ...
gpl-2.0
Invertika/data
scripts/maps/ow-p0007-p0001-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
teleofis/OpenWRT
feeds/luci/contrib/luasrcdiet/lua/llex.lua
122
12449
--[[-------------------------------------------------------------------- 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...
gpl-2.0
GoogleFrog/Zero-K
units/asteroid.lua
8
3078
unitDef = { unitname = [[asteroid]], name = [[Asteroid]], description = [[Space Rock]], acceleration = 0, brakeRate = 0, buildCostEnergy = 25, buildCostMetal = 25, builder ...
gpl-2.0
zjohn4/PD2-lua-src
lib/units/enemies/shield/logics/shieldlogicattack.lua
1
23893
----------------------------------------------------------------------------- -- ************* ATTACK LOGIC *************** ----------------------------------------------------------------------------- --local debug_key = nil--"userdata: 00000734" ShieldLogicAttack = class( TankCopLogicAttack ) function ShieldLogicA...
gpl-2.0
GoogleFrog/Zero-K
LuaRules/Configs/MetalSpots/Koom Gorge v1.lua
17
8706
return { spots = { {x = 1624, z = 664, metal = 0.88150006532669}, {x = 3688, z = 3304, metal = 0.88150006532669}, {x = 6792, z = 1944, metal = 0.86350005865097}, {x = 3784, z = 5912, metal = 0.89200001955032}, {x = 1272, z = 3272, metal = 0.86900001764297}, {x = 5688,...
gpl-2.0
Invertika/data
scripts/maps/ow-o0000-p0003-o0000.lua
1
1393
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
Invertika/data
scripts/maps/ow-p0018-p0010-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
hackpascal/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
mahdikord/mahdib99
plugins/invite.lua
28
1200
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
Reda9991/DevRode
plugins/ar-onservice.lua
2
1557
do -- Will leave the group if be added local function run(msg, matches) local bot_id = our_id local receiver = get_receiver(msg) if matches[1] == 'leave' and is_admin1(msg) then chat_del_user("chat#id"..msg.to.id, 'user#id'..bot_id, ok_cb, false) leave_channel(receiver, ok_cb, false) elseif ...
gpl-2.0
Invertika/data
scripts/maps/ow-n0006-p0024-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
hackpascal/luci
modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
6
11257
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.admin.system", package.seeall) function index() local fs = require "nixio.fs" entry({"admin", "system"}, alias("admin", "syste...
apache-2.0
Invertika/data
scripts/maps/ow-n0017-n0019-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
llluiop/skia
tools/lua/glyph-usage.lua
207
4034
function tostr(t) local str = "" for k, v in next, t do if #str > 0 then str = str .. ", " end if type(k) == "number" then str = str .. "[" .. k .. "] = " else str = str .. tostring(k) .. " = " end if type(v) == "table" then ...
bsd-3-clause
1lann/Firewolf
old/rex.lua
5
37941
--[[73 + Added temp history ]] local vserin = "--[[73" local x,y = term.getSize() local currentURL = "home" local hasModem = true local theme = "default" local rednetType = "Rednet" local tArgs = { ... } local sHistory = { "secret" } browserAgent = "rex_renewed" local autoUpdater = "http://pastebin.com/...
mit
Invertika/data
scripts/maps/ow-p0012-p0016-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
Invertika/data
scripts/maps/ow-n0021-p0008-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
GoogleFrog/Zero-K
LuaUI/Widgets/minimap_startbox.lua
4
11663
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: minimap_startbox.lua -- brief: shows the startboxes in the minimap -- author: Dave Rodgers -- -- Copyright (C) 2007. -- Licensed under ...
gpl-2.0
Invertika/data
scripts/maps/ow-n0013-p0005-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
Invertika/data
scripts/maps/ow-n0023-n0019-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
teleofis/OpenWRT
feeds/luci/libs/luci-lib-nixio/docsrc/nixio.UnifiedIO.lua
157
5891
--- Unified high-level I/O utility API for Files, Sockets and TLS-Sockets. -- These functions are added to the object function tables by doing <strong> -- require "nixio.util"</strong>, can be used on all nixio IO Descriptors and -- are based on the shared low-level read() and write() functions. -- @cstyle instance mo...
gpl-2.0
dvdvideo1234/wire
lua/entities/gmod_wire_egp/lib/egplib/queuesystem.lua
3
4676
-------------------------------------------------------- -- EGP Queue System -------------------------------------------------------- local EGP = EGP EGP.Queue = WireLib.RegisterPlayerTable() function EGP:AddQueueObject( Ent, ply, Function, Object ) if not self.Queue[ply] then self.Queue[ply] = {} end local n = #se...
apache-2.0
nightcj/mmo
service/cdummy.lua
94
1797
local skynet = require "skynet" require "skynet.manager" -- import skynet.launch, ... local globalname = {} local queryname = {} local harbor = {} local harbor_service skynet.register_protocol { name = "harbor", id = skynet.PTYPE_HARBOR, pack = function(...) return ... end, unpack = skynet.tostring, } skynet.reg...
mit
walker020/Tele-inviter
bot/utils.lua
309
23029
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
rangercyh/cocos2dx-lua-tools
exbuffer/exbuffer.lua
1
2980
--[[ 使用lpack实现的数据缓冲 ]] require("script/lib/basefunctions.lua") require("lpack.core") local cjson = require("cjson.core") local zlib = require("zlib.core") ENDIAN_BIG = 1 ENDIAN_LITTLE = 2 local Exbuffer = gf_class() --[[ package bit struct 2 bytes LEN(Big endian) + 2 bytes msgid(Big endian) + json body string >H ...
mit
xDShot/csgo_knives_sweps
lua/weapons/csgo_m9_fade.lua
1
2398
if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then SWEP.Spawnable = false print( "csgo_m9_fade failed to initialize: csgo_baseknife.lua not found. Did you install the main part?" ) return end local TTT = ( GAMEMODE_NAME == "terrortown" or cvars.Bool("csgo_knives_force_ttt", false) ) DEFINE_BASECLASS...
mit
mendsley/premake-core
modules/gmake/tests/cs/test_embed_files.lua
15
1284
-- -- tests/actions/make/cs/test_embed_files.lua -- Tests embedded file listings for C# Makefiles. -- Copyright (c) 2013-2014 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("make_cs_embed_files") local make = p.make local cs = p.make.cs local project = p.project -- -- Setu...
bsd-3-clause
GoogleFrog/Zero-K
effects/janus.lua
25
4668
-- janusmuzzle -- janusback return { ["janusmuzzle"] = { fire = { air = true, class = [[CSimpleParticleSystem]], count = 10, ground = true, water = true, properties = { airdrag = 0.6, ...
gpl-2.0
hackpascal/luci
applications/luci-app-asterisk/luasrc/asterisk/cc_idd.lua
68
7491
-- Licensed to the public under the Apache License 2.0. module "luci.asterisk.cc_idd" CC_IDD = { -- Country, CC, IDD { "Afghanistan", "93", "00" }, { "Albania", "355", "00" }, { "Algeria", "213", "00" }, { "American Samoa", "684", "00" }, { "Andorra", "376", "00" }, { "Angola", "244", "00" }, { "Anguilla", "26...
apache-2.0
GoogleFrog/Zero-K
scripts/shipscout.lua
5
2340
include "constants.lua" local base = piece 'base' local turret = piece 'turret' local hull = piece 'hull' local wake1 = piece 'wake1' local wake2 = piece 'wake2' local missile = piece 'missile' local firepoint = piece 'firepoint' local doorl = piece 'doorl' local doorr = piece 'doorr' local smokePiece = {base} ...
gpl-2.0
remakeelectric/luci
modules/luci-base/luasrc/model/cbi/admin_network/proto_dhcp.lua
74
1873
-- Copyright 2011-2012 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ifc = net:get_interface() local hostname, accept_ra, send_rs local bcast, defaultroute, peerdns, dns, metric, clientid, vendorclass hostname = section:taboption("gener...
apache-2.0
Invertika/data
scripts/maps/ow-p0006-n0005-o0000.lua
1
1403
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
Invertika/data
scripts/maps/iw-liori-flat04-o00-o00-o00.lua
1
1650
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
seanstermonstr/test
Code/Tools/BuildScripts/lua-lib/penlight-1.0.2/tests/test-class.lua
11
1444
require 'pl' asserteq = test.asserteq T = test.tuple A = class() function A:_init () self.a = 1 end -- calling base class' ctor automatically A1 = class(A) asserteq(A1(),{a=1}) -- explicitly calling base ctor with super B = class(A) function B:_init () self:super() self.b = 2 end asserteq(B(),{a=1,b...
bsd-3-clause
GoogleFrog/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
tobiaswaldvogel/luci
applications/luci-app-udpxy/luasrc/model/cbi/udpxy.lua
77
2104
-- Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com> -- Licensed to the public under the Apache License 2.0. m = Map("udpxy", "udpxy", translate("udpxy is a UDP-to-HTTP multicast traffic relay daemon, here you can configure the settings.")) s = m:section(TypedSection, "udpxy", "") s.addremove = true s.anonymo...
apache-2.0
ugtaems/ugteam
plugins/warn.lua
1
15256
--Begin Warn.lua By @SoLiD #BeyondTeam local function action_by_reply(TM, BD) local cmd = TM.cmd if not tonumber(BD.sender_user_id_) then return false end if BD.sender_user_id_ then if cmd == "warn" then local function warn_cb(TM, BD) local msg = TM.msg local hash = "gp_lang:"..TM.chat_id local lang = redis:get(hash)...
gpl-3.0
Invertika/data
scripts/maps/iw-castle-cedric-tavern-o00-o00-o00.lua
1
2163
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
zjohn4/PD2-lua-src
core/lib/system/corepatchengine.lua
1
7590
--[[ C o r e P a t c h E n g i n e ----------------------------- The CorePatchEngine modifies and/or adds functions to engine classes. This functionality should - eventually - be moved to the Engine where it belongs. ]]-- -- For transparent compatability with Idstrings, we patch the class associated -- with all L...
gpl-2.0
Crystal-Photonics/crystalTestFrameworkApp
examples/scripts/example/nuklid_selector_test.lua
1
1392
device_requirements = { } function run(devices) print(A_PATH_AS_ENVIREONMENT) --environment variables print(TRUE_BOOLEAN_ENVIRONMENT_VARIABLE) print(ONE_NUMBER_ENVIRONMENT_VARIABLE) local fn = propose_unique_filename_by_datetime(".","mytestfile",".txt") print(fn) table_save_to_file(fn,{"test"},false) loc...
lgpl-3.0
teleofis/OpenWRT
feeds/luci/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6in4.lua
64
3139
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ipaddr, peeraddr, ip6addr, tunnelid, username, password local defaultroute, metric, ttl, mtu ipaddr = s:taboption("general", Value, "ipaddr", translate("Local IPv4 address...
gpl-2.0
splay-project/splay
applications/dist-db/dist-db-client-register-service.lua
2
1280
#!/usr/bin/env lua -- Client for the Splay Distributed DB -- Created by José Valerio -- Neuchâtel 2011 -- BEGIN LIBRARIES --for the communication over HTTP local socket = require"socket" local http = require"socket.http" local ltn12 = require"ltn12" --for hashing require"sha1" --for picking a random port misc = req...
gpl-3.0
splay-project/splay
src/osx-installer/PKG_PAYLOAD/SPLAY/dist/settings.lua
1
2629
--[[ Splay ### v1.3 ### Copyright 2006-2011 http://www.splay-project.org ]] --[[ This file is part of Splay. Splay 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 L...
gpl-3.0
Uberi/Minetest-WorldEdit
worldedit_gui/functionality.lua
1
39902
--saved state for each player local gui_nodename1 = {} --mapping of player names to node names local gui_nodename2 = {} --mapping of player names to node names local gui_axis1 = {} --mapping of player names to axes (one of 1, 2, 3, or 4, representing the axes in the `axis_indices` table below) local gui_axis2 = {} ...
agpl-3.0
tobiaswaldvogel/luci
build/luadoc/luadoc/doclet/html.lua
171
8795
------------------------------------------------------------------------------- -- Doclet that generates HTML output. This doclet generates a set of html files -- based on a group of templates. The main templates are: -- <ul> -- <li>index.lp: index of modules and files;</li> -- <li>file.lp: documentation for a lua file...
apache-2.0
remakeelectric/luci
build/luadoc/luadoc/doclet/html.lua
171
8795
------------------------------------------------------------------------------- -- Doclet that generates HTML output. This doclet generates a set of html files -- based on a group of templates. The main templates are: -- <ul> -- <li>index.lp: index of modules and files;</li> -- <li>file.lp: documentation for a lua file...
apache-2.0
linxiulei/sysdig
userspace/sysdig/chisels/topprocs_cpu.lua
10
3367
--[[ Copyright (C) 2013-2015 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without e...
gpl-2.0
chuenlungwang/skynet
service/datacenterd.lua
100
1928
local skynet = require "skynet" local command = {} local database = {} local wait_queue = {} local mode = {} local function query(db, key, ...) if key == nil then return db else return query(db[key], ...) end end function command.QUERY(key, ...) local d = database[key] if d then return query(d, ...) end ...
mit
dvdvideo1234/wire
lua/entities/gmod_wire_hydraulic.lua
3
7941
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Hydraulic Controller" ENT.WireDebugName = "Hydraulic" if CLIENT then return end -- No more client function ENT:Initialize() BaseClass.Initialize(self) WireLib.CreateInputs( self, { "Length (Sets the length of the hydraulic)", "In (D...
apache-2.0
zjohn4/PD2-lua-src
lib/managers/menu/menuinput.lua
1
29433
core:import("CoreMenuInput") MenuInput = MenuInput or class( CoreMenuInput.MenuInput ) function MenuInput:init( logic, ... ) MenuInput.super.init( self, logic, ... ) self._move_axis_limit = 0.5 self._sound_source = SoundDevice:create_source( "MenuInput" ) self._controller_mouse_active_counter = 0 self._i...
gpl-2.0
GoogleFrog/Zero-K
LuaUI/Widgets/unit_factory_guard.lua
6
7998
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: unit_factory_guard.lua -- brief: assigns new builder units to guard their source factory -- author: Dave Rodgers -- -- Copyright (C) 200...
gpl-2.0
ouyangjie/oceanbase
oceanbase_0.4/tools/deploy/perf/IUD.lua
12
1099
-- `stress_sqls' table list all sqls used to stress stress_sqls = { { sql = [[insert into simple_table (id, number) values(?, ?);]], params = { {type = "distinct_int"}, {type = "dependent_int", dependent_index = 1, difference = 0}, } }, { sql = [[replace into simple_table (id, number) ...
gpl-2.0
GoogleFrog/Zero-K
LuaRules/Gadgets/91_unit_prevent_lab_hax.lua
4
9089
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if not gadgetHandler:IsSyncedCode() then return end -------------------------------------------------------------------------------- ------------------------...
gpl-2.0
ld-test/tethys
tethys2/core/SMTPSender.lua
2
8192
module(..., package.seeall) local oo = require "loop.simple" local State = require'tethys2.core.State' local Relay = require('tethys2.plugins.deposit.Relay') local util = require'tethys2.util.util' local dns = require'tethys2.util.dns' local mime = require('mime') local scheduler = require('loop.thread.SocketScheduler...
gpl-3.0
Invertika/data
scripts/maps/ow-p0007-n0011-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
matortheeternal/fractal-miner
snowflake_cube/init.lua
1
2949
-- Import Helpers dofile(minetest.get_modpath("fractal_helpers").."/helpers.lua") -- Parameters local YWATER = -31000 local fractal_iteration = 5 -- min value 0, max value 10 local DEBUG = true local fractal_block = minetest.get_content_id("default:dirt_with_snow") local fix_spread = true local fix_spread_block = mine...
mit
remakeelectric/luci
applications/luci-app-nlbwmon/luasrc/controller/nlbw.lua
7
5364
-- Copyright 2017 Jo-Philipp Wich <jo@mein.io> -- Licensed to the public under the Apache License 2.0. module("luci.controller.nlbw", package.seeall) function index() entry({"admin", "nlbw"}, firstchild(), _("Bandwidth Monitor"), 80) entry({"admin", "nlbw", "display"}, template("nlbw/display"), _("Display"), 1) en...
apache-2.0
Invertika/data
scripts/maps/ow-p0006-p0001-o0000.lua
1
1403
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
Meoo/premake-core
src/base/action.lua
1
4597
--- -- action.lua -- Work with the list of registered actions. -- Copyright (c) 2002-2015 Jason Perkins and the Premake project --- local p = premake p.action = {} local action = premake.action -- -- Process the raw command line arguments from _ARGV to populate -- the _ACTION global and _ARGS table. -- _ACTIO...
bsd-3-clause
Invertika/data
scripts/maps/ow-n0014-p0013-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
stephen322/prosody-modules
mod_latex/mod_latex.lua
32
1552
local st = require "stanza"; local urlencode = require "net.http".urlencode; local xmlns_xhtmlim = "http://jabber.org/protocol/xhtml-im"; local xmlns_xhtml = "http://www.w3.org/1999/xhtml"; local function replace_latex(data) local origin, stanza = data.origin, data.stanza; local body = stanza:get_child_text("body")...
mit
anoidgit/Simple-RNN
dep/aSeqTanh.lua
1
1592
--[[ The GNU GENERAL PUBLIC LICENSE Version 3 Copyright (c) 2016 Hongfei Xu This scripts implement a standard tanh activation function, It forward the sequence from head to tail, and backward in reverse order. Designed for Recurrent Neural Networks Version 0.1.0 ]] local aSeqTanh = torch.class('nn.aSeqTanh...
gpl-3.0
JTriggerFish/protoplug
ProtoplugFiles/sci/dist/_lognormal.lua
2
1838
-------------------------------------------------------------------------------- -- Log-normal statistical distribution. -- -- Copyright (C) 2011-2014 Stefano Peluchetti. All rights reserved. -- -- Features, documentation and more: http://www.scilua.org . -- -- This file is part of the SciLua library, which is released...
mit
steveyen/moxilua
test/test_timeout.lua
1
1058
ambox = require('ambox') function pstats(prefix) s = ambox.stats() for k, v in pairs(s) do print(prefix, k, v) end end p = print function a1(timeout) local self_addr = ambox.self_addr() print("a1", self_addr, timeout) while true do local m = ambox.recv(nil, timeout) assert(m == 'timeout') end en...
apache-2.0
remakeelectric/luci
protocols/luci-proto-ncm/luasrc/model/cbi/admin_network/proto_ncm.lua
8
4590
--[[ LuCI - Lua Configuration Interface Copyright 2015 Cezary Jackiewicz <cezary.jackiewicz@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]...
apache-2.0
MeteoricGames/pioneer
data/stations/surface/starport.lua
1
2618
define_surface_station { model = 'starport', num_docking_ports = 128, -- define groups of bays, in this case 1 group with 1 bay. -- params are = {minSize, maxSize, {list,of,bay,numbers}} bay_groups = { {30, 60, {1}}, {30, 60, {1}}, {30, 60, {2}}, {30, 60, {3}}, {30, 60, {4}}, {30, 60, {5}}, {30, 6...
gpl-3.0
Invertika/data
scripts/maps/ow-p0011-n0020-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
remakeelectric/luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_add.lua
11
4909
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local nw = require "luci.model.network" local fw = require "luci.model.firewall" local uci = require "luci.model.uci".cursor() local http = require "luci.http" local iw = lu...
apache-2.0
jcai1/WowCoding
weakauras/demo-pet-tracker/table.lua
1
19201
{ d = { actions = { init = { custom = "----- Demo Pet Tracker -----\nlocal A = aura_env\nlocal R = WeakAuras.regions[A.id].region\n-- local S = WeakAurasSaved.displays[A.id]\n\n----- Set options here -----\nlocal numColumns = 8\nlocal showStacksOf1 = false\nlocal stackTextOptions = {\n font = {\"...
mit
gnosek/sysdig
userspace/sysdig/chisels/spy_port.lua
6
2717
--[[ Copyright (C) 2013-2014 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
gpl-2.0
mendsley/premake-core
modules/gmake2/tests/test_gmake2_ldflags.lua
15
1378
-- -- test_gmake2_ldflags.lua -- Tests compiler and linker flags for Makefiles. -- (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project -- local suite = test.declare("gmake2_ldflags") local p = premake local gmake2 = p.modules.gmake2 -- -- Setup -- local wks, prj function suite.setup()...
bsd-3-clause
tmandry/hammerspoon
extensions/milight/init.lua
4
4468
--- === hs.milight === --- --- Simple controls for the MiLight LED WiFi bridge (also known as LimitlessLED and EasyBulb) local milight = require "hs.milight.internal" milight.cmd = milight._cacheCommands() --- hs.milight.minBrightness --- Constant --- Specifies the minimum brightness value that can be used. Defaults ...
mit
Invertika/data
scripts/maps/ow-p0020-n0023-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
Invertika/data
scripts/maps/ow-p0013-n0017-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
tickbh/tdengine_cocos2dx_demo
tdengine_ddz/src/global/base/raiser.lua
1
3041
-- raiser.lua -- Created by wugd -- 实现事件相关功能 --变量定义 -- event_responder 和 event_audience 格式如下: -- { -- EVENT_XXX : { -- listener = {"func" : func, args = args}, -- ... -- }, -- ... -- } --raiser发起事件的类 --listener 接收的对像 仅做避免重复的索引...
apache-2.0
Invertika/data
scripts/maps/ow-n0019-p0014-o0000.lua
1
1403
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
dvdvideo1234/wire
lua/wire/stools/rt_screen.lua
3
2031
WireToolSetup.setCategory("Visuals") WireToolSetup.open("rt_screen", "RT Screen", "gmod_wire_rt_screen", nil, "RT Screens") if CLIENT then language.Add("tool.wire_rt_screen.name", "Render-Target Screen") language.Add("tool.wire_rt_screen.desc", "Places Render Target screens") language.Add("tool.wire_rt_scr...
apache-2.0
Mizugola/ObEngine
engine/Lib/Toolkit/Toolkit.lua
5
30906
-- Dependancies local String = require("Lib/StdLib/String"); local Color = require("Lib/StdLib/ConsoleColor"); local copy = require("Lib/StdLib/Copy"); local Style = require("Lib/Toolkit/Stylesheet"); local Table = require("Lib/StdLib/Table"); local currentExecution; -- Load all Toolkit functions located in Lib/Toolk...
mit
remakeelectric/luci
applications/luci-app-cshark/luasrc/controller/cshark.lua
11
2945
--[[ LuCI - Lua Configuration Interface Copyright (C) 2014, QA Cafe, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- module("luci.controller...
apache-2.0
Invertika/data
scripts/maps/ow-o0000-n0003-o0000.lua
1
1393
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0