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
Hacksore/TSL
lib/util.lua
1
7528
util = {} --replcae old util.str_split with this garry method function string.Explode(str, separator) local ret = {} local index,lastPosition = 1,1 -- Find the parts for startPosition,endPosition in string.gmatch( str, "()" .. separator.."()" ) do ret[index] = string.sub( str, lastPosition, startPosition-...
mit
nekrozar/ygopro-scripts
c95395761.lua
1
2527
--甲虫装機 アーマイゼ function c95395761.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetDescription(aux.Stringid(95395761,0)) e1:SetCategory(CATEGORY_EQUIP) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetTarget(c95395761.eqtg) e1:SetOperation(c95395761.eqop) c:R...
gpl-2.0
zhoushishang/Coc_Demo
src/cocos/cocostudio/DeprecatedCocoStudioFunc.lua
61
3456
if nil == ccs then return end --tip local function deprecatedTip(old_name,new_name) print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") end --functions of GUIReader will be deprecated begin local GUIReaderDeprecated = { } function GUIReaderDeprecated.shareRe...
apache-2.0
nekrozar/ygopro-scripts
c77723643.lua
6
2403
--シャドール・ドラゴン function c77723643.initial_effect(c) --flip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(77723643,0)) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e1:SetCountLimit(1,7...
gpl-2.0
ev1l0rd/yalnpv
dfhack/hack/scripts/gui/advfort_items.lua
1
6316
--[[=begin gui/advfort_items ================= Does something with items in adventure mode jobs. =end]] local _ENV = mkmodule('hack.scripts.gui.advfort_items') local gui=require('gui') local wid=require('gui.widgets') local gscript=require('gui.script') jobitemEditor=defclass(jobitemEditor,gui.Framed...
mit
jungikim/OpenNMT
onmt/scorers/dlratio.lua
8
1576
local function calculate_one_dlratio(pred, ref) local predlen = string.len(pred) local reflen = string.len(ref) local matrix = {} -- save time if we can if (predlen == 0) then return reflen elseif (pred == ref) then return 0 end -- create the predlen x reflen matrix for i = 0, predlen do ...
mit
nekrozar/ygopro-scripts
c81791932.lua
4
1407
--スネーク・ホイッスル function c81791932.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_DESTROYED) e1:SetCondition(c81791932.condition) e1:SetTarget(c81791932.target) e1:SetOperation(c81791932.activate) c:RegisterEff...
gpl-2.0
shahabsaf1/xspamers
plugins/stats.lua
866
4001
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-2.0
abbasgh12345/mebot
plugins/stats.lua
866
4001
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-2.0
nekrozar/ygopro-scripts
c71408082.lua
6
2075
--黒竜の聖騎士 function c71408082.initial_effect(c) c:EnableReviveLimit() --destroy local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_BATTLE_START) e1:SetCondition(c71408082.descon) e1:SetTarget(c71408082.destg) e1:SetOperation(c714...
gpl-2.0
nekrozar/ygopro-scripts
c64605089.lua
2
2498
--護封剣の剣士 function c64605089.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(64605089,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetRange(LOCATION_HAND) e1:...
gpl-2.0
nekrozar/ygopro-scripts
c43378048.lua
3
1130
--混沌幻魔アーミタイル function c43378048.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcCode3(c,6007213,32491822,69890967,true,true) aux.AddContactFusionProcedure(c,Card.IsAbleToRemoveAsCost,LOCATION_ONFIELD,0,Duel.Remove,POS_FACEUP,REASON_COST) --spsummon condition local e1=Effect.CreateEffect...
gpl-2.0
edgardoh/darktable
tools/lua_doc/dumper.lua
15
2968
para = function() return "\n" end node_to_string = function(node,name) if name then return name else return node:get_name() end end code = function(text) return "<code>"..text.."</code>" end emphasis = function(text) return "<em>"..text.."</em>" end startlist = function() return "\n" end endlist = funct...
gpl-3.0
nekrozar/ygopro-scripts
c92932860.lua
1
3409
--EMミス・ディレクター function c92932860.initial_effect(c) --can not be battle target local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetCode(EFFECT_CANNOT_BE_BATTLE_TARGET) e1:SetCondition(c92932860.atcon) e1:SetValue(aux.imval1) c...
gpl-2.0
sami2448/m
plugins/location.lua
185
1565
-- Implement a command !loc [area] which uses -- the static map API to get a location image -- Not sure if this is the proper way -- Intent: get_latlong is in time.lua, we need it here -- loadfile "time.lua" -- Globals -- If you have a google api key for the geocoding/timezone api do local api_key = nil local base_...
gpl-2.0
nekrozar/ygopro-scripts
c23442438.lua
3
2315
--シンクロ・チェイス function c23442438.initial_effect(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(23442438,0)) e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetTy...
gpl-2.0
NijigenDevs/QSanguosha-For-Saimoe
lang/zh_CN/Package/Animation.lua
2
17934
return { ["moesen"] = "萌战MOD", ----A001 ["madoka"] = "鹿目圆", ["&madoka"] = "鹿目圆", ["#madoka"] = "圆环之理", ["#&madoka"] = "魔法少女小圆", ["designer:madoka"] = "兰博", ["cv:madoka"] = "悠木碧", ["illustrator:madoka"] = "46401177", ["cibei"] = "慈悲", [":cibei"] = "每当你对一名角色造成伤害时,你可以防止此伤害,改为弃置该角色的一张手牌和一张装备牌。 ", ["renm...
gpl-3.0
xuejian1354/attitude_adjustment
feeds/luci/libs/core/luasrc/model/firewall.lua
84
11156
--[[ LuCI - Firewall model Copyright 2009 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 Unless required by applica...
gpl-2.0
nekrozar/ygopro-scripts
c69394324.lua
3
3838
--D-HERO ドミネイトガイ function c69394324.initial_effect(c) c:EnableReviveLimit() aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0xc008),3,true) --sort decktop local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,69394324) e1:SetTarget(...
gpl-2.0
zhoujijian/skynet-websocket
lualib/websocket/handshake.lua
5
2961
local sha1 = require'websocket.tools'.sha1 local base64 = require'websocket.tools'.base64 local tinsert = table.insert local guid = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" local sec_websocket_accept = function(sec_websocket_key) local a = sec_websocket_key..guid local sha1 = sha1(a) assert((#sha1 % 2) == 0) re...
mit
zhoujijian/skynet-websocket
test/testmysql.lua
18
3820
local skynet = require "skynet" local mysql = require "skynet.db.mysql" local function dump(obj) local getIndent, quoteStr, wrapKey, wrapVal, dumpObj getIndent = function(level) return string.rep("\t", level) end quoteStr = function(str) return '"' .. string.gsub(str, '"', '\\"') .. '"'...
mit
omidtarh/ebls
plugins/id.lua
355
2795
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 local function returnids(cb_extra, success, resu...
gpl-2.0
andreaskoepf/nn
SpatialSubtractiveNormalization.lua
18
4314
local SpatialSubtractiveNormalization, parent = torch.class('nn.SpatialSubtractiveNormalization','nn.Module') function SpatialSubtractiveNormalization:__init(nInputPlane, kernel) parent.__init(self) -- get args self.nInputPlane = nInputPlane or 1 self.kernel = kernel or torch.Tensor(9,9):fill(1) local ...
bsd-3-clause
mihailim/koreader
spec/unit/widget_inputcontainer_spec.lua
6
5915
describe("InputContainer widget", function() local InputContainer, Screen setup(function() require("commonrequire") InputContainer = require("ui/widget/container/inputcontainer") Screen = require("device").screen end) it("should register touch zones", function() local ic...
agpl-3.0
nekrozar/ygopro-scripts
c62107981.lua
4
1550
--E・HERO クノスペ function c62107981.initial_effect(c) --direct attack local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_DIRECT_ATTACK) e1:SetCondition(c62107981.atcon) c:RegisterEffect(e1) --atk/def local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(62107981,0)) e2:SetT...
gpl-2.0
xuejian1354/attitude_adjustment
feeds/luci/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo.lua
141
1038
--[[ smap_devinfo - SIP Device Information (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 $Id$ ]]-- require("luci.i18n") re...
gpl-2.0
chrisJohn404/ljswitchboard-module_manager
lib/switchboard_modules/lua_script_debugger/premade_scripts/benchmarking_tests/speed_test-ain.lua
1
1900
--[[ Name: speed_test-ain.lua Desc: This example will read AIN0 as fast as possible Note: In most cases, users should throttle their code execution using the functions: "LJ.IntervalConfig(0, 1000)", and "if LJ.CheckInterval(0)" On a T7 (FW 1.0282) this example runs at around 16kHz ...
mit
ETegro/OpenSAN
feeds/luci/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo.lua
12
1087
--[[ smap_devinfo - SIP Device Information (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 $Id: smap_devinfo.lua 5448 2009-10...
gpl-3.0
dtaht/cerowrt-luci-3.3
modules/admin-full/luasrc/model/cbi/admin_system/leds.lua
83
3272
--[[ 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$ ]]-- m = ...
apache-2.0
nekrozar/ygopro-scripts
c15839054.lua
9
1202
--シンクロ・フュージョニスト function c15839054.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(15839054,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_BE_MATERIAL) e1:SetCon...
gpl-2.0
nekrozar/ygopro-scripts
c56535497.lua
2
3544
--バーサーキング function c56535497.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetHintTiming(TIMING_DAMAGE_STEP) e1:SetTarget(c56535497.target1) e1:SetOperation(c56535497.operation) c:RegisterEff...
gpl-2.0
nekrozar/ygopro-scripts
c24635329.lua
1
3072
--聖なる影 ケイウス function c24635329.initial_effect(c) --flip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(24635329,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCountLimit(1,24635329) e1:SetT...
gpl-2.0
nekrozar/ygopro-scripts
c49513164.lua
4
1364
--召喚獣ライディーン function c49513164.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcCodeFun(c,86120751,aux.FilterBoolFunction(Card.IsFusionAttribute,ATTRIBUTE_WIND),1,true,true) --position local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(49513164,0)) e1:SetCategory(CATEGORY_PO...
gpl-2.0
chrisJohn404/ljswitchboard-module_manager
lib/switchboard_modules/lua_script_debugger/premade_scripts_addresses/digital_io_ef/high_speed_counter.lua
1
1116
print("Enable the high speed counter on CIO0") print("Please attach a jumper wire between EIO0 and CIO0") local mbRead=MB.R local mbWrite=MB.W local count = 0 local eioState = 0 -- Enable CounterA on DIO16/CIO0 mbWrite(44032, 1, 0) -- disable the DIO16_EF_ENABLE mbWrite(44132, 1, 7) -- Configure to be a high speed c...
mit
nekrozar/ygopro-scripts
c62434031.lua
4
1832
--森羅の花卉士 ナルサス function c62434031.initial_effect(c) --deck check local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(62434031,0)) e1:SetCategory(CATEGORY_DECKDES) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(...
gpl-2.0
nekrozar/ygopro-scripts
c74095602.lua
7
1084
--英雄変化-リフレクター・レイ function c74095602.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c74095602.condition) e1:SetTarget(c74095602.target) e1:S...
gpl-2.0
jsitnicki/rushit
vendor/github.com/justincormack/ljsyscall/syscall/linux/errors.lua
24
5242
-- Linux error messages return { PERM = "Operation not permitted", NOENT = "No such file or directory", SRCH = "No such process", INTR = "Interrupted system call", IO = "Input/output error", NXIO = "No such device or address", ["2BIG"] = "Argument list too long", NOEXEC = "Exec format error", BADF = ...
apache-2.0
dtaht/cerowrt-luci-3.3
applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua
44
1102
--[[ LuCI hd-idle (c) 2008 Yanira <forum-2008@email.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 $Id$ ]]-- require("nixio.fs") m = Map...
apache-2.0
nekrozar/ygopro-scripts
c46647144.lua
2
3180
--星遺物-『星槍』 function c46647144.initial_effect(c) --atkdown local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(46647144,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,46647144) e1:SetCondition...
gpl-2.0
omidtarh/ebls
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
9034725985/vlc
share/lua/playlist/canalplus.lua
113
3501
--[[ $Id: $ Copyright (c) 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 distr...
gpl-2.0
FailcoderAddons/SVUI
SVUI_UnitFrames/class_resources/warrior.lua
1
3886
--[[ ########################################################## S V U I By: Munglunch ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.s...
mit
nekrozar/ygopro-scripts
c80921533.lua
4
2559
--死皇帝の陵墓 function c80921533.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetValue(SUMMON_TYPE_NORMAL) c:RegisterEffect(e1) --summon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(80921533,0)) e2:SetProperty(EFFECT...
gpl-2.0
nekrozar/ygopro-scripts
c79178930.lua
6
1027
--時限カラクリ爆弾 function c79178930.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_BE_BATTLE_TARGET) e1:SetCondition(c79178930.condition) e1:SetTarget(c79178930.target) e1:SetOperation(c79178930.activate) c:RegisterEffec...
gpl-2.0
nekrozar/ygopro-scripts
c74210057.lua
4
1481
--テクスチェンジャー function c74210057.initial_effect(c) --negate attack local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_BE_BATTLE_TARGET) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetCondition(c74210057.condition) e1...
gpl-2.0
nekrozar/ygopro-scripts
c44874522.lua
1
3056
--古代の機械熱核竜 function c44874522.initial_effect(c) --mat check local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_MATERIAL_CHECK) e1:SetValue(c44874522.valcheck) c:RegisterEffect(e1) --summon success local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS...
gpl-2.0
nekrozar/ygopro-scripts
c74009824.lua
4
2787
--エルシャドール・ウェンディゴ function c74009824.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcShaddoll(c,ATTRIBUTE_WIND) --cannot spsummon local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e2...
gpl-2.0
nekrozar/ygopro-scripts
c81167171.lua
6
1836
--ヒーロースピリッツ function c81167171.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_END_PHASE) e1:SetCondition(c81167171.condition) e1:SetOperation(c81167171.activate) c:RegisterEffect(e1) if not c81167171.global_ch...
gpl-2.0
nekrozar/ygopro-scripts
c39041729.lua
4
2505
--時空超越 function c39041729.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:SetLabel(0) e1:SetCost(c39041729.cost) e1:SetTarget(c39041729.target) e1:SetOperation(c39041729.activate) c:RegisterEf...
gpl-2.0
nekrozar/ygopro-scripts
c2625939.lua
2
1419
--スプール・コード function c2625939.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetCondition(c2625939.condition) e1:SetOperation(c2625939.activate) c:RegisterEffect(e1) end function c2625939.c...
gpl-2.0
nekrozar/ygopro-scripts
c21999001.lua
4
2745
--光波双顎機 function c21999001.initial_effect(c) --special summon rule local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetRange(LOCATION_HAND) e1:SetCondition(c21999001.sprcon) c:RegisterEffect(e1) --special summon local e2=E...
gpl-2.0
nekrozar/ygopro-scripts
c68054593.lua
2
3238
--燃える闘志 function c68054593.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(TIMING_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetCondition(c68054593.cond...
gpl-2.0
nekrozar/ygopro-scripts
c5795980.lua
2
3616
--帝王の轟毅 function c5795980.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DISABLE+CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e1:SetCost(c57959...
gpl-2.0
nekrozar/ygopro-scripts
c7198399.lua
4
2770
--チョコ・マジシャン・ガール function c7198399.initial_effect(c) --draw local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(7198399,0)) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetCost(c7198399.drcost) e1:SetTarget(c7198399.drtg) e1:SetOpe...
gpl-2.0
nekrozar/ygopro-scripts
c80889750.lua
3
2705
--デストーイ・サーベル・タイガー function c80889750.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcFunFunRep(c,c80889750.mfilter1,c80889750.mfilter2,1,63,true) --spsummon local e2=Effect.CreateEffect(c) e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetType(EFFEC...
gpl-2.0
nekrozar/ygopro-scripts
c52145422.lua
2
3454
--グレイドル・ドラゴン function c52145422.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_AQUA),aux.NonTuner(nil),1) c:EnableReviveLimit() --destroy local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFE...
gpl-2.0
amireh/lua_cliargs
spec/core_spec.lua
3
4716
local helpers = require "spec_helper" describe("cliargs::core", function() local cli before_each(function() cli = require("cliargs.core")() end) describe('#parse', function() context('when invoked without the arguments table', function() local global_arg before_each(function() gl...
mit
dtaht/cerowrt-luci-3.3
libs/core/luasrc/model/uci.lua
86
10653
--[[ LuCI - UCI model Description: Generalized UCI model FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache...
apache-2.0
FailcoderAddons/SVUI
SVUI_UnitFrames/class_resources/paladin.lua
1
4893
--[[ ########################################################## S V U I By: Munglunch ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.s...
mit
ivonxiao/viaview
luci/AP/controller/servicectl.lua
1
1625
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- mo...
gpl-2.0
Noneatme/mta-alan-wake
engine/maps/places/CRestaurants.lua
1
6998
--[[ ########################################################################## ## ## ## Project: 'MTA Alan Wake' - Gamemode for Multi Theft Auto San Andreas ## ## Developer: Noneatme ## ## ...
gpl-3.0
nekrozar/ygopro-scripts
c16943770.lua
2
2394
--幻獣機エアロスバード function c16943770.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(c16943770.lvval) c:RegisterEffect(e1) -- local e2=Effect.CreateEffect(c) e2...
gpl-2.0
araeisy/araeisy4
plugins/qrCode.lua
5
1736
--[[ * 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)...
lgpl-2.1
nekrozar/ygopro-scripts
c3891471.lua
2
3164
--サイコ・チューン function c3891471.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:SetTarget(c3891471.target) e1:SetOperat...
gpl-2.0
nekrozar/ygopro-scripts
c28348939.lua
6
1408
--白虎の召喚士 function c28348939.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(28348939,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(c28348939.sptg) e1:SetOperation(c2834893...
gpl-2.0
xuejian1354/attitude_adjustment
feeds/luci/protocols/ipv6/luasrc/model/network/proto_4x6.lua
63
1522
--[[ LuCI - Network model - 6to4, 6in4 & 6rd protocol extensions Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Copyright 2013 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 ...
gpl-2.0
nekrozar/ygopro-scripts
c58531587.lua
2
3123
--バブル・ブリンガー function c58531587.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --cannot direct attack local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_CANNOT_DIRECT_ATTACK) e2:SetRang...
gpl-2.0
nekrozar/ygopro-scripts
c73001017.lua
7
1761
--シルフィード function c73001017.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(c73001017.spcon) e1:SetOperation(c73001017.spop) ...
gpl-2.0
nekrozar/ygopro-scripts
c12697630.lua
6
2134
--アーティファクト-ベガルタ function c12697630.initial_effect(c) --set local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_MONSTER_SSET) e1:SetValue(TYPE_SPELL) c:RegisterEffect(e1) --spsummon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(12697630,0)) e2:SetCategory(CATEGORY_...
gpl-2.0
githubmereza/rezaj
plugins/Banhammer.lua
22
10356
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id...
gpl-2.0
MNoya/DotaCraft
game/dota_addons/dotacraft/scripts/vscripts/items/diamond_of_summoning.lua
1
3635
-- Capture up to 12 units and project them towards the caster function SummoningStart(event) local caster = event.caster local point = event.target_points[1] local ability = event.ability local radius = ability:GetSpecialValueFor("radius") local max_teleport_units = ability:GetSpecialValueFor("telep...
gpl-3.0
nchampsavoir/mo4lua
mo4lua/datastored.lua
1
2441
local zmq = require "lzmq" local argparse = require "3rdparty.argparse" local Decom = require "libdecom" local parser = argparse("datastored", "A storage daemon for packets and parameters in lua") parser:option("-a --acqd-port", "Acquisition Daemon subscription port number") parser:option("-d --decomd-port", "Dec...
mit
nekrozar/ygopro-scripts
c54082269.lua
2
3461
--BF-フルアーマード・ウィング function c54082269.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x33),aux.NonTuner(nil),1) c:EnableReviveLimit() --immune local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_IMMUNE_EFFECT) e1:SetProperty(EFFECT_...
gpl-2.0
nekrozar/ygopro-scripts
c33158448.lua
1
3219
--F.A.ライトニングマスター function c33158448.initial_effect(c) c:EnableReviveLimit() aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) --atk up local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetValu...
gpl-2.0
nekrozar/ygopro-scripts
c55168550.lua
3
3278
--銀河剣聖 function c55168550.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(55168550,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,55168550) e1:SetCost(c55168550.spcost) e1:SetTarget(c55...
gpl-2.0
dtaht/cerowrt-luci-3.3
applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua
14
5674
--[[ 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
nekrozar/ygopro-scripts
c92092092.lua
2
1628
--調星のドラッグスター function c92092092.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:SetTarget(c92092092.target) e1:SetOperation(c92092092.activate) c:RegisterEf...
gpl-2.0
Pandafuchs/iLife
client/Quests/Scripts/12.lua
2
2322
local QuestID = 12 local Quest = Quests[QuestID] local QuestFunctions = {} local QuestElements = {} --Set this true to lock this script. local QuestLocked = false --[[ ACCEPT TRIGGERS HERE ]] -- ID: QuestID -- State = Aktueller Queststatus -- tblData = Zu übertragende Daten local CallClientQuestScript = functio...
mit
sami2448/m
plugins/boobs.lua
9
1609
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
Domderon/spice-minions
minionmaster/ui.lua
1
2353
local state = require "minionmaster.state" local smallFont = love.graphics.newFont("fonts/Exocet1.ttf", 28) local mediumFont = love.graphics.newFont("fonts/Exocet1.ttf", 45) local GameMath = require "smee.logic.gamemath" local ui = {} function ui.load() end function ui.update(dt) end function ui.draw() local w...
mit
hakelimopu/CoronaSDKDev
JetLag2013/highscores.lua
1
1756
local theDb = {} require "sqlite3" theDb.db = sqlite3.open(system.pathForFile("JL2013.db",system.DocumentsDirectory)) function theDb:system(event) if event.type=="applicationExit" then self.db:close() end end theDb.db:exec([[CREATE TABLE IF NOT EXISTS AllTime (HighScore INT NOT NULL,HighLineScore INT NOT NULL,To...
gpl-2.0
Alkorin/nodemcu-firmware
lua_modules/ds18b20/ds18b20.lua
10
3486
-------------------------------------------------------------------------------- -- DS18B20 one wire module for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Vowstar <vowstar@nodemcu.com> -- 2015/02/14 sza2 <sza2trash@gmail.com> Fix for negative values ---------------------------------------...
mit
Pastor/modules
osrm-backend/profiles/examples/postgis.lua
7
3397
-- This example shows how to query external data stored in PostGIS when processing ways. -- This profile assumes that OSM data has been imported to PostGIS using imposm to a db -- with the name 'imposm', the default user and no password. It assumes areas with -- landusage=* was imported to the table osm_landusages, ...
apache-2.0
morteza1185/tele-redbot
bot/utils.lua
646
23489
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")() JSON = (loadfile "./libs/...
gpl-2.0
LiXizhi/NPLRuntime
Server/trunk/LuaJIT-2.1/src/jit/dis_arm64.lua
59
30904
---------------------------------------------------------------------------- -- LuaJIT ARM64 disassembler module. -- -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -- -- Contributed by Djordje Kovacevic and Stefan Pejic from RT-RK.com. -- S...
gpl-2.0
nekrozar/ygopro-scripts
c72855441.lua
4
2936
--青き眼の護人 function c72855441.initial_effect(c) --Special Summon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(c72855441.sptg) e1:SetOperation(c72855441.spop) c:RegisterEffect(e1) --To gra...
gpl-2.0
nekrozar/ygopro-scripts
c60681103.lua
1
3117
--巨神竜フェルグラント function c60681103.initial_effect(c) --remove local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_REMOVE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e1:SetCondition(c60681103.rmcon) e1:SetTarg...
gpl-2.0
mamaddeveloper/ultixxx
plugins/twitter_send.lua
627
1555
do local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local client = OAuth.new(consumer_key, consumer_secret, { RequestToken = "https://api.twitter.com/oauth/request_token", AuthorizeUser = {"https://api.twitter.com/oauth/autho...
gpl-2.0
sami2448/m
plugins/twitter_send.lua
627
1555
do local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local client = OAuth.new(consumer_key, consumer_secret, { RequestToken = "https://api.twitter.com/oauth/request_token", AuthorizeUser = {"https://api.twitter.com/oauth/autho...
gpl-2.0
dtaht/cerowrt-luci-3.3
libs/sys/luasrc/sys/zoneinfo/tzoffset.lua
72
3904
--[[ LuCI - Autogenerated Zoneinfo Module 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.sys.zoneinfo.tzoffset" OFFSET = { gmt =...
apache-2.0
NijigenDevs/QSanguosha-For-Saimoe
lua/about_us.lua
7
10498
--[[******************************************************************** Copyright (c) 2013-2015 Mogara This file is part of QSanguosha-Hegemony. This game 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...
gpl-3.0
MegadreamsBE/BlueBird
BB_Login/c_splashes.lua
1
4092
---------------------------------< -- Login System -- s_splashes.lua ---------------------------------< -- DEM RANDOM LOADING SPLASH TEXT ---------------------------------< Loading = {["length"] = 20000, ["start"] = 0, ["lastNum"] = -1} ---------------------------------< function updateLoadingScreen() local tick =...
mit
nekrozar/ygopro-scripts
c10275411.lua
9
1825
--エクシーズ・リベンジ function c10275411.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:SetHintTiming(0,TIMING_END_PHASE) e1:SetCountLimit(1,10275411+EFFECT_COUNT...
gpl-2.0
nekrozar/ygopro-scripts
c92361635.lua
2
2794
--アトミック・スクラップ・ドラゴン function c92361635.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x24),aux.NonTuner(nil),2) c:EnableReviveLimit() --Destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(92361635,0)) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_...
gpl-2.0
nekrozar/ygopro-scripts
c61901281.lua
7
2274
--暗黒竜 コラプサーペント function c61901281.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) --special summon local e2...
gpl-2.0
ev1l0rd/yalnpv
dfhack/hack/scripts/fixnaked.lua
1
1718
--removes unhappy thoughts due to lack of clothing --[[=begin fixnaked ======== Removes all unhappy thoughts due to lack of clothing. =end]] function fixnaked() local total_fixed = 0 local total_removed = 0 for fnUnitCount,fnUnit in ipairs(df.global.world.units.all) do if fnUnit.race == df.global....
mit
nekrozar/ygopro-scripts
c51205763.lua
1
3300
--クローラー・グリア function c51205763.initial_effect(c) --flip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(51205763,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCountLimit(1,51205763) e1:SetT...
gpl-2.0
mihailim/koreader
spec/unit/evernote_plugin_main_spec.lua
1
3576
describe("Evernote plugin module", function() local readerui, match local sample_clippings, sample_epub local DocumentRegistry setup(function() require("commonrequire") match = require("luassert.match") local ReaderUI = require("apps/reader/readerui") DocumentRegistry = r...
agpl-3.0
Pandafuchs/iLife
server/Classes/Quest/Scripts/35.lua
2
2435
local QuestID = 35 local Quest = Quests[QuestID] local DamagedVehicle = createVehicle(411, 1425.6171875, -933.970703125, 35.998378753662, 0, 0, 83.296691894531) setElementFrozen(DamagedVehicle, true) setElementHealth(DamagedVehicle, 350) setVehicleDamageProof(DamagedVehicle, true) setVehicleLocked(DamagedVehicle, true...
mit
hakelimopu/CoronaSDKDev
SplorrWotD/main.lua
1
16794
--main.lua display.setDefault("background",0,0,0) local gameData = {} local maze = require("maze") local generators = require("generators") local utilities = require("utilities") local directions = require("directions") local player = require("player") local monsters = require("monsters") local items = require("items")...
gpl-2.0