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-n0025-n0022-o0000.lua
1
1401
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
zjohn4/PD2-lua-src
core/lib/utils/dev/tools/material_editor/coresmartnode.lua
1
1875
CoreSmartNode = CoreSmartNode or class() function CoreSmartNode:init(node) self._parameters = {} self._children = {} if type(node) == "string" then self._name = node else self._name = node:name() for k,v in pairs(node:parameters()) do self._parameters[k] = v end for child in node:children() do ...
gpl-2.0
zjohn4/PD2-lua-src
lib/managers/hud/hudblackscreen.lua
1
12454
HUDBlackScreen = HUDBlackScreen or class() function HUDBlackScreen:init( hud ) -- print( "HUDBlackScreen:init( hud )" ) self._hud_panel = hud.panel if self._hud_panel:child( "blackscreen_panel" ) then self._hud_panel:remove( self._hud_panel:child( "blackscreen_panel" ) ) end self._blackscreen_panel = self....
gpl-2.0
strukturag/vlc
share/lua/modules/common.lua
48
4964
--[[ This code is public domain (since it really isn't very interesting) ]]-- module("common",package.seeall) -- Iterate over a table in the keys' alphabetical order function pairs_sorted(t) local s = {} for k,_ in pairs(t) do table.insert(s,k) end table.sort(s) local i = 0 return function () i = ...
gpl-2.0
mendsley/premake-core
modules/gmake/tests/cs/test_flags.lua
15
1089
-- -- tests/actions/make/cs/test_flags.lua -- Tests compiler and linker flags for C# Makefiles. -- Copyright (c) 2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("make_cs_flags") local make = p.make local cs = p.make.cs local project = p.project -- -- Setup -- local w...
bsd-3-clause
stephen322/prosody-modules
mod_idlecompat/mod_idlecompat.lua
35
1149
-- Last User Interaction in Presence via Last Activity compatibility module -- http://xmpp.org/extensions/xep-0319.html -- http://xmpp.org/extensions/xep-0012.html -- Copyright (C) 2014 Tobias Markmann -- -- This file is MIT/X11 licensed. local st = require "util.stanza"; local datetime = require "util.datetime"; loc...
mit
GoogleFrog/Zero-K
LuaRules/Gadgets/unit_target_priority.lua
1
5317
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if not gadgetHandler:IsSyncedCode() then return end -------------------------------------------------------------------------------- ------------------------...
gpl-2.0
tobiaswaldvogel/luci
applications/luci-app-radicale/luasrc/controller/radicale.lua
2
8680
-- Copyright 2014-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed under the Apache License, Version 2.0 module("luci.controller.radicale", package.seeall) local NX = require("nixio") local NXFS = require("nixio.fs") local DISP = require("luci.dispatcher") local HTTP = require("lu...
apache-2.0
Invertika/data
scripts/libs/theatre.lua
1
2170
---------------------------------------------------------------------------------- -- Theater Bibliothek -- -- -- -- Die DateTime Bibliothek stellt Funktionen zur Zeit ...
gpl-3.0
dvdvideo1234/wire
lua/entities/gmod_wire_egp/lib/objects/wedgeoutline.lua
6
1573
-- Author: Divran local Obj = EGP:NewObject( "WedgeOutline" ) Obj.angle = 0 Obj.size = 45 Obj.fidelity = 180 local rad, cos, sin = math.rad, math.cos, math.sin Obj.Draw = function( self ) if (self.a>0 and self.w > 0 and self.h > 0 and self.size ~= 360) then if EGP:CacheNeedsUpdate(self, {"x", "y", "w", "h", "angle",...
apache-2.0
MRAHS/iron-bot
plugins/banhammer.lua
1
12034
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
GoogleFrog/Zero-K
gamedata/modularcomms/weapons/riotcannon.lua
4
1139
local name = "commweapon_riotcannon" local weaponDef = { name = [[Riot Cannon]], areaOfEffect = 144, avoidFeature = true, avoidFriendly = true, burnblow = true, craterBoost = 1, craterMult = 2, customParams = ...
gpl-2.0
Invertika/data
scripts/maps/ow-n0006-p0016-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
GoogleFrog/Zero-K
scripts/sprinkler.lua
7
1607
include "constants.lua" --pieces local concrete, belt = piece('Concrete','Belt'); local wheel, arm, hand, cannon = piece('Wheel', 'Arm','Hand', 'Cannon'); local barrel1, barrel2, barrel3, muzzle = piece("Barrel1","Barrel2","Barrel3","Muzzle"); local lidLeft, lidRight = piece("lidLeft","lidRight"); local aimProxy = pie...
gpl-2.0
metakermit/vlc
share/lua/playlist/vimeo.lua
6
4658
--[[ $Id$ Copyright © 2009 the VideoLAN team Authors: Konstantin Pavlov (thresh@videolan.org) François Revol (revol@free.fr) 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 v...
gpl-2.0
zjohn4/PD2-lua-src
core/lib/utils/dev/editor/coreeditorlowerpanel.lua
1
15292
core:import("CoreEngineAccess") function CoreEditor:build_lower_panel( parent ) self._lower_panel = EWS:Panel( Global.frame_panel, "", "TAB_TRAVERSAL" ) local lower_sizer = EWS:BoxSizer( "HORIZONTAL" ) self._lower_panel:set_sizer( lower_sizer ) lower_sizer:add( self:build_info_frame( self._lower_panel ), 1, 0, "...
gpl-2.0
royalharsh/flatbuffers
tests/namespace_test/NamespaceA/TableInFirstNS.lua
11
1873
-- automatically generated by the FlatBuffers compiler, do not modify -- namespace: NamespaceA local flatbuffers = require('flatbuffers') local TableInFirstNS = {} -- the module local TableInFirstNS_mt = {} -- the class metatable function TableInFirstNS.New() local o = {} setmetatable(o, {__index = TableInF...
apache-2.0
tobiaswaldvogel/luci
applications/luci-app-banip/luasrc/model/cbi/banip/overview_tab.lua
5
7353
-- Copyright 2018-2019 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 local fs = require("nixio.fs") local uci = require("luci.model.uci").cursor() local net = require "luci.model.network".init() local util = require("luci.util") local dump = util.ubus("netw...
apache-2.0
mendsley/premake-core
modules/d/tests/test_gdc.lua
3
2212
--- -- d/tests/test_dmd.lua -- Automated test suite for dmd. -- Copyright (c) 2011-2015 Manu Evans and the Premake project --- local suite = test.declare("d_gdc") local p = premake local m = p.modules.d local make = p.make local project = p.project --------------------------------------------------------------...
bsd-3-clause
Invertika/data
scripts/maps/ow-o0000-n0008-o0000.lua
1
1403
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
irr/luajit.io
test/003-redis.lua
2
1649
local ffi = require"ffi" local null = ffi.new("void*") local redis = require "resty.redis" local function test_redis(req, rsp) local red = redis:new() -- red:set_timeout(1000) -- 1 sec -- or connect to a unix domain socket file listened -- by a redis server: -- local ok, err = red:connect("unix:/path/to/red...
bsd-2-clause
vintonrobot/antis
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
walker020/Tele-inviter
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
alikingambav/archer
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
ashkanpj/teleme
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
hackpascal/luci
modules/luci-base/luasrc/ccache.lua
81
1651
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local io = require "io" local fs = require "nixio.fs" local util = require "luci.util" local nixio = require "nixio" local debug = require "debug" local string...
apache-2.0
Invertika/data
scripts/maps/ow-n0020-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-n0008-n0020-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
remakeelectric/luci
applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua
7
2607
-- Copyright 2014 Aedan Renner <chipdankly@gmail.com> -- Copyright 2018 Florian Eckert <fe@dev.tdt.de> -- Licensed to the public under the GNU General Public License v2. dsp = require "luci.dispatcher" arg[1] = arg[1] or "" m5 = Map("mwan3", translatef("MWAN Rule Configuration - %s", arg[1])) m5.redirect = dsp.build...
apache-2.0
zhityer/zhityer
plugins/groupmanager.lua
3
12612
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if not is_admin(msg) then return " بـرایـ ساختـ گـروهـ بـایـد پـول بپـردازیـد به ادمین مراجعهـ کنـیـد : @ThisIsArman یـا درگـروه زیـر درخو...
gpl-2.0
tickbh/tdengine_cocos2dx_demo
tdengine_ddz/src/global/base/global_frame.lua
1
2138
-- global_frame.lua -- Created by wugd -- 每帧的处理函数 local callback_info = { callback = {}, callback_count = 0 }; local callback_switch = false; local cookie = 1; local timer_cache = {}; setmetatable(timer_cache, { __mode = "k" }); -- 定时器的回调 local function timer_callback(evid, para) local callback, arg, is_repeat =...
apache-2.0
Invertika/data
scripts/maps/ow-n0003-n0025-o0000.lua
1
1398
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
splay-project/splay
daemon/src/lua/modules/splay/events_new.lua
4
22144
--[[ 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-p0007-p0019-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
AlphaStaxLLC/rackspace-monitoring-agent
tests/test-check-load-average.lua
4
1065
local los = require('los') local LoadAverageCheck = require('../check').LoadAverageCheck require('tap')(function(test) test('test check load average', function(expect) local check = LoadAverageCheck:new({id='foo',period=30}) assert(not check._lastResult) check:run(function(result) if los.type() == "...
apache-2.0
teleofis/OpenWRT
feeds/luci/applications/luci-app-asterisk/luasrc/asterisk.lua
68
17804
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.asterisk", package.seeall) require("luci.asterisk.cc_idd") local _io = require("io") local uci = require("luci.model.uci").cursor() local sys = require("luci.sys") local util = require("luci.uti...
gpl-2.0
StaymanHou/Hacking-the-Pentest-Tutor-Game
lib/LoveFrames/libraries/templates.lua
10
5343
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- templates library loveframes.templates = {} -- available templates loveframes.templates.available = {} -- objects lovef...
apache-2.0
pagodabox/tag
lib/system/topology/round_robin.lua
2
2061
-- -*- 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 2015, Pagoda Box, Inc. -- @doc -- -- @end -- Created : 15 May 2015 by Daniel Barne...
mit
teleofis/OpenWRT
feeds/luci/applications/luci-app-pbx-voicemail/luasrc/model/cbi/pbx-voicemail.lua
97
6962
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx-voicemail. luci-pbx-voicemail 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 ...
gpl-2.0
tobiaswaldvogel/luci
applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua
10
7016
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ip = require "luci.ip" local fs = require "nixio.fs" if arg[1] then mp = Map("olsrd", translate("OLSR - Plugins")) p = mp:section(TypedSection, "Load...
apache-2.0
zjohn4/PD2-lua-src
lib/managers/timespeedmanager.lua
1
8211
TimeSpeedManager = TimeSpeedManager or class() function TimeSpeedManager:init() self._pausable_timer = TimerManager:pausable() self._game_timer = TimerManager:game() self._game_anim_timer = TimerManager:game_animation() --self._playing_effects = nil --self._affected_timers = nil -- when there are effects playing ...
gpl-2.0
Invertika/data
scripts/maps/iw-island_tunnel-o00-o00-n01.lua
3
1302
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
Invertika/data
scripts/maps/ow-n0002-p0008-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
GoogleFrog/Zero-K
LuaUI/Widgets/chili_new/headers/unicode.lua
8
3520
--//============================================================================= --// -- shift left local function lsh(value,shift) return (value*(2^shift)) % 2^24 end -- shift right local function rsh(value,shift) return math.floor(value/2^shift) % 2^24 end function UnicodeToUtf8(ch) if (ch == 0) then r...
gpl-2.0
uspgamedev/programming-tutorial
level_01/main.lua
1
2707
-- At first, we'll try to keep everything commented, but that will be dropped -- soon enough, so get used to figuring things out! -- "local" variables mean that they belong only to this code module. More on -- that later. -- Window resolution local W, H -- Maximum number of obejcts local MAX_OBJECTS -- The list of...
mit
smikail/salibnew
bot/utils.lua
494
23873
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
GoogleFrog/Zero-K
scripts/corjamt.lua
2
3057
--by Chris Mackey local spSetUnitShieldState = Spring.SetUnitShieldState --pieces local base = piece "base" local glow = piece "glow" local lf_leaf = piece "lf_leaf" local lf_ball = piece "lf_ball" local lf_thigh = piece "lf_thigh" local lf_knee = piece "lf_knee" local lf_foot = piece "lf_foot" local lb_leaf = piece...
gpl-2.0
xDShot/csgo_knives_sweps
lua/weapons/csgo_huntsman_slaughter.lua
1
2435
if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then SWEP.Spawnable = false print( "csgo_huntsman_slaughter 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) ) DEFIN...
mit
Invertika/data
scripts/maps/ow-n0011-p0012-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-n0018-n0015-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-n0001-n0017-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/network/matchmaking/networkgenericpsn.lua
1
4053
NetworkGenericPSN = NetworkGenericPSN or class() function NetworkGenericPSN:init() cat_print( 'lobby', "generic = NetworkGenericPSN") local f = function() end PSN:set_matchmaking_callback( "room_invitation", f ) local psn_left = function(...) self:psn_member_left(...) end PSN:set_matchmaking_callback( "member...
gpl-2.0
Invertika/data
scripts/maps/ow-n0009-n0021-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/clusterbomb.lua
5
1349
local name = "commweapon_clusterbomb" local weaponDef = { name = [[Cluster Bomb]], accuracy = 200, avoidFeature = false, avoidNeutral = false, areaOfEffect = 160, burst = 2, burstRate = 0.03, commandFire ...
gpl-2.0
724789975/FxLib
Server/Debug/ChatServerScripts/cmd_param.lua
2
2276
require "alt_getopt" --看命令行是干什么的 要是查看信息的话 就不进行游戏 local function Help(strParam) print("help info") end local function Version(strParam) print("version info") end local function SetPort(strParam) g_dwPort = tonumber(strParam) end local function SetIp(strParam) g_strIp = strParam end local function SetIndex_l(str...
mit
dvdvideo1234/wire
lua/wire/client/wire_listeditor.lua
7
13822
// A list editor. It allows reading editing and saving lists as *.txt files. // It uses wire_expression2_browser for it's file browser. // The files have an easy structure for easy editing. Rows are separated by '\n' and columns by '|'. // Made by Grocel. local PANEL = {} AccessorFunc( PANEL, "m_strRootPath", "Root...
apache-2.0
smikail/salibnew
plugins/banhammer.lua
2
11593
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
GoogleFrog/Zero-K
lups/ParticleClasses/SphereDistortion.lua
14
6576
-- $Id: SphereDistortion.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local SphereDistortion = {} Sp...
gpl-2.0
Invertika/data
scripts/maps/ow-p0021-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-n0003-n0010-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
zjohn4/PD2-lua-src
lib/managers/menu/renderers/menunodecrimenetgui.lua
1
42940
local function make_fine_text( text ) local x, y, w, h = text:text_rect() text:set_size( w, h ) text:set_position( math.round( text:x() ), math.round( text:y() ) ) end MenuNodeCrimenetGui = MenuNodeCrimenetGui or class( MenuNodeGui ) function MenuNodeCrimenetGui:init( node, layer, parameters ) parameters.font =...
gpl-2.0
prasoc/BetterUI
lib/LibAddonMenu-2.0/controls/checkbox.lua
7
4736
--[[checkboxData = { type = "checkbox", name = "My Checkbox", tooltip = "Checkbox's tooltip text.", getFunc = function() return db.var end, setFunc = function(value) db.var = value doStuff() end, width = "full", --or "half" (optional) disabled = function() return db.someBooleanSetting end, --or boolean (optional...
mit
Invertika/data
scripts/maps/ow-n0017-p0007-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
Invertika/data
scripts/maps/iw-selphi-timlet-flat04-o00-o00-o00.lua
1
3904
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
mendsley/premake-core
modules/d/actions/vstudio.lua
2
10864
-- -- d/actions/vstudio.lua -- Generate a VisualD .visualdproj project. -- Copyright (c) 2012-2015 Manu Evans and the Premake project -- local p = premake local m = p.modules.d m.visuald = {} require ("vstudio") local vstudio = p.vstudio local workspace = p.workspace local project = p.project local config =...
bsd-3-clause
BloodyKnight/nginx-openresty-windows
LuaJIT-2.1-20150622/src/host/genminilua.lua
127
11962
---------------------------------------------------------------------------- -- Lua script to generate a customized, minified version of Lua. -- The resulting 'minilua' is used for the build process of LuaJIT. ---------------------------------------------------------------------------- -- Copyright (C) 2005-2015 Mike P...
bsd-2-clause
PaulosV/ntopng
scripts/lua/get_grouped_hosts_data.lua
5
11364
-- -- (C) 2013-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPHeader('text/html; charset=iso-8859-1') -- Table parameters all = _GET["all"] currentPage = _GET["currentPage"] perPage = _GET["perPage"] sortColumn =...
gpl-3.0
The-Cow-Development-Group/electrica
electrica/nodes/gearboxes.lua
1
2039
minetest.register_node("electrica:gearbox_wooden", { --Wooden Gearbox description = "Wooden Gearbox", tiles = {"default_wood.png^electrica_gearbox_wooden_top.png", "default_wood.png^electrica_gearbox_wooden_bottom.png", "default_wood.png^electrica_gearbox_wooden_side.png", "default_wood.png^electrica_gearbox_wooden_s...
lgpl-2.1
bestofkeeperbot/yourkeeperbot
plugins/isup.lua
741
3095
do local socket = require("socket") local cronned = load_from_file('data/isup.lua') local function save_cron(msg, url, delete) local origin = get_receiver(msg) if not cronned[origin] then cronned[origin] = {} end if not delete then table.insert(cronned[origin], url) else for k,v in pairs(cronned[...
gpl-2.0
tobiaswaldvogel/luci
applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua
5
5457
-- Copyright 2017-2019 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 local fs = require("nixio.fs") local uci = require("luci.model.uci").cursor() local util = require("luci.util") local nw = require("luci.model.network").init() local fw ...
apache-2.0
teleofis/OpenWRT
feeds/packages/utils/yunbridge/files/usr/lib/lua/luci/sha256.lua
106
5170
-- -- Code merged by gravityscore at http://pastebin.com/gsFrNjbt -- -- Adaptation of the Secure Hashing Algorithm (SHA-244/256) -- Found Here: http://lua-users.org/wiki/SecureHashAlgorithm -- -- Using an adapted version of the bit library -- Found Here: https://bitbucket.org/Boolsheet/bslf/src/1ee664885805/bit....
gpl-2.0
Invertika/data
scripts/maps/ow-n0012-n0020-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
USABOT6/usabot
plugins/channels.lua
356
1732
-- 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
zjohn4/PD2-lua-src
lib/units/enemies/cop/copmovement.lua
1
72644
require "lib/units/enemies/cop/actions/lower_body/CopActionIdle" require "lib/units/enemies/cop/actions/lower_body/CopActionWalk" require "lib/units/enemies/cop/actions/full_body/CopActionAct" require "lib/units/enemies/cop/actions/lower_body/CopActionTurn" require "lib/units/enemies/cop/actions/full_body/CopActionHurt...
gpl-2.0
ls-/oUF
elements/healthprediction.lua
5
9982
--[[ # Element: Health Prediction Bars Handles the visibility and updating of incoming heals and heal/damage absorbs. ## Widget HealthPrediction - A `table` containing references to sub-widgets and options. ## Sub-Widgets myBar - A `StatusBar` used to represent incoming heals from the player. otherBar ...
mit
Invertika/data
scripts/maps/ow-p0012-p0001-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
jac8/Self
bot/utils.lua
44
15689
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")() http.TIMEOUT = 10 funct...
gpl-2.0
linxiulei/sysdig
userspace/sysdig/chisels/topfiles_time.lua
12
1641
--[[ 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 e...
gpl-2.0
chuenlungwang/skynet
service/service_mgr.lua
19
3853
local skynet = require "skynet" require "skynet.manager" -- import skynet.register local snax = require "snax" local cmd = {} local service = {} local function request(name, func, ...) local ok, handle = pcall(func, ...) local s = service[name] assert(type(s) == "table") if ok then service[name] = handle else ...
mit
GoogleFrog/Zero-K
LuaUI/Configs/decoration_handler_defs.lua
5
6626
-- only level 1 is needed, rest can be autogenerated local commtypeTable = { ["1"] = { -- armcom ["1"] = { -- level back = { { piece = "torso", height = 10, width = 10, rotation = 180, rotVector = {0,1,0}, offset = {0, 0, -13}, alpha = 0.6, }, }, chest = { { ...
gpl-2.0
hackpascal/luci
applications/luci-app-p910nd/luasrc/model/cbi/p910nd.lua
78
1340
-- Copyright 2008 Yanira <forum-2008@email.de> -- Copyright 2012 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local uci = luci.model.uci.cursor_state() local net = require "luci.model.network" local m, s, p, b m = Map("p910nd", translate("p910nd - Printer server"), ...
apache-2.0
Invertika/data
scripts/maps/ow-p0023-p0010-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
CCAAHH/creed
plugins/bot_on_off.lua
292
1641
-- 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
seanstermonstr/test
Code/Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/template.lua
21
3004
--- A template preprocessor. -- Originally by [Ricki Lake](http://lua-users.org/wiki/SlightlyLessSimpleLuaPreprocessor) -- -- There are two rules: -- -- * lines starting with # are Lua -- * otherwise, `$(expr)` is the result of evaluating `expr` -- -- Example: -- -- # for i = 1,3 do -- $(i) Hello, Word! -- ...
bsd-3-clause
Invertika/data
scripts/maps/ow-p0022-n0011-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
brenoln/Lactea
riven/Riven.lua
1
2994
require('Inspired') require('IWalk') --Version RivenKiller v1.0.0.0 --Credits Lactea TheWelder Inspired -- Script for Gaming on steroids local myHero = nil local champName = nil local target = nil AddInfo("Riven", "RivenKiller:") AddButton("Q", "Use Q", true) AddButton("W", "Use W", true) AddButton("E", "Use E", tru...
apache-2.0
Invertika/data
scripts/maps/ow-n0010-p0015-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
tobiaswaldvogel/luci
libs/luci-lib-nixio/docsrc/nixio.lua
10
15827
--- General POSIX IO library. module "nixio" --- Look up a hostname and service via DNS. -- @class function -- @name nixio.getaddrinfo -- @param host hostname to lookup (optional) -- @param family address family [<strong>"any"</strong>, "inet", "inet6"] -- @param service service name or port (optional) -- @return ...
apache-2.0
Invertika/data
scripts/maps/ow-n0013-n0011-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
stephen322/prosody-modules
mod_measure_memory/mod_measure_memory.lua
32
1104
module:set_global(); local measure = require"core.statsmanager".measure; local have_pposix, pposix = pcall(require, "util.pposix"); local measures = {}; setmetatable(measures, { __index = function (t, k) local m = measure("sizes", "memory."..k); t[k] = m; return m; end }); module:hook("stats-update", function ()...
mit
tobiaswaldvogel/luci
libs/luci-lib-iptparser/luasrc/sys/iptparser.lua
26
10032
--[[ Iptables parser and query library (c) 2008-2009 Jo-Philipp Wich <jow@openwrt.org> (c) 2008-2009 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 the License at http:...
apache-2.0
Invertika/data
scripts/maps/ow-n0017-p0004-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
GoogleFrog/Zero-K
Objects3d/pw_wormhole.lua
14
1111
-- Spring metadata for uar_emp.obj uar_emp = { pieces = { base = { offset = {0.00, 0.00, 0.00}, pannel1 = { offset = {18.07, 51.31, -0.00}, }, pannel2 = { offset = {-18.07, 51.31, -0.00}, }, turret = { offset = {0.00, 0.00, 0.00}, cylinder = { offset = {0.00, 0.00, 0.00}, ...
gpl-2.0
Invertika/data
scripts/maps/ow-n0001-n0016-o0000.lua
1
1401
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
GoogleFrog/Zero-K
effects/scanner.lua
17
1442
return { ["scanner_ping"] = { usedefaultexplosions = false, groundflash = { alwaysvisible = false, circlealpha = 0.1, circlegrowth = 3.6, flashalpha = 0.1, flashsize = 600, ttl = 90, color = { [1] = 0, ...
gpl-2.0
hackpascal/luci
modules/luci-base/luasrc/sgi/cgi.lua
81
1688
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. exectime = os.clock() module("luci.sgi.cgi", package.seeall) local ltn12 = require("luci.ltn12") require("nixio.util") require("luci.http") require("luci.sys") require("luci.dispatcher") -- Limited source to av...
apache-2.0
stephen322/prosody-modules
mod_mam_archive/mod_mam_archive.lua
33
11488
-- Prosody IM -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local get_prefs = module:require"mod_mam/mamprefs".get; local set_prefs = module:require"mod_mam/mamprefs".set; local rsm = module:require "mod_mam/rsm"; local jid_bare = require "util.jid...
mit
GoogleFrog/Zero-K
LuaUI/Widgets/gui_chili_endgraph.lua
4
10078
--[[ TO DO: Add amount label when mouseover line on graph (e.g to see exact metal produced at a certain time), Implement camera control to pan in the background while viewing graph, Add minimize option Come up with better way of handling specs, active players and players who died (currently doesn't show player...
gpl-2.0
dvdvideo1234/wire
lua/entities/gmod_wire_gpu/init.lua
3
12069
-- Load shared/clientside stuff AddCSLuaFile("cl_init.lua") AddCSLuaFile("cl_gpuvm.lua") AddCSLuaFile("shared.lua") include("shared.lua") DEFINE_BASECLASS("base_wire_entity") ENT.WireDebugName = "ZGPU" -------------------------------------------------------------------------------- function ENT:Initialize() -- Ph...
apache-2.0
Invertika/data
scripts/maps/ow-p0006-n0011-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0