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
Invertika/data
scripts/maps/ow-p0009-n0025-o0000.lua
1
1401
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
wxbasic/wxbasic
source/wrap.lua
3
25236
-- wrap.lua -- convert wrappers to C++ format -- (c) 2002 David Cuny -- convenience false = nil true = 1 -- set one of these for the platforms win = false gtk = true unicode = false if win == gtk then print( "win/gtk flags not set correctly" ) exit(0) end -- TO DO: -- code the destructors s...
lgpl-2.1
remakeelectric/luci
libs/luci-lib-nixio/axTLS/www/lua/download.lua
180
1550
#!/usr/local/bin/lua require"luasocket" function receive (connection) connection:settimeout(0) local s, status = connection:receive (2^10) if status == "timeout" then coroutine.yield (connection) end return s, status end function download (host, file, outfile) --local f = assert (io.open (outfile, "w")) loc...
apache-2.0
Invertika/data
scripts/maps/iw-nelaro-bank-o00-o00-o00.lua
1
1493
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
GoogleFrog/Zero-K
scripts/armbanth.lua
4
11055
include "constants.lua" -- body local pelvis = piece "pelvis" local body = piece "body" local head = piece "head" local headflare = piece "headflare" local torso = piece "torso" local lmissiles = piece "lmissiles" local rmissiles = piece "rmissiles" local lmissileflare = piece "lmissileflare" local rmissileflare = pie...
gpl-2.0
Invertika/data
scripts/maps/ow-n0018-p0004-o0000.lua
1
1401
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
GoogleFrog/Zero-K
scripts/corsumo.lua
4
13618
--by Chris Mackey include "constants.lua" include "JumpRetreat.lua" include 'letsNotFailAtTrig.lua' --pieces local b_dome = piece "b_dome" local t_dome = piece "t_dome" local b_eye = piece "b_eye" local t_eye = piece "t_eye" -- guns local l_turn = piece "l_turn" local l_turret = piece "l_turret" local l_pivot = piec...
gpl-2.0
Invertika/data
scripts/maps/ow-p0006-n0024-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-n0010-n0012-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
GoogleFrog/Zero-K
gamedata/modularcomms/weapons/heavymachinegun.lua
5
1354
local name = "commweapon_heavymachinegun" local weaponDef = { name = [[Heavy Machine Gun]], accuracy = 1024, alphaDecay = 0.7, areaOfEffect = 96, burnblow = true, craterBoost = 0.15, craterMult = 0.3, customParams...
gpl-2.0
PaulosV/ntopng
scripts/lua/get_treemap.lua
8
1243
-- -- (C) 2013-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPHeader('application/json') interface.select(ifname) hosts_stats = interface.getHostsInfo() print [[ { "name": "flare", "children": [ { "name": "an...
gpl-3.0
Android092921/farsi
bot/utils.lua
473
24167
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
Invertika/data
scripts/maps/ow-n0001-p0016-o0000.lua
1
1401
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
zjohn4/PD2-lua-src
lib/managers/statisticsmanager.lua
1
54100
StatisticsManager = StatisticsManager or class() function StatisticsManager:init() self:_setup() self:_reset_session() -- Always make sure that session is clean when starting end function StatisticsManager:_setup( reset ) self._defaults = {} self._defaults.killed = { other = { count = 0, head_shots = 0, melee =...
gpl-2.0
Invertika/data
scripts/maps/ow-n0024-n0005-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-p0007-n0025-o0000.lua
1
1401
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
bjtaylor1/Project-OSRM-Old
auknew.lua
2
4605
require("lualib/whitelist") require("lualib/blacklist") require("luaspecifics/auk") restriction_exception_tags = { "motorcar", "motor_vehicle", "vehicle" } access_tags_hierachy = { "motorcar", "motor_vehicle", "vehicle", "access" } barrier_whitelist = { ["cattle_grid"] = true, ["border_control"] = true, ["checkpoint"]...
bsd-2-clause
prasoc/BetterUI
Modules/CIM/Module.lua
2
1219
local _ local LAM = LibStub:GetLibrary("LibAddonMenu-2.0") function BUI.CIM.InitModule(m_options) m_options["attributeIcons"] = true m_options["triggerSpeed"] = 10 m_options["condenseLtooltip"] = false m_options["enhanceCompat"] = false m_options["rhScrollSpeed"] = 50 return m_options end function BUI.CIM.S...
mit
MOHAMMAD-MOSAVI/ABCD
plugins/ingroup.lua
202
31524
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostring(msg.to.id)] = { ...
gpl-2.0
zjohn4/PD2-lua-src
core/lib/units/editor/mission/corecounterreset.lua
1
3187
CoreCounterResetUnitElement = CoreCounterResetUnitElement or class( MissionElement ) CounterResetUnitElement = CounterResetUnitElement or class( CoreCounterResetUnitElement ) function CounterResetUnitElement:init( ... ) CoreCounterResetUnitElement.init( self, ... ) end function CoreCounterResetUnitElement:init( uni...
gpl-2.0
dvdvideo1234/wire
lua/wire/gates/selection.lua
18
3682
--[[ Selection Gates ]] GateActions("Selection") GateActions["min"] = { name = "Minimum (Smallest)", inputs = { "A", "B", "C", "D", "E", "F", "G", "H" }, compact_inputs = 2, output = function(gate, ...) return math.min(unpack({...})) end, label = function(Out, ...) local txt = "min(" for k,v in ipairs({...
apache-2.0
zjohn4/PD2-lua-src
lib/units/enemies/cop/copinventory.lua
1
4896
CopInventory = CopInventory or class( PlayerInventory ) CopInventory._index_to_weapon_list = HuskPlayerInventory._index_to_weapon_list function CopInventory:init( unit ) CopInventory.super.init( self, unit ) self._unit = unit self._available_selections = {} -- Indexed table: selection index, item data self._equi...
gpl-2.0
Invertika/data
scripts/maps/ow-p0005-p0002-n0001.lua
1
1392
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
mahdikord/mahdib99
plugins/all.lua
28
4675
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
teleofis/OpenWRT
feeds/luci/applications/luci-app-gre/luasrc/model/cbi/gre-tunnel.lua
2
4284
local fs = require "nixio.fs" local sys = require "luci.sys" local uci = require "luci.model.uci".cursor() local utl = require ("luci.util") local CFG_MAP = "gre_tunnel" local CFG_SEC = "gre_tunnel" local m, s, o m = Map(CFG_MAP, translate("Generic Routing Encapsulation Tunnel")) m.spec_dir = nil s = m:section( Ty...
gpl-2.0
GoogleFrog/Zero-K
LuaRules/Gadgets/feature_blocking_tag_implementation.lua
4
1407
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Blocking Tag Implementation", desc = "Implements the blocking tag correctly.", auth...
gpl-2.0
Invertika/data
scripts/maps/ow-n0010-p0007-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
StaymanHou/Hacking-the-Pentest-Tutor-Game
lib/LoveFrames/objects/image.lua
7
9763
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- image object local newobject = loveframes.NewObject("image", "loveframes_object_image", true) --[[----------------------...
apache-2.0
elemel/moonshine
src/ui.lua
1
5231
-- Copyright (c) 2008 Mikael Lind -- -- 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, publis...
mit
USABOT6/usabot
plugins/webshot.lua
919
1473
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
USABOT6/usabot
plugins/time.lua
771
2865
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
CCAAHH/creed
plugins/time.lua
771
2865
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
Invertika/data
scripts/maps/ow-n0015-p0009-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-p0005-p0002-o0000.lua
1
1398
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
Invertika/data
scripts/maps/ow-n0011-n0017-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
noahchense/nodemcu-firmware
lua_modules/ds18b20/ds18b20.lua
54
3437
-------------------------------------------------------------------------------- -- DS18B20 one wire module for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Vowstar <vowstar@nodemcu.com> -- 2015/02/14 sza2 <sza2trash@gmail.com> Fix for negative values ---------------------------------------...
mit
zjohn4/PD2-lua-src
lib/tweak_data/blackmarkettweakdata.lua
1
139985
BlackMarketTweakData = BlackMarketTweakData or class() function BlackMarketTweakData:init( tweak_data ) self:_init_colors() self:_init_materials() self:_init_textures() self:_init_masks() self:_init_characters() self:_init_cash() self:_init_xp() self:_init_weapon_mods( tweak_data ) self:_init_armors() self:_...
gpl-2.0
Mooash/dotfiles
link/.hammerspoon/utils/import.lua
1
1275
-- Taken from: https://github.com/justone/hammerspoon-config/blob/master/utils/import.lua -- A convenience function that loads a file, reloading it each time this function is called. Searches -- LUA_PATH like require does, but uses dofile to do the loading, making sure not to cache anything. -- -- Useful for our purpos...
mit
chuenlungwang/skynet
lualib/mqueue.lua
115
1798
-- This is a deprecated module, use skynet.queue instead. local skynet = require "skynet" local c = require "skynet.core" local mqueue = {} local init_once local thread_id local message_queue = {} skynet.register_protocol { name = "queue", -- please read skynet.h for magic number 8 id = 8, pack = skynet.pack, u...
mit
Invertika/data
scripts/maps/ow-p0011-n0016-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
teleofis/OpenWRT
feeds/luci/modules/luci-mod-admin-full/luasrc/controller/admin/uci.lua
40
1769
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.admin.uci", package.seeall) function index() local redir = luci.http.formvalue("redir", true) or luci.dispatcher.build_url(unpack(...
gpl-2.0
GoogleFrog/Zero-K
units/armfus.lua
7
3352
unitDef = { unitname = [[armfus]], name = [[Fusion Reactor]], description = [[Produces Energy (35)]], activateWhenBuilt = true, buildCostEnergy = 1000, buildCostMetal = 1000, builder ...
gpl-2.0
Invertika/data
scripts/maps/ow-p0019-p0021-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
zhityer/zhityer
plugins/rae.lua
616
1312
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
bestofkeeperbot/yourkeeperbot
plugins/rae.lua
616
1312
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
Invertika/data
scripts/maps/ow-p0007-n0023-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
Invertika/data
scripts/monster/werbug.lua
1
1842
---------------------------------------------------------------------------------- -- Copyright 2011 The Invertika Development Team -- -- -- -- This file is part of Invertika. ...
gpl-3.0
tobiaswaldvogel/luci
applications/luci-app-dcwapd/luasrc/model/cbi/dcwapd/dcwapd.lua
8
5826
-- Copyright 2019 EWSI -- Licensed to the public under the Apache License 2.0. local wa = require "luci.tools.webadmin" local fs = require "nixio.fs" local ntm = require "luci.model.network" local uc = require "luci.model.uci".cursor() local sys = require "luci.sys" local devices = sys.net.devices() local m, s loca...
apache-2.0
remakeelectric/luci
modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
11
11532
-- 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
GoogleFrog/Zero-K
units/puppy.lua
3
5822
unitDef = { unitname = [[puppy]], name = [[Puppy]], description = [[Walking Missile]], acceleration = 0.24, activateWhenBuilt = true, brakeRate = 0.24, buildCostEnergy = 50, buildCostMetal = 50, builder ...
gpl-2.0
mohammad2016mr/sed
plugins/stats.lua
866
4001
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
agpl-3.0
mobinantispam/012
plugins/stats.lua
866
4001
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
mortezamosavy999/mm
plugins/stats.lua
866
4001
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
ashkanpj/teleme
plugins/stats.lua
866
4001
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
GoogleFrog/Zero-K
units/armbrtha.lua
5
5821
unitDef = { unitname = [[armbrtha]], name = [[Big Bertha]], description = [[Strategic Plasma Cannon]], buildCostEnergy = 5000, buildCostMetal = 5000, builder = false, buildingGroundDecalDecay...
gpl-2.0
TheSuperAlaa/TheSuperBot
DevTSHAKE/DevTSHAKE.lua
2
7490
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./DevTSHAKE/utils") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:close() -- This functi...
gpl-2.0
Android092921/farsi
bot/bot.lua
2
11318
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return...
gpl-2.0
detect00r/iranspammers
plugins/moderation.lua
336
9979
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then local username = v.username data[tostring(m...
gpl-2.0
GoogleFrog/Zero-K
scripts/armtboat.lua
7
5032
include "constants.lua" local AttachUnit = Spring.UnitScript.AttachUnit local DropUnit = Spring.UnitScript.DropUnit -- pieces local base, platform, fan = piece("base", "platform", "fan") local wake1, wake2 = piece("wake1", "wake2") local load_arm, load_shoulder = piece("load_arm", "load_shoulder") local slot1 = piece ...
gpl-2.0
splay-project/splay
tools/scripts/planetlab_utils/splay_pl_pack/splayd_planetlab/splayd/modules/splay/benc.lua
2
5083
--[[ 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
Invertika/data
scripts/maps/ow-n0009-p0008-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
MeteoricGames/pioneer
data/ships/(3)Medium/(3G1)personal_medium/personal_medium1.lua
1
1039
-- Copyright © 2013-2014 Meteoric Games Ltd --Ships not available for purchase (ambient ships) define_ship { name='BSC Silverblade Yacht', ship_class = 'personal', manufacturer = 'alders_vectrum', model='personal_medium1', cockpit='unitech_light_cockpit', forward_thrust = 12000e5, reverse_thrust = 12000e5, up_...
gpl-3.0
stephen322/prosody-modules
mod_telnet_tlsinfo/mod_telnet_tlsinfo.lua
32
1220
-- mod_telnet_tlsinfo.lua module:set_global(); module:depends("admin_telnet"); local console_env = module:shared("/*/admin_telnet/env"); local c2s_sessions = module:shared("/*/c2s/sessions"); local s2s_sessions = module:shared("/*/s2s/sessions"); local function print_tlsinfo(print, session) if session.secure then ...
mit
GoogleFrog/Zero-K
LuaRules/Gadgets/unit_nanoframe_death.lua
4
4635
-- $Id: unit_terraform.lua 3299 2008-11-25 07:25:57Z google frog $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Nano Frame Death Handeling", desc ...
gpl-2.0
Invertika/data
scripts/maps/iw-roststock-flat02-o00-o00-o00.lua
1
5368
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
dvdvideo1234/wire
lua/entities/gmod_wire_expression2/core/http.lua
3
3127
/* Simple HTTP Extension (McLovin) */ E2Lib.RegisterExtension( "http", false, "Lets E2 chips make web requests to the real internet.", "Allows any E2 to make your server make arbitrary HTTP GET requests to any site. It can use this to make HTTP requests to any IP address inside your local network." ) local cva...
apache-2.0
jcai1/WowCoding
weakauras/furious-sun-counter/wa.d.actions.init.custom.lua
1
4324
local A = aura_env -- local R = WeakAuras.regions[A.id].region -- Custom text local lastTextRefresh = 0 -- Time of last refresh local textRefreshInterval = 0.1 -- Interval between refreshes local text = "" -- Actual text to display local playerGUID -- Stored UnitGUID("playe...
mit
Invertika/data
scripts/maps/ow-p0023-n0019-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
tobiaswaldvogel/luci
applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrd6.lua
5
16297
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require("luci.tools.webadmin") local fs = require "nixio.fs" local util = require "luci.util" local ip = require "luci.ip" local has_ipip = fs.glob("/etc/mo...
apache-2.0
Invertika/data
scripts/maps/uw-nex-o0000-o0000-o0000.lua
1
11263
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
zjohn4/PD2-lua-src
lib/managers/mission/elementplayerstate.lua
1
2278
core:import( "CoreMissionScriptElement" ) ElementPlayerState = ElementPlayerState or class( CoreMissionScriptElement.MissionScriptElement ) function ElementPlayerState:init( ... ) ElementPlayerState.super.init( self, ... ) end function ElementPlayerState:client_on_executed( ... ) self:on_executed( ... ) end funct...
gpl-2.0
gnosek/sysdig
userspace/sysdig/chisels/topscalls_time.lua
6
1702
--[[ 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
GoogleFrog/Zero-K
scripts/spiderassault.lua
7
4959
include "constants.lua" local base = piece 'base' local torso = piece 'torso' local turret = piece 'turret' local lbarrel = piece 'lbarrel' local lflare = piece 'lflare' local rbarrel = piece 'rbarrel' local rflare = piece 'rflare' local larm = piece 'larm' local rarm = piece 'rarm' local lfrontleg = piece '...
gpl-2.0
hackpascal/luci
applications/luci-app-pbx/luasrc/model/cbi/pbx-advanced.lua
99
14473
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx 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 ...
apache-2.0
Invertika/data
scripts/maps/ow-p0002-n0001-o0000.lua
1
1394
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
GoogleFrog/Zero-K
LuaUI/Configs/border_menu_commands.lua
8
11965
VFS.Include("LuaRules/Configs/customcmds.h.lua") --FIXME: use this table until state tooltip detection is fixed local tooltips = { priority = "Priority: Set construction priority (low, normal, high)", retreat = "Retreat: Retreat to closest retreat point at 30/60/90% of health (right-click to disable)", landat = "Re...
gpl-2.0
Invertika/data
scripts/maps/ow-p0009-n0019-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
mendsley/premake-core
modules/gmake2/tests/test_gmake2_file_rules.lua
1
3659
-- -- test_gmake2_file_rules.lua -- Validate the makefile source building rules. -- (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project -- local suite = test.declare("gmake2_file_rules") local p = premake local gmake2 = p.modules.gmake2 -- -- Setup -- local wks, prj function suite.setu...
bsd-3-clause
PaulosV/ntopng
scripts/lua/modules/json.lua
10
4552
-- -- (C) 2013-15 - ntop.org -- --- Simple class for JSON parsing dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path local parseElement local function skipWhitespaces(content, pos) local _,nend = content:find("^[ \n\r\t]+", pos) if (nend ~= nil) then retur...
gpl-3.0
mortezamosavy999/mm
plugins/Time.lua
120
2804
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
Shayan123456/bottttt
plugins/time.lua
120
2804
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
zjohn4/PD2-lua-src
core/lib/managers/coresky.lua
1
1914
CoreSky = CoreSky or class() function CoreSky:init() self._params = {} self._name = "default" end function CoreSky:set_name(name) self._name = name end function CoreSky:set_value( key, value ) self._params[key] = value end function CoreSky:value( key ) return self._params[key] end function CoreSky:parse( xml_...
gpl-2.0
Invertika/data
scripts/maps/ow-n0025-o0000-o0000.lua
1
1401
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
PaulosV/ntopng
scripts/lua/iface_flows_sankey.lua
9
5682
-- -- (C) 2013-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPHeader('application/json') tracked_host = _GET["host"] interface.select(ifname) peers = interface.getFlowPeers() max_num_links = 32 max_num_hosts = 8 l...
gpl-3.0
fliping/flip
lib/store/rep_client.lua
2
8331
-- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*- -- vim: ts=4 sw=4 ft=lua noet --------------------------------------------------------------------- -- @author Daniel Barney <daniel@pagodabox.com> -- @copyright 2014, Pagoda Box, Inc. -- @doc -- -- @end -- Created : 18 Feb 2015 by Daniel Barney...
mit
Invertika/data
scripts/maps/ow-n0019-p0017-o0000.lua
1
1403
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
Invertika/data
scripts/maps/ow-n0024-p0016-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
xDShot/csgo_knives_sweps
lua/weapons/csgo_talon.lua
1
2392
if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then SWEP.Spawnable = false print( "csgo_talon 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
JTriggerFish/protoplug
ProtoplugFiles/include/protojuce.lua
1
1379
-- protojuce.lua -- a GUI module for protoplug that wraps some JUCE features local util = require"include/luautil" local script = require "include/core/script" -- module local J = {} -- todo relative, wat ? util.requireCdef(script.protoplugDir.."/include/protojuce/cdef/typedefs.h") J.AudioFormatReader = req...
mit
hackpascal/luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua
68
2351
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") -- -- SIP trunk info -- if arg[2] == "info" then form = SimpleForm("asterisk", "SIP Trunk Information") form.reset = false form.submit = "Back to overview" local info,...
apache-2.0
Invertika/data
scripts/maps/ow-p0003-n0015-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
stuart-warren/.dotfiles
.config/nvim/lua/user/plugins.lua
1
3963
local fn = vim.fn -- Automatically install packer local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim" if fn.empty(fn.glob(install_path)) > 0 then PACKER_BOOTSTRAP = fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path, }) prin...
mit
chuenlungwang/skynet
examples/watchdog.lua
53
1286
local skynet = require "skynet" local netpack = require "netpack" local CMD = {} local SOCKET = {} local gate local agent = {} function SOCKET.open(fd, addr) skynet.error("New client from : " .. addr) agent[fd] = skynet.newservice("agent") skynet.call(agent[fd], "lua", "start", { gate = gate, client = fd, watchdog...
mit
PaulosV/ntopng
scripts/lua/modules/lua_trace.lua
11
2395
-- -- (C) 2014-15 - ntop.org -- -- Trace Level TRACE_LEVEL = 2 -- Login & session debug_login = false debug_session = false debug_host = false debug_flow_data = false -------------------------------- Trace Event ---------------------------------- -- Trace level TRACE_ERROR = 0 TRACE_WARNING = 1 TRACE_NORMAL =...
gpl-3.0
ohAitch/ax
axum.lua
2
19956
--[[ The Ax Ur Machine being A Ready Demonstration and *Unit Test* for the Soul of a New Machine or A Nominative Ordering of Cardinal {Conk} Based Upon the Tree of Life ]] --[[Preliminaries]...
unlicense
6520874/pipiGame
MyGame/cocos2d/cocos/scripting/lua/script/CocoStudio.lua
19
8831
require "json" require "extern" ccs = ccs or {} function ccs.sendTriggerEvent(event) local triggerObjArr = ccs.TriggerMng.getInstance():get(event) if nil == triggerObjArr then return end for i = 1, table.getn(triggerObjArr) do local triObj = triggerObjArr[i] if nil ~= tri...
gpl-2.0
tobiaswaldvogel/luci
applications/luci-app-travelmate/luasrc/model/cbi/travelmate/cfg_firewall_tab.lua
7
1044
-- Copyright 2017-2018 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 local fs = require("nixio.fs") local util = require("luci.util") local input = "/etc/config/firewall" if not fs.access(input) then m = SimpleForm("error", nil, translate("Input file not ...
apache-2.0
tonibm19/cuberite
Server/Plugins/APIDump/Hooks/OnChunkGenerated.lua
36
2855
return { HOOK_CHUNK_GENERATED = { CalledWhen = "After a chunk was generated. Notification only.", DefaultFnName = "OnChunkGenerated", -- also used as pagename Desc = [[ This hook is called when world generator finished its work on a chunk. The chunk data has already been generated and is about to be stor...
apache-2.0
Reda9991/DevRode
plugins/fwd_lock.lua
2
1389
--[[ --]] do local function pre_process(msg) local hash = mate: ..msg.to.id if redis:get(hash) and msg.fwd_from and not is_sudo(msg) and not is_owner(msg) and not is_momod(msg) then delete_msg(msg.id, ok_cb, true) return "done" end return msg end local ...
gpl-2.0
mendsley/premake-core
src/base/container.lua
23
8189
--- -- container.lua -- Implementation of configuration containers. -- Copyright (c) 2014 Jason Perkins and the Premake project --- local p = premake p.container = {} local container = p.container --- -- Keep a master dictionary of container class, so they can be easily looked -- up by name (technically you cou...
bsd-3-clause