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 |
|---|---|---|---|---|---|
nekrozar/ygopro-scripts | c90884403.lua | 2 | 4550 | --究極幻神 アルティミトル・ビシバールキン
function c90884403.initial_effect(c)
c:EnableReviveLimit()
--spsummon 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 rule... | gpl-2.0 |
chrisJohn404/ljswitchboard-module_manager | lib/switchboard_modules/lua_script_debugger/premade_scripts/counter_examples/23_counters_with_debounce.lua | 1 | 5425 | --[[
Name: 23_counters_with_debounce.lua
Desc: This program demonstrates how to configure counters, with debounce,
using DIO channels.
Note: The debounce time for each counter will be between debounceinterval and
2*debounceinterval milliseconds. The debounce time is determined by the
... | mit |
MNoya/DotaCraft | game/dota_addons/dotacraft/scripts/vscripts/units/nightelf/shared.lua | 1 | 4424 | -- This is for the active component
function ShadowMeld( event )
local caster = event.caster
local ability = event.ability
local fade_time = ability:GetSpecialValueFor("fade_time")
if GameRules:IsDaytime() then
SendErrorMessage(caster:GetPlayerOwnerID(), "error_shadowmeld_night")
elseif cas... | gpl-3.0 |
Maxsteam/FF | plugins/greeter.lua | 25 | 4242 | --[[
Sends a custom message when a user enters or leave a chat.
!welcome group
The custom message will send to the group. Recommended way.
!welcome pm
The custom message will send to private chat newly joins member.
Not recommended as a privacy concern and the possibility of user reporting the bot.
!welcome disable
... | gpl-2.0 |
ld-test/lgi | lgi/override/cairo.lua | 3 | 29803 | ------------------------------------------------------------------------------
--
-- LGI Cairo override module.
--
-- Copyright (c) 2012 Pavel Holejsovsky
-- Licensed under the MIT license:
-- http://www.opensource.org/licenses/mit-license.php
--
---------------------------------------------------------------------... | mit |
nekrozar/ygopro-scripts | c77498348.lua | 1 | 4512 | --カオス・ソルジャー -宵闇の使者-
function c77498348.initial_effect(c)
c:EnableReviveLimit()
--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)
c:RegisterEffect(e1)
--attribute light
lo... | gpl-2.0 |
nekrozar/ygopro-scripts | c99628747.lua | 1 | 2183 | --メガリス・ベトール
function c99628747.initial_effect(c)
c:EnableReviveLimit()
--ritual summon
local e1=aux.AddRitualProcGreater2(c,c99628747.filter,nil,nil,c99628747.matfilter)
e1:SetDescription(aux.Stringid(99628747,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCode(0)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,99628... | gpl-2.0 |
yuhangwang/luabuild | modules/luasocket/samples/lpr.lua | 59 | 1574 | local lp = require("socket.lp")
local function usage()
print('\nUsage: lua lpr.lua [filename] [keyword=val...]\n')
print('Valid keywords are :')
print(
' host=remote host or IP address (default "localhost")\n' ..
' queue=remote queue or printer name (default "printer")\n' ..
' port=remote port ... | mit |
diminishedprime/.org | reading-list/seven_more_languages_in_seven_weeks/lua/day_1.lua | 1 | 1406 | function ends_in_3(num)
return string.sub(string.reverse(num), 1, 1) == '3'
end
print(ends_in_3(13))
print(ends_in_3(31))
function is_prime(num)
if num == 1 then return false end
if num == 2 then return true end
for i = 2, num - 1 do
if num % i == 0 then return false
else
return true
end
en... | mit |
nekrozar/ygopro-scripts | c2250266.lua | 4 | 3041 | --D・ステープラン
function c2250266.initial_effect(c)
--atk
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EVENT_LEAVE_FIELD_P)
e1:SetOperation(c2250266.check)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetDescri... | gpl-2.0 |
nekrozar/ygopro-scripts | c13761956.lua | 4 | 1394 | --フレムベル・ベビー
function c13761956.initial_effect(c)
--atkup
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(13761956,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_HAND)
e1:SetCost(c13761956.atcost)
e1:SetTarget(c... | gpl-2.0 |
nekrozar/ygopro-scripts | c50766506.lua | 1 | 2717 | --忍法 分身の術
function c50766506.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,TIMINGS_CHECK_MONSTER)
e1:SetTarget(c50766506.target)
e1:SetOperation(c50766506.operation)
c:Registe... | gpl-2.0 |
Ryezhang/h2o | deps/klib/lua/klib.lua | 42 | 20155 | --[[
The MIT License
Copyright (c) 2011, Attractive Chaos <attractor@live.co.uk>
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 th... | mit |
nekrozar/ygopro-scripts | c47810543.lua | 1 | 1963 | --魔弾-ブラッディ・クラウン
function c47810543.initial_effect(c)
c:SetUniqueOnField(1,0,47810543)
--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(47810543,0))
e2:SetCateg... | gpl-2.0 |
nekrozar/ygopro-scripts | c23122036.lua | 2 | 3258 | --陰謀の盾
function c23122036.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:SetCost(c23122036.cost)
e1:SetTarget(c23122036.target)
e1:SetOperation(c23122036.operati... | gpl-2.0 |
jungikim/OpenNMT | onmt/data/Preprocessor.lua | 4 | 42265 | --[[ Data Preparation functions. ]]
local function vecToTensor(vec)
local t = torch.Tensor(#vec)
for i = 1, #vec do
t[i] = vec[i]
end
return t
end
local Preprocessor = torch.class('Preprocessor')
local paths = require 'paths'
local tokenizer = require('tools.utils.tokenizer')
local tds
local threads
loc... | mit |
nekrozar/ygopro-scripts | c84687358.lua | 4 | 1558 | --ミラーフォース・ドラゴン
function c84687358.initial_effect(c)
c:EnableReviveLimit()
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
c:RegisterEffect(e1)
--destroy
local e2=Effect.Cr... | gpl-2.0 |
abbasgh12345/abbas10 | 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 |
matinbot/apple_robot | 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 |
Pandafuchs/iLife | client/Guis/Support/supportoverview.lua | 2 | 11036 | SupportTickets = {}
SupportOverview = {
gridlist = {},
window = {},
button = {},
label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
local sx,sy = guiGetScreenSize()
SupportOverview.window[1] = guiCreateWindow((sx/2)-300, (sy/2)-220, 600, 440, "Support", false)
guiWin... | mit |
nekrozar/ygopro-scripts | c1050355.lua | 1 | 2239 | --Dream Mirror of Terror
function c1050355.initial_effect(c)
--Activate
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(1050355,0))
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TY... | gpl-2.0 |
ndronen/fbcunn | fbcunn/OneBitDataParallel.lua | 9 | 2074 | require('cutorch')
require 'fbnn'
local util = require('fb.util')
local OBSGD = require('fbcunn.OneBitSGD')
local withDevice = cutorch.withDevice
--[[ OneBitDataParallel implements the "1-Bit Stochastic Gradient
Descent and Application to Data-Parallel Distributed Training of
Speech DNNs" paper of Frank Seide, Hao Fu,... | bsd-3-clause |
nekrozar/ygopro-scripts | c41098335.lua | 4 | 1218 | --ファイターズ・エイプ
function c41098335.initial_effect(c)
--atkup
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(41098335,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_BATTLE_DESTROYING)
e1:SetCondition(c41098335.atkcon)
e1:SetOperation(c41098335.atkop)
c:RegisterEffect(e1)
... | gpl-2.0 |
spc476/lua-conmanorg | lua/gzip.lua | 1 | 3675 |
-- RFC-1952
-- luacheck: globals idiv read
-- luacheck: ignore 611
local _VERSION = _VERSION
local pairs = pairs
local setmetatable = setmetatable
local math = require "math"
local table = require "table"
if _VERSION == "Lua 5.1" then
module("org.conman.gzip")
else
_ENV = {}
end
-- ****************... | lgpl-3.0 |
nekrozar/ygopro-scripts | c7733560.lua | 2 | 2548 | --時械神ミチオン
function c7733560.initial_effect(c)
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SINGLE_RANGE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetRange(LOCATION_DECK)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
c:RegisterEffect(e1)
--... | gpl-2.0 |
nekrozar/ygopro-scripts | c20436034.lua | 2 | 1651 | --磁力の指輪
function c20436034.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(c20436034.target)
e1:SetOperation(c20436034.operation)
c:RegisterEffect(e1)
... | gpl-2.0 |
ETegro/OpenSAN | feeds/luci/modules/admin-full/luasrc/controller/admin/index.lua | 1 | 1234 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id: index.lua... | gpl-3.0 |
nekrozar/ygopro-scripts | c98645731.lua | 7 | 1678 | --強欲で謙虚な壺
function c98645731.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,98645731+EFFECT_COUNT_CODE_OATH)
e1:SetCost(c986457... | gpl-2.0 |
xuejian1354/attitude_adjustment | feeds/luci/protocols/ipv6/luasrc/model/cbi/admin_network/proto_6in4.lua | 10 | 2951 | --[[
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... | gpl-2.0 |
nekrozar/ygopro-scripts | c49721904.lua | 2 | 1198 | --真六武衆-キザン
function c49721904.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(c49721904.spcon)
c:RegisterEffect(e1)
--atk,def
local e2=Effect.Crea... | gpl-2.0 |
amooma/GS5 | misc/freeswitch/scripts/dialplan/access_authorizations.lua | 2 | 1659 | -- CommonModule: AccessAuthorization
--
module(...,package.seeall)
AccessAuthorization = {}
-- Create AccessAuthorization object
function AccessAuthorization.new(self, arg)
arg = arg or {}
object = arg.object or {}
setmetatable(object, self)
self.__index = self
self.log = arg.log
self.database = arg.datab... | mit |
nekrozar/ygopro-scripts | c70307656.lua | 4 | 1368 | --グラッジ
function c70307656.initial_effect(c)
--direct attack
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DIRECT_ATTACK)
c:RegisterEffect(e1)
--atkup
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_BATTLE_DAMAGE)
e2:SetO... | gpl-2.0 |
nekrozar/ygopro-scripts | c23998625.lua | 2 | 3186 | --No.53 偽骸神 Heart-eartH
function c23998625.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,5,3)
c:EnableReviveLimit()
--atkup
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(23998625,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_BE_BATTLE_TARGET)
e1:SetCountL... | gpl-2.0 |
nekrozar/ygopro-scripts | c34109611.lua | 4 | 1132 | --ダイガスタ・ファルコス
function c34109611.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsSetCard,0x10),1)
c:EnableReviveLimit()
--atkup
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(34109611,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT... | gpl-2.0 |
bangixy/apibot | 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... | agpl-3.0 |
nekrozar/ygopro-scripts | c17185260.lua | 6 | 1163 | --インフェルノ・ハンマー
function c17185260.initial_effect(c)
--pos
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(17185260,0))
e1:SetCategory(CATEGORY_POSITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLE_DESTROYING)
e1:SetCondition(... | gpl-2.0 |
nekrozar/ygopro-scripts | c67696066.lua | 2 | 1698 | --Emトリック・クラウン
function c67696066.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,676960... | gpl-2.0 |
hakelimopu/CoronaSDKDev | Avagadro/splash.lua | 2 | 2638 | local storyboard = require( "storyboard" )
local scene = storyboard.newScene()
function scene:createScene( event )
local group = self.view
self.gameData = event.params
display.newText({
parent=group,
text="Splash",
font=native.systemFont,
fontSize=32,
x=100,
y=100
})
end
function scene:onKeyDown(th... | gpl-2.0 |
deepmind/lua-pprint | init.lua | 1 | 8206 | --[[ Pretty Printing for Torch and Lua, main module.
Code adapted from inspect.lua, here (https://github.com/kikito/inspect.lua).
* changed some formatting, removed numbering of elements
* added support for tensors
* changed various function names
]]
require 'torch'
-- Wraps quoted strings in apostraphes
local fu... | mit |
nekrozar/ygopro-scripts | c69181753.lua | 1 | 1579 | --EMクリボーダー
function c69181753.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(69181753,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c6918175... | gpl-2.0 |
nekrozar/ygopro-scripts | c64163367.lua | 1 | 1628 | --「A」細胞培養装置
function c64163367.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--counter1
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetRange(LOCATION_SZONE)
e2:SetCode(EVENT_REMOVE... | gpl-2.0 |
finalsliver/supervillain-ui | SVUI_!Core/system/funstuff.lua | 2 | 22393 | --[[
##########################################################
S V U I By: Failcoder
##########################################################
LOCALIZED LUA FUNCTIONS
##########################################################
]]--
--[[ GLOBALS ]]--
local _G = _G;
--LUA
local unpack = _G.unpack;
local se... | mit |
nekrozar/ygopro-scripts | c21565445.lua | 4 | 2833 | --海皇子 ネプトアビス
function c21565445.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(21565445,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1,21565445)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c21565445.cost)
e1:SetTarge... | gpl-2.0 |
dtaht/cerowrt-luci-3.3 | applications/luci-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
... | apache-2.0 |
nekrozar/ygopro-scripts | c50690129.lua | 3 | 1582 | --キャシー・イヴL2
function c50690129.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(50690129,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,50690129)
e1:Set... | gpl-2.0 |
ETegro/OpenSAN | feeds/luci/modules/admin-full/luasrc/model/cbi/admin_services/httpd.lua | 1 | 1058 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id: httpd.lua... | gpl-3.0 |
nekrozar/ygopro-scripts | c8809344.lua | 3 | 2864 | --外神ナイアルラ
function c8809344.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,4,2)
c:EnableReviveLimit()
--rankup
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(8809344,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c8809344.rk... | gpl-2.0 |
dtaht/cerowrt-luci-3.3 | libs/web/luasrc/http/protocol/mime.lua | 88 | 2933 | --[[
HTTP protocol implementation for LuCI - mime handling
(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-2.0 |
nekrozar/ygopro-scripts | c40619825.lua | 2 | 2315 | --デーモンの斧
function c40619825.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(c40619825.target)
e1:SetOperation(c40619825.operation)
c:RegisterEffect(e1)
... | gpl-2.0 |
nekrozar/ygopro-scripts | c98095162.lua | 2 | 3400 | --ライトロード・ドミニオン キュリオス
function c98095162.initial_effect(c)
--link summon
aux.AddLinkProcedure(c,nil,3,3,c98095162.lcheck)
c:EnableReviveLimit()
--to grave
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(98095162,0))
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER... | gpl-2.0 |
linearregression/fbcunn | examples/imagenet/models/vgg_cudnn.lua | 8 | 2154 | function createModel(nGPU)
require 'cudnn'
local modelType = 'A' -- on a titan black, B/D/E run out of memory even for batch-size 32
-- Create tables describing VGG configurations A, B, D, E
local cfg = {}
if modelType == 'A' then
cfg = {64, 'M', 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, ... | bsd-3-clause |
nekrozar/ygopro-scripts | c78509901.lua | 2 | 3987 | --方界獣ブレード・ガルーディア
function c78509901.initial_effect(c)
c:EnableReviveLimit()
--special summon
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE)
e2:SetRange(LOCATION_HAND)
e2:SetCondition(c78509901.spcon... | gpl-2.0 |
dtaht/cerowrt-luci-3.3 | applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua | 80 | 2561 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
l... | apache-2.0 |
nekrozar/ygopro-scripts | c16272453.lua | 4 | 1243 | --機甲忍法ゴールド・コンバージョン
function c16272453.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DRAW+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c16272453.condition)
e1:SetTarget(c16272453.target)
e1:SetOperation(c16272453.activate)
... | gpl-2.0 |
nekrozar/ygopro-scripts | c43175858.lua | 1 | 2402 | --トゥーン・キングダム
function c43175858.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c43175858.target)
e1:SetOperation(c43175858.activate)
c:RegisterEffect(e1)
--change code
local e2=Effect.Creat... | gpl-2.0 |
xuejian1354/attitude_adjustment | feeds/luci/applications/luci-statistics/luasrc/statistics/datatree.lua | 77 | 4394 | --[[
Luci statistics - rrd data tree builder
(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/licenses/... | gpl-2.0 |
TheCodingCaesar/SynHub | NodeMCU/MqttClient.lua | 1 | 2157 | print ("Mqttfile opened")
mqttOnline = false
mqttSubSuccess = false
gpio.mode(1, gpio.OUTPUT)
gpio.mode(2, gpio.OUTPUT)
gpio.write(1, gpio.LOW)
gpio.write(2, gpio.LOW)
status = false
-- timer vars
mainTimerId = 0 -- we have seven timers! 0..6
mainInterval = 1000 -- milliseconds
statusTimerID = 1
statusInterval = 10000... | gpl-3.0 |
nekrozar/ygopro-scripts | c88494899.lua | 7 | 1809 | --氷結界の交霊師
function c88494899.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(c88494899.spcon)
c:RegisterEffect(e1)
--activate limit
local e2=Effec... | gpl-2.0 |
nekrozar/ygopro-scripts | c73648243.lua | 2 | 1230 | --サンドモス
function c73648243.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(73648243,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(c73648243.spcon)
e1:SetTarget(c73648243.sptg... | gpl-2.0 |
nekrozar/ygopro-scripts | c79968632.lua | 4 | 1624 | --六武衆の影忍術
function c79968632.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,79968632+EFFECT_COUNT_CODE_OATH)
e1:SetCost(c79968632.cost)
... | gpl-2.0 |
fredericjoanis/crc-scoreboard | extern/lua/base/io.lua | 5 | 1541 | --
-- io.lua
-- Additions to the I/O namespace.
-- Copyright (c) 2008-2009 Jason Perkins and the Premake project
--
--
-- Prepare to capture the output from all subsequent calls to io.printf(),
-- used for automated testing of the generators.
--
function io.capture()
io.captured = ''
end
--
-- Returns the cap... | mit |
rogerpueyo/libremap-agent-openwrt | libremap-agent/luasrc/libremap.lua | 3 | 6017 | --[[
Copyright 2013 Patrick Grimm <patrick@lunatiki.de>
Copyright 2013 André Gaul <gaul@web-yard.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://www.apache.org/licenses/LICENSE-2.0
]]-... | apache-2.0 |
nekrozar/ygopro-scripts | c15717011.lua | 2 | 2258 | --融合呪印生物-光
function c15717011.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetDescription(aux.Stringid(15717011,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetLabel(0)
e1:SetCost(c15717011.cost)
e1:SetTarget(c15717011.target)
e... | gpl-2.0 |
nekrozar/ygopro-scripts | c23440062.lua | 2 | 2924 | --ウィキッド・リボーン
function c23440062.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:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCost(c23440062.cost)
e1:SetTarget... | gpl-2.0 |
nekrozar/ygopro-scripts | c47222536.lua | 1 | 2647 | --黒の魔導陣
function c47222536.initial_effect(c)
aux.AddCodeList(c,46986414)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,47222536)
e1:SetTarget(c47222536.target)
e1:SetOperation(c47222536... | gpl-2.0 |
nekrozar/ygopro-scripts | c79323590.lua | 4 | 1584 | --魔力の枷
function c79323590.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--activate cost
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_ACTIVATE_COST)
e2:SetRange(LOCATION_SZONE)
... | gpl-2.0 |
fredericjoanis/crc-scoreboard | extern/lua/embed.lua | 5 | 2287 | --
-- Embed the Lua scripts into src/host/scripts.c as static data buffers.
-- I embed the actual scripts, rather than Lua bytecodes, because the
-- bytecodes are not portable to different architectures, which causes
-- issues in Mac OS X Universal builds.
--
local function stripfile(fname)
local f = io.open(fnam... | mit |
nekrozar/ygopro-scripts | c49597193.lua | 6 | 1813 | --ジェムナイト・パーズ
function c49597193.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCodeFun(c,54620698,aux.FilterBoolFunction(Card.IsFusionSetCard,0x1047),1,false,false)
--spsummon condition
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_CANNOT_DI... | gpl-2.0 |
nekrozar/ygopro-scripts | c3395226.lua | 9 | 1897 | --幻奏の音姫プロディジー・モーツァルト
function c3395226.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(3395226,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c3395226.spcost)
e1:SetTarget(... | gpl-2.0 |
Domderon/spice-minions | smee/libs/quickie/group.lua | 15 | 4523 | --[[
Copyright (c) 2012 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribu... | mit |
venkatarajasekhar/bee | src/lua/console.lua | 1 | 8826 | -- console.lua -- internal file
local internal = require('console')
local fiber = require('fiber')
local socket = require('socket')
local log = require('log')
local errno = require('errno')
local urilib = require('uri')
local ffi = require('ffi')
-- admin formatter must be able to encode any Lua variable
local format... | bsd-2-clause |
Kfm946/data_HG2 | Common/scripts/ifelem_listmanager.lua | 1 | 17680 | --
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--
-- List manager for Lua. Handles the overall setup of them, with
-- functions for managing them.
-- Creates the entry items for a list (cursor, etc) to destination
-- container, 'Dest'.
--
-- Layout has the following items in it:
-- .showcount... | gpl-3.0 |
ndronen/fbcunn | test/test_LookupTableGPU.lua | 9 | 6640 | -- Copyright 2004-present Facebook. All Rights Reserved.
require 'cunn'
require 'fb.luaunit'
require 'fbtorch'
require 'fbcunn'
local tester = torch.Tester()
local kTolerance = 1e-4
local LookupTableTest = {}
local function nonBatchTest(elements, nInput, nOutput, features_in_dim_2)
local cpu_emb = nn.LookupTabl... | bsd-3-clause |
nekrozar/ygopro-scripts | c30646525.lua | 4 | 1420 | --破滅の魔王ガーランドルフ
function c30646525.initial_effect(c)
c:EnableReviveLimit()
--destroy
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetDescription(aux.Stringid(30646525,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c30646525.condi... | gpl-2.0 |
PAC3-Server/notagain | lua/notagain/pac_server/autorun/map_define.lua | 2 | 8937 | local MapDefine = {}
_G.MapDefine = MapDefine
MapDefine.Areas = {}
MapDefine.Logs = false
MapDefine.IsExistingArea = function(area)
return MapDefine.Areas[area] and true or false
end
MapDefine.IsInArea = function(ent,area)
if not IsValid(ent) or not MapDefine.IsExistingArea(area) then return false end
local area... | gpl-3.0 |
nekrozar/ygopro-scripts | c9365703.lua | 4 | 1354 | --スピード・ウォリアー
function c9365703.initial_effect(c)
--summon success
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetOperation(c9365703.sumop)
c:RegisterEffect(e1)
--atk up
local e2=Effect.Creat... | gpl-2.0 |
nekrozar/ygopro-scripts | c23557835.lua | 4 | 2016 | --次元融合
function c23557835.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c23557835.cost)
e1:SetTarget(c23557835.tg)
e1:SetOperation(c23557835.op)
c:RegisterEffect(e1)
end
function c235... | gpl-2.0 |
nekrozar/ygopro-scripts | c652362.lua | 4 | 1955 | --エーリアンモナイト
function c652362.initial_effect(c)
--summon success
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(652362,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTa... | gpl-2.0 |
kekobot/api | libs/.keko.lua | 1 | 162104 | --
--... | gpl-3.0 |
chrisJohn404/ljswitchboard-module_manager | lib/switchboard_modules/lua_script_debugger/premade_scripts/sensor_examples/ei-1050_temperature_(sbus).lua | 1 | 1951 | --[[
Name: ei-1050_temperature_(sbus).lua
Desc: This is an example reads data from an EI-1050 digital temperature
and humidity probe
Note: The EI-1050 includes a SHT-11 temperature/humidity sensor by Sensiron
(SBUS). Sensibus (SBUS) is a proprietary communication protocol used
... | mit |
atkd1890/interface2 | LinhTinh/Reloader.lua | 1 | 5351 |
local self = tbReloader;
local tbReloader = Map.tbReloader or {};
Map.tbReloader = tbReloader;
local nState = 0;
local nTimerId = 0;
local lenngua =0
local tbParam = {};
local tbGetParam = {};
local uiSayPanel = Ui(Ui.UI_SAYPANEL);
local DuongDan = "interface2\\DeBug\\NhiemVu.txt"
local DuongDan1 = "interface2\\DeB... | mit |
mihailim/koreader | frontend/ui/data/koptoptions.lua | 1 | 14049 | local BD = require("ui/bidi")
local Device = require("device")
local S = require("ui/data/strings")
local optionsutil = require("ui/data/optionsutil")
local _ = require("gettext")
local Screen = Device.screen
local KoptOptions = {
prefix = 'kopt',
needs_redraw_on_change = true,
{
icon = "resources/... | agpl-3.0 |
nekrozar/ygopro-scripts | c24104865.lua | 4 | 3512 | --エーリアン・マザー
function c24104865.initial_effect(c)
--check
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EVENT_BATTLED)
e1:SetOperation(c24104865.checkop)
c:RegisterEffect(e1)
local g=Group.CreateGroup()
e1:SetLabelObje... | gpl-2.0 |
coronalabs/plugins-source-facebook | Corona/mainScreen.lua | 1 | 16163 | --
-- Project: Facebook Connect scrumptious sample app
--
-- Date: March 14, 2013
--
-- Version: 1.0
--
-- File name: mainScreen.lua
--
-- Author: Corona Labs
--
-- Abstract: Presents the Facebook Connect login dialog, and then posts to the user's stream
-- (Also demonstrates the use of external libraries.)
--
-- Demo... | mit |
nekrozar/ygopro-scripts | c20127343.lua | 2 | 1317 | --A・ジェネクス・チェンジャー
function c20127343.initial_effect(c)
--att change
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20127343,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetTarget(c20127343.costg)
e1:SetOperation(c... | gpl-2.0 |
Pandafuchs/iLife | server/Classes/Element/cOfflinePlayer.lua | 2 | 8764 | --
-- Created by IntelliJ IDEA.
-- User: Noneatme
-- Date: 14.02.2015
-- Time: 16:59
-- To change this template use File | Settings | File Templates.
--
cOfflinePlayer = {};
OfflinePlayers = {}
--[[
]]
-- ///////////////////////////////
-- ///// New //////
-- ///// Returns: Object //////
-- //////////////////... | mit |
xuejian1354/attitude_adjustment | feeds/luci/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... | gpl-2.0 |
nekrozar/ygopro-scripts | c20765952.lua | 4 | 2600 | --魔力無力化の仮面
function c20765952.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(c20765952.target)
e1:SetOperation(c20765952.operation)
c:RegisterEffect(e1... | gpl-2.0 |
w-oertl/Luapress | luapress/util.lua | 2 | 12019 | -- Luapress
-- File: luapress/util.lua
-- Desc: internal Luapress utilities!
local os = os
local io = io
local print = print
local pairs = pairs
local error = error
local table = table
local string = string
local lfs = require('lfs')
local template = require('luapress.template')
local markdown = require('luapress.li... | mit |
nekrozar/ygopro-scripts | c37991342.lua | 2 | 4141 | --クリフォート・ゲノム
function c37991342.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--splimit
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE)
e2:Se... | gpl-2.0 |
redstormbot/khafanbote | plugins/all.lua | 264 | 4202 | do
data = load_data(_config.moderation.data)
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_print... | gpl-2.0 |
disslove85/NOVA2-BOT | plugins/stats.lua | 49 | 3698 | do
local NUM_MSG_MAX = 4
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
-- Returns a table with `... | gpl-2.0 |
nekrozar/ygopro-scripts | c81788994.lua | 6 | 1527 | --影牢の呪縛
function c81788994.initial_effect(c)
c:EnableCounterPermit(0x16)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--counter
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT... | gpl-2.0 |
nekrozar/ygopro-scripts | c78310590.lua | 2 | 5606 | --魔界劇団-メロー・マドンナ
function c78310590.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--to hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(78310590,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_PZONE)
e1:SetCountLim... | gpl-2.0 |
FailcoderAddons/SVUI | SVUI_UnitFrames/libs/Plugins/oUF_Necromancy/oUF_Necromancy.lua | 1 | 2866 | if select(2, UnitClass("player")) ~= "DEATHKNIGHT" then return end
local parent, ns = ...
local oUF = ns.oUF
local floor = math.floor
local runeColors = {
{0.75, 0, 0}, -- blood
{0.1, 0.75, 0}, -- unholy
{0, 0.5, 0.75}, -- frost
{0.5, 0, 1}, -- death
}
local runemap = { 1, 2, 5, 6, 3, 4 }
local BLOOD_OF_TH... | mit |
xuejian1354/attitude_adjustment | feeds/luci/applications/luci-upnp/luasrc/controller/upnp.lua | 2 | 2079 | --[[
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... | gpl-2.0 |
chrisjbray/hammerspoon | extensions/window/layout.lua | 9 | 40364 | --- === hs.window.layout ===
---
--- **WARNING**: EXPERIMENTAL MODULE. DO **NOT** USE IN PRODUCTION.
--- This module is *for testing purposes only*. It can undergo breaking API changes or *go away entirely* **at any point and without notice**.
--- (Should you encounter any issues, please feel free to report them on htt... | mit |
morteza1185/tele-redbot | 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 |
nekrozar/ygopro-scripts | c81510157.lua | 6 | 1156 | --ソウルテイカー
function c81510157.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_RECOVER)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c81510157.target)
e1:SetOperation(c81510157.activate)
c:... | gpl-2.0 |
nekrozar/ygopro-scripts | c15308295.lua | 1 | 3763 | --魔界劇団-コミック・リリーフ
function c15308295.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--control
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(15308295,0))
e1:SetCategory(CATEGORY_CONTROL+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.