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
imblackman/khoffash1
plugins/tools.lua
1
21356
--Begin Tools.lua :) local SUDO = 199042636 -- put Your ID here! <=== local function index_function(user_id) for k,v in pairs(_config.admins) do if user_id == v[1] then print(k) return k end end -- If not found return false end local function getindex(t,id) for i,v in pairs(t) do if v == i...
gpl-3.0
MalRD/darkstar
scripts/globals/weaponskills/tachi_jinpu.lua
10
1573
----------------------------------- -- Tachi Jinpu -- Great Katana weapon skill -- Skill level: 150 -- Two-hit attack. Deals Physical and wind elemental damage to enemy. Additonal Effect Damage varies with TP. -- Will stack with Sneak Attack and Souleater. -- Aligned with the Breeze Gorget & Shadow Gorget. -- Aligned w...
gpl-3.0
Lsty/ygopro-scripts
c15721123.lua
3
1676
--対峙するG function c15721123.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(15721123,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_HAND) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c157...
gpl-2.0
rotmanmi/nn
SparseLinear.lua
20
1869
local SparseLinear, parent = torch.class('nn.SparseLinear', 'nn.Module') function SparseLinear:__init(inputSize, outputSize) parent.__init(self) self.weightDecay = 0 self.weight = torch.Tensor(outputSize, inputSize):zero() self.bias = torch.Tensor(outputSize):zero() self.gradWeight = torch.Tensor(outpu...
bsd-3-clause
MalRD/darkstar
scripts/globals/spells/diaga_ii.lua
11
2314
----------------------------------------- -- Spell: Diaga II -- Lowers an enemy's defense and gradually deals light elemental damage. ----------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/utils") require(...
gpl-3.0
MalRD/darkstar
scripts/globals/items/grape_daifuku.lua
11
2009
----------------------------------------- -- ID: 6343 -- Item: grape_daifuku -- Food Effect: 30 Min, All Races ----------------------------------------- -- HP + 20 (Pet & Master) -- Vitality + 3 (Pet & Master) -- Master MAB + 3 , Pet MAB + 14 -- Accuracy/Ranged Accuracy +10% (cap 50 on master, cap 75 on pet) ----------...
gpl-3.0
MalRD/darkstar
scripts/zones/Tavnazian_Safehold/npcs/_0qa.lua
9
1527
----------------------------------- -- Area: Tavnazian Safehold -- NPC: walnut door -- Involved in mission 2-4 -- !pos 111 -41 41 26 ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/missions"); ----------------------------------- function onTrade(player,npc,trade) end;...
gpl-3.0
MalRD/darkstar
scripts/globals/weaponskills/full_swing.lua
10
1295
----------------------------------- -- Full Swing -- Staff weapon skill -- Skill Level: 200 -- Delivers a single-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Flame Gorget & Thunder Gorget. -- Aligned with the Flame Belt & Thunder Belt. -- Element: None -- Modifiers: STR:50% --...
gpl-3.0
MalRD/darkstar
scripts/zones/Riverne-Site_A01/mobs/Hippogryph.lua
9
1521
----------------------------------- -- Area: Riverne - Site A01 -- Mob: Hippogryph -- Note: PH for Heliodromos ----------------------------------- local ID = require("scripts/zones/Riverne-Site_A01/IDs"); ----------------------------------- function disturbMob(mob) local offset = mob:getID() - ID.mob.HELIODROMOS_...
gpl-3.0
Lsty/ygopro-scripts
c31181711.lua
3
2741
--超重武者装留グレート・ウォール function c31181711.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(31181711,0)) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_HAND+LOCATION_MZONE) e1:SetTarget(c31181711.eqtg...
gpl-2.0
MalRD/darkstar
scripts/zones/Windurst_Woods/npcs/Roberta.lua
9
1843
----------------------------------- -- Area: Windurst Woods -- NPC: Roberta -- !pos 21 -4 -157 241 ----------------------------------- local ID = require("scripts/zones/Windurst_Woods/IDs") require("scripts/globals/quests") ----------------------------------- function onTrade(player,npc,trade) end function onTrigger...
gpl-3.0
MalRD/darkstar
scripts/zones/Carpenters_Landing/globals.lua
11
3675
----------------------------------- -- Zone: Carpenters' Landing (2) -- Desc: this file contains functions that are shared by multiple luas in this zone's directory ----------------------------------- local ID = require("scripts/zones/Carpenters_Landing/IDs") require("scripts/globals/npc_util") require("scripts/globals...
gpl-3.0
MalRD/darkstar
scripts/zones/Ordelles_Caves/Zone.lua
9
1138
----------------------------------- -- -- Zone: Ordelles Caves (193) -- ----------------------------------- local ID = require("scripts/zones/Ordelles_Caves/IDs") require("scripts/globals/conquest") require("scripts/globals/treasure") require("scripts/globals/zone") ----------------------------------- function onIniti...
gpl-3.0
adan830/luacheck
spec/format_spec.lua
3
4262
local format = require "luacheck.format".format local function remove_color(s) return (s:gsub("\27.-\109", "")) end describe("format", function() it("returns formatted report", function() assert.equal([[Checking stdin 1 warning stdin:2:7: unused global variable foo ...
mit
bryansum/urMus
urMus-Lua/urAnimate.lua
1
2900
-- Animation.lua -- Simple animation framework -- Created by Bryan Summersett on 2/24/2010 -- large credit to Thomas Fuchs's émile: http://github.com/madrobby/emile -- timer = Timer.create(5, callbackfn) -- timer:Start() -- or timer = Timer.start(5,callbackfn) if not Timer then Timer = { create = function(dur,callb...
mit
Lsty/ygopro-scripts
c65612454.lua
5
2882
--エレキューブ function c65612454.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget(c65612454.target) e1:SetOperation(c65612454.operation) c:RegisterEffect(e1) ...
gpl-2.0
Lsty/ygopro-scripts
c18634367.lua
3
3908
--スクリーン・オブ・レッド function c18634367.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,0x28) e1:SetTarget(c18634367.target) e1:SetOperation(c18634367.spop) c:RegisterEffect(e1) --cannot attack local e2=Effect.CreateEffect...
gpl-2.0
Lsty/ygopro-scripts
c84224627.lua
3
2188
--キャット・シャーク function c84224627.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,2,2) c:EnableReviveLimit() --battle indestructable local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetCondition(c84224627.indcon) e1:SetValue(1) c:RegisterEffect(e...
gpl-2.0
Distrotech/vlc
share/lua/sd/assembleenationale.lua
91
8388
--[[ $Id$ Copyright © 2012 VideoLAN and AUTHORS Authors: François Revol <revol at free dot fr> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your op...
gpl-2.0
MalRD/darkstar
scripts/globals/spells/bluemagic/cold_wave.lua
12
2237
----------------------------------------- -- Spell: Cold Wave -- Deals ice damage that lowers Agility and gradually reduces HP of enemies within range -- Spell cost: 37 MP -- Monster Type: Arcana -- Spell Type: Magical (Ice) -- Blue Magic Points: 1 -- Stat Bonus: INT-1 -- Level: 52 -- Casting Time: 4 seconds -- Recast ...
gpl-3.0
MalRD/darkstar
scripts/globals/items/grilled_lik.lua
11
1032
----------------------------------------- -- ID: 5648 -- Item: Grilled Lik -- Food Effect: 60 Mins, All Races ----------------------------------------- -- Dexterity 4 -- Mind -3 -- Accuracy +2 -- Attack +8 ---------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") --------...
gpl-3.0
Lsty/ygopro-scripts
c27315304.lua
5
1242
--ミスト・ウォーム function c27315304.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),2) c:EnableReviveLimit() --return hand local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(27315304,0)) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(...
gpl-2.0
ThingMesh/openwrt-luci
applications/luci-firewall/luasrc/model/cbi/firewall/forward-details.lua
65
3931
--[[ 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 $Id$ ]]-- lo...
apache-2.0
Lsty/ygopro-scripts
c32233746.lua
9
1197
--ライト・バニッシュ function c32233746.initial_effect(c) --Activate(summon) local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_SUMMON) e1:SetCondition(c32233746.condition) e1:SetCost(c32233746.cost) e1:SetTarget(c32233746.target) e...
gpl-2.0
Lsty/ygopro-scripts
c67196946.lua
3
1891
--スター・ブラスト function c67196946.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c67196946.con) e1:SetCost(c67196946.cost) e1:SetTarget(c67196946.tg) e1:SetOperation(c67196946.op) c:RegisterEffect(e1) end function c67196946...
gpl-2.0
mohammad25253/new43
plugins/banhammer.lua
33
12751
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
Lsty/ygopro-scripts
c64203620.lua
3
2049
--極星邪竜ヨルムンガンド function c64203620.initial_effect(c) c:EnableReviveLimit() --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(64203620,0)) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SPSUM_PARAM) e1:SetRange(LOCATION...
gpl-2.0
Lsty/ygopro-scripts
c72491806.lua
5
2812
--U.A.ファンタジスタ function c72491806.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_HAND) e1:SetCountLimit(1,72491806) e1:SetCondition(c72491806.spcon) e1:SetOperation(c724...
gpl-2.0
MalRD/darkstar
scripts/zones/Full_Moon_Fountain/bcnms/moon_reading.lua
8
1377
----------------------------------- -- Area: Full Moon Mountain -- Name: Windurst Mission 9-2 Moon Reading ----------------------------------- require("scripts/globals/battlefield") require("scripts/globals/missions") ----------------------------------- function onBattlefieldTick(battlefield, tick) dsp.battlefield...
gpl-3.0
cleytonk/globalfull
data/talkactions/scripts/remove_tutor.lua
12
1058
function onSay(cid, words, param) local player = Player(cid) if player:getAccountType() <= ACCOUNT_TYPE_TUTOR then return true end local resultId = db.storeQuery("SELECT `name`, `account_id`, (SELECT `type` FROM `accounts` WHERE `accounts`.`id` = `account_id`) AS `account_type` FROM `players` WHERE `name` = " .....
gpl-2.0
Lsty/ygopro-scripts
c1689516.lua
3
1214
--百獣大行進 function c1689516.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(TIMING_DAMAGE_STEP) e1:SetCondition(c1689516.condition) e1:SetTarget(c...
gpl-2.0
Lsty/ygopro-scripts
c16886617.lua
3
2734
--レプティレス・ヴァースキ function c16886617.initial_effect(c) c:EnableReviveLimit() c:SetUniqueOnField(1,1,16886617) --cannot special summon local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetValue(0)...
gpl-2.0
Lsty/ygopro-scripts
c81896370.lua
5
1547
--疾風鳥人ジョー function c81896370.initial_effect(c) --summon success local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(81896370,0)) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCondition(c81896370.condition) e1:SetTarget(c818...
gpl-2.0
qaheri/AASv2
plugins/Inrealm.lua
183
36473
-- 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 is_sudo(msg) or is_realm(msg) and is_admin1(msg) then local group_creator = msg.from.print_name create_group_chat (group_creator, group_na...
gpl-2.0
MalRD/darkstar
scripts/zones/Lower_Jeuno/npcs/Zauko.lua
9
5158
----------------------------------- -- Area: Lower Jeuno -- NPC: Zauko -- Involved in Quests: Save the Clock Tower, Community Service -- !pos -3 0 11 245 ----------------------------------- require("scripts/zones/Lower_Jeuno/globals"); local ID = require("scripts/zones/Lower_Jeuno/IDs"); require("scripts/globals/keyit...
gpl-3.0
todotodoo/skia
tools/lua/bbh_filter.lua
207
4407
-- bbh_filter.lua -- -- This script outputs info about 'interesting' skp files, -- where the definition of 'interesting' changes but is roughly: -- "Interesting for bounding box hierarchy benchmarks." -- -- Currently, the approach is to output, in equal ammounts, the names of the files that -- have most commands, and t...
bsd-3-clause
Lsty/ygopro-scripts
c33725271.lua
7
1135
--ヴォルカニック・チャージ function c33725271.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TODECK) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c33725271.target) e1:SetOperation(c33725271.activate) c:RegisterEffec...
gpl-2.0
mohammad25253/new43
plugins/plugins.lua
134
6165
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
Lsty/ygopro-scripts
c35268887.lua
3
2538
--ダメージ・トランスレーション function c35268887.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetOperation(c35268887.activate) c:RegisterEffect(e1) if not c35268887.global_check then c35268887.global_check=true c35268887[0]=0 c35268887[1]=...
gpl-2.0
Lsty/ygopro-scripts
c81385346.lua
3
1437
--スタンピング・クラッシュ function c81385346.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c81385346.condition) e1:SetTarget(c81385346.target) e1:SetOperati...
gpl-2.0
Lsty/ygopro-scripts
c1005587.lua
3
1525
--煉獄の落とし穴 function c1005587.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetTarget(c1005587.target) e1:SetOperation(c1005587.activate) c:RegisterEffect(e1) end function c1005587.filter(c,tp) ...
gpl-2.0
Lsty/ygopro-scripts
c95403418.lua
3
2637
--スターダストン function c95403418.initial_effect(c) c:EnableReviveLimit() --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) c:RegisterEffect(e1) --special summon local e2=Effe...
gpl-2.0
Lsty/ygopro-scripts
c34568403.lua
3
2358
--アルカナフォースVII-THE CHARIOT function c34568403.initial_effect(c) --coin local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(34568403,0)) e1:SetCategory(CATEGORY_COIN) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(c34568403.cointg) e1:SetOperation(c34...
gpl-2.0
Lsty/ygopro-scripts
c43436049.lua
3
2223
--ジャンク・ブレイカー function c43436049.initial_effect(c) --disable local e1=Effect.CreateEffect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetOperation(c43436049.sumsuc) c:RegisterEffect(e1) local e2=Effect.CreateEffect(c) e2...
gpl-2.0
Lsty/ygopro-scripts
c99733359.lua
3
1785
--盾航戦車ステゴサイバー function c99733359.initial_effect(c) --no damage local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(99733359,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_QUICK_O+EFFECT_TYPE_FIELD) e1:SetRange(LOCATION_GRAVE) e1:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e1:SetCountLimit...
gpl-2.0
Lsty/ygopro-scripts
c16480084.lua
3
1402
--エヴォルダー・ペルタ function c16480084.initial_effect(c) end function c16480084.evolreg(c) --defup local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_UPDATE_DEFENCE) e1:SetValue(500) e1:SetReset(RESET_EVENT+0x1ff0000) c:RegisterEffect(e1) --search local e2=Effect.CreateEffect(c) e2:SetD...
gpl-2.0
MalRD/darkstar
scripts/zones/Davoi/npcs/!.lua
9
2186
----------------------------------- -- Area: Davoi -- NPC: ! -- Involved in Mission: The Davoi Report -- !pos 164 0.1 -21 149 ----------------------------------- require("scripts/globals/missions"); require("scripts/globals/keyitems"); local ID = require("scripts/zones/Davoi/IDs"); ----------------------------------- ...
gpl-3.0
MalRD/darkstar
scripts/zones/Waughroon_Shrine/npcs/Armoury_Crate.lua
9
27028
----------------------------------- -- Area: Waughroon Shrine -- NPC: Armoury Crate ------------------------------------- require("scripts/globals/battlefield") require("scripts/globals/bcnm") ------------------------------------- local loot = { -- BCNM The Worm's Turn [65] = { { {item...
gpl-3.0
Lsty/ygopro-scripts
c21672573.lua
5
1783
--エンペラー・ストゥム function c21672573.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(21672573,0)) e1:SetCategory(CATEGORY_TODECK) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_MZONE) e1:SetCode(EVENT_SUMMON_SUCCESS) e...
gpl-2.0
MalRD/darkstar
scripts/zones/Upper_Jeuno/Zone.lua
9
1794
----------------------------------- -- -- Zone: Upper_Jeuno (244) -- ----------------------------------- local ID = require("scripts/zones/Upper_Jeuno/IDs") require("scripts/globals/conquest") require("scripts/globals/missions") require("scripts/globals/chocobo") ----------------------------------- function onInitiali...
gpl-3.0
MalRD/darkstar
scripts/globals/spells/foe_requiem_iii.lua
12
1832
----------------------------------------- -- Spell: Foe Requiem III ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0 end f...
gpl-3.0
Lsty/ygopro-scripts
c39276790.lua
3
1037
--真剣勝負 function c39276790.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCondition(c39276790.condition) e1:SetTarget(c39276790.target) e1:SetOperation(c39276790.activate) c:RegisterE...
gpl-2.0
Frenzie/koreader
frontend/apps/reader/modules/readermenu.lua
1
18706
local BD = require("ui/bidi") local CenterContainer = require("ui/widget/container/centercontainer") local ConfirmBox = require("ui/widget/confirmbox") local Device = require("device") local Event = require("ui/event") local InputContainer = require("ui/widget/container/inputcontainer") local Screensaver = require("ui/...
agpl-3.0
kidaa/luafun
tests/transformations.lua
5
1474
-------------------------------------------------------------------------------- -- map -------------------------------------------------------------------------------- fun = function(...) return 'map', ... end dump(map(fun, range(0))) --[[test --test]] dump(map(fun, range(4))) --[[test map 1 map 2 map 3 map 4 --te...
mit
cshore-firmware/openwrt-luci
applications/luci-app-privoxy/luasrc/model/cbi/privoxy.lua
18
36299
-- Copyright 2014-2015 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed under the Apache License, Version 2.0 local NXFS = require "nixio.fs" local SYS = require "luci.sys" local UTIL = require "luci.util" local DISP = require "luci.dispatcher" local DTYP = require "luci.cbi.datatypes" l...
apache-2.0
MalRD/darkstar
scripts/zones/Windurst_Waters/npcs/Orez-Ebrez.lua
12
1294
----------------------------------- -- Area: Windurst Waters -- NPC: Orez-Ebrez -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); local ID = require("scripts/zones/Windurst_Waters/IDs"); ----------------------------------- function onTra...
gpl-3.0
ThingMesh/openwrt-luci
libs/sgi-wsapi/luasrc/sgi/wsapi.lua
41
1800
--[[ LuCI - SGI-Module for WSAPI Description: Server Gateway Interface for WSAPI 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 Licens...
apache-2.0
MalRD/darkstar
scripts/globals/items/seafood_stewpot.lua
11
1413
----------------------------------------- -- ID: 5238 -- Item: Seafood Stewpot -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% Cap 50 -- MP +10 -- Accuracy 5 -- Ranged Accuracy 5 -- Evasion 5 -- hHP 5 -- hMP 1 ----------------------------------------- require(...
gpl-3.0
MalRD/darkstar
scripts/zones/Bastok_Markets/npcs/Zon-Fobun.lua
9
1368
----------------------------------- -- Area: Bastok Markets -- NPC: Zon-Fobun -- Type: Quest Giver -- !pos -241.293 -3 63.406 235 ----------------------------------- require("scripts/globals/keyitems") require("scripts/globals/npc_util") require("scripts/globals/quests") ----------------------------------- function o...
gpl-3.0
AL-JOKER/AL.JOKER
plugins/ar-supergroup.lua
10
80767
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ Orders : الاوامر ▀▄ ▄▀ ▀▄...
gpl-3.0
ThingMesh/openwrt-luci
modules/admin-full/luasrc/model/cbi/admin_system/backupfiles.lua
85
2658
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> 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://w...
apache-2.0
ThingMesh/openwrt-luci
libs/rpcc/luasrc/rpcc.lua
93
2227
--[[ LuCIRPCc (c) 2009 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$ ]]-- local util = require "luci.ut...
apache-2.0
Lsty/ygopro-scripts
c20529766.lua
5
2129
--超電磁稼動ボルテック・ドラゴン function c20529766.initial_effect(c) --summon success local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCondition(c20529766.condition) e1:SetOperation(c20529766.operation) c:RegisterEffect(e1) --tribute check local e2=...
gpl-2.0
npge/alnbox
spec/makeAlignment_spec.lua
3
1585
-- alnbox, alignment viewer based on the curses library -- Copyright (C) 2015 Boris Nagaev -- See the LICENSE file for terms of use describe("alnbox.makeAlignment", function() it("creates alignment object", function() local names = { "c_59_0", "b_59_0", "a_0_59" } local name2text = { a_...
mit
ThingMesh/openwrt-luci
modules/admin-mini/luasrc/controller/mini/system.lua
71
6669
--[[ 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
Lsty/ygopro-scripts
c85359414.lua
3
4284
--氷岩魔獣 function c85359414.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(85359414,0)) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetTarget(c85359414.eqtg) e1:SetOperation(c85359...
gpl-2.0
openwrt/luci
libs/luci-lib-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
ThingMesh/openwrt-luci
protocols/ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua
53
1276
--[[ 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
MalRD/darkstar
scripts/zones/Mog_Garden/IDs.lua
12
1246
----------------------------------- -- Area: Mog_Garden ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.MOG_GARDEN] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come back after ...
gpl-3.0
Lsty/ygopro-scripts
c21179143.lua
3
1520
--レプティレス・スポーン function c21179143.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c21179143.cost) e1:SetTarget(c21179143.target) e1:SetOperation(c21179143.activate) c:RegisterEffect(e1) ...
gpl-2.0
rastin45/magic78
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
Lsty/ygopro-scripts
c64034255.lua
3
1993
--A・ジェネクス・バードマン function c64034255.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(64034255,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCost(c64034255.spcost) e1:SetTarget(c64034255.sptg) e1:SetO...
gpl-2.0
MalRD/darkstar
scripts/commands/setmobflags.lua
22
1334
--------------------------------------------------------------------------------------------------- -- func: setmobflags <flags> <optional MobID> -- desc: Used to manipulate a mob's nameflags for testing. -- MUST either target a mob first or else specify a Mob ID. -------------------------------------------------...
gpl-3.0
MalRD/darkstar
scripts/zones/Ilrusi_Atoll/npcs/Excaliace.lua
14
4011
----------------------------------- -- Area: Periqia -- NPC: Excaliace ----------------------------------- require("scripts/zones/Periqia/IDs"); require("scripts/globals/pathfind"); local start = {-322,-16.5,380}; local startToChoice1 = { -320.349548, -16.046591, 379.684570 -318.312317, -16.046591, 379.57986...
gpl-3.0
xylosper/mpv
TOOLS/lua/status-line.lua
22
1634
-- Rebuild the terminal status line as a lua script -- Be aware that this will require more cpu power! -- Also, this is based on a rather old version of the -- builtin mpv status line. -- Add a string to the status line function atsl(s) newStatus = newStatus .. s end function update_status_line() -- Reset the...
gpl-2.0
Lsty/ygopro-scripts
c95503687.lua
7
2235
--ライトロード・サモナー ルミナス function c95503687.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(95503687,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetCountLimit(1) e1:SetRange(LOCATION_MZONE) e...
gpl-2.0
gallenmu/MoonGen
libmoon/dpdk-conf.lua
4
1193
-- Configuration for all DPDK command line parameters. -- See DPDK documentation at http://dpdk.org/doc/guides/testpmd_app_ug/run_app.html for details. -- libmoon tries to choose reasonable defaults, so this config file can almost always be empty. -- Be careful when running libmoon in a VM that also uses another virtio...
mit
Lsty/ygopro-scripts
c94432298.lua
3
2700
--殻醒する煉獄 function c94432298.initial_effect(c) Duel.EnableGlobalFlag(GLOBALFLAG_SELF_TOGRAVE) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(TIMING_STANDBY_PHASE,0) e1:SetTarget(c94432298.tgtg1) e1:SetOperation(c94432298.tgop) c:Register...
gpl-2.0
Mike325/.vim
lua/tests/utils/init.lua
1
1789
local M = {} function M.random_string(size) size = size or 10 local w = '' for _ = 1, size do w = w .. string.char(math.random(32, 126)) end return w end function M.random_word(size) size = size or 10 local w = '' for _ = 1, size do local char = string.char(math.random(...
mit
pharanyx/Source
jfm.lua
1
1167
module("ps", package.seeall) -- Project Source Combat & Utility System -- Project Start Date: 14th May 2017 -- Main System Module -- Load system modules function load_system_modules() local path = package.path local cpath = package.cpath local home_dir = getMudletHomeDir() local lua_dir = string.format("%s/%...
gpl-3.0
Lsty/ygopro-scripts
c35419032.lua
7
2967
--侵略の侵喰感染 function c35419032.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_END_PHASE) e1:SetTarget(c35419032.target1) e1:SetOperation(c35419032.operation) c:RegisterEffect(e1) --instant(chain) local e2=Effec...
gpl-2.0
Lsty/ygopro-scripts
c25988873.lua
5
1983
--ドラグニティ-パルチザン function c25988873.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(25988873,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(c25988873.sptg) e1:Set...
gpl-2.0
gallenmu/MoonGen
test/tests/02-receive.lua
8
2364
-- Function to test: Receive -- Test against: Sending network card rate. local luaunit = require "luaunit" local dpdk = require "dpdk" local memory = require "memory" local device = require "device" local timer = require "timer" local stats = require "stats" local log = require "testlog" local testlib = require "tes...
mit
Lsty/ygopro-scripts
c87008374.lua
5
2765
--ZW-不死鳥弩弓 function c87008374.initial_effect(c) c:SetUniqueOnField(1,0,87008374) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(87008374,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCategory(CATEGORY_EQUIP) e1:SetRange(LOCATION_HAND) e1:SetCondition...
gpl-2.0
MalRD/darkstar
scripts/globals/abilities/ninja_roll.lua
12
2744
----------------------------------- -- Ability: Ninja Roll -- Enhances evasion for party members within area of effect -- Optimal Job: Ninja -- Lucky Number: 4 -- Unlucky Number: 8 -- Jobs: -- Corsair Level 8 -- Phantom Roll +1 Value: 2 -- -- Die Roll |With NIN -- -------- ---------- -- 1 |+4 -- 2 ...
gpl-3.0
sagarwaghmare69/nn
DotProduct.lua
15
1516
local DotProduct, parent = torch.class('nn.DotProduct', 'nn.Module') function DotProduct:__init() parent.__init(self) self.gradInput = {torch.Tensor(), torch.Tensor()} end function DotProduct:updateOutput(input) local input1, input2 = input[1], input[2] if input1:dim() == 1 then -- convert non bat...
bsd-3-clause
sagarwaghmare69/nn
CAdd.lua
9
3479
local CAdd, parent = torch.class("nn.CAdd", "nn.Module") function CAdd:__init(...) parent.__init(self) local arg = {...} self.size = torch.LongStorage() local n = #arg if n == 1 and torch.type(arg[1]) == 'torch.LongStorage' then self.size:resize(#arg[1]):copy(arg[1]) else self.size:resiz...
bsd-3-clause
Lsty/ygopro-scripts
c42945701.lua
9
1164
--火霊術-「紅」 function c42945701.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c42945701.cost) e1:SetTarget(c42945701.target) e1:SetOperation(c42945701.a...
gpl-2.0
rastin45/magic78
plugins/torrent_search.lua
411
1622
--[[ NOT USED DUE TO SSL ERROR -- See https://getstrike.net/api/ local function strike_search(query) local strike_base = 'http://getstrike.net/api/v2/torrents/' local url = strike_base..'search/?phrase='..URL.escape(query) print(url) local b,c = http.request(url) print(b,c) local search = json:decode(b) v...
gpl-2.0
gallenmu/MoonGen
interface/flow/init.lua
4
5376
local lfs = require "syscall.lfs" local log = require "log" local configenv = require "configenv" local options = require "options" local errors = require "errors" local Flow = require "flow.instance" local Packet = require "flow.packet" local mod = { flows = {} } local env = configenv.env function env.Flow(tbl) ...
mit
Lsty/ygopro-scripts
c77876207.lua
5
1106
--財宝への隠し通路 function c77876207.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c77876207.target) e1:SetOperation(c77876207.activate) c:RegisterEffect(e1) end function c77876207.filter(c...
gpl-2.0
Lsty/ygopro-scripts
c34022290.lua
5
2240
--ガーディアン・エアトス function c34022290.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_HAND) e1:SetCondition(c34022290.spcon) c:RegisterEffect(e1) --remove local e2=Effect.Cr...
gpl-2.0
Lsty/ygopro-scripts
c39091951.lua
5
1483
--パンダボーグ function c39091951.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(39091951,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c39091951.condition) e1:SetCo...
gpl-2.0
Lsty/ygopro-scripts
c93085839.lua
3
2876
--聖騎士エクター・ド・マリス function c93085839.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(93085839,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND+LOCATION_GRAVE) e1:SetCountLimit(1,93085839) e1:SetCost(c93085839.s...
gpl-2.0
MalRD/darkstar
scripts/zones/Nashmau/IDs.lua
9
2597
----------------------------------- -- Area: Nashmau ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.NASHMAU] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come back after sortin...
gpl-3.0
Lsty/ygopro-scripts
c33323657.lua
9
1140
--サイコ・ソウル function c33323657.initial_effect(c) --recover local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCategory(CATEGORY_RECOVER) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c33323657.reccost) e1:SetTarget(c33323657.rectg) e1:SetOperation(c33323657...
gpl-2.0
pyridiss/devilsai
data/object/cuirass.lua
1
2393
--[[ Object "Cuirass" - Cuirass 1 ]] name = "cuirass" categoryObject = "regulier" classObject = "armure" imageFile = "img/O301+.png" iconFile = "img/O301-.png" currentSlot = 0 slotForUse = "equipment-armor" properties = { ["strength"] = 0, ["constitution"] = 6, ["charisma"] ...
gpl-3.0
sagarwaghmare69/nn
ParallelTable.lua
10
1834
local ParallelTable, parent = torch.class('nn.ParallelTable', 'nn.Container') function ParallelTable:__init() parent.__init(self) self.modules = {} self.output = {} self.gradInput = {} end function ParallelTable:updateOutput(input) for i=1,#self.modules do self.output[i] = self:rethrowErrors(self...
bsd-3-clause
openwrt/luci
applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua
9
2110
-- Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> -- Licensed to the public under the Apache License 2.0. local dsp = require "luci.dispatcher" local nixio = require "nixio" m = Map("ocserv", translate("OpenConnect VPN")) if m.uci:get("ocserv", "config", "auth") == "plain" then --[[Users]]-...
apache-2.0
Lsty/ygopro-scripts
c59593925.lua
3
2143
--共鳴破 function c59593925.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c59593925.target) c:RegisterEffect(e1) --destroy local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(59593925,0)) e2:SetType(EFFECT_TYPE_F...
gpl-2.0