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
MalRD/darkstar
scripts/globals/items/plate_of_sublime_sushi.lua
11
1690
----------------------------------------- -- ID: 6468 -- Item: plate_of_sublime_sushi -- Food Effect: 30Min, All Races ----------------------------------------- -- HP +40 -- MP +20 -- STR +6 -- DEX +7 -- MND -3 -- CHR +6 -- Accuracy +10% (cap 100) -- Ranged Accuracy +10% (cap 100) -- Resist Sleep +1 -------------------...
gpl-3.0
Lsty/ygopro-scripts
c31077447.lua
3
1349
--びっくり箱 function c31077447.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCondition(c31077447.condition) e1:SetTarget(c31077447.target) e1:SetOperation(c31077447.activate) c:RegisterEf...
gpl-2.0
Lsty/ygopro-scripts
c99668578.lua
9
1186
--星因士 プロキオン function c99668578.initial_effect(c) --handes local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(99668578,0)) e1:SetCategory(CATEGORY_HANDES+CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_F...
gpl-2.0
MalRD/darkstar
scripts/globals/mobskills/high-tension_discharger.lua
11
1440
--------------------------------------------------- -- High-Tension_Discharger -- Description: Discharges a powerful current that deals Lightning damage to players in a fan-shaped area. -- Additional effect: Stun -- Type: Magical --------------------------------------------- require("scripts/globals/monstertpmoves") re...
gpl-3.0
NENO7/GENERAL
plugins/wlc.lua
4
2721
--[[ كتابه المطور :- @KNSLTHM@KNSLTHM @KNSLTHM @KNSLTHM @NENO_CH @NENO_CH @NENO_CH --]] do local function run(msg, matches, callback, extra) local data = load_data(_config.moderation.data) local rules = data[tostring(msg.to.id)]['rules'] local about = data[tostring(msg.to.id)]['description'] local hash = 'group:'..m...
gpl-2.0
Mkalo/forgottenserver
data/actions/scripts/other/doors.lua
30
2024
function onUse(player, item, fromPosition, target, toPosition, isHotkey) local itemId = item:getId() if isInArray(questDoors, itemId) then if player:getStorageValue(item.actionid) ~= -1 then item:transform(itemId + 1) player:teleportTo(toPosition, true) else player:sendTextMessage(MESSAGE_INFO_DESCR, "Th...
gpl-2.0
jadarve/lluvia
lluvia/nodes/lluvia/imgproc/ImageDownsampleX_r8ui.lua
1
2338
local builder = ll.class(ll.ComputeNodeBuilder) builder.name = 'lluvia/imgproc/ImageDownsampleX_r8ui' builder.doc = [[ Downsamples a gray level image along the X axis. Let W and H denote the width and height of the input in_gray image, respectively. The shape of the out_gray image is: * out_gray.W = floor(W / 2) * o...
apache-2.0
MalRD/darkstar
scripts/globals/items/colored_egg.lua
11
1033
----------------------------------------- -- ID: 4487 -- Item: colored_egg -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 20 -- Magic 20 -- Attack 3 -- Ranged Attack 2 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") -------...
gpl-3.0
MalRD/darkstar
scripts/zones/Northern_San_dOria/npcs/Kasaroro.lua
9
3394
----------------------------------- -- Area: Northern San d'Oria -- NPC: Kasaroro -- Type: Consulate Representative -- Involved in Mission: 2-3 Windurst -- !pos -72 -3 34 231 ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs"); require("scripts/globals/keyitems"); require("sc...
gpl-3.0
tarulas/luadch
luasocket/src/socket.lua
93
4451
----------------------------------------------------------------------------- -- LuaSocket helper module -- Author: Diego Nehab ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- -- Declare module and import depend...
gpl-3.0
Lsty/ygopro-scripts
c35073065.lua
3
2146
--イリュージョン・スナッチ function c35073065.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(35073065,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_HAND) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCondition(c3507...
gpl-2.0
MalRD/darkstar
scripts/zones/Attohwa_Chasm/IDs.lua
12
2001
----------------------------------- -- Area: Attohwa_Chasm ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.ATTOHWA_CHASM] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come back a...
gpl-3.0
Lsty/ygopro-scripts
c74605254.lua
3
3602
--DD魔導賢者ガリレイ function c74605254.initial_effect(c) --pendulum summon aux.AddPendulumProcedure(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(74605254,1)) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --splimit local e2=Effect.CreateEffect(c) e...
gpl-2.0
MalRD/darkstar
scripts/zones/South_Gustaberg/IDs.lua
2
3073
----------------------------------- -- Area: South_Gustaberg ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.SOUTH_GUSTABERG] = { text = { NOTHING_HAPPENS = 141, -- Nothing happens... ITEM_CANN...
gpl-3.0
Lsty/ygopro-scripts
c66200210.lua
3
3397
--幻獣機ハムストラット function c66200210.initial_effect(c) --level local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetCode(EFFECT_UPDATE_LEVEL) e1:SetValue(c66200210.lvval) c:RegisterEffect(e1) -- local e2=Effect.CreateEffect(c) e2...
gpl-2.0
MalRD/darkstar
scripts/zones/Sacrificial_Chamber/npcs/Armoury_Crate.lua
9
7551
----------------------------------- -- Area: Sacrificial Chamber -- NPC: Armoury Crate ------------------------------------- require("scripts/globals/battlefield") require("scripts/globals/bcnm") ------------------------------------- local loot = { -- BCNM Jungle Boogymen [129] = { { {...
gpl-3.0
Frenzie/koreader
plugins/exporter.koplugin/target/markdown.lua
4
4730
local UIManager = require("ui/uimanager") local md = require("template/md") local _ = require("gettext") local T = require("ffi/util").template -- markdown exporter local MarkdownExporter = require("base"):new { name = "markdown", extension = "md", mimetype = "text/markdown", init_callback = function(...
agpl-3.0
Lsty/ygopro-scripts
c27655513.lua
3
1204
--スクリーチ function c27655513.initial_effect(c) --to grave local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(27655513,0)) e1:SetCategory(CATEGORY_TOGRAVE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c27655513.condition) e1:SetTarget(c27655513...
gpl-2.0
Lsty/ygopro-scripts
c78637313.lua
5
1612
--闇からの呼び声 function c78637313.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --adjust local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e...
gpl-2.0
Lsty/ygopro-scripts
c80889750.lua
3
3365
--デストーイ・サーベル・タイガー function c80889750.initial_effect(c) --fusion material c:EnableReviveLimit() local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetCode(EFFECT_FUSION_MATERIAL) e1:SetCondition(c80889750.fscon) e1:SetOperation(c808...
gpl-2.0
Lsty/ygopro-scripts
c25769732.lua
3
1647
--機械改造工場 function c25769732.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(c25769732.target) e1:SetOperation(c25769732.operation) c:RegisterEffect(e1) ...
gpl-2.0
Lsty/ygopro-scripts
c38430673.lua
3
1077
--グランドクロス function c38430673.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c38430673.condition) e1:SetTarget(c38430673.target) e1:SetOperation(c38430673.activate) c:Regi...
gpl-2.0
ThingMesh/openwrt-luci
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/ping.lua
78
1192
--[[ Luci statistics - ping plugin diagram definition (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apach...
apache-2.0
Mijyuoon/starfall
lua/entities/starfall_screen/shared.lua
1
1169
ENT.Type = "anim" ENT.Base = "base_wire_entity" ENT.PrintName = "Starfall" ENT.Author = "Colonel Thirty Two" ENT.Contact = "initrd.gz@gmail.com" ENT.Purpose = "" ENT.Instructions = "" ENT.Spawnable = false ENT.AdminSpawnable = false ENT.SFAcceptNetMsg = t...
bsd-3-clause
Lsty/ygopro-scripts
c70456282.lua
5
2233
--A BF-霧雨のクナイ function c70456282.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(c70456282.spcon) e1:SetOperation(c70456282.spop) c:RegisterEffect(...
gpl-2.0
MalRD/darkstar
scripts/zones/Port_Bastok/npcs/Nokkhi_Jinjahl.lua
12
5133
----------------------------------- -- Area: Port Bastok -- NPC: Nokkhi Jinjahl -- Type: Travelling Merchant NPC / NPC Quiver Maker / Bastok 1st Place -- !pos 111 8 -47 236 ----------------------------------- local ID = require("scripts/zones/Port_Bastok/IDs"); ----------------------------------- function onTrade(pl...
gpl-3.0
Lsty/ygopro-scripts
c68073522.lua
5
1217
--魂吸収 function c68073522.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --LP up local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(68073522,0)) e2:SetCategory(CATEGORY_RECOVER) e2:SetType(EFFECT_TYPE_F...
gpl-2.0
gallenmu/MoonGen
libmoon/lua/lib/argparse.lua
4
29810
-- The MIT License (MIT) -- Copyright (c) 2013 - 2015 Peter Melnichenko -- 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 --...
mit
Lsty/ygopro-scripts
c30888983.lua
9
1410
--方舟の選別 function c30888983.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_SUMMON) e1:SetCondition(c30888983.condition) e1:SetCost(c30888983.cost) e1:SetTarget(c30888983.target) e1:SetOperati...
gpl-2.0
Lsty/ygopro-scripts
c23639291.lua
3
1473
--アグレッシブ・クラウディアン function c23639291.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_TO_GRAVE) e1:SetCondition(c23639291.condition) e1:SetTarget(c23639291.target) e1:SetOperation(c2...
gpl-2.0
Lsty/ygopro-scripts
c90640901.lua
3
1844
--リバース・バスター function c90640901.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET) e1:SetValue(c90640901.vala) c:RegisterEffect(e1) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_CANNOT_DIRECT_ATTACK) ...
gpl-2.0
Mkalo/forgottenserver
data/creaturescripts/scripts/droploot.lua
19
1207
function onDeath(player, corpse, killer, mostDamage, unjustified, mostDamage_unjustified) if getPlayerFlagValue(player, PlayerFlag_NotGenerateLoot) or player:getVocation():getId() == VOCATION_NONE then return true end local amulet = player:getSlotItem(CONST_SLOT_NECKLACE) if amulet and amulet.itemid == ITEM_AMUL...
gpl-2.0
MalRD/darkstar
scripts/zones/Nyzul_Isle/mobs/Naja_Salaheem.lua
9
2870
----------------------------------- -- Area: Nyzul Isle (Path of Darkness) -- Mob: Naja Salaheem ----------------------------------- local ID = require("scripts/zones/Nyzul_Isle/IDs") require("scripts/globals/allyassist"); require("scripts/globals/instance"); ----------------------------------- -- Path to Stage 2 Pos...
gpl-3.0
Lsty/ygopro-scripts
c33248692.lua
7
1128
--オプションハンター function c33248692.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_RECOVER) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetRange(LOCATION_SZONE) e1:SetCondition(c33248692.condition) e1:SetTarge...
gpl-2.0
Lsty/ygopro-scripts
c76775123.lua
9
1189
--パトロール・ロボ function c76775123.initial_effect(c) --confirm local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(76775123,0)) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_PHASE+PHASE_STANDBY) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) ...
gpl-2.0
sairon/packages
net/luci-app-squid/files/squid-cbi.lua
95
1822
--[[ LuCI Squid module Copyright (C) 2015, OpenWrt.org Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Author: Marko Ratkaj <marko.ratkaj@sartura.hr> ...
gpl-2.0
MahmoudDolah/Firmware-Entry-Points-In-Memory
openwrt/openwrt-generic-x86/usr/lib/lua/luci/model/cbi/admin_network/proto_pppoa.lua
18
3897
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local encaps, atmdev, vci, vpi, username, password local ipv6, defaultroute, metric, peerdns, dns, keepalive_failure, keepalive_interval, demand, mtu encaps = section:tabop...
apache-2.0
rastin45/magic78
plugins/exchange.lua
352
2076
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local function comma_value(n) -- credit http://richard.warburton.it local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$') return left..(num:reverse():gsub('...
gpl-2.0
MalRD/darkstar
scripts/zones/Western_Altepa_Desert/IDs.lua
8
4455
----------------------------------- -- Area: Western_Altepa_Desert ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.WESTERN_ALTEPA_DESERT] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the...
gpl-3.0
Lsty/ygopro-scripts
c27340877.lua
5
1180
--DNA定期健診 function c27340877.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c27340877.target) e1:SetOperation(c27340877.activate) c:RegisterEffect(e1) e...
gpl-2.0
Lsty/ygopro-scripts
c33866130.lua
7
1283
--ナチュル・クリフ function c33866130.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(33866130,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_TO_GRAVE) e1:SetCondi...
gpl-2.0
ThingMesh/openwrt-luci
applications/luci-firewall/luasrc/tools/firewall.lua
59
6016
--[[ LuCI - Lua Configuration Interface Copyright 2011-2012 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 ]]-- mo...
apache-2.0
MalRD/darkstar
scripts/globals/items/ulbukan_lobster.lua
11
1144
----------------------------------------- -- ID: 5960 -- Item: Ulbukan Lobster -- Food Effect: 5 Min, Mithra only ----------------------------------------- -- Dexterity -3 -- Vitality 1 -- Defense +9% ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ------------...
gpl-3.0
Frenzie/koreader
frontend/apps/reader/modules/readerfooter.lua
3
110858
local BD = require("ui/bidi") local Blitbuffer = require("ffi/blitbuffer") local BottomContainer = require("ui/widget/container/bottomcontainer") local CenterContainer = require("ui/widget/container/centercontainer") local Device = require("device") local Event = require("ui/event") local Font = require("ui/font") loca...
agpl-3.0
maxrio/luci981213
modules/luci-base/luasrc/sys.lua
2
15029
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local io = require "io" local os = require "os" local table = require "table" local nixio = require "nixio" local fs = require "nixio.fs" local uci = require "luci.model.uci" local luci = {} l...
apache-2.0
Lsty/ygopro-scripts
c88205593.lua
9
1202
--エレキングコブラ function c88205593.initial_effect(c) --direct attack local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_DIRECT_ATTACK) c:RegisterEffect(e1) --search local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(88205593,0)) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARC...
gpl-2.0
cshore-firmware/openwrt-luci
applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule/wifi_schedule.lua
10
7885
-- Copyright (c) 2016, prpl Foundation -- -- Permission to use, copy, modify, and/or distribute this software for any purpose with or without -- fee is hereby granted, provided that the above copyright notice and this permission notice appear -- in all copies. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
apache-2.0
Distrotech/vlc
share/lua/playlist/appletrailers.lua
88
3309
--[[ Translate trailers.apple.com video webpages URLs to the corresponding movie URL $Id$ Copyright © 2007-2010 the VideoLAN team 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 ve...
gpl-2.0
Lsty/ygopro-scripts
c61254509.lua
5
1433
--トライポッド・フィッシュ function c61254509.initial_effect(c) --lv up local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(61254509,0)) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c61254509.condition) e1:SetTarge...
gpl-2.0
Lsty/ygopro-scripts
c29455728.lua
3
1653
--ツイン・フォトン・リザード function c29455728.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsSetCard,0x55),2,true) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(29455728,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFF...
gpl-2.0
CommandPost/CommandPost-App
Hammerspoon/setup.lua
4
3411
local modpath, frameworkspath, prettypath, fullpath, configdir, docstringspath, hasinitfile, autoload_extensions = ... local userruntime = "~/.local/share/hammerspoon/site" local paths = { configdir .. "/?.lua", configdir .. "/?/init.lua", configdir .. "/Spoons/?.spoon/init.lua", package.path, modpath .. "/...
mit
patixx/bostg
plugins/ingroup.lua
9
54260
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
Lsty/ygopro-scripts
c54250060.lua
3
3393
--召魔装着 function c54250060.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --atk up local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetRange(LOCATION_FZONE) e2:SetT...
gpl-2.0
CommandPost/CommandPost-App
extensions/fs/test_fs.lua
6
9606
-- hs.fs tests require("hs.fs") require("hs.socket") testDir = "/private/tmp/hs_fs_test_dir/" function writeFile(filename, contents) io.open(filename, "w"):write(contents):close() end function setUp() os.execute("mkdir "..testDir) return success() end function tearDown() os.execute("rm -r "..testDir) retu...
mit
summitly/luazmq
src/zmq.lua
1
6222
module( ... , package.seeall) local luazmq = require("luazmq"); zmq_version = luazmq.zmq_version zmq_errno = luazmq.zmq_errno zmq_strerror = luazmq.zmq_strerror zmq_ctx_new = luazmq.zmq_ctx_new zmq_ctx_term = luazmq.zmq_ctx_term zmq_ctx_shutdow...
lgpl-3.0
Frenzie/koreader
frontend/depgraph.lua
8
8306
--[[-- DepGraph module. Library for constructing dependency graphs. Example: local dg = DepGraph:new{} dg:addNode('a1', {'a2', 'b1'}) dg:addNode('b1', {'a2', 'c1'}) dg:addNode('c1') -- The return value of dg:serialize() will be: -- {'a2', 'c1', 'b1', 'a1'} NOTE: Insertion order is preserved, ...
agpl-3.0
Lsty/ygopro-scripts
c47421985.lua
7
1306
--ハイドロ・ジェネクス function c47421985.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsCode,68505803),aux.NonTuner(Card.IsAttribute,ATTRIBUTE_WATER),1) c:EnableReviveLimit() --recover local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(47421985,0)) e1:SetCategory(CA...
gpl-2.0
Aaa1r/DRAGON
plugins/admin.lua
41
9539
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(rec...
gpl-2.0
ASDF482/TeleTak
plugins/badword.lua
1
2477
local function addword(msg, name) local hash = 'chat:'..msg.to.id..':badword' redis:hset(hash, name, 'newword') return "کلمه جدید به فیلتر کلمات اضافه شد\n>"..name end local function get_variables_hash(msg) return 'chat:'..msg.to.id..':badword' end local function list_variablesbad(msg) local has...
gpl-2.0
Frenzie/koreader
frontend/document/pdfdocument.lua
4
14289
local CacheItem = require("cacheitem") local CanvasContext = require("document/canvascontext") local DocCache = require("document/doccache") local DocSettings = require("docsettings") local Document = require("document/document") local DrawContext = require("ffi/drawcontext") local logger = require("logger") local util...
agpl-3.0
Lsty/ygopro-scripts
c95956346.lua
7
1314
--シャインエンジェル function c95956346.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(95956346,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c95956346.condition) e1:Se...
gpl-2.0
Lsty/ygopro-scripts
c94484482.lua
3
1970
--スリップ・サモン function c94484482.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCondition(c94484482.condition) e1:SetTarget(c94484482.target) e1:SetOperation(c94484482.activate) c:Register...
gpl-2.0
Lsty/ygopro-scripts
c86997073.lua
3
1311
--機動要塞フォルテシモ function c86997073.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(86997073,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e...
gpl-2.0
MahmoudDolah/Firmware-Entry-Points-In-Memory
openwrt/openwrt-generic-x86/usr/lib/lua/luci/tools/firewall.lua
63
5812
-- Copyright 2011-2012 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.tools.firewall", package.seeall) local ut = require "luci.util" local ip = require "luci.ip" local nx = require "nixio" local translate, translatef = luci.i18n.translate, luci.i18n.translatef...
apache-2.0
maxrio/luci981213
applications/luci-app-firewall/luasrc/tools/firewall.lua
63
5812
-- Copyright 2011-2012 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.tools.firewall", package.seeall) local ut = require "luci.util" local ip = require "luci.ip" local nx = require "nixio" local translate, translatef = luci.i18n.translate, luci.i18n.translatef...
apache-2.0
Distrotech/vlc
share/lua/playlist/break.lua
113
1995
--[[ $Id$ Copyright © 2007 the VideoLAN team 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 option) any later version. This program is distribut...
gpl-2.0
MalRD/darkstar
scripts/zones/Garlaige_Citadel/npcs/Mashira.lua
9
1703
----------------------------------- -- Area: Garlaige Citadel -- NPC: Mashira -- Involved in Quests: Rubbish day, Making Amens! -- !pos 141 -6 138 200 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/globals/quests"); local ID = require("scr...
gpl-3.0
Lsty/ygopro-scripts
c84243274.lua
3
3957
--VWXYZ-ドラゴン・カタパルトキャノン function c84243274.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcCode2(c,58859575,91998119,true,true) --spsummon condition local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetCo...
gpl-2.0
Lsty/ygopro-scripts
c91754175.lua
2
1471
--犬タウルス function c91754175.initial_effect(c) --atk up local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(91754175,0)) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e1:SetCountLimit(1) e1:SetCondition(c91754175.condition) e1:SetTarget(c91754175.target) e...
gpl-2.0
Lsty/ygopro-scripts
c17375316.lua
9
1061
--押収 function c17375316.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_HANDES) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c17375316.cost) e1:SetTarget(c17375316.target) e1:SetOperation(c17375316.activa...
gpl-2.0
tryroach/vlc
share/lua/sd/frenchtv.lua
111
1356
--[[ $Id$ Copyright © 2010 VideoLAN and AUTHORS Authors: Fabio Ritrovato <sephiroth87 at videolan dot org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or ...
gpl-2.0
Mike325/.vim
lua/neovim/autocmds.lua
1
2767
local api = vim.api local M = { funcs = { g = {}, b = {}, }, } function M.create_autogrp(autogrp) api.nvim_command('augroup ' .. autogrp .. ' | autocmd! | autogrp end') end function M.get_autocmd(autocmd) vim.validate { autocmd = { autocmd, 'table' } } if not autocmd.event and not...
mit
ThingMesh/openwrt-luci
libs/lucid-http/luasrc/lucid/http/LuciWebPublisher.lua
52
1651
--[[ LuCId HTTP-Slave (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 ipairs, pcall, ...
apache-2.0
Lsty/ygopro-scripts
c126218.lua
3
1247
--悪魔のサイコロ function c126218.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(c126218.condition) e1:SetTarget(c...
gpl-2.0
Lsty/ygopro-scripts
c81919143.lua
3
1901
--ブレイン・クラッシャー function c81919143.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(81919143,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION...
gpl-2.0
Lsty/ygopro-scripts
c73289035.lua
3
3101
--武神帝-ツクヨミ function c73289035.initial_effect(c) c:SetUniqueOnField(1,0,73289035) --xyz summon aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_LIGHT),4,2) c:EnableReviveLimit() --draw local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(73289035,0)) e1:SetCategory(CATEGORY_TOGRA...
gpl-2.0
Lsty/ygopro-scripts
c77585513.lua
7
1338
--人造人間-サイコ・ショッカー function c77585513.initial_effect(c) --cannot trigger local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_CANNOT_TRIGGER) e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE) e1:SetRange(LOCATION_MZONE) e1:SetTargetRange(0xa,0xa) e1:SetTarget(c77585513.distg) c:RegisterEffect(...
gpl-2.0
MalRD/darkstar
scripts/globals/spells/bluemagic/seedspray.lua
8
1911
----------------------------------------- -- Spell: Seedspray -- Delivers a threefold attack. Additional effect: Weakens defense. Chance of effect varies with TP -- Spell cost: 61 MP -- Monster Type: Plantoids -- Spell Type: Physical (Slashing) -- Blue Magic Points: 2 -- Stat Bonus: VIT+1 -- Level: 61 -- Casting Time: ...
gpl-3.0
MalRD/darkstar
scripts/globals/effects/debilitation.lua
12
1133
----------------------------------- -- -- -- ----------------------------------- local stats_bits = { dsp.mod.STR, dsp.mod.DEX, dsp.mod.VIT, dsp.mod.AGI, dsp.mod.INT, dsp.mod.MND, dsp.mod.CHR, dsp.mod.HPP, dsp.mod.MPP } function onEffectGain(target,effect) local power = effect:...
gpl-3.0
adan830/luacheck
spec/check_spec.lua
3
12682
local check = require "luacheck.check" describe("check", function() it("does not find anything wrong in an empty block", function() assert.same({}, check("")) end) it("does not find anything wrong in used locals", function() assert.same({ {code = "113", name = "print", line = 5, column =...
mit
cshore-firmware/openwrt-luci
modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/profile.lua
68
2553
-- Copyright 2011-2012 Manuel Munz <freifunk at somakoma dot de> -- Licensed to the public under the Apache License 2.0. local uci = require "luci.model.uci".cursor() local ipkg = require "luci.model.ipkg" local community = uci:get("freifunk", "community", "name") if community == nil then luci.http.redirect(luci.dis...
apache-2.0
Lsty/ygopro-scripts
c40101111.lua
3
2077
--アルティメットサイキッカー function c40101111.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcFun2(c,c40101111.ffilter,aux.FilterBoolFunction(Card.IsRace,RACE_PSYCHO),true) --pierce local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_PIERCE) c:RegisterEffect(e2) --c...
gpl-2.0
MalRD/darkstar
scripts/globals/items/serving_of_cherry_bavarois.lua
11
1064
----------------------------------------- -- ID: 5745 -- Item: serving_of_cherry_bavarois -- Food Effect: 3Hrs, All Races ----------------------------------------- -- HP 25 -- Intelligence 3 -- MP 10 -- HP Recovered While Healing 3 ----------------------------------------- require("scripts/globals/status") require("scr...
gpl-3.0
MalRD/darkstar
scripts/globals/spells/pyrohelix.lua
12
2048
-------------------------------------- -- Spell: Pyrohelix -- Deals fire 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/globals/magic") --------...
gpl-3.0
mickelfeng/ABTestingGateway
diversion/diversion.lua
22
7762
local runtimeModule = require('abtesting.adapter.runtime') local redisModule = require('abtesting.utils.redis') local systemConf = require('abtesting.utils.init') local handler = require('abtesting.error.handler').handler local ERRORINFO = require('abtesting.error.errcode').info local cjson = requi...
mit
cshore-firmware/openwrt-luci
applications/luci-app-wol/luasrc/model/cbi/wol.lua
55
2319
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local sys = require "luci.sys" local fs = require "nixio.fs" m = SimpleForm("wol", translate("Wake on LAN"), translate("Wake on LAN is a mechanism to remotely boot computers in the local network.")) m.submit...
apache-2.0
Lsty/ygopro-scripts
c73915051.lua
3
2351
--スケープ・ゴート function c73915051.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:SetHintTiming(0,TIMING_END_PHASE) e1:SetCost(c73915051.cost) e1:SetTarget(c73915051.target) e1:SetOperation(c739150...
gpl-2.0
Lsty/ygopro-scripts
c43714890.lua
9
1129
--人投げトロール function c43714890.initial_effect(c) --damage local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(43714890,0)) e1:SetCategory(CATEGORY_DAMAGE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCost(c43714890.cost) e1:SetTarget(c437...
gpl-2.0
rotmanmi/nn
Min.lua
27
1520
local Min, parent = torch.class('nn.Min', 'nn.Module') function Min:__init(dimension) parent.__init(self) dimension = dimension or 1 self.dimension = dimension end function Min:_lazyInit() self._output = self._output or self.output.new() self._indices = self._indices or (torch.type(self.output) =...
bsd-3-clause
Lsty/ygopro-scripts
c60080151.lua
3
1851
--好敵手の記憶 function c60080151.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DAMAGE+CATEGORY_REMOVE+CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetCondition(c60080151.condition) e1:SetTarget(c60080151.target) e1:SetOperation(...
gpl-2.0
Lsty/ygopro-scripts
c5257687.lua
3
1245
--X・E・N・O function c5257687.initial_effect(c) --flip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(5257687,0)) e1:SetCategory(CATEGORY_CONTROL) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget(c5257687.target) e1:SetOperation(c5257687.operatio...
gpl-2.0
Lsty/ygopro-scripts
c13683298.lua
3
1471
--大狼雷鳴 function c13683298.initial_effect(c) --destroy local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c13683298.condition) e1:SetCost...
gpl-2.0
Lsty/ygopro-scripts
c21488686.lua
4
1034
--サイコ・ヒーリング function c21488686.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:SetTarget(c21488686.target) e1:SetOperation(c21488686.operation) c:Reg...
gpl-2.0
Mijyuoon/starfall
lua/starfall/permissions/providers_sv/CPPI.lua
1
1150
--- Provides permissions for entities based on CPPI if present local P = setmetatable( {}, { __index = SF.Permissions.Provider } ) local ALLOW = SF.Permissions.Result.ALLOW local DENY = SF.Permissions.Result.DENY local NEUTRAL = SF.Permissions.Result.NEUTRAL local canTool = { [ "ents.parent" ] = true, [ "ents.unpa...
bsd-3-clause
ThingMesh/openwrt-luci
protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua
61
2076
--[[ LuCI - Lua Configuration Interface Copyright 2011-2012 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 ]]-- loc...
apache-2.0
Lsty/ygopro-scripts
c50781944.lua
7
1126
--エンシェント・クリムゾン・エイプ function c50781944.initial_effect(c) --lp rec local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(50781944,0)) e1:SetCategory(CATEGORY_RECOVER) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_TO_GRAVE) e1:SetRange(LOCATION_MZONE) e1:SetProperty(EFFECT_FLAG_PLAY...
gpl-2.0
MalRD/darkstar
scripts/zones/Lower_Jeuno/npcs/_6t2.lua
9
4056
----------------------------------- -- Area: Lower Jeuno -- Door: Merchant's House -- Starts & Finishes Quest: Save My Son -- Optional Involvement in Quest: Chocobo's Wounds, Path of the Beastmaster ----------------------------------- local ID = require("scripts/zones/Lower_Jeuno/IDs") require("scripts/globals/setti...
gpl-3.0
Lsty/ygopro-scripts
c90019393.lua
9
1261
--ジェムナイト・アレキサンド function c90019393.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(90019393,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCost(c90019393.cost) e1:SetTarget(c90019393.target) e1:SetOperat...
gpl-2.0
sagarwaghmare69/nn
L1HingeEmbeddingCriterion.lua
63
1160
local L1HingeEmbeddingCriterion, parent = torch.class('nn.L1HingeEmbeddingCriterion', 'nn.Criterion') function L1HingeEmbeddingCriterion:__init(margin) parent.__init(self) margin = margin or 1 self.margin = margin self.gradInput = {torch.Tensor(), torch.Tensor()} end function L1HingeEmbeddingCriterion:upd...
bsd-3-clause
Lsty/ygopro-scripts
c30600344.lua
3
1094
--エクシーズ・バースト function c30600344.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c30600344.condition) e1:SetTarget(c30600344.target) e1:SetOperation(c30600344.activate) c:RegisterEffect(e1...
gpl-2.0