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
ashkanpj/fire
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
darkdukey/sdkbox-facebook-sample-v2
samples/Lua/TestLua/Resources/luaScript/MotionStreakTest/MotionStreakTest.lua
7
4942
local streak = nil local titleLabel = nil local subtitleLabel = nil local s = CCDirector:sharedDirector():getWinSize() local scheduler = CCDirector:sharedDirector():getScheduler() local firstTick = nil local function modeCallback(sender) fastMode = streak:isFastMode() if fastMode == true then streak:setFastMode...
mit
Endika/omim
3party/pugixml/scripts/premake4.lua
128
2376
-- Reset RNG seed to get consistent results across runs (i.e. XCode) math.randomseed(12345) local static = _ARGS[1] == 'static' local action = premake.action.current() if string.startswith(_ACTION, "vs") then if action then -- Disable solution generation function action.onsolution(sln) sln.vstudio_configs = p...
apache-2.0
opentechinstitute/luci
libs/nixio/docsrc/nixio.TLSContext.lua
173
1393
--- Transport Layer Security Context Object. -- @cstyle instance module "nixio.TLSContext" --- Create a TLS Socket from a socket descriptor. -- @class function -- @name TLSContext.create -- @param socket Socket Object -- @return TLSSocket Object --- Assign a PEM certificate to this context. -- @class function -- @nam...
apache-2.0
maxrio/packages981213
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
UB12/y_r
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
hfjgjfg/amir2
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
kelvinst/dotfiles
.config/nvim/lua/plugins.lua
1
1338
local fn = vim.fn -- Automatically install packer local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim" if fn.empty(fn.glob(install_path)) > 0 then PACKER_BOOTSTRAP = fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_pat...
mit
JarnoVgr/Mr.Green-MTA-Resources
resources/[gameplay]/gus/gus_s.lua
3
12845
-- playtime recorder addEventHandler("onResourceStart", root, function(resource) if (resourceRoot == source or getResourceName ( resource ) == 'scoreboard') then exports.scoreboard:scoreboardAddColumn("playtime", root, 60, "Playtime", 50) end if getResourceInfo(resource, "type") ~= "map" then outputDebu...
mit
MmxBoy/newbot
bot/utils.lua
15
14995
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
CUCKOO0615/CUCKOO0615_Utils
CUCKOO0615_Utils/LuaJIT-2.0.3/src/jit/bc.lua
74
5606
---------------------------------------------------------------------------- -- LuaJIT bytecode listing module. -- -- Copyright (C) 2005-2014 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -...
lgpl-3.0
opentechinstitute/luci
modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua
35
5096
--[[ LuCI - Lua Configuration Interface Copyright 2009 Jo-Philipp Wich <xm@subsignal.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://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- lo...
apache-2.0
HEYAHONG/nodemcu-firmware
app/lua53/host/tests/utf8.lua
7
5502
-- $Id: utf8.lua,v 1.12 2016/11/07 13:11:28 roberto Exp $ -- See Copyright Notice in file all.lua print "testing UTF-8 library" local utf8 = require'utf8' local function checkerror (msg, f, ...) local s, err = pcall(f, ...) assert(not s and string.find(err, msg)) end local function len (s) return #string.gs...
mit
Zefiros-Software/PlotLib
zpm.lua
1
1909
-- [[ -- @cond ___LICENSE___ -- -- Copyright (c) 2016-2018 Zefiros Software. -- -- 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...
mit
cyanskies/OpenRA
mods/cnc/maps/nod07b/nod07b.lua
7
10317
WaypointGroup1 = { waypoint0, waypoint15 } WaypointGroup2 = { waypoint0, waypoint1, waypoint2, waypoint3, waypoint4, waypoint5, waypoint8 } WaypointGroup3 = { waypoint0, waypoint1, waypoint2, waypoint3, waypoint9, waypoint10, waypoint11, waypoint6, waypoint7 } WaypointGroup4 = { waypoint9, waypoint10, waypoint11, waypo...
gpl-3.0
JarnoVgr/Mr.Green-MTA-Resources
resources/[gameplay]/gcshop/items/items_c.lua
4
6381
local shopTabPanel,items_gui; itemsTab = nil; local perks = {}; player_perks = {}; -------------------- --- Loading GUI ---- -------------------- function onShopInit ( tabPanel ) shopTabPanel = tabPanel if shopTabPanel and not itemsTab then itemsTab = guiCreateTab ( 'GC Perks', shopTabPanel ) if itemsTab then ...
mit
lizh06/premake-core
src/actions/vstudio/_vstudio.lua
5
15436
-- -- _vstudio.lua -- Define the Visual Studio 200x actions. -- Copyright (c) 2008-2013 Jason Perkins and the Premake project -- premake.vstudio = {} local vstudio = premake.vstudio local p = premake local project = p.project local config = p.config -- -- All valid .NET Framework versions, from oldest to newes...
bsd-3-clause
JarnoVgr/Mr.Green-MTA-Resources
resources/[admin]/admin/server/admin_ip2c.lua
4
9653
--[[********************************** * * Multi Theft Auto - Admin Panel * * admin_ip2c.lua * * Original File by lil_Toady * **************************************]] local aCountries = {} local makeCor function getPlayerCountry ( player ) return getIpCountry ( getPlayerIP ( player ) ) end function getIpCountry ( i...
mit
basxto/mg-td
towerdefense/compatibility/3/9/0.lua
1
1156
--if isHuman == nil then -- function isHuman(faction) -- return isAI(faction)==0; -- end --end function isAI(faction) --print(getPlayerName(faction)) local result = 0 --addConsoleLangText('test',getPlayerName(faction),string.upper(string.sub(getPlayerName(faction), 2, 4))) if string.upp...
gpl-3.0
mobarski/sandbox
scite/old/wscite_zzz/lexers/notused/prolog.lua
4
9647
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE. -- Prolog LPeg lexer. local l = require('lexer') local token, word_match = l.token, l.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local M = {_NAME = 'prolog'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Comments. local line...
mit
cooljeanius/CEGUI
projects/premake/BaseSystem/premake.lua
2
1837
-- -- CEGUIBase premake script -- cegui_dynamic("CEGUIBase") package.files = { matchfiles(rootdir.."cegui/src/*.cpp"), matchfiles(rootdir.."cegui/include/*.h"), matchfiles(rootdir.."cegui/src/elements/*.cpp"), matchfiles(rootdir.."cegui/include/elements/*.h"), matchfiles(rootdir.."cegui/src/falaga...
gpl-3.0
daurnimator/lua-http
spec/hsts_spec.lua
1
3646
describe("hsts module", function() local http_hsts = require "http.hsts" it("doesn't store ip addresses", function() local s = http_hsts.new_store() assert.falsy(s:store("127.0.0.1", { ["max-age"] = "100"; })) assert.falsy(s:check("127.0.0.1")) end) it("can be cloned", function() local s = http_hsts.ne...
mit
minecraftgame-andrd/minecraftgame
plugins/banhammer.lua
60
11556
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
Winless/NPLRuntime
Server/trunk/LuaJIT/src/jit/dis_arm.lua
88
19364
---------------------------------------------------------------------------- -- LuaJIT ARM disassembler module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -...
gpl-2.0
cooljeanius/CEGUI
projects/premake/samples.lua
1
1738
-- -- CEGUI premake script -- -- omit some things if we are part of a single solution along with the core libs if not CEGUI_CORE_LIBRARY_SOLUTION then require("helpers") require("config") -- -- project setup -- project.name = "CEGUISamples" project.bindir = rootdir.."bin" project.libd...
gpl-3.0
e-lab/vid2img
Codes/crop.lua
1
5289
-------------------------------------------------------------------------------- -- Revised version -- This version of program is revised based on Alf's early version -- This version is used for the interface of lua version vid2img -- See README for more information -- Jarvis Du -- Alfredo Canziani, Apr 16 ------------...
bsd-3-clause
kyuu/dynrpg-rpgss
assets/Scripts/extensions/pathfinder/jumper/core/path.lua
6
4741
--- <strong>The <code>path</code> class</strong>. -- The `path` class represents a path from a `start` location to a `goal`. -- An instance from this class would be a result of a request addressed to `pathfinder:getPath`. -- A `path` is basically a set of `nodes`, aligned in a specific order, defining a way to follow f...
mit
lizh06/premake-core
modules/d/tools/gdc.lua
7
6537
-- -- d/tools/gdc.lua -- Provides GDC-specific configuration strings. -- Copyright (c) 2013-2015 Andrew Gough, Manu Evans, and the Premake project -- premake.tools.gdc = { } local gdc = premake.tools.gdc local project = premake.project local config = premake.config local d = premake.modules.d -- -- Set def...
bsd-3-clause
uonline/debut
src/day1/act2/lords_lake/artist.person.lua
1
4227
artist = obj { nam = 'Художник'; -- "мужчина в широкополой шляпе с кучей невнятных перьев на бритой голове." (мужчина, на бритой голове которого красуется широкополая шляпа с кучей невнятных перьев) dsc = [[ По колено в воде перед мольбертом стоит {художник}: экспрессивного вида мужчина в широкополой шляпе с куч...
gpl-3.0
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/AttachNode.lua
11
1467
-------------------------------- -- @module AttachNode -- @extend Node -- @parent_module cc -------------------------------- -- creates an AttachNode<br> -- param attachBone The bone to which the AttachNode is going to attach, the attacheBone must be a bone of the AttachNode's parent -- @function [parent=#AttachNode]...
mit
tianxiawuzhei/cocos-quick-cpp
publibs/libzq/auto_buildings/api/ZQCustomAction.lua
2
1165
-------------------------------- -- @module ZQCustomAction -- @extend ActionInterval -- @parent_module zq -------------------------------- -- initializes the action -- @function [parent=#ZQCustomAction] initWithDuration -- @param self -- @param #float duration -- @return bool#bool ret (return value: bool) ...
mit
opentechinstitute/luci
contrib/luasrcdiet/lua/llex.lua
122
12449
--[[-------------------------------------------------------------------- llex.lua: Lua 5.1 lexical analyzer in Lua This file is part of LuaSrcDiet, based on Yueliang material. Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net> The COPYRIGHT file describes the conditions under which this software may be d...
apache-2.0
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/EaseCircleActionOut.lua
9
1409
-------------------------------- -- @module EaseCircleActionOut -- @extend ActionEase -- @parent_module cc -------------------------------- -- brief Create the action with the inner action.<br> -- param action The pointer of the inner action.<br> -- return A pointer of EaseCircleActionOut action. If creation failed, ...
mit
CUCKOO0615/CUCKOO0615_Utils
CUCKOO0615_Utils/LuaJIT-2.0.3/src/jit/dis_arm.lua
74
19364
---------------------------------------------------------------------------- -- LuaJIT ARM disassembler module. -- -- Copyright (C) 2005-2014 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -...
lgpl-3.0
LuaDist2/oil
lua/loop/cached.lua
13
10017
-------------------------------------------------------------------------------- ---------------------- ## ##### ##### ###### ----------------------- ---------------------- ## ## ## ## ## ## ## ----------------------- ---------------------- ## ## ## ## ## ###### --------------------...
mit
Zefiros-Software/ZPM
src/common/ser.lua
1
2035
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- 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, ...
mit
moodlIMyIl/DEVTSHAKE
libs/dateparser.lua
502
6212
local difftime, time, date = os.difftime, os.time, os.date local format = string.format local tremove, tinsert = table.remove, table.insert local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable local dateparser={} --we shall use the host OS's...
gpl-2.0
tinydanbo/Impoverished-Starfighter
game/stages/stage2.lua
1
9890
KamikazeDrone = require("game.enemies.kamikazeDrone") MediumFrigate = require("game.enemies.mediumFrigate") SineDrone = require("game.enemies.sineDrone") LightTurretAsteroid = require("game.enemies.lightTurretAsteroid") LightDestroyer = require("game.enemies.lightDestroyer") SwoopInDrone = require("game.enemies.swoopIn...
mit
moodlIMyIl/DEVTSHAKE
plugins/lock_user.lua
5
1255
--[[ _____ _ _ _ _____ Dev @lIMyIl |_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il | |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a | |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22 |_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI CH > @lTSHAKEl_CH --]] l...
gpl-2.0
cyanskies/OpenRA
mods/cnc/maps/nod02b/nod02b.lua
10
6246
NodUnits = { "bggy", "e1", "e1", "e1", "e1", "e1", "bggy", "e1", "e1", "e1", "bggy" } NodBaseBuildings = { "hand", "fact", "nuke" } Grd2ActorTriggerActivator = { Refinery, Yard } Atk4ActorTriggerActivator = { Guard1 } Atk3ActorTriggerActivator = { Guard4 } Atk6ActorTriggerActivator = { Guard2, Guard3 } HuntActorTrigge...
gpl-3.0
snowplow/snowplow-lua-tracker
src/snowplow/lib/json.lua
1
16915
-- -*- coding: utf-8 -*- -- -- Copyright 2010-2012 Jeffrey Friedl -- http://regex.info/blog/ -- local VERSION = 20111207.5 -- version history at end of file local OBJDEF = { VERSION = VERSION } -- -- Simple JSON encoding in pure Lua. -- http://www.json.org/ -- -- -- JSON = (loadfile "JSON.lua")() -- one-time load of...
apache-2.0
lizh06/premake-core
tests/actions/vstudio/vc2010/test_debug_settings.lua
4
2351
-- -- tests/actions/vstudio/vc2010/test_debug_settings.lua -- Validate handling of the working directory for debugging. -- Copyright (c) 2011-2013 Jason Perkins and the Premake project -- local suite = test.declare("vstudio_vs2010_debug_settings") local vc2010 = premake.vstudio.vc2010 local project = premak...
bsd-3-clause
opentechinstitute/luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/csv.lua
80
1198
--[[ Luci configuration model for statistics - collectd csv plugin configuration (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 a...
apache-2.0
jgehring/pepper
reports/volume.lua
1
5865
--[[ pepper - SCM statistics report generator Copyright (C) 2010-present Jonas Gehring Released under the GNU General Public License, version 3. Please see the COPYING file in the source distribution for license terms and conditions, or see http://www.gnu.org/licenses/. file: commit_volume.lua Stacked bar plot...
gpl-3.0
opentechinstitute/luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/iptables.lua
79
3679
--[[ Luci configuration model for statistics - collectd iptables plugin configuration (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 Lice...
apache-2.0
ZeroNoFun/Gmod-Aperture-science-laboratories
lua/entities/gasl_floor_button_trigger.lua
2
4074
DEFINE_BASECLASS("base_brush") ENT.Spawnable = false ENT.AdminOnly = false ENT.IsPortalButtonTrigger = true ENT.IsPortalButtonEnt = true ENT.DoNotDuplicate = true local IsValid = IsValid local Vector = Vector local Angle = Angle local pairs = pairs local CurTime = CurTime local tobool = tobool local istable = ista...
mit
ioiasff/khp
plugins/isX.lua
605
2031
local https = require "ssl.https" local ltn12 = require "ltn12" local function request(imageUrl) -- 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 api_key = mashape.api_key if ...
gpl-2.0
JarnoVgr/Mr.Green-MTA-Resources
resources/[gameplay]/gc/gc_c.lua
1
6352
local x, y = guiGetScreenSize() local yPos = y/8*6 -- local yPos = y * 0.95 -- local xPos = x * 0.85 local alpha = 0 local FADING_ALPHA = 5 local gc = 0 local fade = 0 local green = 255 local pulse = false local pulseAmount = 30 local pulses = 0 local pulseMaxRepetitions = 3 local pulseDir = "out" local gc_name = "" l...
mit
ZeroNoFun/Gmod-Aperture-science-laboratories
lua/entities/ent_portal_laser.lua
2
9987
AddCSLuaFile( ) ENT.Base = "gasl_base_ent" ENT.RenderGroup = RENDERGROUP_BOTH ENT.AutomaticFrameAdvance = true function ENT:SpawnFunction( ply, trace, ClassName ) if ( !APERTURESCIENCE.ALLOWING.laser && !ply:IsSuperAdmin() ) then ply:PrintMessage( HUD_PRINTTALK, "This entity is blocked" ) return end if ( !trace.H...
mit
HEYAHONG/nodemcu-firmware
app/lua53/host/tests/gc.lua
7
16003
-- $Id: gc.lua,v 1.72 2016/11/07 13:11:28 roberto Exp $ -- See Copyright Notice in file all.lua print('testing garbage collection') local debug = require"debug" collectgarbage() assert(collectgarbage("isrunning")) local function gcinfo () return collectgarbage"count" * 1024 end -- test weird parameters do -- s...
mit
luigiScarso/luatexjit
source/texk/web2c/luatexdir/luajit20/jit/dis_x86.lua
17
29330
---------------------------------------------------------------------------- -- LuaJIT x86/x64 disassembler module. -- -- Copyright (C) 2005-2012 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h --------------------------------------------------------------------------...
gpl-2.0
dmccuskey/dmc-facebook
examples/dmc-facebook-basic/dmc_facebook.lua
4
25261
--====================================================================-- -- dmc_facebook.lua -- -- -- by David McCuskey -- Documentation: http://docs.davidmccuskey.com/display/docs/dmc_facebook.lua --====================================================================-- --[[ Copyright (C) 2013 David McCuskey. All Rig...
mit
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/RepeatForever.lua
11
2364
-------------------------------- -- @module RepeatForever -- @extend ActionInterval -- @parent_module cc -------------------------------- -- Sets the inner action.<br> -- param action The inner action. -- @function [parent=#RepeatForever] setInnerAction -- @param self -- @param #cc.ActionInterval action -- @return ...
mit
Frenzie/koreader-base
spec/unit/spore_spec.lua
7
1951
package.path = "rocks/share/lua/5.1/?.lua;common/?.lua;" .. package.path package.cpath = "rocks/lib/lua/5.1/?.so;common/?.so;" .. package.cpath local service = [[ { "base_url" : "http://services.org:9999/restapi/", "name" : "api", "methods" : { "get_info" : { "path" : "/show", ...
agpl-3.0
shadoalzupedy/shadow
plugins/lock_english.lua
16
1429
--[[ # #ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ #:(( # For More Information ....! # Developer : Aziz < @TH3_GHOST > # our channel: @DevPointTeam # Version: 1.1 #:)) #ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ # ]] lo...
gpl-2.0
dan-f/Soundpipe
modules/data/osc.lua
1
1545
sptbl["osc"] = { files = { module = "osc.c", header = "osc.h", example = "ex_osc.c", }, func = { create = "sp_osc_create", destroy = "sp_osc_destroy", init = "sp_osc_init", compute = "sp_osc_compute", }, params = { mandatory = { ...
mit
mana/manaserv
scripts/lua/npclib.lua
4
3381
---------------------------------------------------------- -- Library for commonly used NPC scripts -- -- -- -- -- -- Any NPC update function or talk function which could -- -- be used for NPCs on mo...
gpl-2.0
opentechinstitute/luci
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/ping.lua
78
1192
--[[ Luci statistics - ping plugin diagram definition (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apach...
apache-2.0
opentechinstitute/luci
modules/base/luasrc/model/cbi/admin_network/proto_static.lua
60
2663
--[[ LuCI - Lua Configuration Interface Copyright 2011 Jo-Philipp Wich <xm@subsignal.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://www.apache.org/licenses/LICENSE-2.0 ]]-- local ma...
apache-2.0
cyanskies/OpenRA
mods/cnc/maps/nod07a/nod07a.lua
5
10517
GDI1 = { teamType = "atk", units = { ['e2'] = 3 }, waypoints = { waypoint0, waypoint1, waypoint2, waypoint14 }, delay = 40 } GDI2 = { teamType = "atk", units = { ['mtnk'] = 2 }, waypoints = { waypoint0, waypoint1, waypoint2, waypoint3, waypoint4, waypoint9 }, delay = 30 } GDI3 = { teamType = "atk", units = { ['e2'] = 4...
gpl-3.0
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/external/lua/luasocket/script/socket/http.lua
31
12343
----------------------------------------------------------------------------- -- HTTP/1.1 client support for the Lua language. -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- ---------------------------------------------------------------------...
mit
Innixma/dex
packs/Dex1/Scripts/defaultLevels/hexagon.lua
2
1286
-- include useful files execScript("utils.lua") execScript("common.lua") execScript("commonpatterns.lua") -- this function adds a pattern to the timeline based on a key function addPattern(mKey) if mKey == 0 then pNickBarrage(math.random(0, 5)) elseif mKey == 1 then pNickDoubleBarrage(math.random(0, 2)) elseif m...
mit
opentechinstitute/luci
modules/admin-full/luasrc/model/cbi/admin_network/network.lua
66
2693
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 h...
apache-2.0
maxrio/packages981213
net/luci-app-squid/files/squid-cbi.lua
95
1822
--[[ LuCI Squid module Copyright (C) 2015, OpenWrt.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://www.apache.org/licenses/LICENSE-2.0 Author: Marko Ratkaj <marko.ratkaj@sartura.hr> ...
gpl-2.0
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/Sprite3DCache.lua
11
1190
-------------------------------- -- @module Sprite3DCache -- @parent_module cc -------------------------------- -- remove the SpriteData from Sprite3D by given the specified key -- @function [parent=#Sprite3DCache] removeSprite3DData -- @param self -- @param #string key -- @return Sprite3DCache#Sprite3DCache self (r...
mit
keplerproject/luarocks
src/luarocks/upload/api.lua
2
8032
local api = {} local cfg = require("luarocks.core.cfg") local fs = require("luarocks.fs") local dir = require("luarocks.dir") local util = require("luarocks.util") local persist = require("luarocks.persist") local multipart = require("luarocks.upload.multipart") local Api = {} local function upload_config_file() ...
mit
starlightknight/darkstar
scripts/globals/weaponskills/howling_fist.lua
10
1496
----------------------------------- -- Howling Fist -- Hand-to-Hand weapon skill -- Skill Level: 200 -- Damage varies with TP. -- Will stack with Sneak Attack. -- Ignores some defense. -- Aligned with the Light Gorget & Thunder Gorget. -- Aligned with the Light Belt & Thunder Belt. -- Element: None -- Modifiers: STR:20...
gpl-3.0
starlightknight/darkstar
scripts/zones/Sea_Serpent_Grotto/npcs/Hurr_the_Betrayer.lua
9
2714
----------------------------------- -- Area: Sea Serpent Grotto -- NPC: Hurr the Betrayer -- Type: Involved in the "Sahagin Key Quest" -- !pos 305.882 26.768 234.279 176 ----------------------------------- local ID = require("scripts/zones/Sea_Serpent_Grotto/IDs") ----------------------------------- function onTrade...
gpl-3.0
gedads/Neodynamis
scripts/globals/weaponskills/jishnus_radiance.lua
10
1694
----------------------------------- -- Jishnu's Radiance -- Archery weapon skill -- Skill level: 357 -- Empyrean Weapon Skill -- RNG Main Job Required -- Aligned with the Thunder & Breeze Gorget. -- Aligned with the Thunder Belt & Breeze Belt. -- Element: -- Modifiers: DEX:60% -- 100%TP 200%TP 300%TP -- 1.75 ...
gpl-3.0
gedads/Neodynamis
scripts/zones/Aht_Urhgan_Whitegate/npcs/Ratihb.lua
3
3197
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Ratihb -- Standard Info NPC -- !pos 75.225 -6.000 -137.203 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); requir...
gpl-3.0
arrayfire/arrayfire_lua
examples/helloworld/helloworld.lua
4
1385
--[[ /******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *****************************************...
bsd-3-clause
gedads/Neodynamis
scripts/zones/RuAun_Gardens/TextIDs.lua
3
1775
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory. FULL_INVENTORY_AFTER_TRADE = 6384; -- You cannot obtain the <item>. Try trading again after sorting your inventory. ITEM_OBTAINED = 6386; ...
gpl-3.0
pichina/skynet
examples/client.lua
67
2101
package.cpath = "luaclib/?.so" package.path = "lualib/?.lua;examples/?.lua" if _VERSION ~= "Lua 5.3" then error "Use lua 5.3" end local socket = require "clientsocket" local proto = require "proto" local sproto = require "sproto" local host = sproto.new(proto.s2c):host "package" local request = host:attach(sproto.n...
mit
starlightknight/darkstar
scripts/zones/West_Ronfaure/npcs/Zovriace.lua
9
41586
----------------------------------- -- Area: West Ronfaure -- NPC: Zovriace -- Type: Patrol NPC -- !pos -436.356 -15.851 -258.168 100 ----------------------------------- local ID = require("scripts/zones/West_Ronfaure/IDs") require("scripts/globals/pathfind") ----------------------------------- local path = { -43...
gpl-3.0
gedads/Neodynamis
scripts/globals/abilities/pets/string_clipper.lua
4
1244
--------------------------------------------------- -- String Clipper --------------------------------------------------- require("scripts/globals/status") require("scripts/globals/settings") require("scripts/globals/automatonweaponskills") --------------------------------------------------- function onMobSkillCheck...
gpl-3.0
starlightknight/darkstar
scripts/globals/spells/bluemagic/blastbomb.lua
12
1701
----------------------------------------- -- Spell: Blastbomb -- Deals fire damage to enemies within area of effect. Additional effect: "Bind" -- Spell cost: 36 MP -- Monster Type: Beastmen -- Spell Type: Magical (Fire) -- Blue Magic Points: 2 -- Stat Bonus: STR+1 -- Level: 18 -- Casting Time: 2.25 seconds -- Recast Ti...
gpl-3.0
starlightknight/darkstar
scripts/globals/abilities/role_reversal.lua
12
1070
----------------------------------- -- Ability: Role Reversal -- Swaps Master's current HP with Automaton's current HP. -- Obtained: Puppetmaster Level 75 -- Recast Time: 2:00 -- Duration: Instant ----------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/...
gpl-3.0
starlightknight/darkstar
scripts/zones/Palborough_Mines/npcs/Mythril_Seam.lua
9
1420
----------------------------------- -- Area: Palborough Mines -- NPC: Mythril Seam -- Involved In Mission: Journey Abroad -- Involved in quest: Rock Racketeer -- !pos -68 -7 173 143 -- Rock Racketeer !pos 210 -32 -63 143 ----------------------------------- require("scripts/globals/npc_util") --------------------------...
gpl-3.0
gedads/Neodynamis
scripts/globals/abilities/feral_howl.lua
58
3525
--------------------------------------------------- -- Ability: Feral Howl -- Terrorizes the target. -- Obtained: Beastmaster Level 75 -- Recast Time: 0:05:00 -- Duration: Apprx. 0:00:01 - 0:00:10 --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status")...
gpl-3.0
gedads/Neodynamis
scripts/zones/Windurst_Walls/npcs/Nine_of_Diamonds.lua
3
1060
----------------------------------- -- Area: Windurst Walls -- NPC: Nine of Diamonds -- Type: Standard NPC -- @zone 239 -- !pos -76.446 -10.822 107.692 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; ----...
gpl-3.0
gedads/Neodynamis
scripts/zones/North_Gustaberg/npcs/Kuleo.lua
3
1881
----------------------------------- -- Area: North Gustaberg -- NPC: Kuleo -- Type: Outpost Vendor -- !pos -586 39 61 106 ----------------------------------- package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/con...
gpl-3.0
disslove85/NOVA1-BOT
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
Maxsteam/4568584657657
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
gedads/Neodynamis
scripts/zones/East_Ronfaure/mobs/Carrion_Worm.lua
3
1042
----------------------------------- -- Area: East Ronfaure -- MOB: Carrion Worm ----------------------------------- require("scripts/globals/fieldsofvalor"); require("scripts/zones/East_Ronfaure/MobIDs"); ----------------------------------- -- onMobDeath ----------------------------------- function onMobDeath(mob, ...
gpl-3.0
starlightknight/darkstar
scripts/zones/Cloister_of_Flames/bcnms/trial-size_trial_by_fire.lua
6
1846
----------------------------------- -- Area: Cloister of Flames -- BCNM: Trial-size Trial by Fire ----------------------------------- local ID = require("scripts/zones/Cloister_of_Flames/IDs") require("scripts/globals/battlefield") require("scripts/globals/quests") ----------------------------------- function onBattle...
gpl-3.0
gedads/Neodynamis
scripts/zones/Dynamis-Xarcabard/mobs/Animated_Knuckles.lua
17
1498
----------------------------------- -- Area: Dynamis Xarcabard -- MOB: Animated Knuckles ----------------------------------- require("scripts/globals/status"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- function onMobEn...
gpl-3.0
starlightknight/darkstar
scripts/zones/The_Eldieme_Necropolis_[S]/npcs/Erlene.lua
9
6416
----------------------------------- -- Area: The Eldieme Necropolis (S) -- NPC: Erlene -- Involved in Quest: "A Little Knowledge" -- !pos 376.936 -39.999 17.914 175 ----------------------------------- local ID = require("scripts/zones/The_Eldieme_Necropolis_[S]/IDs"); require("scripts/globals/keyitems"); require("scri...
gpl-3.0
gedads/Neodynamis
scripts/globals/spells/bluemagic/ice_break.lua
3
2066
----------------------------------------- -- Spell: Ice Break -- Deals ice damage to enemies within range. Additional Effect: "Bind" -- Spell cost: 142 MP -- Monster Type: Arcana -- Spell Type: Magical (Ice) -- Blue Magic Points: 3 -- Stat Bonus: INT+1 -- Level: 50 -- Casting Time: 5.25 seconds -- Recast Time: 33.75 se...
gpl-3.0
focusworld/ghost-bot
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
Maxsteam/4568584657657
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
DEVSTAEM/TAEMNEW
plugins/msg_checks.lua
1
12872
--Begin msg_checks.lua --Begin pre_process function local function pre_process(msg) -- Begin 'RondoMsgChecks' text checks by @rondoozle if is_chat_msg(msg) or is_super_group(msg) then if msg and not is_momod(msg) and not is_whitelisted(msg.from.id) then --if regular user local data = load_data(_config.moder...
gpl-2.0
gedads/Neodynamis
scripts/zones/West_Ronfaure/npcs/Doladepaiton_RK.lua
3
3332
----------------------------------- -- Area: West Ronfaure -- NPC: Doladepaiton, R.K. -- Type: Outpost Conquest Guards -- !pos -448 -19 -214 100 ------------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; -------------------------------------- require("scripts/globals/conquest")...
gpl-3.0
pedro-andrade-inpe/terrame
test/packages/build/tests/Tube.lua
30
1562
------------------------------------------------------------------------------------------- -- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling. -- Copyright (C) 2001-2014 INPE and TerraLAB/UFOP. -- -- This code is part of the TerraME framework. -- This framework is free software; yo...
lgpl-3.0
gedads/Neodynamis
scripts/zones/Beaucedine_Glacier_[S]/npcs/Gray_Colossus_LC.lua
3
1083
----------------------------------- -- Area: Beaucedine Glacier (S) -- NPC: Gray Colossus, L.C. -- Type: Campaign Arbiter -- @zone 136 -- !pos 76.178 -60.763 -48.775 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Beaucedine_Glacier_[S...
gpl-3.0
keplerproject/luarocks
src/luarocks/core/sysdetect.lua
1
10922
-- Detect the operating system and architecture without forking a subprocess. -- -- We are not going for exhaustive list of every historical system here, -- but aiming to cover every platform where LuaRocks is known to run. -- If your system is not detected, patches are welcome! local sysdetect = {} local function he...
mit
gedads/Neodynamis
scripts/globals/mobskills/flame_thrower.lua
15
1345
--------------------------------------------------- -- Flame_Thrower -- Description: Uses a flamethrower that deals Fire damage to players in a fan-shaped area of effect. Additional effect: Plague -- Type: Magical --------------------------------------------- require("scripts/globals/monstertpmoves"); require("scripts/...
gpl-3.0
gedads/Neodynamis
scripts/commands/setmentor.lua
3
1161
--------------------------------------------------------------------------------------------------- -- func: setmentor <MentorMode> <target> -- desc: 0 = Not a mentor, 1 = Unlocked but inactive, 2 = Unlocked & flag on. --------------------------------------------------------------------------------------------------- ...
gpl-3.0
starlightknight/darkstar
scripts/zones/Horlais_Peak/bcnms/carapace_combatants.lua
9
1065
----------------------------------- -- Carapace Combatants -- Horlais Peak BCNM30, Sky Orb -- !additem 1552 ----------------------------------- require("scripts/globals/battlefield") ----------------------------------- function onBattlefieldInitialise(battlefield) battlefield:setLocalVar("loot", 1) end function o...
gpl-3.0
moebooru/moebooru
config/locales/yamljoin.lua
4
2968
-- join two yaml files local yaml = require 'yaml' -- using patched luayaml with is_binary_string disabled =_= local base, patch, level, out = arg[1], arg[2], tonumber(arg[3]) or 1, arg[4] if not (base and patch) then print('Usage: '..arg[0]..' base patch [level=1] [out=stdout]') os.exit(1) end -- load from ...
isc
gedads/Neodynamis
scripts/zones/Western_Altepa_Desert/npcs/relic.lua
3
1892
----------------------------------- -- Area: Western Altepa Desert -- NPC: <this space intentionally left blank> -- !pos -152 -16 20 125 ----------------------------------- package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Western_Altepa_De...
gpl-3.0