repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
metakermit/vlc
share/lua/playlist/france2.lua
113
2115
--[[ $Id$ Copyright © 2008 the VideoLAN team Authors: Antoine Cellerier <dionoea at videolan dot org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at ...
gpl-2.0
GoogleFrog/Zero-K
units/corhurc2.lua
4
5723
unitDef = { unitname = [[corhurc2]], name = [[Phoenix]], description = [[Napalm Bomber]], amphibious = true, buildCostEnergy = 360, buildCostMetal = 360, builder = false, buildPic = [[corhurc2.png]], buildTime = 360, ...
gpl-2.0
Invertika/data
scripts/maps/ow-p0022-p0025-o0000.lua
1
1401
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
Invertika/data
scripts/maps/ow-n0002-n0002-o0000.lua
1
3335
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
seanstermonstr/test
Code/Angel/Libraries/lua-libs/luafilesystem-1.5.0/tests/test.lua
40
4634
#!/usr/local/bin/lua5.1 local tmp = "/tmp" local sep = "/" local upper = ".." require"lfs" print (lfs._VERSION) function attrdir (path) for file in lfs.dir(path) do if file ~= "." and file ~= ".." then local f = path..sep..file print ("\t=> "..f.." <=") local attr = lfs.attributes (f) assert (type(att...
bsd-3-clause
stephen322/prosody-modules
mod_password_policy/mod_password_policy.lua
32
1288
-- Password policy enforcement for Prosody -- -- Copyright (C) 2012 Waqas Hussain -- -- -- Configuration: -- password_policy = { -- length = 8; -- } local options = module:get_option("password_policy"); options = options or {}; options.length = options.length or 8; local st = require "util.stanza"; fu...
mit
mendsley/premake-core
tests/workspace/test_objdirs.lua
16
1906
-- -- tests/workspace/test_objdirs.lua -- Test the workspace unique objects directory building. -- Copyright (c) 2012-2015 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("workspace_objdir") -- -- Setup and teardown -- local wks function suite.setup() p.action.set("test"...
bsd-3-clause
hackpascal/luci
libs/luci-lib-nixio/docsrc/CHANGELOG.lua
68
1043
--- Changes and improvements. module "nixio.CHANGELOG" --- Service Release. -- <ul> -- <li>Added getifaddrs() function.</li> -- <li>Added getsockopt(), setsockopt(), getsockname() and getpeername() -- directly to TLS-socket objects unifying the socket interface.</li> -- <li>Added support for CyaSSL as cryptographical ...
apache-2.0
splay-project/splay
tools/scripts/planetlab_utils/splay_pl_pack/splayd_planetlab/lualibs/lib/mime.lua
118
2433
----------------------------------------------------------------------------- -- MIME support for the Lua language. -- Author: Diego Nehab -- Conforming to RFCs 2045-2049 -- RCS ID: $Id: mime.lua,v 1.29 2007/06/11 23:44:54 diego Exp $ ----------------------------------------------------------------------------- ------...
gpl-3.0
Invertika/data
scripts/maps/ow-p0015-n0009-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
remakeelectric/luci
build/luadoc/doc.lua
78
3419
#!/usr/bin/env lua ------------------------------------------------------------------------------- -- LuaDoc launcher. -- @release $Id: luadoc.lua.in,v 1.1 2008/02/17 06:42:51 jasonsantos Exp $ ------------------------------------------------------------------------------- --local source = debug.getinfo(1).source or "...
apache-2.0
PaulosV/ntopng
scripts/callbacks/minute.lua
2
13933
-- -- (C) 2013-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path if (ntop.isPro()) then package.path = dirs.installdir .. "/pro/scripts/callbacks/?.lua;" .. package.path end require "lua_utils" require "alert_utils" require "graph_utils" require ...
gpl-3.0
linxiulei/sysdig
userspace/sysdig/chisels/proc_exec_time.lua
12
4406
--[[ USAGE: sysdig -c proc_exec_time eg, sysdig -c proc_exec_time # show processes that have finished sysdig -c proc_exec_time disable_colors" # show processes that have finished w/ no colors sysdig -pc -c proc_exec_time # show processes that have finished and container output Copyright (C) 2014 Dr...
gpl-2.0
GoogleFrog/Zero-K
gamedata/modularcomms/weapons/concussion.lua
5
1169
local name = "commweapon_concussion" local weaponDef = { name = [[Concussion Shell]], alphaDecay = 0.12, areaOfEffect = 192, --cegTag = [[gauss_tag_m]], commandfire = true, craterBoost = 1, craterMult = 2, customPa...
gpl-2.0
zhityer/zhityer
plugins/lyrics.lua
695
2113
do local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs' local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5' local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect' local function getInfo(query) print('Getting info of ' .. query) local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY ...
gpl-2.0
bestofkeeperbot/yourkeeperbot
plugins/lyrics.lua
695
2113
do local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs' local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5' local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect' local function getInfo(query) print('Getting info of ' .. query) local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY ...
gpl-2.0
zjohn4/PD2-lua-src
core/lib/utils/dev/tools/material_editor/parameter_widgets/corematerialeditortexture.lua
1
3982
require "core/lib/utils/dev/tools/material_editor/CoreSmartNode" local CoreMaterialEditorParameter = require("core/lib/utils/dev/tools/material_editor/parameter_widgets/CoreMaterialEditorParameter") local CoreMaterialEditorTexture = CoreMaterialEditorTexture or class(CoreMaterialEditorParameter) ---------------------...
gpl-2.0
GoogleFrog/Zero-K
LuaRules/Gadgets/unit_cloak_shield.lua
2
25648
-- $Id: unit_cloak_shield.lua 3605 2008-12-31 08:50:31Z google frog $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: unit_cloak_shield.lua -- brief: adds a cloak-shield command to units ...
gpl-2.0
zjohn4/PD2-lua-src
core/lib/utils/dev/ews/tree_control/coremanagedtreecontrol.lua
1
7202
require "core/lib/utils/dev/ews/tree_control/CoreEWSTreeCtrlTreeNode" CoreManagedTreeControl = CoreManagedTreeControl or class() CoreManagedTreeControl.CHECKBOX_STYLE_STR = "TR_HAS_CHECKBOX" CoreManagedTreeControl.CHECKBOX_UPDATED_EVENT_NAME = "EVT_COMMAND_TREE_CHECKBOX_UPDATED" CoreManagedTreeControl.CHECKBOX_STATE0_...
gpl-2.0
Invertika/data
scripts/maps/ow-p0018-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
lib/tweak_data/soundtweakdata.lua
1
1572
SoundTweakData = SoundTweakData or class() function SoundTweakData:init() self.acoustics = {} self.acoustics.pd2_acoustics_forest = {} self.acoustics.pd2_acoustics_forest.states = { acoustic_flag = "acoustic_forest" } self.acoustics.pd2_acoustics_flat = {} self.acoustics.pd2_acoustics_flat.states = { acoustic...
gpl-2.0
teleofis/OpenWRT
feeds/luci/libs/luci-lib-nixio/axTLS/samples/lua/axssl.lua
176
19286
#!/usr/local/bin/lua -- -- Copyright (c) 2007, Cameron Rich -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, -...
gpl-2.0
hackpascal/luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/admin.lua
57
3150
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" m = Map("system", translate("Router Password"), translate("Changes the administrator password for accessing the device")) s = ...
apache-2.0
TeleMidia/dietncl
dietncl/init.lua
1
1609
--[[ dietncl -- The DietNCL API. Copyright (C) 2013-2017 PUC-Rio/Laboratorio TeleMidia This file is part of DietNCL. DietNCL 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, ...
gpl-2.0
StaymanHou/Hacking-the-Pentest-Tutor-Game
mods/std/actions/openvas.lua
1
1890
require "lib.util" if Action == nil then Action = require "lib.Action" end if Outcome == nil then Outcome = require "lib.Outcome" end local omp_scan = Action.new("omp") omp_scan.outcome = Outcome.lookup("discover open service vulnerabilities") omp_scan.run = function (self, src_host, target_port_and_host) local ...
apache-2.0
Invertika/data
scripts/maps/ow-n0004-p0006-o0000.lua
1
1399
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
chuenlungwang/skynet
lualib/snax/interface.lua
1
2984
local skynet = require "skynet" --[[ 返回一个函数, 这个函数能够从 snax 通配路径下加下名字 name 的 Lua 文件, 并将其中 全局表 accept, response 中的函数, init, exit 函数按照既定的顺序返回. 这个既定顺序就是 {id, group, name, func} 其中 id 是整数并且每个类型都不一样, group 的值为 "accept"、"response"、"system" 中的一个, name 则为这些表中的函数名, init 和 exit 在 "system" 的表中. func 为函数对象. ]] return function (name...
mit
Olivine-Labs/resty-mongol
src/bson.lua
3
5466
local mod_name = (...):match ( "^(.*)%..-$" ) local t_insert = table.insert local t_concat = table.concat local strformat = string.format local strmatch = string.match local strbyte = string.byte local ll = require(mod_name..".ll") local le_uint_to_num = ll.le_uint_to_num local le_int_to_num = ll.le_int_to_num local ...
mit
teleofis/OpenWRT
feeds/luci/applications/luci-app-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua
68
1703
-- Copyright 2011 Manuel Munz <freifunk at somakoma de> -- Licensed to the public under the Apache License 2.0. local uci = require "luci.model.uci".cursor() m = Map("freifunk-policyrouting", translate("Policy Routing"), translate("These pages can be used to setup policy routing for certain firewall zones. ".. "This...
gpl-2.0
PaulosV/ntopng
scripts/lua/get_system_hosts_interaction.lua
8
5364
-- -- (C) 2013-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPHeader('text/json') interface.select(ifname) flows_stats = interface.getFlowsInfo() local debug = false local httpdocs = dirs.installdir..'/httpdocs' loc...
gpl-3.0
Invertika/data
scripts/maps/ow-n0008-n0017-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
remakeelectric/luci
libs/luci-lib-httpprotoutils/luasrc/http/mime.lua
16
2152
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. -- This class provides functions to guess mime types from file extensions and -- vice versa. module("luci.http.mime", package.seeall) require("luci.util") MIME_TYPES = { ["txt"] = "tex...
apache-2.0
hackpascal/luci
build/luadoc/luadoc/lp.lua
175
4389
---------------------------------------------------------------------------- -- Lua Pages Template Preprocessor. -- -- @release $Id: lp.lua,v 1.7 2007/04/18 14:28:39 tomas Exp $ ---------------------------------------------------------------------------- local assert, error, getfenv, loadstring, setfenv = assert, erro...
apache-2.0
gokiburikin/gokilove
tilemap.lua
1
1399
--[[ Generic Tilemap Implementation ]] local tilemap = {} local cell = {} function cell.new(x,y) local newCell = {x = x, y = y} newCell.data = {} function newCell.attach(object) newCell[object] = object end function newCell.detach(object) newCell[object] = nil end return newCell end function tilemap.new()...
mit
hackpascal/luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/ping.lua
69
1137
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("luci_statistics", translate("Ping Plugin Configuration"), translate( "The ping plugin will send icmp echo replies to selected " .. "hosts and measure the roundtrip time for each...
apache-2.0
zjohn4/PD2-lua-src
lib/managers/systemmenumanager.lua
1
22180
-- Documentation: http://ganonbackup/wiki_artistwiki/index.php/DialogManager core:module( "SystemMenuManager" ) core:import( "CoreEvent" ) core:import( "CoreClass" ) -- Normal text dialogs: require "lib/managers/dialogs/GenericDialog" require "lib/managers/dialogs/Xbox360Dialog" require "lib/managers/dialogs/PS3Dialo...
gpl-2.0
zjohn4/PD2-lua-src
core/lib/utils/dev/ews/coreewsdeprecated.lua
1
16336
require "core/lib/utils/dev/ews/CoreExtendedMultichoiceDialog" require "core/lib/utils/dev/ews/CoreCollapseBox" require "core/lib/utils/dev/ews/CoreXMLTextCtrl" require "core/lib/utils/dev/ews/CoreCommandRegistry" CoreEWS = CoreEWS or class() CoreEWS.TIP_MAX_LEN = 512 function CoreEWS.image_path( file_name )...
gpl-2.0
Samake/BomberMan2D
server/manager/BombManagerS.lua
1
1772
--[[ Name: BomberMan2D Filename: BombManagerS.lua Authors: Sam@ke --]] BombManagerS = {} function BombManagerS:constructor(parent) mainOutput("BombManagerS was loaded.") self.mainClass = parent self.gameState = "idle" self.bombs = {} self.m_SetGameState = bind(self.setGameState, self) addEvent("onGameS...
gpl-3.0
jcai1/WowCoding
weakauras/zavinn-xd/wa.d.actions.init.custom.lua
1
2271
local A = aura_env -- local R = WeakAuras.regions[A.id].region local S = WeakAurasSaved.displays[A.id] local xdInterval = 1800 -- Interval between xd's, in seconds local zavinnBTag = "Zavinn#1156" local zavinnID -- Zavinn's presenceID S.lastXd = S.lastXd or 0 -- Time of last xd --...
mit
alishahi/TeleSeed
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
splay-project/splay
daemon/src/lua/modules/splay/test_dns.lua
2
2010
require"splay.base" --[[ Test compatibility of async_dns with LuaSocket's async_dns. socket.dns.toip OUTPUT SYNC_DNS --toip-- alias: ip: 1 77.238.178.122 2 87.248.120.148 OUTPUT ASYNC --toip-- header table: 0x98d86c0 question table: 0x98d8730 answer table: 0x98d8a30 additional table: 0x98d8e60 authority table: 0x9...
gpl-3.0
ugtaems/ugteam
plugins/msg-checks.lua
3
22248
--Begin msg_checks.lua @mohammadrezajiji local TIME_CHECK = 2 local function pre_process(msg) local data = load_data(_config.moderation.data) local chat = msg.to.id local user = msg.from.id local is_channel = msg.to.type == "channel" local is_chat = msg.to.type == "chat" local auto_leave = 'auto_leave_bot' local hash =...
gpl-3.0
linxiulei/sysdig
userspace/sysdig/chisels/topscalls.lua
12
1748
--[[ 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
Invertika/data
scripts/maps/ow-p0013-n0016-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
dvdvideo1234/wire
lua/wire/cpulib.lua
2
65648
-------------------------------------------------------------------------------- -- ZCPU utility & support code -------------------------------------------------------------------------------- local INVALID_BREAKPOINT_IP = 2e7 CPULib = CPULib or {} if CLIENT then -- Sourcecode available as compiled binary CPULib.S...
apache-2.0
tobiaswaldvogel/luci
modules/luci-base/luasrc/model/uci.lua
7
10393
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local os = require "os" local util = require "luci.util" local table = require "table" local setmetatable, rawget, rawset = setmetatable, rawget, rawset local require, getmetatable, assert = require, getme...
apache-2.0
shamazmazum/voxvision
examples/example5.lua
1
3601
vt = voxtrees vr = voxrnd vs = voxsdl function remove_sphere (tree, position) local i,j,k for i=-8,8 do for j=-8,8 do for k=-8,8 do local dist = i*i + j*j + k*k if dist <= 64 then local dot = {position[1]+i, position[2]+j, position[3]+k} tree:d...
bsd-2-clause
zjohn4/PD2-lua-src
core/lib/managers/cutscene/keys/corechangeshadowcutscenekey.lua
1
2265
require "core/lib/managers/cutscene/keys/CoreCutsceneKeyBase" CoreChangeShadowCutsceneKey = CoreChangeShadowCutsceneKey or class(CoreCutsceneKeyBase) CoreChangeShadowCutsceneKey.ELEMENT_NAME = "change_shadow" CoreChangeShadowCutsceneKey.NAME = "Shadow Change" CoreChangeShadowCutsceneKey:register_serialized_attribute("...
gpl-2.0
nightcj/mmo
test/testmysql.lua
28
3810
local skynet = require "skynet" local mysql = require "mysql" local function dump(obj) local getIndent, quoteStr, wrapKey, wrapVal, dumpObj getIndent = function(level) return string.rep("\t", level) end quoteStr = function(str) return '"' .. string.gsub(str, '"', '\\"') .. '"' end ...
mit
teleofis/OpenWRT
feeds/routing/luci-app-bmx7/files/usr/lib/lua/luci/controller/bmx7.lua
3
2287
--[[ Copyright (C) 2011 Pau Escrich <pau@dabax.net> Contributors Jo-Philipp Wich <xm@subsignal.org> Roger Pueyo Centelles <roger.pueyo@guifi.net> 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 ...
gpl-2.0
Invertika/data
scripts/maps/ow-p0005-n0025-o0000.lua
1
1401
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
steveyen/moxilua
protocol_memcached/server_ascii_dict.lua
1
3642
local dict_update_map = { set = function(dict, key, flag, expire, data) dict.tbl[key] = data return true, "STORED" end, add = function(dict, key, flag, expire, data) if dict.tbl[key] then return false, "NOT_STORED" end dict.tbl[key] = data return true, "STORED...
apache-2.0
Invertika/data
scripts/maps/ow-n0013-n0013-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-nut/luasrc/model/cbi/nut_cgi.lua
10
1199
-- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com> -- Licensed to the public under the Apache License 2.0. local m, s, o m = Map("nut_cgi", translate("Network UPS Tools (CGI)"), translate("Network UPS Tools CGI Configuration")) s = m:section(SimpleSection, translate("NUT CGI Access")) s.addremove = f...
apache-2.0
Invertika/data
scripts/maps/ow-p0016-n0003-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
lemenkov/wireshark
test/lua/verify_globals.lua
36
3492
-- verify_globals.lua -- ignore things that change on different machines or every release -- the following items still have to exist, but their values don't have to match local filter = { -- differences by machine "DATA_DIR", "USER_DIR", "package.cpath", "package.path", "package.loaded", "r...
gpl-2.0
Meoo/premake-core
tests/actions/make/cs/test_links.lua
3
1180
-- -- tests/actions/make/cs/test_links.lua -- Tests linking for C# Makefiles. -- Copyright (c) 2013 Jason Perkins and the Premake project -- local suite = test.declare("make_cs_links") local make = premake.make local cs = premake.make.cs local project = premake.project -- -- Setup -- local sln, p...
bsd-3-clause
GoogleFrog/Zero-K
effects/gundam_missile_explosion.lua
26
2926
-- missile_explosion return { ["missile_explosion"] = { dirt = { count = 4, ground = true, properties = { alphafalloff = 2, alwaysvisible = true, color = [[0.2, 0.1, 0.05]], pos = [[r-10 r10, 0, r-10...
gpl-2.0
GoogleFrog/Zero-K
LuaUI/Widgets/COFCtools/TraceScreenRay.lua
4
13390
---------------------------------------------------------------------------- -------------------------Interface--------------------------------------- --this function provide an adjusted TraceScreenRay for null-space outside of the map (by msafwan) --Custom Flags: -- planeToHit = (integer) intersect a custom ground lev...
gpl-2.0
stephen322/prosody-modules
mod_admin_web/admin_web/mod_admin_web.lua
31
9425
-- Copyright (C) 2010 Florian Zeitz -- -- This file is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- -- <session xmlns="http://prosody.im/streams/c2s" jid="alice@example.com/brussels"> -- <encrypted/> -- <compressed/> -- </session> -- <session xmlns="http://prosod...
mit
dvdvideo1234/wire
lua/entities/gmod_wire_expression2/core/player.lua
1
23491
--[[---------------------------------------------------------------------------- Player-Entity support ------------------------------------------------------------------------------]] local IsValid = IsValid local isOwner = E2Lib.isOwner local spawnAlert = {} local runBySpawn = 0 local lastJoined = NULL local lea...
apache-2.0
xDShot/csgo_knives_sweps
lua/weapons/csgo_bayonet_black_laminate.lua
1
2446
if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then SWEP.Spawnable = false print( "csgo_bayonet_black_laminate 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) ) D...
mit
jcai1/WowCoding
weakauras/nightmare-brambles/table.lua
1
3436
{ d = { actions = { init = { custom = "----- EN/06CEN/Nightmare Brambles -----\nlocal A = aura_env\n\nlocal castSound = \"Interface\\\\AddOns\\\\WeakAuras\\\\Media\\\\Sounds\\\\RobotBlip.ogg\"\nlocal refixateSound = \"Interface\\\\AddOns\\\\WeakAuras\\\\PowerAurasMedia\\\\Sounds\\\\kaching.ogg\"\n\n...
mit
Invertika/data
scripts/maps/ow-p0019-p0002-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
threeve/pandoc-spectacle
test/luaunit.lua
1
66260
--[[ luaunit.lua Description: A unit testing framework Homepage: https://github.com/bluebird75/luaunit Development by Philippe Fremy <phil@freehackers.org> Based on initial work of Ryu, Gwang (http://www.gpgstudy.com/gpgiki/LuaUnit) License: BSD License, see LICENSE.txt Version: 3.0 ]]-- local M={} -- privat...
isc
GoogleFrog/Zero-K
units/correap.lua
4
6428
unitDef = { unitname = [[correap]], name = [[Reaper]], description = [[Assault Tank]], acceleration = 0.0237, brakeRate = 0.04786, buildCostEnergy = 850, buildCostMetal = 850, builder = false, buildPic = [[correap.png]]...
gpl-2.0
remakeelectric/luci
modules/luci-mod-admin-full/luasrc/controller/admin/network.lua
2
10812
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2011-2015 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.admin.network", package.seeall) function index() local uci = require("luci.model.uci").cursor() local page page = node("admin...
apache-2.0
jcai1/WowCoding
weakauras/volatile-foam-closest/wa.c[1].actions.init.custom.lua
1
6567
---- ToV/02GUA/Volatile Foam Closest ---- local A = aura_env local guarmColors = { {debuff = "Fiery Phlegm", foam = "Flaming Volatile Foam", color = "Orange", code = "ff8800"}, {debuff = "Salty Spittle", foam = "Briney Volatile Foam", color = "Green", code = "00ffaa"}, {debuff = "Dark Discharge", foam ...
mit
chuenlungwang/skynet
test/testcoroutine.lua
24
1214
local skynet = require "skynet" -- You should use skynet.coroutine instead of origin coroutine in skynet local coroutine = require "skynet.coroutine" local profile = require "profile" local function status(co) repeat local status = coroutine.status(co) print("STATUS", status) skynet.sleep(100) until status == ...
mit
xDShot/csgo_knives_sweps
lua/weapons/csgo_bayonet_fade.lua
1
2415
if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then SWEP.Spawnable = false print( "csgo_bayonet_fade failed to initialize: csgo_baseknife.lua not found. Did you install the main part?" ) return end local TTT = ( GAMEMODE_NAME == "terrortown" or cvars.Bool("csgo_knives_force_ttt", false) ) DEFINE_BASE...
mit
Dual-Boxing/MultiBoxMaster
MultiBoxMaster/libs/AceConfig-3.0/AceConfig-3.0.lua
43
2183
--- AceConfig-3.0 wrapper library. -- Provides an API to register an options table with the config registry, -- as well as associate it with a slash command. -- @class file -- @name AceConfig-3.0 -- @release $Id: AceConfig-3.0.lua 969 2010-10-07 02:11:48Z shefki $ --[[ AceConfig-3.0 Very light wrapper library that co...
mit
Invertika/data
scripts/maps/ow-p0001-p0008-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-p0009-p0003-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
ashkanpj/teleme
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
zjohn4/PD2-lua-src
lib/managers/menu/bookboxgui.lua
1
8210
BookBoxGui = BookBoxGui or class( TextBoxGui ) function BookBoxGui:init( ws, title, config ) config = config or {} config.h = config.h or 310 config.w = config.w or 360 local x,y = ws:size() config.x = config.x or x - config.w config.y = config.y or y - config.h - CoreMenuRenderer.Renderer.border_height -- con...
gpl-2.0
Invertika/data
scripts/maps/ow-n0005-n0010-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
teleofis/OpenWRT
feeds/luci/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/splash_leases.lua
68
1118
-- Copyright 2013 Freifunk Augsburg / Michael Wendland <michael@michiwend.com> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.splash_leases", package.seeall) function rrdargs( graph, plugin, plugin_instance, dtype ) ...
gpl-2.0
remakeelectric/luci
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/splash_leases.lua
68
1118
-- Copyright 2013 Freifunk Augsburg / Michael Wendland <michael@michiwend.com> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.splash_leases", package.seeall) function rrdargs( graph, plugin, plugin_instance, dtype ) ...
apache-2.0
PaulosV/ntopng
scripts/lua/port_details.lua
5
2579
-- -- (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') ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc") dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua...
gpl-3.0
AngellusMortis/am-cc
am-cc/programs/dl.lua
1
1071
--[[ ##name: ]]-- name = "downloader" --[[ ##file: am-cc/programs/dl ##version: ]]-- version = "1.0.0.0" --[[ ##type: program ##desc: downloads file ##detailed: downloads file from URL or pastebin ##images: None ##planned: None ##issues: None ##parameters: None ##usage: dl <pastebin-or-url> --]] local args = {...
mit
GoogleFrog/Zero-K
gamedata/modularcomms/weapons/lightninggun.lua
2
1152
local name = "commweapon_lightninggun" local weaponDef = { name = [[Lightning Gun]], areaOfEffect = 8, craterBoost = 0, craterMult = 0, customParams = { extra_damage_mult = [[0.4]], slot = [[5]], muzzleEffectFire = [[custom:zeus_fire_fx]], }...
gpl-2.0
jcai1/WowCoding
weakauras/touch-of-karma/table.lua
1
3490
{ a = { ["Touch of Karma"] = 651728 }, d = { actions = { init = { custom = "local A = aura_env\nlocal playerGUID = UnitGUID(\"player\")\nlocal legendary\nlocal absorbLeft = 0\n\nlocal function checkLegendary()\n legendary = IsEquippedItem(\"Cenedril, Reflector of Hatred\")\nend\n\ncheckLe...
mit
GoogleFrog/Zero-K
LuaRules/Gadgets/CustomUnitShaders/main.lua
4
13861
-- $Id$ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- author: jK -- -- Copyright (C) 2008,2009,2010. -- Licensed under the terms of the GNU GPL, v2 or later. -- ---------------------------------...
gpl-2.0
teleofis/OpenWRT
feeds/luci/modules/luci-base/luasrc/http/protocol/mime.lua
68
2161
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. -- This class provides functions to guess mime types from file extensions and -- vice versa. module("luci.http.protocol.mime", package.seeall) require("luci.util") MIME_TYPES = { ["txt"]...
gpl-2.0
rchunping/redis-storage
deps/lua/src/host/genminilua.lua
14
11943
---------------------------------------------------------------------------- -- Lua script to generate a customized, minified version of Lua. -- The resulting 'minilua' is used for the build process of LuaJIT. ---------------------------------------------------------------------------- -- Copyright (C) 2005-2012 Mike P...
bsd-3-clause
splay-project/splay
src/osx-installer/PKG_PAYLOAD/SPLAY/lualibs/socket/url.lua
148
10529
----------------------------------------------------------------------------- -- URI parsing, composition and relative URL resolution -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: url.lua,v 1.38 2006/04/03 04:45:42 diego Exp $ ----------------------------------------------------------------------------- ...
gpl-3.0
mohammad2016mr/sed
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...
agpl-3.0
smikail/salibnew
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
techiejohn/SimTools
RandomWeather/Lua/vstruct/ast/Generator.lua
4
4785
local unpackenv = require "vstruct.unpack" local packenv = require "vstruct.pack" local cursor = require "vstruct.cursor" return function() local Generator = {} local source = {} local data = {} local readahead = nil local ra_left = nil local indent = 0 local bitpack = false l...
mit
GoogleFrog/Zero-K
scripts/armtick.lua
1
10110
local base = piece 'base' local head = piece 'head' local rupleg1 = piece 'rupleg1' local rupleg2 = piece 'rupleg2' local rupleg3 = piece 'rupleg3' local lupleg1 = piece 'lupleg1' local lupleg2 = piece 'lupleg2' local lupleg3 = piece 'lupleg3' local lleg3 = piece 'lleg3' local lleg2 = piece 'lleg2' local lleg...
gpl-2.0
Meoo/premake-core
scripts/package.lua
12
4201
--- -- Create a source or binary release package. --- --- -- Helper function: run a command while hiding its output. --- local function execQuiet(cmd, ...) cmd = string.format(cmd, ...) .. " > _output_.log 2> _error_.log" local z = os.execute(cmd) os.remove("_output_.log") os.remove("_error_.log") return ...
bsd-3-clause
PaulosV/ntopng
scripts/lua/pid_stats.lua
10
2910
-- -- (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') mode = _GET["mode"] --l4,l7,host pid = tonumber(_GET["pid"]) name = _GET["name"] host = _GET["host"] local debug =...
gpl-3.0
USABOT6/usabot
plugins/sudo.lua
359
1878
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' yo...
gpl-2.0
Dual-Boxing/MultiBoxMaster
MultiBoxMaster/libs/LibBabble-Inventory-3.0/LibStub/LibStub.lua
43
2196
-- $Id: LibStub.lua 76 2007-09-03 01:50:17Z mikk $ -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info -- LibStub is hereby placed in the Public Domain -- Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke local LIBSTUB_MAJOR, LIBSTU...
mit
nightcj/mmo
service/multicastd.lua
18
5556
local skynet = require "skynet" local mc = require "multicast.core" local datacenter = require "datacenter" local harbor_id = skynet.harbor(skynet.self()) local command = {} local channel = {} local channel_n = {} local channel_remote = {} local channel_id = harbor_id local NORET = {} local function get_address(t, i...
mit
zjohn4/PD2-lua-src
lib/managers/menu/lootdropscreengui.lua
1
16023
LootDropScreenGui = LootDropScreenGui or class() function LootDropScreenGui:init( saferect_ws, fullrect_ws, lootscreen_hud, saved_state ) self._safe_workspace = saferect_ws self._full_workspace = fullrect_ws self._lootscreen_hud = lootscreen_hud self._lootscreen_hud:add_callback( "on_peer_ready", callback( self,...
gpl-2.0
GoogleFrog/Zero-K
effects/barney.lua
25
4610
-- barney_1_1 -- barney -- barney_1 return { ["barney_1_1"] = { groundflash = { circlealpha = 1, circlegrowth = 0, flashalpha = 0.3, flashsize = 36, ttl = 3, color = { [1] = 0.5, [2] = 0.5, [3] = 1, ...
gpl-2.0
strukturag/vlc
share/lua/sd/assembleenationale.lua
91
8388
--[[ $Id$ Copyright © 2012 VideoLAN and AUTHORS Authors: François Revol <revol at free dot 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 version 2 of the License, or (at your op...
gpl-2.0
splay-project/splay
src/osx-installer/PKG_PAYLOAD/SPLAY/lualibs/json.lua
5
18873
--------------- LEO modified !!! ----------------------------------------------------------------------------- -- JSON4Lua: JSON encoding / decoding support for the Lua language. -- json Module. -- Author: Craig Mason-Jones -- Homepage: http://json.luaforge.net/ -- Version: 0.9.20 -- This module is released ...
gpl-3.0
hackpascal/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 ...
apache-2.0