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
nesstea/darkstar
scripts/zones/Temenos/mobs/Abyssdweller_Jhabdebb.lua
7
1581
----------------------------------- -- Area: Temenos -- NPC: ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ----------------------------------- -- onMobSpa...
gpl-3.0
UnfortunateFruit/darkstar
scripts/zones/The_Garden_of_RuHmet/npcs/qm2.lua
24
2318
----------------------------------- -- Area: The_Garden_of_RuHmet -- NPC: ??? (Ix'aern (Dark Knight) Spawn) -- Allows players to spawn the Ix'aern (Dark Knight) by checking ??? only after killing the required mobs in the same room as the ???. -- @pos ,-560 5 239 ----------------------------------- package.loaded["scri...
gpl-3.0
xTVaser/ramwatches
docs/samples/games/sample_layouts.lua
1
3121
-- Layouts to use with sample.lua. package.loaded.utils = nil local utils = require 'utils' local subclass = utils.subclass package.loaded.layouts = nil local layoutsModule = require 'layouts' local Layout = layoutsModule.Layout local layouts = {} layouts.positionAndVelocity = subclass(Layout) function layouts.p...
mit
Xileck/forgottenserver
config.lua
18
2408
-- Combat settings -- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced" worldType = "pvp" hotkeyAimbotEnabled = true protectionLevel = 1 killsToRedSkull = 3 killsToBlackSkull = 6 pzLocked = 60000 removeChargesFromRunes = true timeToDecreaseFrags = 24 * 60 * 60 * 1000 whiteSkullTime = 15 * 60 * 10...
gpl-2.0
nesstea/darkstar
scripts/zones/Sauromugue_Champaign/npcs/Tiger_Bones.lua
12
1894
----------------------------------- -- Area: Sauromugue Champaign -- NPC: Tiger Bones -- Involed in Quest: The Fanged One. -- @pos 666 -8 -379 120 ------------------------------------- package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil; ------------------------------------- require("scripts/globals/se...
gpl-3.0
UnfortunateFruit/darkstar
scripts/zones/Waughroon_Shrine/bcnms/shattering_stars.lua
13
1930
----------------------------------- -- Area: Waughroon Shrine -- Name: Shattering stars - Maat Fight -- @pos -345 104 -260 144 ----------------------------------- package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Waughroon_Shrine/TextIDs"); ----...
gpl-3.0
ld-test/fun-alloyed
tests/operators.lua
5
4619
-- -- All these functions are fully covered by Lua tests. -- This test just checks that all functions were defined correctly. -- print(op == operator) -- an alias --[[test true --test]] -------------------------------------------------------------------------------- -- Comparison operators ---------------------------...
mit
UnfortunateFruit/darkstar
scripts/zones/Den_of_Rancor/npcs/_4g3.lua
10
2115
----------------------------------- -- Area: Den of Rancor -- NPC: Lantern (SW) -- @pos -59 45 24 160 ----------------------------------- package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Den_of_Rancor/...
gpl-3.0
Mashape/kong
spec/01-unit/01-db/05-cassandra_spec.lua
2
3510
local connector = require "kong.db.strategies.cassandra.connector" local cassandra = require "cassandra" local helpers = require "spec.helpers" describe("kong.db [#cassandra] connector", function() describe(".new()", function() local test_conf = helpers.test_conf local test_conf_lb_policy = test_conf.cassan...
apache-2.0
nesstea/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/qm7.lua
57
2181
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: qm7 (??? - Ancient Papyrus Shreds) -- Involved in Quest: In Defiant Challenge -- @pos 105.275 -32 92.551 195 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------...
gpl-3.0
UnfortunateFruit/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/qm7.lua
57
2181
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: qm7 (??? - Ancient Papyrus Shreds) -- Involved in Quest: In Defiant Challenge -- @pos 105.275 -32 92.551 195 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------...
gpl-3.0
nesstea/darkstar
scripts/globals/items/black_bubble-eye.lua
18
1336
----------------------------------------- -- ID: 4311 -- Item: Black Bubble-Eye -- Food Effect: 5 Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -...
gpl-3.0
UnfortunateFruit/darkstar
scripts/zones/Upper_Jeuno/npcs/Migliorozz.lua
38
1033
----------------------------------- -- Area: Upper Jeuno -- NPC: Migliorozz -- Type: Standard NPC -- @zone: 244 -- @pos -37.760 -2.499 12.924 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------...
gpl-3.0
nesstea/darkstar
scripts/globals/spells/bluemagic/tail_slap.lua
21
2101
----------------------------------------- -- Spell: Tail Slap -- Delivers an area attack. Additional effect: "Stun." Damage varies with TP -- Spell cost: 77 MP -- Monster Type: Beastmen -- Spell Type: Physical (Blunt) -- Blue Magic Points: 4 -- Stat Bonus: MND+2 -- Level: 69 -- Casting Time: 1 seconds -- Recast Time: 2...
gpl-3.0
UnfortunateFruit/darkstar
scripts/globals/items/warm_egg.lua
35
1186
----------------------------------------- -- ID: 4602 -- Item: warm_egg -- Food Effect: 5Min, All Races ----------------------------------------- -- Health 18 -- Magic 18 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ...
gpl-3.0
bowlofstew/Macaroni
Main/App/Source/test/lua/Macaroni/Model/DocumentTests/FunctionTests.lua
2
2126
-------------------------------------------------------------------------------- -- Copyright 2011 Tim Simpson -- -- 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.a...
apache-2.0
anoidgit/Residue-RNN
test/testrnn.lua
1
4511
require 'paths' require 'rnn' local dl = require 'dataload' torch.setdefaulttensortype('torch.FloatTensor') function savemodel(fname,modelsave) file=torch.DiskFile(fname,'w') file:writeObject(modelsave) file:close() end startlr=0.005 minlr=0.000001 saturate=120--'epoch at which linear decayed LR will reach minlr'...
bsd-3-clause
UnfortunateFruit/darkstar
scripts/zones/AlTaieu/npcs/_0x3.lua
8
2001
----------------------------------- -- Area: Al'Taieu -- NPC: Rubious Crystal (East Tower) -- @pos 683.718 -6.250 -222.167 33 ----------------------------------- package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil; ----------------------------------- require("scripts/zones/AlTaieu/TextIDs"); require("sc...
gpl-3.0
nesstea/darkstar
scripts/globals/items/moon_ball.lua
18
1162
----------------------------------------- -- ID: 4568 -- Item: moon_ball -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 3 -- Magic 3 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -------------...
gpl-3.0
FailcoderAddons/supervillain-ui
SVUI_Skins/components/blizzard/timemanager.lua
2
2481
--[[ ############################################################################## S V U I By: Failcoder ############################################################################## --]] --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.select; --[[ ADDON ]]-- local SV = _G['SVUI']; lo...
mit
dios-game/dios-cocos-samples
src/lua-coin-tree/Resources/src/dxm/data_structures/list.lua
4
2231
--region *.lua --Date --此文件由[BabeLua]插件自动生成 dxm = dxm or {} -- 链表节点 dxm.CNode = class("CNode") local CNode = dxm.CNode function CNode:ctor() self.prev = nil self.next = nil self.value = nil end -- 链表 dxm.CList = class("CList") local CList = dxm.CList function CList:ctor() self.first = nil -- 头 ...
mit
dstodev/MC-Fluid-Tank-Controller
lib/schmitt_trigger.lua
1
1105
local Trigger = {} Trigger.__index = Trigger setmetatable(Trigger, { __call = function (cls, ...) return cls.new(...) end, }) function Trigger.new(left, right, left_callback, right_callback) local self = {} setmetatable(self, Trigger) self._left = left self._right = right self._p...
mit
drakmaniso/Flapoline
src/dot.lua
1
1037
Dot = {} Dot.__index = Dot --------------------------------------------------------------------------------------------------- Dot.radius = 4 Dot.segments = 6 --------------------------------------------------------------------------------------------------- function Dot:new(x, y) object = { x = x, y = y, a...
gpl-3.0
dpino/snabb
src/program/packetblaster/synth/synth.lua
14
1360
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local config = require("core.config") local main = require("core.main") local Synth = require("apps.test.synth").Synth local lib = require("core.lib") local packetblaster = require("program.pa...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Southern_San_dOria/npcs/Femitte.lua
17
3106
----------------------------------- -- Area: Southern San d'Oria -- NPC: Femitte -- Involved in Quest: Lure of the Wildcat (San d'Oria), Distant Loyalties -- @pos -17 2 10 230 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------...
gpl-3.0
FPtje/DarkRP
gamemode/modules/f4menu/cl_interface.lua
13
2912
DarkRP.openF4Menu = DarkRP.stub{ name = "openF4Menu", description = "Open the F4 menu.", parameters = { }, returns = { }, metatable = DarkRP } DarkRP.closeF4Menu = DarkRP.stub{ name = "closeF4Menu", description = "Close the F4 menu if it's open.", parameters = { }, retur...
mit
Kthulupwns/darkstar
scripts/zones/King_Ranperres_Tomb/npcs/Grounds_Tome.lua
34
1155
----------------------------------- -- Area: King Ranperre's Tomb -- NPC: Grounds Tome ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/groundsofvalor"); ----------------------------------- -- onTrade Action ----------------------------------- function on...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Southern_San_dOria/npcs/Taumila.lua
17
2257
----------------------------------- -- Area: Northern San d'Oria -- NPC: Taumila -- Starts and Finishes Quest: Tiger's Teeth (R) -- @pos -140 -5 -8 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
mlody1039/ModernOts
data/npc/scripts/TP1/boat_liberty3.lua
1
2225
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function ...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/PsoXja/npcs/_092.lua
9
1609
----------------------------------- -- Area: Pso'Xja -- NPC: _092 (Stone Gate) -- Notes: Spawns Gargoyle when triggered -- @pos -330.000 14.074 -261.600 9 ----------------------------------- package.loaded["scripts/zones/PsoXja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Pso...
gpl-3.0
aa65535/luci
modules/luci-base/luasrc/http/protocol.lua
16
16196
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. -- This class contains several functions useful for http message- and content -- decoding and to retrive form data from raw http messages. module("luci.http.protocol", package.seeall) local l...
apache-2.0
Kthulupwns/darkstar
scripts/globals/items/acorn_cookie.lua
35
1338
----------------------------------------- -- ID: 4510 -- Item: Acorn Cookie -- Food Effect: 3Min, All Races ----------------------------------------- -- Magic Regen While Healing 3 -- Aquan Killer 5 -- Sleep Resist 5 ----------------------------------------- require("scripts/globals/status"); ------------...
gpl-3.0
dpino/snabb
src/lib/ipsec/esp.lua
3
18586
-- Implementation of IPsec ESP using AES-128-GCM with a 12 byte ICV and -- “Extended Sequence Number” (see RFC 4303 and RFC 4106). Provides -- address-family independent encapsulation/decapsulation routines for -- “tunnel mode” and “transport mode” routines for IPv6. -- -- Notes: -- -- * Wrapping around of the Extende...
apache-2.0
beni55/lua-resty-http
lib/resty/http_headers.lua
69
1716
local rawget, rawset, setmetatable = rawget, rawset, setmetatable local str_gsub = string.gsub local str_lower = string.lower local _M = { _VERSION = '0.01', } -- Returns an empty headers table with internalised case normalisation. -- Supports the same cases as in ngx_lua: -- -- headers.content_lengt...
bsd-2-clause
kayru/tundra
scripts/tundra/syntax/native.lua
9
10662
-- native.lua -- support for programs, static libraries and such module(..., package.seeall) local util = require "tundra.util" local nodegen = require "tundra.nodegen" local path = require "tundra.path" local depgraph = require "tundra.depgraph" local _native_mt = nodegen.create_eval_subclass { DeclToEnv...
gpl-3.0
moteus/lua-odbc-pool
examples/fusionpbx/odbc_pool.lua
1
1666
require "resources.functions.config" require "resources.functions.file_exists" local log = require "resources.functions.log".dbpool local odbc = require "odbc" local odbcpool = require "odbc.pool" -- Configuration local POLL_TIMEOUT = 5 local run_file = scripts_dir .. "/run/dbpool.tmp"; -- Pool ctor local f...
mit
ASHRAF97/ASHRAFKASPERV3
plugins/iq_abs.lua
2
15268
-- made by { @Mouamle } do ws = {} rs = {} -- some examples of how to use this :3 ws[1] = "هلاو" rs[1] = "هـﮩـڵآوآت 🦀❤" ws[2] = "هلو" -- msg rs[2] = "هـﮩـڵآوآت 🦀❤️" -- reply ws[3] = "شلونكم" -- msg rs[3] = "تـمـآم وأنتـہ 🌝💙" -- reply ws[4] = "دووم" -- msg rs[4] = "يدوم نبضك 🌝💙" -- reply ws[5] =...
gpl-2.0
Kthulupwns/darkstar
scripts/zones/Northern_San_dOria/npcs/Rondipur.lua
38
1049
----------------------------------- -- Area: Northern San d'Oria -- NPC: Rondipur -- Type: Quest Giver -- @zone: 231 -- @pos -154.415 10.999 153.744 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Apollyon/mobs/Proto-Omega.lua
12
3065
----------------------------------- -- Area: Apollyon Centrale -- NPC: Proto-Omega ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); require("scripts/glo...
gpl-3.0
amenophis1er/prosody-modules
mod_broadcast/mod_broadcast.lua
32
1043
local is_admin = require "core.usermanager".is_admin; local allowed_senders = module:get_option_set("broadcast_senders", {}); local from_address = module:get_option_string("broadcast_from"); local jid_bare = require "util.jid".bare; function send_to_online(message) local c = 0; for hostname, host_session in pairs(h...
mit
GabrielNicolasAvellaneda/luvit-upstream
tests/test-fs-write-sync.lua
14
1192
--[[ Copyright 2015 The Luvit Authors. All Rights Reserved. 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 or agre...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Mhaura/npcs/Dieh_Yamilsiah.lua
38
2198
----------------------------------- -- Area: Mhaura -- NPC: Dieh Yamilsiah -- Reports the time remaining before boat arrival. -- @pos 7.057 -2.364 2.489 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mhaura/TextI...
gpl-3.0
dpino/snabb
src/lib/protocol/header.lua
9
11831
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. -- Protocol header base class -- -- This is an abstract class (should not be instantiated) -- -- Derived classes must implement the following class variables -- -- _name a string that describes the header type in a -- ...
apache-2.0
Kthulupwns/darkstar
scripts/globals/items/love_chocolate.lua
35
1149
----------------------------------------- -- ID: 5230 -- Item: love_chocolate -- Food Effect: 180Min, All Races ----------------------------------------- -- Magic Regen While Healing 4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- ...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Bastok_Mines/npcs/Maymunah.lua
19
1152
----------------------------------- -- Area: Bastok Mines -- NPC: Maymunah -- Guild Merchant NPC: Alchemy Guild -- @pos 108.738 5.017 -3.129 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); requ...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/weaponskills/herculean_slash.lua
12
1575
----------------------------------- -- Herculean Slash -- Great Sword weapon skill -- Skill Level: 290 -- Paralyzes target. Duration of effect varies with TP. -- Aligned with the Snow Gorget, Thunder Gorget & Breeze Gorget. -- Aligned with the Snow Belt, Thunder Belt & Breeze Belt. -- Element: Ice -- Modifiers:...
gpl-3.0
Mleaf/mleaf_luci
applications/luci-olsr/luasrc/model/cbi/olsr/olsrdiface.lua
49
6797
--[[ 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$ ]]-- l...
apache-2.0
dpino/snabb
src/apps/wall/l7fw.lua
9
12868
module(..., package.seeall) -- This module implements a level 7 firewall app that consumes the result -- of DPI scanning done by l7spy. -- -- The firewall rules are a table mapping protocol names to either -- * a simple action ("drop", "reject", "accept") -- * a pfmatch expression local bit = require("bit") ...
apache-2.0
kuoruan/luci
applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdiface6.lua
68
5949
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local util = require "luci.util" local ip = require "luci.ip" function write_float(self, section, value) local n = tonumber(value) if n ~= nil then return Value.write(self, section, "%.1f" % n) ...
apache-2.0
dios-game/dios-cocos-samples
src/lua-earth-warrior-3d/Resources/src/Plane.lua
2
1244
require("GameEntity") local Plane = class("Plane", function() return require("GameEntity").new() end) Plane.pXW = 1.1 Plane.pYW = 5.0 Plane.pZW = 1.0 Plane.pXA = 1.0 Plane.pYA = 10.0 Plane.pZA = 7.0 function Plane:init() self.pRate = 3.1415926/2 self.originX = -15.0 - 90.0 self.originY = 159.0 se...
mit
Kthulupwns/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Animated_Shield.lua
17
1481
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Animated Shield ----------------------------------- require("scripts/globals/status"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- functi...
gpl-3.0
vyrus714/Trap-Wars
game/dota_addons/trap_wars/scripts/vscripts/libraries/attachments.lua
1
21446
ATTACHMENTS_VERSION = "1.00" --[[ Lua-controlled Frankenstein Attachments Library by BMD Installation -"require" this file inside your code in order to gain access to the Attachments global table. -Optionally require "libraries/notifications" before this file so that the Attachment Configuration GUI can displ...
mit
amenophis1er/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
Kthulupwns/darkstar
scripts/globals/keyitems.lua
32
120326
--------------------------------------------- -- -- KEYITEMS IDS -- --------------------------------------------- ZERUHN_REPORT = 1; PALBOROUGH_MINES_LOGS = 2; BLUE_ACIDITY_TESTER = 3; RED_ACIDITY_TESTER = 4; LETTER_TO_...
gpl-3.0
amenophis1er/prosody-modules
mod_statistics/top.lua
32
6810
module("prosodytop", package.seeall); local array = require "util.array"; local it = require "util.iterators"; local curses = require "curses"; local stats = require "stats".stats; local time = require "socket".gettime; local sessions_idle_after = 60; local stanza_names = {"message", "presence", "iq"}; local top = {...
mit
awhitesong/rspamd
test/lua/unit/redis_stat.lua
3
1570
context("Redis statistics unit tests", function() local task = require("rspamd_task") local ffi = require("ffi") ffi.cdef[[ struct rspamd_statfile_config { const char *symbol; const char *label; void *opts; int is_spam; const char *backend; void *data; }; unsigned long rspamd_r...
bsd-2-clause
zhaozg/lit
commands/get-luvi.lua
4
1403
return function () local core = require('core')() local uv = require('uv') local log = require('log').log local query = require('pkg').query local fs = require('coro-fs') -- Try to look up local metadata in case we're inside a luvi app. local meta = query(fs, ".") local opts = meta and meta.luvi or {} ...
apache-2.0
Lsty/ygopro-scripts
c55608151.lua
3
1070
--グリフォンの翼 function c55608151.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DISABLE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCondition(c55608151.condition) e1:SetTarget(c55608151.target) e1:SetOperation(c55608151.activate) c:RegisterEffect(e1) end...
gpl-2.0
brimworks/luvi
samples/test.app/utils.lua
10
9094
local uv = require('uv') local env = require('env') local prettyPrint, dump, strip, color, colorize, loadColors local theme = {} local useColors = false local defaultTheme local stdout, stdin, stderr, width local quote, quote2, dquote, dquote2, obracket, cbracket, obrace, cbrace, comma, equals, controls local theme...
apache-2.0
Lsty/ygopro-scripts
c38492752.lua
7
1324
--ラヴァル・キャノン function c38492752.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(38492752,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:S...
gpl-2.0
MalRD/darkstar
scripts/zones/Rabao/npcs/Leodarion.lua
9
3252
----------------------------------- -- Area: Rabao -- NPC: Leodarion -- Involved in Quest: 20 in Pirate Years, I'll Take the Big Box, True Will -- !pos -50 8 40 247 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/globals/shop"); require("sc...
gpl-3.0
maxrio/luci981213
modules/luci-base/luasrc/sys/zoneinfo/tzoffset.lua
14
4023
-- Licensed to the public under the Apache License 2.0. module "luci.sys.zoneinfo.tzoffset" OFFSET = { gmt = 0, -- GMT eat = 10800, -- EAT cet = 3600, -- CET wat = 3600, -- WAT cat = 7200, -- CAT eet = 7200, -- EET wet = 0, -- WET sast = 7200, -- SAST hst = -36000, -- HS...
apache-2.0
sagarwaghmare69/nn
SpatialConvolutionMap.lua
22
4220
local SpatialConvolutionMap, parent = torch.class('nn.SpatialConvolutionMap', 'nn.Module') nn.tables = nn.tables or {} function nn.tables.full(nin, nout) local ft = torch.Tensor(nin*nout,2) local p = 1 for j=1,nout do for i=1,nin do ft[p][1] = i ft[p][2] = j p = p + 1 end end return f...
bsd-3-clause
Death15/Test
plugins/Groups.lua
1
1555
do -- 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...
gpl-2.0
MalRD/darkstar
scripts/globals/items/black_ghost.lua
11
1050
----------------------------------------- -- ID: 5138 -- Item: Black Ghost -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 4 -- Mind -6 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ------------------------------------...
gpl-3.0
MalRD/darkstar
scripts/zones/The_Garden_of_RuHmet/bcnms/when_angels_fall.lua
9
1414
----------------------------------- -- Area: The_Garden_of_RuHmet -- Name: When Angels Fall ----------------------------------- require("scripts/globals/battlefield") require("scripts/globals/missions") ----------------------------------- function onBattlefieldTick(battlefield, tick) dsp.battlefield.onBattlefieldT...
gpl-3.0
robertbrook/Penlight
tests/test-lapp.lua
5
4622
local test = require 'pl.test' local lapp = require 'pl.lapp' local utils = require 'pl.utils' local tablex = require 'pl.tablex' local k = 1 function check (spec,args,match) local args = lapp(spec,args) for k,v in pairs(args) do if type(v) == 'userdata' then args[k]:close(); args[k] = '<file>' end ...
mit
MalRD/darkstar
scripts/zones/Windurst_Waters/npcs/Ohbiru-Dohbiru.lua
9
10499
----------------------------------- -- Area: Windurst Waters -- NPC: Ohbiru-Dohbiru -- Involved in quest: Food For Thought, Say It with Flowers -- Starts and finishes quest: Toraimarai Turmoil ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/titles"); require("scripts/gl...
gpl-3.0
MalRD/darkstar
scripts/globals/items/green_curry_bun_+1.lua
11
1556
----------------------------------------- -- ID: 5762 -- Item: green_curry_bun_+1 -- Food Effect: 60 min, All Races ----------------------------------------- -- TODO: Group effects -- VIT +3 -- AGI +4 -- Ranged Accuracy +10% (cap 25) -- DEF +13% (cap 180) -- Resist Sleep +5 -- hHP +6 -- hMP +3 -------------------------...
gpl-3.0
MalRD/darkstar
scripts/globals/spells/quick_etude.lua
12
1841
----------------------------------------- -- Spell: Quick Etude -- Static AGI Boost, BRD 28 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------------- function onMagicCastingCheck(caster,target,sp...
gpl-3.0
nmabhi/Webface
demos/vis-outputs.lua
11
2580
#!/usr/bin/env th -- -- Copyright 2015-2016 Carnegie Mellon University -- -- 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 re...
apache-2.0
Lsty/ygopro-scripts
c24221808.lua
3
2743
--メンタルオーバー・デーモン function c24221808.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_PSYCHO),aux.NonTuner(Card.IsRace,RACE_PSYCHO),2) c:EnableReviveLimit() --remove local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(24221808,0)) e1:SetCategory(CATEGO...
gpl-2.0
kevinlowrie/wrk
deps/luajit/src/jit/bcsave.lua
87
18141
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
apache-2.0
T-L-N/Dev_TLN
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-2.0
sagarwaghmare69/nn
SpatialConvolutionLocal.lua
9
6746
local SpatialConvolutionLocal, parent = torch.class('nn.SpatialConvolutionLocal', 'nn.Module') function SpatialConvolutionLocal:__init(nInputPlane, nOutputPlane, iW, iH ,kW, kH, dW, dH, padW, padH) parent.__init(self) dW = dW or 1 dH = dH or 1 self.nInputPlane = nInputPlane self.nOutputPlane = nOutput...
bsd-3-clause
Lsty/ygopro-scripts
c6799227.lua
5
1158
--ハーフ・カウンター function c6799227.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e1:SetCondition(c6799227.condition) e1:SetTarget(c6799227.target) e1:SetO...
gpl-2.0
Lsty/ygopro-scripts
c25955164.lua
3
1130
--雷魔神-サンガ function c25955164.initial_effect(c) --atkdown local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(25955164,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_QUICK_O) e1:SetRange(LOCATION_MZONE) e1:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e1:SetProperty(EFFECT_FLAG_...
gpl-2.0
MalRD/darkstar
scripts/zones/Ifrits_Cauldron/Zone.lua
8
1268
----------------------------------- -- -- Zone: Ifrits_Cauldron (205) -- ----------------------------------- local ID = require("scripts/zones/Ifrits_Cauldron/IDs") require("scripts/globals/conquest") require("scripts/globals/treasure") require("scripts/globals/helm") ----------------------------------- function onIni...
gpl-3.0
Lsty/ygopro-scripts
c78266168.lua
3
1692
--ジャイアントマミー function c78266168.initial_effect(c) --turn set local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(78266168,0)) e1:SetCategory(CATEGORY_POSITION) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetTarget(c78266168.target) e1:SetOperation(c78266168.operation) c:RegisterEf...
gpl-2.0
shahabsaf1/My-system
plugins/wiki.lua
735
4364
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
MalRD/darkstar
scripts/globals/items/serving_of_herb_quus.lua
11
1090
----------------------------------------- -- ID: 4559 -- Item: serving_of_herb_quus -- Food Effect: 180Min, All Races ----------------------------------------- -- Dexterity 1 -- Mind -1 -- Ranged ACC % 7 -- Ranged ACC Cap 10 ----------------------------------------- require("scripts/globals/status") require("scripts/gl...
gpl-3.0
chu11/flux-core
t/job-manager/exec-service.lua
7
2713
#!/usr/bin/env lua ------------------------------------------------------------- -- Copyright 2019 Lawrence Livermore National Security, LLC -- (c.f. AUTHORS, NOTICE.LLNS, COPYING) -- -- This file is part of the Flux resource manager framework. -- For details, see https://github.com/flux-framework. -- -- SPDX-License-I...
lgpl-3.0
Lsty/ygopro-scripts
c34230233.lua
3
2581
--暗黒界の龍神 グラファ function c34230233.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(c34230233.spcon) e1:SetOperation(c34230233.spop) c:RegisterEffect...
gpl-2.0
tarulas/luadch
luasocket/etc/forward.lua
61
2077
-- load our favourite library local dispatch = require("dispatch") local handler = dispatch.newhandler() -- make sure the user knows how to invoke us if table.getn(arg) < 1 then print("Usage") print(" lua forward.lua <iport:ohost:oport> ...") os.exit(1) end -- function to move data from one socket to t...
gpl-3.0
Lsty/ygopro-scripts
c29904964.lua
3
1971
--覚醒の暗黒騎士ガイア function c29904964.initial_effect(c) --summon with no tribute local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(29904964,0)) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetCode(EFFECT_SUMMON_PROC) e1:SetCondition(c29904964.ntcon) ...
gpl-2.0
elant/cardpeek
dot_cardpeek_dir/scripts/calypso/c250n502.lua
17
4335
-- -- This file is part of Cardpeek, the smartcard reader utility. -- -- Copyright 2009 by 'L1L1' and 2013-2014 by 'kalon33' -- -- Cardpeek is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of...
gpl-3.0
intel2TM/intel
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
gallenmu/MoonGen
examples/timestamping-tests/timestamps-software.lua
5
2484
--- Software timestamping precision test. --- (Used for an evaluation for a paper) local mg = require "moongen" local ts = require "timestamping" local device = require "device" local hist = require "histogram" local memory = require "memory" local stats = require "stats" local timer = require "timer" local...
mit
MalRD/darkstar
scripts/globals/mobskills/astral_flow_pet.lua
11
2217
--------------------------------------------- -- Astral Flow -- make existing pet use astral flow skill --------------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") --------------------------------------------- local function petInactive(pet) return pet:has...
gpl-3.0
MalRD/darkstar
scripts/globals/mobskills/triclip.lua
11
1043
--------------------------------------------- -- Triclip -- -- Description: Deals damage in a threefold attack. Additional effect: DEX Down -- Type: Physical -- Utsusemi/Blink absorb: 3 shadows -- Range: Melee -- Notes: --------------------------------------------- require("scripts/globals/settings") require("sc...
gpl-3.0
Lsty/ygopro-scripts
c69058960.lua
3
3454
--No.13 ケインズ・デビル function c69058960.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,1,2) c:EnableReviveLimit() --pos local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(69058960,0)) e1:SetCategory(CATEGORY_POSITION) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLi...
gpl-2.0
Lsty/ygopro-scripts
c23558733.lua
3
3022
--フェニキシアン・クラスター・アマリリス function c23558733.initial_effect(c) --cannot special summon local e1=Effect.CreateEffect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetValue(aux.FALSE) c:RegisterEffect(e1) --damage local e2...
gpl-2.0
shahabsaf1/My-system
plugins/groupmanager.lua
136
11323
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if not is_admin(msg) then return "You're not admin!" end local group_creator = msg.from.print_name create_group_chat (group_cr...
gpl-2.0
Lsty/ygopro-scripts
c39751093.lua
3
2918
--竜宮之姫 function c39751093.initial_effect(c) --cannot special summon local e1=Effect.CreateEffect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetValue(aux.FALSE) c:RegisterEffect(e1) --summon,flip local e2=Effect.Cr...
gpl-2.0
neverlose1/sickmind
libs/redis.lua
566
1214
local Redis = require 'redis' local FakeRedis = require 'fakeredis' local params = { host = os.getenv('REDIS_HOST') or '127.0.0.1', port = tonumber(os.getenv('REDIS_PORT') or 6379) } local database = os.getenv('REDIS_DB') local password = os.getenv('REDIS_PASSWORD') -- Overwrite HGETALL Redis.commands.hgetall = ...
gpl-2.0
MalRD/darkstar
scripts/globals/spells/distract.lua
12
1695
----------------------------------------- -- Spell: Distract ----------------------------------------- require("scripts/globals/magic") require("scripts/globals/msg") require("scripts/globals/status") require("scripts/globals/utils") ----------------------------------------- function onMagicCastingCheck(caster, target...
gpl-3.0
Lsty/ygopro-scripts
c55696885.lua
3
1195
--疫病狼 function c55696885.initial_effect(c) --atkup local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(55696885,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetOperation(c55696885.atkop) c:RegisterEffect(e1) end function c...
gpl-2.0
Lsty/ygopro-scripts
c75105429.lua
3
1198
--シンクロ・イジェクション function c75105429.initial_effect(c) --remove local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_REMOVE+CATEGORY_DRAW) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c75105429.target) e1:SetOperation(c75105429.operation) c:...
gpl-2.0
Lsty/ygopro-scripts
c61258740.lua
5
1406
--水神の護符 function c61258740.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c61258740.target) c:RegisterEffect(e1) --indes local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFEC...
gpl-2.0
MalRD/darkstar
scripts/zones/Bibiki_Bay/IDs.lua
9
3809
----------------------------------- -- Area: Bibiki_Bay ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.BIBIKI_BAY] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come back after s...
gpl-3.0