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
virtualopensystems/snabbswitch
src/lib/protocol/tcp.lua
5
4120
module(..., package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") local header = require("lib.protocol.header") local ipsum = require("lib.checksum").ipsum local tcp_header_t = ffi.typeof[[ struct { uint16_t src_port; uint16_t dst_port; uint32_t seq; uint32_t ...
apache-2.0
b03605079/darkstar
scripts/zones/Windurst_Walls/npcs/Chomomo.lua
38
1404
----------------------------------- -- Area: Windurst Walls -- NPC: Chomomo -- Type: Standard NPC -- @pos -1.262 -11 290.224 239 ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts...
gpl-3.0
larsnorbergofficial/DiabolicUI
data/auras.lua
2
6166
local _, Engine = ... -- This database will contain lists of categorized Auras -- for CC, dispellers and so on. -- Note: -- In some cases the spellID of the spell casting the effect is listed, -- while what we would want is the spellID of the applied aura/effect on the target. -- Will need to start a publ...
mit
lyn0328/FrameSynchro
Trunk/Client/src/framework/network.lua
2
7679
--[[ 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, dis...
gpl-3.0
Anubhav652/GTW-RPG
[resources]/GTWtrain/data.lua
1
10099
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.404rq.com/bug-reports/ Suggestions: http://forum.404rq.com/mta-se...
gpl-3.0
Radseq/otclient
modules/client_terminal/terminal.lua
6
10799
-- configs local LogColors = { [LogDebug] = 'pink', [LogInfo] = 'white', [LogWarning] = 'yellow', [LogError] = 'red' } local MaxLogLines = 128 local MaxHistory = 1000 local oldenv = getfenv(0) setfenv(0, _G) _G.commandEnv = runinsandbox('commands') setfenv(0,...
mit
TorstenC/esp8266-devkit
Espressif/examples/nodemcu-firmware/lua_examples/irsend.lua
88
1803
------------------------------------------------------------------------------ -- IR send module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> -- -- Example: -- dofile("irsend.lua").nec(4, 0x00ff00ff) -----------------------------------------------------------------------...
gpl-3.0
Aquanim/Zero-K
effects/sumo.lua
7
3226
return { ["sumosmoke"] = { muzzlesmoke = { air = true, class = [[CSimpleParticleSystem]], count = 6, ground = true, water = true, properties = { airdrag = 0.8, colormap = [[0....
gpl-2.0
thesrinivas/rakshak
rakshak-probe/userspace/elasticsearch-lua/tests/endpoints/SnapshotTest/StatusTest.lua
2
1640
-- Importing modules local Status = require "elasticsearch.endpoints.Snapshot.Status" local MockTransport = require "lib.MockTransport" local getmetatable = getmetatable -- Setting up environment local _ENV = lunit.TEST_CASE "tests.endpoints.SnapshotTest.StatusTest" -- Declaring local variables local endpoint local m...
gpl-2.0
b03605079/darkstar
scripts/zones/Spire_of_Vahzl/npcs/_0n0.lua
12
1483
----------------------------------- -- Area: Spire of Vahzl -- NPC: Web of Recollection ----------------------------------- package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/quests"); require("scripts/gl...
gpl-3.0
stevedonovan/Penlight
lua/pl/List.lua
3
15792
--- Python-style list class. -- -- **Please Note**: methods that change the list will return the list. -- This is to allow for method chaining, but please note that `ls = ls:sort()` -- does not mean that a new copy of the list is made. In-place (mutable) methods -- are marked as returning 'the list' in this documentati...
mit
b03605079/darkstar
scripts/globals/mobskills/Horrid_Roar_3.lua
6
1347
--------------------------------------------------- -- Horrid Roar (Tiamat, Jormungand, Vrtra, Ouryu) -- Dispels all buffs including food. Lowers Enmity. --------------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); require("/scripts/globals/monste...
gpl-3.0
b03605079/darkstar
scripts/zones/Dynamis-Beaucedine/mobs/Angra_Mainyu.lua
19
2392
----------------------------------- -- Area: Dynamis Beaucedine -- NPC: Angra Mainyu -- Mega Boss ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/keyitems"); require("scripts/globals/status"); ----------------------------------- -- onMobInitialize Action --...
gpl-3.0
b03605079/darkstar
scripts/zones/Castle_Oztroja/npcs/Kaa_Toru_the_Just.lua
19
1579
----------------------------------- -- Area: Castle Oztroja -- NPC: Kaa Toru the Just -- Type: Mission NPC [ Windurst Mission 6-2 NPC ]~ -- @pos -100.188 -62.125 145.422 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- requir...
gpl-3.0
ZigzagAK/nginx-resty-auto-healthcheck-config
lua/pointcuts/common.lua
1
2582
local _M = { _VERSION = "2.1.0" } local system = require "system" local ipairs, pairs = ipairs, pairs local pcall, xpcall = pcall, xpcall local traceback = debug.traceback local tinsert = table.insert local unpack = unpack local assert = assert local ngx_log = ngx.log local INFO, ERR = ngx.INFO, ngx.ERR -- setup ...
bsd-2-clause
b03605079/darkstar
scripts/zones/Metalworks/npcs/Mighty_Fist.lua
17
2528
----------------------------------- -- Area: Metalworks -- NPC: Mighty Fist -- Starts & Finishes Quest: The Darksmith (R) -- Involved in Quest: Dark Legacy -- @pos -47 2 -30 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- ...
gpl-3.0
b03605079/darkstar
scripts/globals/mobskills/Havoc_Spiral.lua
6
1098
--------------------------------------------- -- Havoc Spiral -- -- Description: Deals damage to players in an area of effect. Additional effect: Sleep -- Type: Physical -- 2-3 Shadows -- Range: Unknown -- Special weaponskill unique to Ark Angel MR. Deals ~100-300 damage. -----------------------------------------...
gpl-3.0
b03605079/darkstar
scripts/zones/La_Theine_Plateau/npcs/Deaufrain.lua
17
2302
----------------------------------- -- Area: La Theine Plateau -- NPC: Deaufrain -- Involved in Mission: The Rescue Drill -- @pos -304 28 339 102 ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/m...
gpl-3.0
Anubhav652/GTW-RPG
[resources]/GTWtraindriver/train_s.lua
1
9446
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.404rq.com/bug-reports/ Suggestions: http://forum.404rq.com/mta-se...
gpl-3.0
b03605079/darkstar
scripts/zones/Grand_Palace_of_HuXzoi/npcs/HomePoint#1.lua
16
1210
----------------------------------- -- Area: Grand Palace of Hu'Xzoi -- NPC: HomePoint#3 -- @pos ----------------------------------- package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"); require("scripts...
gpl-3.0
Aquanim/Zero-K
gamedata/modularcomms/weapons/aalaser.lua
6
1275
local name = "commweapon_aalaser" local weaponDef = { name = [[Anti-Air Laser]], areaOfEffect = 12, beamDecay = 0.736, beamTime = 1/30, beamttl = 15, canattackground = false, coreThickness = 0.5, craterBoost ...
gpl-2.0
arychen/GlobalCall
feeds/luci/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrd6.lua
68
16296
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require("luci.tools.webadmin") local fs = require "nixio.fs" local util = require "luci.util" local ip = require "luci.ip" local has_ipip = fs.glob("/etc/mo...
gpl-2.0
b03605079/darkstar
scripts/zones/Upper_Jeuno/npcs/Laila.lua
16
2416
----------------------------------- -- Area: Upper Jeuno -- NPC: Laila -- Type: Job Quest Giver -- @zone: 244 -- @pos -54.045 -1 100.996 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; package.loaded["scrip...
gpl-3.0
cosmy1/Urho3D
bin/Data/LuaScripts/42_PBRMaterials.lua
11
8285
-- PBR materials example. -- This sample demonstrates: -- - Loading a scene that showcases physically based materials & shaders -- -- To use with deferred rendering, a PBR deferred renderpath should be chosen: -- CoreData/RenderPaths/PBRDeferred.xml or CoreData/RenderPaths/PBRDeferredHWDepth.xml require "LuaScrip...
mit
Aquanim/Zero-K
LuaRules/Gadgets/Include/Optics.lua
6
7100
-- -- Adapted from: -- https://gist.githubusercontent.com/frnsys/6014eed30c69c6722177/raw/ec32813a900348cbb3ab60205921d70c60286ce3/optics.py -- local PQ = VFS.Include("LuaRules/Gadgets/Include/PriorityQueue.lua") local function DistSq(p1, p2) return (p1.x - p2.x)^2 + (p1.z - p2.z)^2 end local TableEcho = Spring.Util...
gpl-2.0
b03605079/darkstar
scripts/zones/Port_Windurst/npcs/Pyo_Nzon.lua
36
2750
----------------------------------- -- Area: Port Windurst -- NPC: Pyo Nzon ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"); require("scripts/zones/Port_W...
gpl-3.0
Aquanim/Zero-K
effects/paris.lua
13
4272
-- paris_glow -- paris -- paris_gflash -- paris_sphere return { ["paris_glow"] = { glow = { air = true, class = [[CSimpleParticleSystem]], count = 2, ground = true, water = true, properties = { airdrag ...
gpl-2.0
stevedonovan/Penlight
spec/permute_spec.lua
1
5731
local permute = require("pl.permute") local tcopy = require("pl.tablex").copy local utils = require("pl.utils") describe("pl.permute", function() describe("order_iter", function() it("returns all order combinations", function() local result = {} for list in permute.order_iter({"one", "two", "three"...
mit
b03605079/darkstar
scripts/zones/Al_Zahbi/Zone.lua
8
1315
----------------------------------- -- -- Zone: Al_Zahbi (48) -- ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Al_Zahbi/TextIDs"); ----------------------------------- -- onInitialize -----------------...
gpl-3.0
aliarshad2000/hunterbot
plugins/stats.lua
236
3989
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
Aquanim/Zero-K
LuaRules/Gadgets/start_unit_setup.lua
4
25586
function gadget:GetInfo() return { name = "StartSetup", desc = "Implements initial setup: start units, resources, and plop for construction", author = "Licho, CarRepairer, Google Frog, SirMaverick", date = "2008-2010", license = "GNU GPL, v2 or later", layer = -1, -- Before terrafor...
gpl-2.0
b03605079/darkstar
scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Ice.lua
12
2252
----------------------------------- -- Area: Chamber of Oracles -- NPC: Pedestal of Ice -- Involved in Zilart Mission 7 -- @pos 199 -2 36 168 ------------------------------------- package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil; ------------------------------------- require("scripts/globals/...
gpl-3.0
thesrinivas/rakshak
rakshak-probe/userspace/elasticsearch-lua/tests/integration/SearchTest.lua
2
1206
-- Tests: -- search() -- -- Setting up environment local _ENV = lunit.TEST_CASE "tests.integration.SearchTest" function test() operations.bulkIndex(dataset) -- Simple query search local res = operations.searchQuery("type:PushEvent") assert_equal(103, res.hits.total) -- Simple body search local res =...
gpl-2.0
Aquanim/Zero-K
scripts/tankaa.lua
5
3020
include "constants.lua" include "trackControl.lua" include "pieceControl.lua" local base, turret, guns, aim = piece("base", "turret", "guns", "aim") local barrels = {piece("barrel1", "barrel2")} local flares = {piece("flare1", "flare2")} local a1, a2, neck = piece("a1", "a2", "neck") local currentGun = 1 local isAimi...
gpl-2.0
geoffleyland/rima
lua/tests/rima/types/number_t.lua
1
4691
-- Copyright (c) 2009-2012 Incremental IP Limited -- see LICENSE for license information local number_t = require("rima.types.number_t") local object = require("rima.lib.object") local undefined_t = require("rima.types.undefined_t") local interface = require("rima.interface") ---------------------------------------...
mit
b03605079/darkstar
scripts/zones/RuAun_Gardens/npcs/HomePoint#2.lua
12
1249
----------------------------------- -- Area: RuAun_Gardens -- NPC: HomePoint#2 -- @pos -499 -42 167 130 ----------------------------------- package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/RuAun_Gardens/TextIDs"); require("scripts/glob...
gpl-3.0
Anubhav652/GTW-RPG
[resources]/GTWvehicles/vehicle_server.lua
1
12078
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.404rq.com/bug-reports/ Suggestions: http://forum.404rq.com/mta-se...
gpl-3.0
b03605079/darkstar
scripts/globals/spells/luminohelix.lua
22
1719
-------------------------------------- -- Spell: Luminohelix -- Deals light damage that gradually reduces -- a target's HP. Damage dealt is greatly affected by the weather. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/global...
gpl-3.0
node-wot/node-wot
lua_examples/yet-another-ds18b20.lua
79
1924
------------------------------------------------------------------------------ -- DS18B20 query module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> -- -- Example: -- dofile("ds18b20.lua").read(4, function(r) for k, v in pairs(r) do print(k, v) end end) ------------------...
mit
nasomi/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Ragyaya.lua
38
1043
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Ragyaya -- Type: Standard NPC -- @zone: 94 -- @pos -95.376 -3 60.795 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; ------...
gpl-3.0
actboy168/YDWE
Development/Component/plugin/w3x2lni/script/gui/backend.lua
3
4020
local process = require 'bee.subprocess' local proto = require 'share.protocol' local lang = require 'share.lang' local backend = {} backend.message = '' backend.title = '' backend.progress = nil backend.report = {} local mt = {} mt.__index = mt function mt:unpack_out(bytes) while true do local res = pro...
gpl-3.0
nasomi/darkstar
scripts/zones/Windurst_Waters/npcs/Ajen-Myoojen.lua
38
1044
----------------------------------- -- Area: Windurst Waters -- NPC: Ajen-Myoojen -- Type: Standard NPC -- @zone: 238 -- @pos -44.542 -5.999 238.996 -- -- Auto-Script: Requires Verification (Verfied By Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; -----...
gpl-3.0
nasomi/darkstar
scripts/zones/West_Ronfaure/npcs/Stone_Monument.lua
32
1287
----------------------------------- -- Area: West Ronfaure -- NPC: Stone Monument -- Involved in quest "An Explorer's Footsteps" -- @pos -183.734 -12.678 -395.722 100 ----------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; ----------------------------------- requi...
gpl-3.0
Samanj5/spam-is-alive
plugins/rae.lua
616
1312
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
nasomi/darkstar
scripts/globals/mobskills/Emetic_Discharge.lua
44
2025
--------------------------------------------- -- Emetic Discharge -- Family: Bloodlapper and Brummbar -- Description: Transfers all ailments to target -- Type: Enfeebling -- Utsusemi/Blink absorb: 2-3 shadows -- Notes: --------------------------------------------- require("scripts/globals/settings"); require("scr...
gpl-3.0
keharriso/love-nuklear
example/overview.lua
1
3326
-- An overview of most of the supported widgets. local checkA = {value = false} local checkB = {value = true} local radio = {value = 'A'} local selectA = {value = false} local selectB = {value = true} local slider = {value = 0.2} local progress = {value = 1} local colorPicker = {value = '#ff0000'} local property = {va...
mit
Metalab/loungelights
old/init.lua
1
3860
wifi.setmode(wifi.STATION) gpio.mode(1,gpio.OUTPUT) gpio.mode(2,gpio.OUTPUT) gpio.mode(0,gpio.OUTPUT) gpio.mode(8,gpio.OUTPUT) spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 0) wifi.sta.config("metalab", "") wifi.sta.connect() tmr.alarm(0, 1000, 1, function() if wifi.sta.status() == 5 then ...
gpl-3.0
nasomi/darkstar
scripts/globals/spells/bluemagic/infrasonics.lua
18
1442
----------------------------------------- -- Spell: Infrasonics -- Lowers the evasion of enemies within a fan-shaped area originating from the caster -- Spell cost: 42 MP -- Monster Type: Lizards -- Spell Type: Magical (Ice) -- Blue Magic Points: 4 -- Stat Bonus: INT+1 -- Level: 65 -- Casting Time: 5 seconds ...
gpl-3.0
znek/xupnpd
src/ui/api_v2.lua
2
2025
function ui_api_v_2_call(args,data,ip,url,methtod) methtod = string.upper(methtod) route = string.split(url, '/') res = nil if methtod == "GET" then if route[1] == 'playlist' then res = {} local d=util.dir(cfg.playlists_path) if d then table.sort(d) ...
gpl-2.0
minaevmike/rspamd
src/plugins/lua/mid.lua
1
3181
--[[ Copyright (c) 2016, Alexander Moisseev <moiseev@mezonplus.ru> 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 Unless required by applicable law ...
apache-2.0
icplus/OP-SDK
package/ramips/ui/luci-mtk/src/modules/admin-full/luasrc/model/cbi/admin_system/leds.lua
83
3272
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- m = ...
gpl-2.0
EnjoyHacking/nn
Euclidean.lua
24
5711
local Euclidean, parent = torch.class('nn.Euclidean', 'nn.Module') function Euclidean:__init(inputSize,outputSize) parent.__init(self) self.weight = torch.Tensor(inputSize,outputSize) self.gradWeight = torch.Tensor(inputSize,outputSize) -- state self.gradInput:resize(inputSize) self.output:resize(o...
bsd-3-clause
nasomi/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Saluhwa.lua
34
1475
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Saluhwa -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/zones/Aht_Urh...
gpl-3.0
shangjiyu/luci-with-extra
build/luadoc/luadoc/taglet/standard/tags.lua
32
5542
------------------------------------------------------------------------------- -- Handlers for several tags -- @release $Id: tags.lua,v 1.8 2007/09/05 12:39:09 tomas Exp $ ------------------------------------------------------------------------------- local luadoc = require "luadoc" local util = require "luadoc.util"...
apache-2.0
nasomi/darkstar
scripts/zones/Woh_Gates/Zone.lua
34
1270
----------------------------------- -- -- Zone: Woh Gates -- ----------------------------------- package.loaded["scripts/zones/Woh_Gates/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Woh_Gates/TextIDs"); ----------------------------------- ...
gpl-3.0
nasomi/darkstar
scripts/zones/Southern_San_dOria/npcs/Helbort.lua
17
2420
----------------------------------- -- Area: Southern San d'Oria -- NPC: Helbort -- Starts and Finished Quest: A purchase of Arms -- @zone 230 -- @pos 71 -1 65 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- requi...
gpl-3.0
nasomi/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5ct.lua
17
2441
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: _5ct (Magical Gizmo) #5 -- Involved In Mission: The Horutoto Ruins Experiment ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts...
gpl-3.0
coolflyreg/gs
3rd/skynet-mingw/test/testredis2.lua
82
1043
local skynet = require "skynet" local redis = require "redis" local db function add1(key, count) local t = {} for i = 1, count do t[2*i -1] = "key" ..i t[2*i] = "value" .. i end db:hmset(key, table.unpack(t)) end function add2(key, count) local t = {} for i = 1, count do ...
gpl-2.0
shangjiyu/luci-with-extra
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua
14
4221
-- 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 fs = require "nixio.fs" m = Map("network", translate("Interfaces")) m.pageaction = false m:section(SimpleSection).template = "admin_network/iface_overvi...
apache-2.0
nasomi/darkstar
scripts/zones/Kazham/npcs/Mijeh_Sholpoilo.lua
15
1102
----------------------------------- -- Area: Kazham -- NPC: Mijeh Sholpoilo -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTrade Action -------------------------...
gpl-3.0
dani-sj/danibot01
plugins/cpu.lua
244
1893
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 .. ' you...
gpl-2.0
dmccuskey/dmc-states-mixin
dmc_corona/lib/dmc_lua/lua_patch.lua
44
7239
--====================================================================-- -- lua_patch.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2014-2015 David McCuskey Permission is hereby granted, free ...
mit
shakfu/start-vm
config/artful/awesome/vicious/contrib/pop_all.lua
4
1430
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Boris Bolgradov <> -- -- This widget type depends on luasocket. -- -- Widget arguments are host, port, username and -- password, i.e.: -- {"mail.myhost.com", 110, "John", "132435"} ----------------...
mit
MatthewDwyer/botman
mudlet/profiles/newbot/scripts/timers/one_minute_timer.lua
1
13852
--[[ Botman - A collection of scripts for managing 7 Days to Die servers Copyright (C) 2020 Matthew Dwyer This copyright applies to the Lua source code in this Mudlet profile. Email smegzor@gmail.com URL http://botman.nz Source https://bitbucket.org/mhdwyer/botman --]] loc...
gpl-3.0
OrenjiAkira/lua-html
lib/lux/portable.lua
1
2748
--[[ -- -- Copyright (c) 2013-2016 Wilson Kazuo Mizutani -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purpose, ...
mit
kenyh0926/DBProxy
lib/active-transactions.lua
4
2681
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is dis...
gpl-2.0
pmyadlowsky/mash
darkice.lua
1
2641
Mash.darkice = {} Mash.darkice.cmd = "darkice -v 10" Mash.darkice.client = "mashice" Mash.darkice.config = function(config, streams) local count = 0 local path = os.tmpname() file = io.open(path, "w") file:write("[general]\n") file:write("duration = 0\n") file:write("bufferSecs = 3\n") file:write("reconnect = y...
gpl-3.0
mlem/wesnoth
data/ai/micro_ais/cas/ca_forest_animals_tusker_attack.lua
26
2575
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local function get_tuskers(cfg) local tuskers = AH.get_units_with_moves { side = wesnoth.current.side, type = cfg.tusker_type } return tuskers end local function get_adjacent_enemies(cfg) local...
gpl-2.0
shakfu/start-vm
config/base/awesome/vicious/contrib/batpmu.lua
18
2390
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> --------------------------------------------------- -- {{{ Grab environment local tonumber = tonumber local io = { open = io.open } local setmetatable = setmetatable lo...
mit
nasomi/darkstar
scripts/zones/Apollyon/mobs/Dark_Elemental.lua
16
2431
----------------------------------- -- Area: Apollyon SW -- NPC: elemental ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); --------------------------...
gpl-3.0
nasomi/darkstar
scripts/zones/Windurst_Waters/npcs/Rukuku.lua
36
1417
----------------------------------- -- Area: Windurst Waters -- NPC: Rukuku -- Involved in Quest: Making the Grade -- Working 100% -- @zone = 238 -- @pos = 130 -6 160 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- r...
gpl-3.0
coolflyreg/gs
3rd/skynet-mingw/lualib/mysql.lua
6
15787
-- Copyright (C) 2012 Yichun Zhang (agentzh) -- Copyright (C) 2014 Chang Feng -- This file is modified version from https://github.com/openresty/lua-resty-mysql -- The license is under the BSD license. -- Modified by Cloud Wu (remove bit32 for lua 5.3) local socketchannel = require "socketchannel" local mysqlaux = req...
gpl-2.0
Hello23-Ygopro/ygopro-ds
expansions/script/c27001103.lua
1
1287
--BT1-088 Frieza, Hellish Terror local ds=require "expansions.utility_dbscg" local scard,sid=ds.GetID() function scard.initial_effect(c) ds.EnableBattleAttribute(c) ds.AddSetcode(c,SPECIAL_TRAIT_FRIEZAS_ARMY,CHARACTER_FRIEZA,SPECIAL_TRAIT_FRIEZA_CLAN) ds.AddPlayProcedure(c,COLOR_YELLOW,2,2) --evolve ds.EnableEvolv...
gpl-3.0
icplus/OP-SDK
package/ramips/ui/luci-mtk/src/modules/base/luasrc/model/uci.lua
86
10653
--[[ LuCI - UCI model Description: Generalized UCI model FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache...
gpl-2.0
nasomi/darkstar
scripts/globals/spells/bewitching_etude.lua
18
1619
----------------------------------------- -- Spell: Bewitching Etude -- Static CHR Boost, BRD 62 ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- ...
gpl-3.0
nasomi/darkstar
scripts/globals/spells/bluemagic/asuran_claws.lua
28
1798
----------------------------------------- -- Spell: Asuran Claws -- Delivers a sixfold attack. Accuracy varies with TP -- Spell cost: 81 MP -- Monster Type: Beasts -- Spell Type: Physical (Blunt) -- Blue Magic Points: 2 -- Stat Bonus: AGI +3 -- Level: 70 -- Casting Time: 3 seconds -- Recast Time: 60 seconds ...
gpl-3.0
actboy168/YDWE
Development/Component/plugin/w3x2lni/script/core/map-builder/load.lua
3
2739
local lang = require 'lang' local w2l local function search_staticfile(map, callback) local function search_tbl(tbl) for _, v in pairs(tbl) do if type(v) == 'table' then search_tbl(v) elseif type(v) == 'string' then callback(v) end ...
gpl-3.0
RhenaudTheLukark/CreateYourFrisk
Assets/Mods/Examples/Lua/Encounters/04 - Animation.lua
2
1894
-- An animation demo with a rotating Sans head. -- music = "shine_on_you_crazy_diamond" --Always OGG. Extension is added automatically. Remove the first two lines for custom music. encountertext = "It's an animation!" --Modify as necessary. It will only be read out in the action select screen. nextwaves = {"bullettest...
gpl-3.0
RhenaudTheLukark/CreateYourFrisk
Assets/Mods/Examples 2/Lua/Encounters/04 - Animation.lua
2
1894
-- An animation demo with a rotating Sans head. -- music = "shine_on_you_crazy_diamond" --Always OGG. Extension is added automatically. Remove the first two lines for custom music. encountertext = "It's an animation!" --Modify as necessary. It will only be read out in the action select screen. nextwaves = {"bullettest...
gpl-3.0
nasomi/darkstar
scripts/globals/items/derfland_pear.lua
35
1212
----------------------------------------- -- ID: 4352 -- Item: derfland_pear -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility -3 -- Intelligence 1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- O...
gpl-3.0
nasomi/darkstar
scripts/zones/Upper_Jeuno/npcs/Laila.lua
18
3782
----------------------------------- -- Area: Upper Jeuno -- NPC: Laila -- Type: Job Quest Giver -- @zone: 244 -- @pos -54.045 -1 100.996 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; package.loaded["scrip...
gpl-3.0
mlem/wesnoth
data/ai/micro_ais/cas/ca_hunter.lua
26
8246
local H = wesnoth.require "lua/helper.lua" local W = H.set_wml_action_metatable {} local AH = wesnoth.require "ai/lua/ai_helper.lua" local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua" local function hunter_attack_weakest_adj_enemy(ai, hunter) -- Attack the enemy with the fewest hitpoints adja...
gpl-2.0
nasomi/darkstar
scripts/globals/abilities/chaos_roll.lua
9
3293
----------------------------------- -- Ability: Chaos Roll -- Enhances attack for party members within area of effect -- Optimal Job: Dark Knight -- Lucky Number: 4 -- Unlucky Number: 8 -- Level: 14 -- -- Die Roll |No DRK |With DRK -- -------- -------- ----------- -- 1 |6% |16% -- 2 ...
gpl-3.0
nasomi/darkstar
scripts/globals/items/prized_seafood_stewpot.lua
36
1865
----------------------------------------- -- ID: 5240 -- Item: Prized Seafood Stewpot -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% Cap 100 -- MP +20 -- Dexterity 2 -- Vitality 2 -- Agility 2 -- Mind 2 -- HP Recovered while healing 9 -- MP Recovered while he...
gpl-3.0
nasomi/darkstar
scripts/zones/Buburimu_Peninsula/npcs/Signpost.lua
19
1356
----------------------------------- -- Area: Buburimu Peninsula -- NPC: Signpost ----------------------------------- package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Buburimu_Peninsula/TextIDs"); ----------------------------------- -- onTrad...
gpl-3.0
srush/OpenNMT
onmt/utils/Logger.lua
3
2371
--[[ Logger is a class used for maintaining logs in a log file. --]] local Logger = torch.class('Logger') --[[ Construct a Logger object. Parameters: * `logPath` - the path to log file. If left blank, then output log to stdout. * `mute` - whether or not suppress outputs to stdout. [false] Example: logging =...
mit
nasomi/darkstar
scripts/globals/mobskills/Radiant_Breath.lua
17
1040
--------------------------------------------- -- Radiant Breath -- -- Description: Deals light damage to enemies within a fan-shaped area of effect originating from the caster. Additional effect: Slow and Silence. -- Type: Magical (Light) -- -- --------------------------------------------- require("scripts/g...
gpl-3.0
fegimanam/zus
bot/utils.lua
646
23489
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
haka-security/haka
modules/protocol/http/http_utils.lua
5
6141
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. local class = require('class') local module = {} module.uri = {} module.cookies = {} local _unreserved = table.di...
mpl-2.0
nasomi/darkstar
scripts/zones/Kazham/npcs/Dheo_Nbolo.lua
15
1097
----------------------------------- -- Area: Kazham -- NPC: Dheo Nbolo -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTrade Action ------------------------------...
gpl-3.0
nasomi/darkstar
scripts/globals/items/baked_popoto.lua
35
1283
----------------------------------------- -- ID: 4436 -- Item: Baked Popoto -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 20 -- Dexterity -1 -- Vitality 2 ----------------------------------------- require("scripts/globals/status"); -----------------------------------...
gpl-3.0
nasomi/darkstar
scripts/zones/RuAun_Gardens/npcs/qm4.lua
16
1444
----------------------------------- -- Area: Ru'Aun Gardens -- NPC: ??? (Suzaku's Spawn) -- Allows players to spawn the HNM Suzaku with a Gem of the South and a Summerstone. -- @pos -514 -70 -264 130 ----------------------------------- package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil; ---------------...
gpl-3.0
coolflyreg/gs
3rd/skynet-mingw/examples/watchdog.lua
53
1286
local skynet = require "skynet" local netpack = require "netpack" local CMD = {} local SOCKET = {} local gate local agent = {} function SOCKET.open(fd, addr) skynet.error("New client from : " .. addr) agent[fd] = skynet.newservice("agent") skynet.call(agent[fd], "lua", "start", { gate = gate, client = fd, watchdog...
gpl-2.0
ngeiswei/ardour
share/scripts/store_recall_mixer.lua
4
17372
ardour { ["type"] = "EditorAction", name = "Mixer Store", author = "Ardour Team", description = [[ Stores the current Mixer state as a file that can be read and recalled arbitrarily. Supports: processor settings, grouping, mute, solo, gain, trim, pan and processor ordering, plus re-adding certain deleted plugi...
gpl-2.0
icplus/OP-SDK
package/ramips/ui/luci-mtk/src/applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua
78
7996
--[[ LuCI - Lua Configuration Interface Copyright 2010 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...
gpl-2.0
Wouterz90/SuperSmashDota
Game/scripts/vscripts/settings.lua
1
9204
-- In this file you can set up all the properties and settings for your game mode. ENABLE_HERO_RESPAWN = true -- Should the heroes automatically respawn on a timer or stay dead until manually respawned UNIVERSAL_SHOP_MODE = false -- Should the main shop contain Secret Shop items as well as re...
mit
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/flower_cyan_9.meta.lua
18
1947
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 80, light_colors = { "0 190 171 255", "6 190 39 255", "153 229 80 255" }, radius = { x = 80, y = 80 }, standard_deviation = 6 }, ...
agpl-3.0
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/flower_cyan_4.meta.lua
18
1947
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 80, light_colors = { "0 190 171 255", "6 190 39 255", "153 229 80 255" }, radius = { x = 80, y = 80 }, standard_deviation = 6 }, ...
agpl-3.0
nico57c/love2d-lualib
Tools/Object.lua
1
1060
-- Tools/Object.lua module("Ncr7.tObject", package.seeall) New = {} function New._object(class, o, metatable) local o = o or {} o._global=_G if(nil~=metatable) then setmetatable(o, table.merge(metatable,{ __index = class } ) ) else setmetatable(o, { __index = class }) end return o end New._mt = ...
mit
nasomi/darkstar
scripts/globals/mobskills/Prishe_Item_2.lua
53
1486
--------------------------------------------- -- Prishe Item 2 --------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); require("scripts/zones/Empyreal_Paradox/TextIDs"); --------------------------------------------...
gpl-3.0