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
USABOT6/usabot
plugins/yoda.lua
642
1199
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function request(text) local api = "https://yoda.p.mashape.com/yoda?" text = ...
gpl-2.0
Invertika/data
scripts/maps/ow-p0017-n0016-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
nikwrt/openwrt
package/uci/trigger/modules/base.lua
41
1441
module("trigger.base", package.seeall) require("uci.trigger") uci.trigger.add { { id = "dnsmasq_restart", title = "Restart dnsmasq", package = "dhcp", action = uci.trigger.service_restart("dnsmasq"), }, { id = "dropbear_restart", title = "Restart dropbear", package = "dropbear", action = uci.trigger...
gpl-2.0
dvdvideo1234/wire
lua/entities/gmod_wire_egp/lib/egplib/objectcontrol.lua
6
9186
-------------------------------------------------------- -- Objects -------------------------------------------------------- local EGP = EGP EGP.Objects = {} EGP.Objects.Names = {} EGP.Objects.Names_Inverted = {} -- This object is not used. It's only a base EGP.Objects.Base = {} EGP.Objects.Base.ID = 0 EGP.Objects.Ba...
apache-2.0
jcai1/WowCoding
weakauras/saviors-boon/wa.d.actions.init.custom.lua
1
2472
-------------------------------------------------------------- -- Init local A = aura_env local R = WeakAuras.regions[A.id].region local playerGUID -- Stored UnitGUID("player") local trinketID = 124518 -- Item ID for Libram of Vindication local equipped -- Whether the trinket i...
mit
tobiaswaldvogel/luci
applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdhna.lua
5
1639
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de> -- Licensed to the public under the Apache License 2.0. local uci = require "luci.model.uci".cursor() local ipv = uci:get_first("olsrd", "olsrd", "IpVersion", "4") mh = Map("olsrd", translate("OLSR - HNA-A...
apache-2.0
Meoo/premake-core
src/base/oven.lua
1
18453
-- -- base/oven.lua -- -- Process the solutions, projects, and configurations that were specified -- by the project script, and make them suitable for use by the exporters -- and actions. Fills in computed values (e.g. object directories) and -- optimizes the layout of the data for faster fetches. -- -- Copyright (c) 2...
bsd-3-clause
GoogleFrog/Zero-K
LuaUI/Widgets/chili_new/headers/links.lua
35
3350
--//============================================================================= --// SHORT INFO WHY WE DO THIS: --// Cause of the reference based system in lua we can't --// destroy objects yourself, instead we have to tell --// the GarbageCollector somehow that an object isn't --// in use anymore. --// Now we hav...
gpl-2.0
remakeelectric/luci
modules/luci-base/luasrc/tools/status.lua
2
5701
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.tools.status", package.seeall) local uci = require "luci.model.uci".cursor() local ipc = require "luci.ip" local function dhcp_leases_common(family) local rv = { } local nfs = require "nixio.fs"...
apache-2.0
tonibm19/cuberite
Server/Plugins/APIDump/Hooks/OnSpawnedMonster.lua
44
1024
return { HOOK_SPAWNED_MONSTER = { CalledWhen = "After a monster is spawned in the world", DefaultFnName = "OnSpawnedMonster", -- also used as pagename Desc = [[ This hook is called after the server spawns a {{cMonster|monster}}. This is an information-only callback, the monster is already spawned by the ...
apache-2.0
MeteoricGames/pioneer
data/modules/DeliverPackage/DeliverPackage.lua
1
17809
-- Copyright © 2008-2014 Pioneer Developers. See AUTHORS.txt for details -- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt local Engine = import("Engine") local Lang = import("Lang") local Game = import("Game") local Space = import("Space") local Comms = import("Comms") local Event = import("Event") lo...
gpl-3.0
Invertika/data
scripts/maps/ow-n0010-n0013-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
nightcj/mmo
3rd/lpeg/test.lua
33
44530
#!/usr/bin/env lua -- $Id: test.lua,v 1.109 2015/09/28 17:01:25 roberto Exp $ -- require"strict" -- just to be pedantic local m = require"lpeg" -- for general use local a, b, c, d, e, f, g, p, t -- compatibility with Lua 5.2 local unpack = rawget(table, "unpack") or unpack local loadstring = rawget(_G, "loads...
mit
splay-project/splay
applications/dist-db/dist-db-client-put-object.lua
2
1838
#!/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
seanstermonstr/test
Code/Tools/BuildScripts/lua-lib/penlight-1.0.2/tests/test-pylib.lua
11
1759
-- test-pylib.lua local List = require 'pl.List' require 'pl.stringx'.import() local text = require 'pl.text' local Template = text.Template local asserteq = require 'pl.test' . asserteq l = List{10,20,30,40,50} s = List{1,2,3,4,5} -- test using: lua pylist.lua local lst = List:new() lst:append(10) lst:extend{20,30,4...
bsd-3-clause
Invertika/data
scripts/maps/ow-o0000-p0023-o0000.lua
1
1403
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
stephen322/prosody-modules
mod_conformance_restricted/mod_conformance_restricted.lua
32
1030
-- Prosody IM -- Copyright (C) 2012 Florian Zeitz -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st = require "util.stanza"; local jid = require "util.jid"; module:hook("message/host", function (event) local origin, stanza = event.origin, e...
mit
hackpascal/luci
applications/luci-app-firewall/luasrc/tools/firewall.lua
63
5812
-- Copyright 2011-2012 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.tools.firewall", package.seeall) local ut = require "luci.util" local ip = require "luci.ip" local nx = require "nixio" local translate, translatef = luci.i18n.translate, luci.i18n.translatef...
apache-2.0
Meoo/premake-core
tests/actions/vstudio/vc200x/test_assembly_refs.lua
5
1521
-- -- tests/actions/vstudio/vc200x/test_assembly_refs.lua -- Validate managed assembly references in Visual Studio 2010 C/C++ projects. -- Copyright (c) 2013 Jason Perkins and the Premake project -- local suite = test.declare("vs200x_assembly_refs") local vc200x = premake.vstudio.vc200x -- -- Setup -- local sln,...
bsd-3-clause
zjohn4/PD2-lua-src
lib/units/syncunitdata.lua
1
1474
SyncUnitData = SyncUnitData or class() function SyncUnitData:init( unit ) self._unit = unit end function SyncUnitData:save( data ) local state = { lights = {} } for _,light in ipairs( self._unit:get_objects_by_type( Idstring( "light" ) ) ) do local l = { name = light:name(), enabled = light:e...
gpl-2.0
jpetrie/quip
Projects/Quip/Runtime/syntax/cmake.lua
1
2499
local L = require("lpeg") local S = require("syntax") local command = S.token("Preprocessor", L.P("add_compile_options") + L.P("add_custom_command") + L.P("add_custom_target") + L.P("add_definitions") + L.P("add_dependencies") + L.P("add_executable") + L.P("add_library") + L.P("add_subdirectory") + L...
mit
Invertika/data
scripts/maps/iw-selphi-timlet-ipsum-house-o00-o00-n01.lua
2
1440
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
StaymanHou/Hacking-the-Pentest-Tutor-Game
mods/std/outcomes/medusa.lua
1
1447
if Outcome == nil then Outcome = require "lib.Outcome" end if Configuration == nil then Configuration = require "lib.Configuration" end if Host == nil then Host = require "lib.Host" end local conf_ruwp = Configuration.lookup("root user weak password") local conf_rrule = Configuration.lookup("remote root user log...
apache-2.0
Invertika/data
scripts/maps/ow-p0013-p0010-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
stephen322/prosody-modules
mod_couchdb/couchdb/json.lib.lua
32
8634
local type = type; local t_insert, t_concat, t_remove = table.insert, table.concat, table.remove; local s_char = string.char; local tostring, tonumber = tostring, tonumber; local pairs, ipairs = pairs, ipairs; local next = next; local error = error; local newproxy, getmetatable = newproxy, getmetatable; local...
mit
Uberi/Minetest-WorldEdit
worldedit_commands/init.lua
1
55311
minetest.register_privilege("worldedit", "Can use WorldEdit commands") worldedit.pos1 = {} worldedit.pos2 = {} worldedit.set_pos = {} worldedit.inspect = {} worldedit.prob_pos = {} worldedit.prob_list = {} local safe_region, reset_pending = dofile(minetest.get_modpath("worldedit_commands") .. "/safe.lu...
agpl-3.0
zjohn4/PD2-lua-src
lib/units/civilians/civilianbrain.lua
1
4137
require "lib/units/enemies/cop/logics/CopLogicBase" require "lib/units/civilians/logics/CivilianLogicInactive" require "lib/units/civilians/logics/CivilianLogicIdle" require "lib/units/civilians/logics/CivilianLogicFlee" require "lib/units/civilians/logics/CivilianLogicSurrender" require "lib/units/civilians/logics/Civ...
gpl-2.0
zjohn4/PD2-lua-src
lib/tweak_data/weapontweakdata.lua
1
204314
require "lib/tweak_data/WeaponFactoryTweakData" WeaponTweakData = WeaponTweakData or class() function WeaponTweakData:init() self:_create_table_structure() -- Leave this alone self:_init_data_npc_melee() self:_init_data_player_weapons() self:_init_data_m4_npc() self:_init_data_m14_npc() self:_init_data_m14_...
gpl-2.0
GoogleFrog/Zero-K
LuaRules/draw.lua
8
1671
-- $Id: draw.lua 4534 2009-05-04 23:35:06Z licho $ if (select == nil) then select = function(n,...) local arg = arg if (not arg) then arg = {...}; arg.n = #arg end return arg[((n=='#') and 'n')or n] end end do -- wrap print() in a closure local origPrint = print print = function(arg1,...) ...
gpl-2.0
Invertika/data
scripts/maps/ow-n0012-n0022-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
tobiaswaldvogel/luci
applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua
7
3635
-- 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. local dsp = require "luci.dispatcher" local uci = require "uci" local m, mwan_rule, src_ip, src_port, dest_ip, dest_port, proto, use_policy functio...
apache-2.0
zjohn4/PD2-lua-src
core/lib/system/coreengineaccess.lua
1
2907
--[[ C o r e E n g i n e A c c e s s ------------------------------- The CoreEngineAccess hides certain Engine functionality so that only Core have access to it. The access control is not strict, after all it is only Lua, but Gameplay must avoid accessing the restricted functionality. ]]-- core:module( "CoreEngi...
gpl-2.0
dkogan/sysdig
userspace/sysdig/chisels/stdin.lua
2
1292
--[[ 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
zhityer/zhityer
plugins/youtube.lua
644
1722
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end function get_yt_data (yt_code) local url = 'https://www.googleapis.com/yo...
gpl-2.0
GoogleFrog/Zero-K
effects/gundam_verticalbomb.lua
25
7130
-- verticalbomb return { ["verticalbomb"] = { dirta = { air = true, class = [[CSimpleParticleSystem]], count = 1, properties = { airdrag = 0.7, alwaysvisible = true, colormap = [[0.1 0.1 0.1 1.0 0.5...
gpl-2.0
jcai1/WowCoding
weakauras/nightstalker-rupture/table.lua
1
2909
{ d = { actions = { init = { custom = "local A = aura_env\nlocal icon\n\nlocal ruptures = {first = 1, last = 1}\nlocal rupturesLastCleaned = 0\n\nlocal function addRupture(r)\n ruptures[ruptures.last] = r\n ruptures.last = ruptures.last + 1\nend\n\nlocal function cleanRuptures()\n local now...
mit
GoogleFrog/Zero-K
LuaUI/Widgets/gui_epicmenu.lua
1
85991
function widget:GetInfo() return { name = "EPIC Menu", desc = "v1.438 Extremely Powerful Ingame Chili Menu.", author = "CarRepairer", date = "2009-06-02", --2014-05-3 license = "GNU GPL, v2 or later", layer = -100001, handler = true, experimental = false, ...
gpl-2.0
BloodyKnight/nginx-openresty-windows
LuaJIT-2.1-20150622/dynasm/dasm_x86.lua
116
58970
------------------------------------------------------------------------------ -- DynASM x86/x64 module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ local x64 = x64 -- Module i...
bsd-2-clause
Invertika/data
scripts/maps/ow-p0019-n0009-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-n0023-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-httpclient/luasrc/httpclient.lua
62
9481
-- Copyright 2009 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. require "nixio.util" local nixio = require "nixio" local ltn12 = require "luci.ltn12" local util = require "luci.util" local table = require "table" local http = require "luci.http.protocol" local date = requir...
gpl-2.0
Invertika/data
scripts/maps/ow-p0020-p0010-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/gui_build_eta.lua
3
7572
-- $Id: gui_build_eta.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: gui_build_eta.lua -- brief: display estimated time of arrival for builds -- auth...
gpl-2.0
Invertika/data
scripts/maps/ow-p0013-n0020-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
zjohn4/PD2-lua-src
core/lib/units/coreeditablegui.lua
1
2605
CoreEditableGui = CoreEditableGui or class() function CoreEditableGui:init( unit ) self._unit = unit self._text = self._text or "Default Text" self._cull_distance = self._cull_distance or 5000 self._sides = self._sides or 1 self._gui_movie = self._gui_movie or "default_text" self._gui_object = self._gui_objec...
gpl-2.0
teleofis/OpenWRT
feeds/luci/applications/luci-app-olsr/luasrc/controller/olsr.lua
36
9890
module("luci.controller.olsr", package.seeall) local neigh_table = nil local ifaddr_table = nil function index() local ipv4,ipv6 if nixio.fs.access("/etc/config/olsrd") then ipv4 = 1 end if nixio.fs.access("/etc/config/olsrd6") then ipv6 = 1 end if not ipv4 and not ipv6 then return end require("luci.mo...
gpl-2.0
zjohn4/PD2-lua-src
lib/units/civilians/logics/civilianlogicescort.lua
1
11182
----------------------------------------------------------------------------- -- ************* ESCORT LOGIC ******************* ----------------------------------------------------------------------------- CivilianLogicEscort = class( CopLogicBase ) function CivilianLogicEscort.enter( data, new_logic_name, enter_para...
gpl-2.0
bestofkeeperbot/yourkeeperbot
plugins/giphy.lua
633
1796
-- Idea by https://github.com/asdofindia/telegram-bot/ -- See http://api.giphy.com/ do local BASE_URL = 'http://api.giphy.com/v1' local API_KEY = 'dc6zaTOxFJmzC' -- public beta key local function get_image(response) local images = json:decode(response).data if #images == 0 then return nil end -- No images loca...
gpl-2.0
Invertika/data
scripts/maps/ow-p0013-n0005-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_bowie_tiger.lua
1
2414
if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then SWEP.Spawnable = false print( "csgo_bowie_tiger 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_BASEC...
mit
rchunping/redis-storage
deps/lua/src/jit/bcsave.lua
15
13722
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2012 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
bsd-3-clause
Invertika/data
scripts/maps/ow-p0012-p0006-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
prasoc/BetterUI
lib/LibAddonMenu-2.0/controls/custom.lua
10
1334
--[[customData = { type = "custom", reference = "MyAddonCustomControl", --(optional) unique name for your control to use as reference refreshFunc = function(customControl) end, --(optional) function to call when panel/controls refresh width = "full", --or "half" (optional) } ]] local widgetVersion = 6 local LAM = ...
mit
Invertika/data
scripts/maps/ow-p0004-n0021-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-p0005-p0008-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
GoogleFrog/Zero-K
effects/nuke_300.lua
25
15829
-- nuke_300_seacloud_topcap -- nuke_300_landcloud_ring -- nuke_300_landcloud_topcap -- nuke_300_landcloud -- nuke_300_seacloud -- nuke_300_landcloud_pillar -- nuke_300 -- nuke_300_seacloud_cap -- nuke_300_landcloud_cap -- nuke_300_seacloud_pillar -- nuke_300_seacloud_ring return { ["nuke_300_seacloud_topcap"] = { ...
gpl-2.0
zjohn4/PD2-lua-src
lib/network/base/session_states/hoststatebase.lua
1
6549
HostStateBase = HostStateBase or class() ------------------------------------------------------------------ function HostStateBase:enter( data, enter_params ) end ------------------------------------------------------------------ function HostStateBase:exit( data, name, enter_params ) end -------------------------...
gpl-2.0
smikail/salibnew
plugins/admin.lua
6
6246
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(rec...
gpl-2.0
stephen322/prosody-modules
mod_muc_ban_ip/mod_muc_ban_ip.lua
32
1765
module:set_global(); local jid_bare = require "util.jid".bare; local st = require "util.stanza"; local xmlns_muc_user = "http://jabber.org/protocol/muc#user"; local ip_bans = module:shared("bans"); local full_sessions = prosody.full_sessions; local function ban_ip(session, from) local ip = session.ip; if not ip th...
mit
splay-project/splay
daemon/src/lua/testcases/test_splaylog.lua
2
1200
log = require"splay.log" assert(log.global_filter) -- function: 0x7faec94060b0 assert(log.global_out) -- function: 0x7faec940eb20 assert(log.global_write) -- function: 0x7faec940e910 assert(log.global_level) -- 3 assert(log.new) -- function: 0x7faec940e620 local l_o = log.new(5, "[inf-logger]") --assert(log._DESCRIPTI...
gpl-3.0
zjohn4/PD2-lua-src
lib/managers/dialogs/xbox360playerdialog.lua
1
1080
core:module( "SystemMenuManager" ) require "lib/managers/dialogs/PlayerDialog" Xbox360PlayerDialog = Xbox360PlayerDialog or class( PlayerDialog ) function Xbox360PlayerDialog:init( manager, data ) PlayerDialog.init( self, manager, data ) --[[ Used variables: self._show_time = nil ]] end function Xbox360PlayerD...
gpl-2.0
stuart-warren/.dotfiles
.config/nvim/lua/user/whichkey.lua
1
10275
local status_ok, which_key = pcall(require, "which-key") if not status_ok then return end local setup = { plugins = { marks = true, -- shows a list of your marks on ' and ` registers = true, -- shows your registers on " in NORMAL or <C-r> in INSERT mode spelling = { enabled = true, -- enabling th...
mit
splay-project/splay
tools/scripts/planetlab_utils/splay_pl_pack/splayd_planetlab/splayd/modules/splay/log.lua
2
4689
--[[ 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
daviddwk/TreySimulator3
luaEntities/basketBallHoop.lua
1
1039
function create(x, y) entity = getNewEntity("baseLuaEntity") sizeMultiplier = getGlobalValue("sizeMultiplier") startEntityAnimation(entity, "basketBallHoop") setEntityLabel(entity, "basketBallHoop") setEntityX(entity, x * sizeMultiplier + 1) setEntityY(entity, y * sizeMultiplier + 1) addEnti...
bsd-3-clause
10headless/bump.lua
bump.lua
1
17947
local bump = { _VERSION = 'bump v2.0.1', _URL = 'https://github.com/kikito/bump.lua', _DESCRIPTION = 'A collision detection library for Lua', _LICENSE = [[ MIT LICENSE Copyright (c) 2013 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining a ...
mit
Invertika/data
scripts/maps/ow-n0021-p0021-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/cocos/framework/extends/UIEditBox.lua
57
1442
--[[ Copyright (c) 2011-2014 chukong-inc.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
apache-2.0
dvdvideo1234/wire
lua/entities/gmod_wire_soundemitter.lua
3
5114
--[[ The Wire Sound Emitter emits a sound whose parameters can be tweaked. See http://wiki.garrysmod.com/page/Category:CSoundPatch --]] AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Sound Emitter" ENT.WireDebugName = "Sound Emitter" if CLIENT then return end local DefaultSamples...
apache-2.0
giuseppeM99/Utility-Bot
plugins/id.lua
1
6764
local function megagroupcb(cb_extra, success, result) local oldresult = cb_extra.result local channel = {} local amisure = true channel.title = oldresult.title channel.id = "-100"..oldresult.peer_id channel.username = "@"..oldresult.username if success == 0 then channel.type = "broadcast" else for...
gpl-3.0
tobiaswaldvogel/luci
libs/luci-lib-httpclient/luasrc/httpclient/receiver.lua
78
5842
-- Copyright 2009 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. require "nixio.util" local nixio = require "nixio" local httpc = require "luci.httpclient" local ltn12 = require "luci.ltn12" local print, tonumber, require, unpack = print, tonumber, require, unpack module "l...
apache-2.0
StaymanHou/Hacking-the-Pentest-Tutor-Game
lib/Os.lua
1
1421
require "lib.util" if Vulnerability == nil then Vulnerability = require "lib.Vulnerability" end local Os = {} Os.__index = Os Os.os_name_version_map = {} Os.all = {} function Os.new(name, version) local self = setmetatable({}, Os) self.name = name self.version = version self.vulnerabilities = {} Os.all[#(...
apache-2.0
BloodyKnight/nginx-openresty-windows
lua-resty-websocket-0.05/lib/resty/websocket/client.lua
12
7941
-- Copyright (C) Yichun Zhang (agentzh) -- FIXME: this library is very rough and is currently just for testing -- the websocket server. local wbproto = require "resty.websocket.protocol" local bit = require "bit" local _recv_frame = wbproto.recv_frame local _send_frame = wbproto.send_frame local new_tab = ...
bsd-2-clause
Invertika/data
scripts/maps/ow-p0024-p0014-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-n0014-p0014-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
strukturag/vlc
share/lua/intf/test.lua
91
1909
function assert_url(result, protocol, username, password, host, port, path) assert(result.protocol == protocol) assert(result.username == username) assert(result.password == password) assert(result.host == host) assert(result.port == port) assert(result.path == path) end vlc.msg.inf...
gpl-2.0
tonibm19/cuberite
Server/Plugins/APIDump/Classes/Network.lua
5
20647
-- Network.lua -- Defines the documentation for the cNetwork-related classes return { cNetwork = { Desc = [[ This is the namespace for high-level network-related operations. Allows plugins to make TCP connections to the outside world using a callback-based API.</p> <p> All functions in this nam...
apache-2.0
zjohn4/PD2-lua-src
lib/tweak_data/lootdroptweakdata.lua
1
16300
LootDropTweakData = LootDropTweakData or class() function LootDropTweakData:init( tweak_data ) self.PC_STEP = 10 -- Step between pay classes self.no_drop = {} self.no_drop.BASE = 35 self.no_drop.HUMAN_STEP_MODIFIER = 10 self.joker_chance = 0 -- 1/150 self.level_limit = 1 self.risk_pc_multiplier = { 0, 0,...
gpl-2.0
tehran980/Telehsn
plugins/location.lua
625
1564
-- Implement a command !loc [area] which uses -- the static map API to get a location image -- Not sure if this is the proper way -- Intent: get_latlong is in time.lua, we need it here -- loadfile "time.lua" -- Globals -- If you have a google api key for the geocoding/timezone api do local api_key = nil local base_...
gpl-2.0
chuenlungwang/skynet
examples/login/logind.lua
25
1656
local login = require "snax.loginserver" local crypt = require "crypt" local skynet = require "skynet" local server = { host = "127.0.0.1", port = 8001, multilogin = false, -- disallow multilogin name = "login_master", } local server_list = {} local user_online = {} local user_login = {} function server.auth_han...
mit
tobiaswaldvogel/luci
modules/luci-mod-admin-mini/luasrc/model/cbi/mini/dhcp.lua
2
2748
-- 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 uci = require "luci.model.uci".cursor() local sys = require "luci.sys" local wa = require "luci.tools.webadmin" local fs = require "nixio.fs" m = Map(...
apache-2.0
Invertika/data
scripts/maps/ow-n0005-p0024-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-p0019-p0022-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
TelegramDev/sudorobot
plugins/invite.lua
393
1225
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
lemenkov/wireshark
test/lua/glib_sets.lua
35
6703
-- See Copyright Notice in the file LICENSE local pat2pcre = require "pat2pcre" local luatest = require "luatest" local N = luatest.NT local function norm(a) return a==nil and N or a end local function fill (n, m) local t = {} for i = n, m, -1 do table.insert (t, i) end return t end -- glib doesn't do partia...
gpl-2.0
bestofkeeperbot/yourkeeperbot
plugins/tweet.lua
634
7120
local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json" local client = OAuth.new(consumer_key, consumer_secret, ...
gpl-2.0
detect00r/iranspammers
plugins/tweet.lua
634
7120
local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json" local client = OAuth.new(consumer_key, consumer_secret, ...
gpl-2.0
timroes/my-awesome
rc.lua
1
2415
-- {{{ Include awesome libs -- Standard awesome library awful = require("awful") awful.rules = require("awful.rules") wibox = require("wibox") gears = require("gears") -- Theme handling library beautiful = require("beautiful") -- Notification library naughty = require("naughty") -- }}} -- {{{ Error handling -- Check i...
mit
hackpascal/luci
libs/luci-lib-nixio/docsrc/nixio.fs.lua
156
7907
--- Low-level and high-level filesystem manipulation library. module "nixio.fs" --- Check user's permission on a file. -- @class function -- @name nixio.fs.access -- @param path Path -- @param mode1 First Mode to check ["f", "r", "w", "x"] -- @param ... More Modes to check [-"-] -- @return true --- Strip the dire...
apache-2.0
Invertika/data
scripts/maps/ow-p0011-n0007-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-p0016-n0008-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
ls-/oUF
elements/pvpindicator.lua
6
3834
--[[ # Element: PvP and Honor Level Icons Handles the visibility and updating of an indicator based on the unit's PvP status and honor level. ## Widget PvPIndicator - A `Texture` used to display faction, FFA PvP status or honor level icon. ## Sub-Widgets Badge - A `Texture` used to display the honor badge backgrou...
mit
Invertika/data
scripts/maps/ow-n0017-p0025-o0000.lua
1
1398
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
irr/luajit.io
lib/ljio/http/init.lua
1
26160
-- Copyright (C) Jinhua Luo local C = require("ljio.cdef") local ffi = require("ffi") local tcpd = require("ljio.socket.tcpd") local filter = require("ljio.http.filter") local run_next_header_filter = filter.run_next_header_filter local run_next_body_filter = filter.run_next_body_filter local copy_values = require("...
bsd-2-clause
steveyen/moxilua
protocol_memcached/server_replication.lua
1
9052
local mpb = memcached_protocol_binary local msa = memcached_server.ascii local pack = mpb.pack local SUCCESS = mpb.response_stats.SUCCESS -- Creates a function that replicates a generic msg request across all -- pools. Within each pool, the number of replicas is governed by -- cmd_policy.num_replica. -- -- The cre...
apache-2.0
Invertika/data
scripts/maps/ow-n0010-n0003-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/units/beings/player/playerinventory.lua
1
28856
PlayerInventory = PlayerInventory or class() PlayerInventory._all_event_types = { "add", "equip", "unequip" } PlayerInventory._index_to_weapon_list = { Idstring( "units/payday2/weapons/wpn_npc_c45/wpn_npc_c45" ), Idstring( "units/payday2/weapons/wpn_npc_beretta92/wpn_npc_beretta92" ), Idstring( "units/payday2/wea...
gpl-2.0
Invertika/data
scripts/maps/ow-n0019-p0018-o0000.lua
1
1403
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
zjohn4/PD2-lua-src
lib/managers/menu/items/menuitemmaskexpand.lua
1
10872
core:import("CoreMenuItem") core:import("CoreMenuItemOption") MenuItemMaskExpand = MenuItemMaskExpand or class( MenuItemExpand ) MenuItemMaskExpand.TYPE = "weapon_expand" function MenuItemMaskExpand:init( data_node, parameters ) MenuItemMaskExpand.super.init( self, data_node, parameters ) self._type = MenuItemMas...
gpl-2.0
zjohn4/PD2-lua-src
core/lib/utils/dev/ews/color_picker/corecolorpickerdialog.lua
1
2513
core:module "CoreColorPickerDialog" core:import "CoreClass" core:import "CoreEvent" core:import "CoreEws" core:import "CoreColorPickerPanel" ColorPickerDialog = ColorPickerDialog or CoreClass.mixin(CoreClass.class(), CoreEvent.BasicEventHandling) ColorPickerDialog.EDITOR_TITLE = "Color Picker" function ColorPickerDia...
gpl-2.0
GoogleFrog/Zero-K
LuaRules/Utilities/tablefunctions.lua
4
2667
------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- --deep not safe with circular tables! defaults To false function Spring.Utilities.CopyTable(tableToCopy, deep) local copy = {} for key, value in...
gpl-2.0