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 |
|---|---|---|---|---|---|
anshkumar/yugioh-glaze | assets/script/c70046172.lua | 3 | 1285 | --突進
function c70046172.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCondition(c70046172.con... | gpl-2.0 |
assassinboy208/eagleTG | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c13944422.lua | 7 | 1751 | --グラナドラ
function c13944422.initial_effect(c)
--recover
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(13944422,0))
e1:SetCategory(CATEGORY_RECOVER)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c139444... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c22339232.lua | 3 | 2759 | --ワイトメア
function c22339232.initial_effect(c)
--change code
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_GRAVE)
e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetValue(32274490)
c:RegisterEffect(e1)
--to grave
local e2=Effect.CreateEffect(c)
e... | gpl-2.0 |
alireza1998/power | plugins/help1.lua | 1 | 1873 | 1 do
2
3 -- Returns true if is not empty
4 local function has_usage_data(dict)
5 if (dict.usage == nil or dict.usage == '') then
6 return false
7 end
8 return true
9 end
10
11 -- Get commands for that plugin
12 local function plugin_help(name)
13 local plugin = plugins[name]
14 if not plugin then return... | gpl-2.0 |
chenjiansnail/skynet | lualib/snax/loginserver.lua | 42 | 5057 | local skynet = require "skynet"
require "skynet.manager"
local socket = require "socket"
local crypt = require "crypt"
local table = table
local string = string
local assert = assert
--[[
Protocol:
line (\n) based text protocol
1. Server->Client : base64(8bytes random challenge)
2. Client->Server : base64(8bytes... | mit |
anshkumar/yugioh-glaze | assets/script/c60946968.lua | 3 | 1052 | --異界空間-Aゾーン
function c60946968.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--atk def
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_DAMAGE_CALCULATING)
e2:SetRange(LOC... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c2978414.lua | 3 | 3621 | --No.46 神影龍ドラッグルーオン
function c2978414.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_DRAGON),8,2)
c:EnableReviveLimit()
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(2978414,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TY... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c80161395.lua | 3 | 1223 | --神秘の中華なべ
function c80161395.initial_effect(c)
--recover
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_RECOVER)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c80161395.cost)
e1:SetTarget(c80161395.target)
e1:SetOperation(c80161395.a... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c6979239.lua | 9 | 1240 | --リーフ・フェアリー
function c6979239.initial_effect(c)
--damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(6979239,0))
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c6979239.cost)
e1:SetTarget(c6979... | gpl-2.0 |
freifunk-gluon/luci | libs/nixio/docsrc/nixio.bit.lua | 171 | 2044 | --- Bitfield operators and mainpulation functions.
-- Can be used as a drop-in replacement for bitlib.
module "nixio.bit"
--- Bitwise OR several numbers.
-- @class function
-- @name bor
-- @param oper1 First Operand
-- @param oper2 Second Operand
-- @param ... More Operands
-- @return number
--- Invert given number.
... | apache-2.0 |
anshkumar/yugioh-glaze | assets/script/c30741334.lua | 7 | 1452 | --熱血指導王ジャイアントレーナー
function c30741334.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,8,3)
c:EnableReviveLimit()
--draw
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DRAW+CATEGORY_DAMAGE)
e1:SetDescription(aux.Stringid(30741334,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c51085303.lua | 3 | 1436 | --E・HERO ブルーメ
function c51085303.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)
--atk/def
local e2=Effect.... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c3701074.lua | 5 | 2051 | --ダーク・キュア
function c3701074.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--Activate
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(3701074,0))
e2:SetCategory(CATEGORY_RECOVER)
e2:SetType(EFFECT_TYPE_FIELD+EF... | gpl-2.0 |
shirat74/sile | languages/da.lua | 4 | 9671 | SILE.hyphenator.languages["da"] = {};
SILE.hyphenator.languages["en"].patterns =
{
".ae3",
".an3k",
".an1s",
".be5la",
".be1t",
".bi4tr",
".der3i",
".diagno5",
".her3",
".hoved3",
".ne4t5",
".om1",
".ove4",
".po1",
".til3",
".yd5r",
"ab5le",
"3abst",
"a3c",
"ade5la",
"5adg",
"a1e",
"5afg",
"5a4f1l",
"af3r",
"af4ri",
"5... | mit |
anshkumar/yugioh-glaze | assets/script/c96015976.lua | 5 | 2317 | --再転
function c96015976.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c96015976.target1)
e1:SetOperation(c96015976.operation)
c:RegisterEffect(e1)
--
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(9601597... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c98891840.lua | 3 | 1310 | --休息する剣闘獣
function c98891840.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c98891840.target)
e1:SetOperation(c98891840.activate)
c:Re... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c45082499.lua | 3 | 2630 | --ZW-雷神猛虎剣
function c45082499.initial_effect(c)
c:SetUniqueOnField(1,0,45082499)
--equip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(45082499,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetRange(LOCATION_HAND+LOCATION_MZONE)
... | gpl-2.0 |
johnparker007/mame | 3rdparty/bimg/scripts/bimg_encode.lua | 7 | 1425 | --
-- Copyright 2010-2019 Branimir Karadzic. All rights reserved.
-- License: https://github.com/bkaradzic/bx#license-bsd-2-clause
--
project "bimg_encode"
kind "StaticLib"
includedirs {
path.join(BX_DIR, "include"),
path.join(BIMG_DIR, "include"),
path.join(BIMG_DIR, "3rdparty"),
path.join(BIMG_DIR, "3rdpa... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c55948544.lua | 3 | 3544 | --ファラオの審判
function c55948544.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(55948544,0))
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_DRAW_PHASE)
e1:SetCondition(c55948544.condition1)
e1:SetCost(c55948544.cost)
e1:SetOperat... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c70595331.lua | 3 | 1969 | --地獄の門番イル・ブラッド
function c70595331.initial_effect(c)
aux.EnableDualAttribute(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetDescription(aux.Stringid(70595331,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(au... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c9342162.lua | 3 | 2441 | --彼岸の悪鬼 ハロウハウンド
function c9342162.initial_effect(c)
--self destroy
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_SELF_DESTROY)
e1:SetCondition(c9342162.sdcon)
c:RegisterEffect(e1)
--Special Summon
local e2=... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c4335645.lua | 3 | 1132 | --ニュードリュア
function c4335645.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(4335645,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_BATTLE_DESTROYED)
e1:SetCondition(c433... | gpl-2.0 |
dinodeck/rpg_dialog_script | dialog_runner/code/Storyboard.lua | 10 | 2268 |
Storyboard = {mId ="storybaord"}
Storyboard.__index = Storyboard
function Storyboard:Create(stack, events, handIn)
local this =
{
mStack = stack,
mEvents = events,
mStates = {},
mSubStack = StateStack:Create(),
mPlayingSounds = {}
}
setmetatable(thi... | mit |
BooM-amour/neweagle | plugins/linkpv.lua | 66 | 30275 | do
local function check_member(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[tostring(msg.to.id)] = {
... | gpl-2.0 |
RockySeven3161/UB | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c75797046.lua | 3 | 1625 | --フォトン・アレキサンドラ・クイーン
function c75797046.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x6a),4,2)
c:EnableReviveLimit()
--return
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(75797046,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_DAMAGE)
e1:SetT... | gpl-2.0 |
zhaoxin54430/zhaoxin_test | src_luci/applications/luci-app-splash/luasrc/model/cbi/splash/splashtext.lua | 78 | 1663 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2010 Manuel Munz <freifunk@somakoma.de>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local splashtextfile = "/usr/lib/luci-splash/splashtext.html"
local splash... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c46759931.lua | 3 | 1246 | --V・HERO トリニティー
function c46759931.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsSetCard,0x8),3,true)
--summon success
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:S... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c33823832.lua | 3 | 2484 | --EMファイア・マフライオ
function c33823832.initial_effect(c)
--pendulum summon
aux.AddPendulumProcedure(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--spsummon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(33823832,0))... | gpl-2.0 |
sjznxd/lc-20130302 | applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua | 76 | 5638 | --[[
Luci diag - Diagnostics controller module
(c) 2009 Daniel Dickinson
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
]]--
module("luci.cont... | apache-2.0 |
anshkumar/yugioh-glaze | assets/script/c11508758.lua | 3 | 1541 | --ミュータント・ハイブレイン
function c11508758.initial_effect(c)
--control
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(11508758,0))
e1:SetCategory(CATEGORY_CONTROL)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetConditi... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c3536537.lua | 3 | 1379 | --ヴェルズ・ザッハーク
function c3536537.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(3536537,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(c3536537.... | gpl-2.0 |
qamrhom/wawi.alnajaf | plugin/stats.lua | 15 | 4017 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-3.0 |
svaarala/duktape | tests/perf/test-string-garbage.lua | 7 | 1632 | local function test()
local s = 'x'
local t
for i=1,5e5 do
t = s .. 'y'; t = s .. 'y'; t = s .. 'y'; t = s .. 'y'; t = s .. 'y'
t = s .. 'y'; t = s .. 'y'; t = s .. 'y'; t = s .. 'y'; t = s .. 'y'
t = s .. 'y'; t = s .. 'y'; t = s .. 'y'; t = s .. 'y'; t = s .. 'y'
t = s .. ... | mit |
zhaoxin54430/zhaoxin_test | src_luci/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua | 14 | 17148 | -- Licensed to the public under the Apache License 2.0.
module "luci.sys.zoneinfo.tzdata"
TZ = {
{ 'Africa/Abidjan', 'GMT0' },
{ 'Africa/Accra', 'GMT0' },
{ 'Africa/Addis Ababa', 'EAT-3' },
{ 'Africa/Algiers', 'CET-1' },
{ 'Africa/Asmara', 'EAT-3' },
{ 'Africa/Bamako', 'GMT0' },
{ 'Africa/Bangui', 'WAT-1' },
... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c66331855.lua | 3 | 1831 | --D・チャッカン
function c66331855.initial_effect(c)
--damagea
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(66331855,0))
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c663318... | gpl-2.0 |
adan830/UpAndAway | code/prefabs/gummybear_den.lua | 2 | 7791 | BindGlobal()
local assets =
{
Asset("ANIM", "anim/gummybear_den.zip"),
}
local prefabs =
{
"merm",
"collapse_big",
}
local loot =
{
"log",
"log",
"goldnugget",
"trinket_2",
}
local function onlightning(inst)
inst.SoundEmitter:PlaySound("dontstarve/common/lig... | gpl-2.0 |
sjznxd/lc-20130302 | modules/admin-mini/luasrc/controller/mini/index.lua | 79 | 1429 | --[[
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 |
adan830/UpAndAway | wickertools/pkgfilelist_gen.lua | 2 | 8887 | #!/usr/bin/lua
--[[
--
-- Script for generating the list of files and directories to be packaged by
-- pkg_archiver.pl.
--
-- simplex
--
--]]
local ARGV = arg
local opts = {}
local function ParseOpts()
local i = 1
while i <= #ARGV do
local optname, optvalue
repeat
local opt
opt = ARGV[i]:match("^%-([^... | gpl-2.0 |
TETOO2020/THETETOO_A8 | plugins/en_help.lua | 3 | 7325 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY tetoo ▀▄ ▄▀
▀▄ ▄▀ BY nmore (@l_l_lo) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY l_l_ll ▀▄ ▄▀
▀▄ ▄▀ broadcast : help ar ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀... | gpl-2.0 |
freifunk-gluon/luci | applications/luci-vnstat/luasrc/model/cbi/vnstat.lua | 90 | 2019 | --[[
LuCI - Lua Configuration Interface
Copyright 2010-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
]]--
loc... | apache-2.0 |
walid55/all_wazer1 | plugins/inrealm.lua | 850 | 25085 | -- 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_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
cpluscpu/episs | plugins/inrealm.lua | 850 | 25085 | -- 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_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
alireza1998/power | plugins/sudo.lua | 1 | 1875 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' yo... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c36021814.lua | 3 | 2064 | --ワイトキング
function c36021814.initial_effect(c)
--base attack
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_BASE_ATTACK)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetValue(c36021814.atkval)
c:RegisterEffect(e1)
--special summon
local e2=Effect... | gpl-2.0 |
freifunk-gluon/luci | libs/web/luasrc/http/protocol.lua | 55 | 18445 | --[[
HTTP protocol implementation for LuCI
(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.apache.org/licen... | apache-2.0 |
LuaDist2/dromozoa-ubench | sample.lua | 2 | 1110 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-ubench.
--
-- dromozoa-ubench 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 the License, ... | gpl-3.0 |
dinodeck/rpg_dialog_script | dialog_runner/code/MoveState.lua | 10 | 3261 | MoveState = { mName = "move" }
MoveState.__index = MoveState
function MoveState:Create(character, map)
local this =
{
mCharacter = character,
mMap = map,
mTileWidth = map.mTileWidth,
mEntity = character.mEntity,
mController = character.mController,
mMove... | mit |
zhaoxin54430/zhaoxin_test | src_luci/applications/luci-app-radicale/luasrc/controller/radicale.lua | 32 | 6668 | -- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed under the Apache License, Version 2.0
module("luci.controller.radicale", package.seeall)
local NX = require("nixio")
local NXFS = require("nixio.fs")
local DISP = require "luci.dispatcher"
local HTTP = require("luci... | gpl-2.0 |
TETOO2020/THETETOO_A8 | plugins/links.lua | 4 | 1302 | local function run(msg, matches)
if is_momod(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings'] then
if data[tostring(msg.to.id)]['settings']['lock_ads'] then
lock_ads... | gpl-2.0 |
zwhfly/openwrt-luci | modules/freifunk/luasrc/model/cbi/freifunk/basics.lua | 74 | 3518 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 Manuel Munz <freifunk at somakoma de>
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:... | apache-2.0 |
sjznxd/lc-20130302 | modules/freifunk/luasrc/model/cbi/freifunk/basics.lua | 74 | 3518 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 Manuel Munz <freifunk at somakoma de>
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:... | apache-2.0 |
Arashbrsh/kings-BOT | plugins/media.lua | 376 | 1679 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c48783998.lua | 6 | 1896 | --コーリング・ノヴァ
function c48783998.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(48783998,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLE_DESTROYED)
e1:SetCondition(c48783998.condition)
e1:Se... | gpl-2.0 |
zxcwe/uhf | plugins/banhammer.lua | 1 | 11663 | local function pre_process(msg)
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
local banned = is_banned(user_id, msg.to.id)
if banned or is_gbanned(user_id... | gpl-2.0 |
zwhfly/openwrt-luci | libs/nixio/docsrc/nixio.File.lua | 173 | 4457 | --- Large File Object.
-- Large file operations are supported up to 52 bits if the Lua number type is
-- double (default).
-- @cstyle instance
module "nixio.File"
--- Write to the file descriptor.
-- @class function
-- @name File.write
-- @usage <strong>Warning:</strong> It is not guaranteed that all data
-- in the bu... | apache-2.0 |
assassinboy208/eagleTG | plugins/ingroup.lua | 371 | 44212 | 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 |
anshkumar/yugioh-glaze | assets/script/c20563387.lua | 5 | 3415 | --CNo.80 葬装覇王レクイエム・イン・バーサーク
function c20563387.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,5,3)
c:EnableReviveLimit()
--equip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20563387,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCategory(CATEGORY... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c44481227.lua | 3 | 2702 | --EMラクダウン
function c44481227.initial_effect(c)
--pendulum summon
aux.AddPendulumProcedure(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_ATKCHANGE)
e2:SetType(EFFECT_TY... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c35329581.lua | 5 | 1878 | --シャドー・インパルス
function c35329581.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCountLimit(1,35329581+EFFECT_COUNT_CODE_OATH)
e1:... | gpl-2.0 |
madmanteam/vlc | share/lua/modules/common.lua | 54 | 4986 | --[[ This code is public domain (since it really isn't very interesting) ]]--
module("common",package.seeall)
-- Iterate over a table in the keys' alphabetical order
function pairs_sorted(t)
local s = {}
for k,_ in pairs(t) do table.insert(s,k) end
table.sort(s)
local i = 0
return function () i = ... | gpl-2.0 |
zhaoxin54430/zhaoxin_test | src_luci/applications/luci-app-pbx/luasrc/model/cbi/pbx.lua | 146 | 4360 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx 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 the License, or
... | gpl-2.0 |
zwhfly/openwrt-luci | protocols/ppp/luasrc/model/cbi/admin_network/proto_pptp.lua | 59 | 3379 | --[[
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 |
anshkumar/yugioh-glaze | assets/script/c36523152.lua | 7 | 1636 | --超重武者ビッグワラ-G
function c36523152.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:SetValue(1)
e1:SetCondition(c36523152.spcon)
c:RegisterEffect(e1)
--spsummon l... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c22201234.lua | 5 | 2139 | --ライトロード・バリア
function c22201234.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c22201234.atg)
e1:SetOperation(c22201234.aop)
c:RegisterEffect(e1)
--quick
local e2=Effect.CreateEffect(c)
e2:SetProperty(EFFECT_FLAG_CARD_TAR... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c35011819.lua | 3 | 2470 | --エンペラー・オーダー
function c35011819.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c35011819.target1)
e1:SetOperation(c35011819.activate1)
c:RegisterEffect(e1)
--instant
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.S... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c65196094.lua | 3 | 2723 | --バラエティ・アウト
function c65196094.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c65196094.cost)
e1:SetTarget(c65196094.target)
e1:SetOperation(c65... | gpl-2.0 |
adan830/UpAndAway | wicker/kernel_extensions/dst_abstraction/rpc/fake_singleplayer_rpcs.lua | 6 | 1361 | if IsWorldgen() then return {} end
assert(IsSingleplayer(), "fake_singleplayer_rpcs.lua should only be loaded in singleplayer!")
local rpcs = {}
function rpcs.EquipActiveItem(player)
local inv = player.components.inventory
if not inv then return end
local active_item = inv:GetActiveItem()
if active_item ~= nil ... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c69764158.lua | 3 | 1471 | --ペロペロケルペロス
function c69764158.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(69764158,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_DAMAGE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFEC... | gpl-2.0 |
Ced-le-pingouin/microlua-sim | clp/mls/ModuleManager.lua | 2 | 10334 | -------------------------------------------------------------------------------
-- Loads, initializes, and resets simulated µLua modules, such as screen, Font,
-- etc.
--
-- @class module
-- @name clp.mls.ModuleManager
-- @author Ced-le-pingouin <Ced.le.pingouin@gmail.com>
--
-------------------------------------------... | gpl-3.0 |
anshkumar/yugioh-glaze | assets/script/c34471458.lua | 3 | 2565 | --フォーチュンレディ・ライティー
function c34471458.initial_effect(c)
--atk,def
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_SET_ATTACK)
e1:SetValue(c34471458.value)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EF... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c80513550.lua | 3 | 2971 | --バッド・エンド・クイーン・ドラゴン
function c80513550.initial_effect(c)
c:EnableReviveLimit()
--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(c80513550.hspcon)
c:RegisterEffect(e1)... | gpl-2.0 |
nhnb/stendhal | data/script/region/atlantis/city/exterior/ZelanNPC.lua | 3 | 2340 | --[[
***************************************************************************
* Copyright © 2020 - Arianne *
***************************************************************************
***************************************************************************
* ... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c7093411.lua | 3 | 2221 | --宝玉獣 サファイア・ペガサス
function c7093411.initial_effect(c)
--send replace
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_TO_GRAVE_REDIRECT_CB)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCondition(c7093411.repcon)
e1:SetOperation(c7093411.repop)
c:RegisterEffect(e1)
--place
local ... | gpl-2.0 |
ilovecv/rbm_toolbox_lua | examples/testconv.lua | 5 | 7083 |
codeFolder = '../code/'
require('torch')
require(codeFolder..'rbm')
require(codeFolder..'dataset-mnist')
require(codeFolder..'ProFi')
require 'paths'
torch.setdefaulttensortype('torch.FloatTensor')
require 'nn'
tester = torch.Tester()
nInput = 1
filterSize = 2
pad = filterSize -1
nFilters = 3
poolSize =2
inputSiz... | bsd-3-clause |
anshkumar/yugioh-glaze | assets/script/c55343236.lua | 5 | 2986 | --Sin 真紅眼の黒竜
function c55343236.initial_effect(c)
c:EnableReviveLimit()
--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(c55343236.spcon)
e1:SetOperation(c55343236.sp... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c12117532.lua | 5 | 2730 | --罅割れゆく斧
function c12117532.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DISABLE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c12117532.target)
e1:SetOperation(c12... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c60493189.lua | 3 | 1821 | --E・HERO プラズマヴァイスマン
function c60493189.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCode2(c,20721928,59793705,true,true)
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(... | gpl-2.0 |
Zhu-Zhi-Hao/Droid_Ettercap | src/lua/share/third-party/stdlib/src/lcs.lua | 12 | 1584 | --- Longest Common Subsequence algorithm.
-- After pseudo-code in <a
-- href="http://www.ics.uci.edu/~eppstein/161/960229.html">lecture
-- notes</a> by <a href="mailto:eppstein@ics.uci.edu">David Eppstein</a>.
-- Find common subsequences.
-- @param a first sequence
-- @param b second sequence
-- @return list of commo... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c26329679.lua | 3 | 1327 | --セイクリッド・オメガ
function c26329679.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_LIGHT),4,2)
c:EnableReviveLimit()
--immune
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(26329679,0))
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAI... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c28348537.lua | 3 | 1654 | --ブリザード・プリンセス
function c28348537.initial_effect(c)
--summon with 1 tribute
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(28348537,0))
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c28348537.otcon)
... | gpl-2.0 |
Tiger66639/premake-core | tests/actions/vstudio/cs2005/test_compiler_props.lua | 5 | 1408 | --
-- tests/actions/vstudio/cs2005/test_compiler_props.lua
-- Test the compiler flags of a Visual Studio 2005+ C# project.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_cs2005_compiler_props")
local cs2005 = premake.vstudio.cs2005
local project = premake.pro... | bsd-3-clause |
PocoCraftSource/FiveNightsatFreddysGMod | entities/weapons/gmod_tool/stools/ballsocket.lua | 4 | 2622 |
TOOL.Category = "Constraints"
TOOL.Name = "#tool.ballsocket.name"
TOOL.ClientConVar[ "forcelimit" ] = "0"
TOOL.ClientConVar[ "torquelimit" ] = "0"
TOOL.ClientConVar[ "nocollide" ] = "0"
function TOOL:LeftClick( trace )
if ( IsValid( trace.Entity ) && trace.Entity:IsPlayer() ) then return end
-- If there's no ph... | gpl-2.0 |
sjznxd/lc-20130302 | applications/luci-minidlna/luasrc/controller/minidlna.lua | 73 | 1448 | --[[
LuCI - Lua Configuration Interface - miniDLNA support
Copyright 2012 Gabor Juhos <juhosg@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... | apache-2.0 |
anshkumar/yugioh-glaze | assets/script/c52182715.lua | 6 | 2020 | --グリーン・ダストン
function c52182715.initial_effect(c)
c:SetUniqueOnField(1,0,52182715)
--cannot release
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_UNRELEASABLE_SUM)
e1:SetValue(1)
c:RegisterEffect(e1)
local e... | gpl-2.0 |
johnparker007/mame | plugins/data/database.lua | 6 | 1111 | local sql = require("lsqlite3")
local datfile = {}
local db
local function check_db(msg)
if db:errcode() > sql.OK then
emu.print_error(string.format("Error: %s (%s - %s)\n", msg, db:errcode(), db:errmsg()))
end
end
do
local dbpath = emu.subst_env(mame_manager.ui.options.entries.historypath:value():match("([^;]+)... | gpl-2.0 |
kiarash14/br | bot/utils.lua | 239 | 13499 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
http.TIMEOUT = 10
funct... | gpl-2.0 |
ARGANBOT/ARSHAM | bot/utils.lua | 239 | 13499 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
http.TIMEOUT = 10
funct... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c87751584.lua | 3 | 1139 | --ガトリング・ドラゴン
function c87751584.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCode2(c,81480460,25551951,true,true)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(87751584,0))
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_COIN)
e1:SetType(EFFECT_TYPE_IGNITION)
e... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c14799437.lua | 3 | 4772 | --インフェルノイド・ネヘモス
function c14799437.initial_effect(c)
c:EnableReviveLimit()
--special summon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
c:RegisterEffect(e1)
--special summon
loca... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c62434031.lua | 3 | 1930 | --森羅の花卉士 ナルサス
function c62434031.initial_effect(c)
--deck check
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(62434031,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c62434031.target)
e1:SetOperation... | gpl-2.0 |
assassinboy208/eagleTG | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
cpluscpu/episs | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
Tiger66639/premake-core | tests/actions/vstudio/vc200x/test_debug_settings.lua | 4 | 2449 | --
-- tests/actions/vstudio/vc200x/test_debugdir.lua
-- Validate handling of the working directory for debugging.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_vs200x_debugdir")
local vc200x = premake.vstudio.vc200x
local project = premake.project
--
-- Se... | bsd-3-clause |
WAKAMAZU/sile_fe | packages/pdf.lua | 2 | 3304 | if SILE.outputter ~= SILE.outputters.libtexpdf then
SU.error("pdf package requires libtexpdf backend")
end
local pdf = require("justenoughlibtexpdf")
SILE.registerCommand("pdf:destination", function (o,c)
local name = SU.required(o, "name", "pdf:bookmark")
SILE.typesetter:pushHbox({
value = nil,
height =... | mit |
anshkumar/yugioh-glaze | assets/script/c74416224.lua | 5 | 1724 | --ブラック・レイ・ランサー
function c74416224.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_WATER),3,2)
c:EnableReviveLimit()
--disable
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DISABLE)
e1:SetDescription(aux.Stringid(74416224,0))
e1:SetType(EFFECT_TYPE... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c54514594.lua | 3 | 1275 | --ヴォルカニック・ハンマー
function c54514594.initial_effect(c)
--damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(54514594,0))
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c54514594.cost)
e1:SetTarget(c54514594.target)
e1... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c68084557.lua | 7 | 2193 | --機械竜 パワー・ツール
function c68084557.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--draw
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DRAW)
e1:SetDescription(aux.Stringid(68084557,0))
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_DAMAG... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c28890974.lua | 5 | 1806 | --光神化
function c28890974.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:SetTarget(c28890974.target)
e1:SetOperation(c28890974.activate)
c:RegisterEffect(e1)
end
function c28890974.filter(c,e,tp... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.