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
LuaDist2/jumper
jumper/grid.lua
6
16649
--- <strong>The <code>grid</code> class API</strong>. -- -- Implementation of a `grid` class, which represents the 2D map (graph) on which a `pathfinder` will perform. -- -- During a search, the pathfinder evaluates __costs values__ for each node being processed, in order to -- select, after each step of iteration, wha...
mit
nekrozar/ygopro-scripts
c5325155.lua
2
2132
--毒の魔妖-束脛 function c5325155.initial_effect(c) c:SetUniqueOnField(1,0,5325155) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(5325155,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_...
gpl-2.0
nekrozar/ygopro-scripts
c94681654.lua
4
1402
--フェザー・ウィンド・アタック function c94681654.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c94681654.cost) e1:SetTarget(c94681654.target) e1:SetOperation(c94681654.activate) c:Register...
gpl-2.0
LiXizhi/NPLRuntime
Server/trunk/LuaJIT-2.1/src/jit/v.lua
54
5783
---------------------------------------------------------------------------- -- Verbose mode of the LuaJIT compiler. -- -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
gpl-2.0
MNoya/DotaCraft
game/dota_addons/dotacraft/scripts/vscripts/heroes/blood_mage/phoenix.lua
1
3660
-- Gets the summoning location for the new unit function SummonLocation( event ) local caster = event.caster local fv = caster:GetForwardVector() local origin = caster:GetAbsOrigin() -- Gets the vector facing 200 units away from the caster origin local front_position = origin + fv * 200 lo...
gpl-3.0
nekrozar/ygopro-scripts
c84451804.lua
3
1544
--デスガエル function c84451804.initial_effect(c) --Special Summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(84451804,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCondition(c84451804.condition) e1:SetTarge...
gpl-2.0
nekrozar/ygopro-scripts
c79333300.lua
2
1289
--風霊術-「雅」 function c79333300.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TODECK) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e1:SetCost(c79333300.cost) e...
gpl-2.0
nekrozar/ygopro-scripts
c61019812.lua
3
1821
--レッド・ダストン function c61019812.initial_effect(c) c:SetUniqueOnField(1,0,61019812) --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 e2...
gpl-2.0
Pandafuchs/iLife
server/Classes/Faction/System/cWaffentruckTruck.lua
2
15594
-- -- Created by IntelliJ IDEA. -- User: Noneatme -- Date: 21.12.2014 -- Time: 21:49 -- Made for MTA: iLife -- cWaffentruckTruck = {}; WaffenTrucks = {}; --[[ Kiste: 944 Zaun: 983 1344 ]] -- /////////////////////////////// -- ///// New ////// -- ///// Returns: Object ////// -- ///////////////////...
mit
nekrozar/ygopro-scripts
c387282.lua
4
2289
--ガガガシスター function c387282.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(387282,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(c387282.thtg) e1:SetOperation(c387282...
gpl-2.0
adib1380/iranbot
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
vlc-mirror/vlc-2.1
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...
lgpl-2.1
nekrozar/ygopro-scripts
c14094090.lua
6
2063
--超戦士の儀式 function c14094090.initial_effect(c) aux.AddRitualProcEqual(c,c14094090.ritual_filter) --spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) e1:SetCountLimit(1,14094090) e1:SetCondition(aux.exccon) e1:SetCost(c14...
gpl-2.0
mihailim/koreader
frontend/readcollection.lua
1
4967
local DataStorage = require("datastorage") local LuaSettings = require("luasettings") local getFriendlySize = require("util").getFriendlySize local lfs = require("libs/libkoreader-lfs") local realpath = require("ffi/util").realpath local util = require("util") local DEFAULT_COLLECTION_NAME = "favorites" local collecti...
agpl-3.0
nekrozar/ygopro-scripts
c44125452.lua
4
1106
--薔薇の妖精 function c44125452.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(44125452,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_TO_HAND) e1:SetCondition(c4412...
gpl-2.0
Ali-Amir/matasano
lib/files.lua
1
1467
-- @module lib.files local files = {} local bytes = require('lib.bytes') function files.readfile(filename, format) --[[ Reads a file and returns its contents in a requested format. -- -- filename: String, pathname of the file. -- format: String, either "byte" or "string", representing the type of format. --...
mit
andreaskoepf/nn
TemporalSubSampling.lua
19
1710
local TemporalSubSampling, parent = torch.class('nn.TemporalSubSampling', 'nn.Module') function TemporalSubSampling:__init(inputFrameSize, kW, dW) parent.__init(self) dW = dW or 1 self.inputFrameSize = inputFrameSize self.kW = kW self.dW = dW self.weight = torch.Tensor(inputFrameSize) self.bias...
bsd-3-clause
nekrozar/ygopro-scripts
c31443476.lua
2
2012
--クイック・リボルブ function c31443476.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(c31443476.target) e1:SetOperation(c31443476.activate) c:RegisterEffect(e1) end function c31443476.filter(...
gpl-2.0
nekrozar/ygopro-scripts
c44352516.lua
1
3423
--サイバーダーク・インフェルノ function c44352516.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --cannot be target local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e2:SetRa...
gpl-2.0
keneanung/Mudlet-1
src/mudlet-lua/lua/StringUtils.lua
1
4380
---------------------------------------------------------------------------------- --- Mudlet String Utils ---------------------------------------------------------------------------------- --- Documentation: https://wiki.mudlet.org/w/Manual:String_Functions#string.cut function string:cut(maxLen) if string.len(sel...
gpl-2.0
MNoya/DotaCraft
game/dota_addons/dotacraft/scripts/vscripts/libraries/gatherer.lua
1
64742
require("libraries/timers") require("libraries/keyvalues") if not Gatherer then Gatherer = class({}) end --[[ TODO: Fix attempting bad tree getting "stuck" with a timer while moving to gather Shouldnt hardcode gold_mine on-top building names in the filter Make a Built-In ExtractionBuilding system Wait for buildin...
gpl-3.0
nekrozar/ygopro-scripts
c20366274.lua
4
3366
--エルシャドール・ネフィリム function c20366274.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcShaddoll(c,ATTRIBUTE_LIGHT) --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
c81816475.lua
4
1144
--オーバーレイ・イーター function c81816475.initial_effect(c) -- local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(81816475,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) e1:SetCost(aux.bfgcost) e1:SetTarget(c81816475.target) e1:SetOperation(c81816475.operation) c:RegisterEffect(e1) end fun...
gpl-2.0
nekrozar/ygopro-scripts
c42338879.lua
6
1291
--こけコッコ function c42338879.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(c42338879.spcon) e1:SetOperation(c42338879.spop) c:RegisterEffect(e1) -...
gpl-2.0
chrisjbray/hammerspoon
extensions/window/init.lua
7
37790
--- === hs.window === --- --- Inspect/manipulate windows --- --- Notes: --- * See `hs.screen` and `hs.geometry` for more information on how Hammerspoon uses window/screen frames and coordinates local uielement = hs.uielement -- Make sure parent module loads local window = require "hs.window.internal" local applicati...
mit
nekrozar/ygopro-scripts
c4756629.lua
3
3907
--ヴェルズ・ケルキオン function c4756629.initial_effect(c) --salvage local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND) e1:SetDescription(aux.Stringid(4756629,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCountLimit(1,4756629) e1:SetCost(c4756...
gpl-2.0
nekrozar/ygopro-scripts
c899287.lua
1
2192
--怪鳥グライフ function c899287.initial_effect(c) aux.AddCodeList(c,72283691) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(899287,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCost(c899287.thcost) e1:SetTarget(c899287....
gpl-2.0
nekrozar/ygopro-scripts
c984114.lua
7
1400
--エクスプレスロイド function c984114.initial_effect(c) --salvage local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(984114,0)) e1:SetCategory(CATEGORY_TOHAND) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) ...
gpl-2.0
xuejian1354/attitude_adjustment
feeds/luci/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...
gpl-2.0
nekrozar/ygopro-scripts
c14365823.lua
1
1662
--トリックスター・ディーヴァリディス function c14365823.initial_effect(c) c:EnableReviveLimit() c:SetUniqueOnField(1,0,14365823) aux.AddLinkProcedure(c,c14365823.mfilter,2,2) --damage local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(14365823,0)) e1:SetCategory(CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_...
gpl-2.0
nekrozar/ygopro-scripts
c35329581.lua
2
1857
--シャドー・インパルス 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
nekrozar/ygopro-scripts
c88204302.lua
4
2288
--スピードリバース function c88204302.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(88204302,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c88204302.target) e1:...
gpl-2.0
adib1380/iranbot
plugins/groupmanager.lua
8
11449
-- 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 not is_admin(msg) then return "Hi For Creating Group You Have To Pay 2000 Tomans\nEACH MONTH\nFor Order Group Join↙️\nhttps://telegram....
gpl-2.0
PAC3-Server/notagain
lua/notagain/creatures/networking.lua
2
5631
AddCSLuaFile() local MOVED = {} local MOVE_REF = {} local PACK_ANGLES = true local PACK_ANGLES2 = true --local cell_size = game.GetWorld():GetModelRadius()/4 local function net_write(ent, vec, ang) net.WriteEntity(ent) if PACK_ANGLES then local ang = ang:Forward():Angle() ang:Normalize() net.WriteInt((ang....
gpl-3.0
nekrozar/ygopro-scripts
c48032131.lua
1
4005
--D-タクティクス function c48032131.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --attack local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(48032131,0)) e2:SetCategory(CATEGORY_ATKCHANGE) e2:SetType(EFFEC...
gpl-2.0
vine/uwsgi
tests/websockets_echo.lua
27
1867
#!./uwsgi --https :8443,foobar.crt,foobar.key --http-modifier1 6 --http-raw-body --threads 100 --lua tests/websockets_echo.lua function app(env) local function html() coroutine.yield(string.format([[ <html> <head> <script language="Javascript"> var s = new WebSocket("%s://%s...
gpl-2.0
linearregression/fbcunn
examples/imagenet/dataset.lua
3
14930
require 'torch' torch.setdefaulttensortype('torch.FloatTensor') local ffi = require 'ffi' local class = require('pl.class') local dir = require 'pl.dir' local tablex = require 'pl.tablex' local argcheck = require 'argcheck' require 'sys' require 'xlua' require 'image' local dataset = torch.class('dataLoader') local i...
bsd-3-clause
Domderon/spice-minions
smee/libs/jumper/core/assert.lua
4
2517
-- Various assertion function for API methods argument-checking if (...) then -- Dependancies local _PATH = (...):gsub('%.core.assert$','') local Utils = require (_PATH .. '.core.utils') -- Local references local lua_type = type local floor = math.floor local concat = table.concat local next = next local pa...
mit
hakelimopu/CoronaSDKDev
SplorrWotD/player.lua
1
1453
local directions = require("directions") local utilities = require("utilities") local generators = require("generators") local json = require("json") local items = require("items") local thePlayer = {} function thePlayer.newPlayer(theItemsTable) local theResult = { statistics = { experience = { level = 0, ...
gpl-2.0
nekrozar/ygopro-scripts
c69724380.lua
9
1033
--魔の取引 function c69724380.initial_effect(c) --handes local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_HANDES) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCondition(c69724380.condition) e1:SetCost(c69724380.cost) e1:SetTarget(c69724380.target) e1:SetOperation(c69724380.activate) c:...
gpl-2.0
Solatrus/ComputerCraft-Projects
base-treehouse.lua
1
6931
-- Code copied and modified from http://pastebin.com/6jjXTe4m local rsSide = "back" local monitorSide = "right" function testForMonitor(_side) if peripheral.getType(_side) then if peripheral.getType(_side) == "monitor" then return true else return false end else return false end end Ar...
mit
dtaht/cerowrt-luci-3.3
libs/nixio/lua/nixio/util.lua
179
5824
--[[ nixio - Linux I/O library for lua Copyright 2009 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- local...
apache-2.0
nekrozar/ygopro-scripts
c41077745.lua
2
2186
--E・HERO アイスエッジ function c41077745.initial_effect(c) --direct attack local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(41077745,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetCountLimit(1) e1:SetRange(LOCATION_MZONE) e1:SetCondition(c41077745.datcon) e1:SetCost(c41077745.datcost) e1:SetOperation(c4107...
gpl-2.0
nekrozar/ygopro-scripts
c22953211.lua
2
1275
--ベルキャットファイター function c22953211.initial_effect(c) --link summon aux.AddLinkProcedure(c,nil,3,3,c22953211.lcheck) c:EnableReviveLimit() --token local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(22953211,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_...
gpl-2.0
Pandafuchs/iLife
server/Classes/World/cMapRemovals.lua
2
1543
-- ####################################### -- ## Project: iLife ## -- ## For MTA: San Andreas ## -- ## Name: cMapRemovalsManager.lua ## -- ## Author: Noneatme(Gunvarrel) ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ## Date: March 2015 ## -- ###################...
mit
nekrozar/ygopro-scripts
c64178868.lua
3
2148
--バトル・サバイバー function c64178868.initial_effect(c) --to hand local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(64178868,0)) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_PHASE+PHASE_BATTLE) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,64178868)...
gpl-2.0
nekrozar/ygopro-scripts
c95637655.lua
2
1627
--バックアップ・ウォリアー function c95637655.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(c95637655.spcon) c:RegisterEffect(e1) --sp...
gpl-2.0
austinv11/PeripheralsPlusPlus
lua/xp/enchanting.lua
4
2209
--[[ Created by Fxz_y ]] p = peripheral.find("xp") state = "on" function printOut() term.clear() term.setCursorPos(1,1) print("Levels: "..levels..".") print("XP: "..xp..".") if state == "on" then print("Collecting XP: On.") print("Press X to turn off XP collecting.") elseif state == "off" then p...
gpl-2.0
crazyboy11/dd12
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
asmantarik/LARABOT
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
nekrozar/ygopro-scripts
c78564023.lua
9
1267
--BF-二の太刀のエテジア function c78564023.initial_effect(c) --atkup local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(78564023,0)) e1:SetCategory(CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_FIELD) e1:SetCode(EVENT_DAMAGE_STEP_END) e1:SetRange(LOCATION_HAND) e1:SetProperty(EFFECT_FLAG_PLAY...
gpl-2.0
nekrozar/ygopro-scripts
c73511233.lua
1
5071
--EMユーゴーレム function c73511233.initial_effect(c) aux.EnablePendulumAttribute(c) --salvage local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetRange(LOCATION_PZONE) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCou...
gpl-2.0
nekrozar/ygopro-scripts
c97854941.lua
3
2756
--ワルキューレ・シグルーン function c97854941.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(97854941,0)) e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_HAND) e1:SetCoun...
gpl-2.0
nekrozar/ygopro-scripts
c37480144.lua
2
1210
--アスポート function c37480144.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget(c37480144.target) e1:SetOperation(c37480144.activate) c:RegisterEffect(e1) end function c37480144.filter(c) ...
gpl-2.0
nekrozar/ygopro-scripts
c73891874.lua
3
1496
--ホワイト・ホーンズ・ドラゴン function c73891874.initial_effect(c) --atk local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(73891874,0)) e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_REMOVE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_SUMMON_SUCCESS) ...
gpl-2.0
xuejian1354/attitude_adjustment
feeds/luci/applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua
78
7996
--[[ 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$ ]]-- lo...
gpl-2.0
venkatarajasekhar/bee
third_party/sci/sci/root/_ridders.lua
1
1617
-------------------------------------------------------------------------------- -- Ridders root finding module. -- -- Copyright (C) 2011-2014 Stefano Peluchetti. All rights reserved. -- -- Features, documentation and more: http://www.scilua.org . -- -- This file is part of the SciLua library, which is released ...
bsd-2-clause
mettiw/mmmmmmm
plugins/all.lua
10
4203
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
nekrozar/ygopro-scripts
c87997872.lua
2
2380
--スフィンクス・アンドロジュネス function c87997872.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 local e2...
gpl-2.0
nekrozar/ygopro-scripts
c176392.lua
2
2241
--コアキメイル・テストベッド function c176392.initial_effect(c) --destroy replace local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_DESTROY_REPLACE) e1:SetRange(LOCATION_MZONE) e1:SetCondition(c176392.descon) e1:SetTarget(c176392.destg) e1:SetValue(c176392.repval) c:Regi...
gpl-2.0
nekrozar/ygopro-scripts
c81752019.lua
2
1633
--花札衛-松- function c81752019.initial_effect(c) --draw (summon) local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCountLimit(1,81752019) e1:SetTarget(c81752019.drtg) e1:SetOperation(c81752019.drop1) c:Register...
gpl-2.0
haker20154/self_bot
plugins/setcmd.lua
3
1197
do local function save_value(msg, name, value) if (not name or not value) then return end local hash = nil if msg.to.type == 'chat' or 'channel' then hash = 'botcommand:variables' end if hash then redis:hset(hash, name, value) return "انجام شد" end end local function get_variables_hash(m...
gpl-3.0
wez2020/heden
plugins/ingroup.lua
10
48741
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
FailcoderAddons/SVUI
SVUI_Skins/components/addons/TradeSkillDW.lua
2
5725
--[[ ########################################################## S V U I By: Munglunch ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.select...
mit
Domderon/spice-minions
smee/libs/jumper/core/heuristics.lua
9
3588
--- Heuristic functions for search algorithms. -- A <a href="http://theory.stanford.edu/~amitp/GameProgramming/Heuristics.html">distance heuristic</a> -- provides an *estimate of the optimal distance cost* from a given location to a target. -- As such, it guides the pathfinder to the goal, helping it to decide which ...
mit
nekrozar/ygopro-scripts
c63821877.lua
2
2657
--幻影騎士団ラギッドグローブ function c63821877.initial_effect(c) --effect gain local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_BE_MATERIAL) e1:SetCondition(c63821877.efcon) e1:SetOperation(c63821877.efop) c:RegisterEffect(e1) --to grave local e2=Effect.CreateEffect(c)...
gpl-2.0
nekrozar/ygopro-scripts
c33062423.lua
3
3062
--デコード・エンド function c33062423.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(33062423,0)) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCountLimit(1,33062423+EFFECT_COUNT_CODE_OATH) e1:SetTarget(c33062423....
gpl-2.0
nekrozar/ygopro-scripts
c51339637.lua
3
3036
--サラマングレイト・ロアー function c51339637.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(51339637,0)) e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCountLimit(1,51339637) e1:SetCondition(c51339637.condition...
gpl-2.0
SoScared/OpenRA
mods/d2k/maps/atreides-02a/atreides02a-AI.lua
8
1137
--[[ Copyright 2007-2019 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
nekrozar/ygopro-scripts
c73026394.lua
4
1281
--フュージョン・ガード function c73026394.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_NEGATE+CATEGORY_TOGRAVE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCondition(c73026394.condition) e1:SetTarget(c73026394.target) e1:SetOperation(c73026394.activate) c:Reg...
gpl-2.0
mihailim/koreader
frontend/apps/reader/modules/readerpagemap.lua
1
17773
local BD = require("ui/bidi") local Blitbuffer = require("ffi/blitbuffer") local CenterContainer = require("ui/widget/container/centercontainer") local Device = require("device") local Font = require("ui/font") local FrameContainer = require("ui/widget/container/framecontainer") local Geom = require("ui/geometry") loca...
agpl-3.0
venkatarajasekhar/bee
third_party/sodium/crypto_sign.lua
2
3441
local ffi = require "ffi" local lib = ffi.load "sodium" ffi.cdef [[ size_t crypto_sign_ed25519_bytes(void); size_t crypto_sign_ed25519_seedbytes(void); size_t crypto_sign_ed25519_publickeybytes(void); size_t crypto_sign_ed25519_secretkeybytes(void); const char * crypto_sign_ed25519_primitive(void); int crypto_sign_ed2...
bsd-2-clause
Lusito/premake
tests/actions/make/cpp/test_objects.lua
3
2963
-- -- tests/actions/make/cpp/test_objects.lua -- Validate the list of objects for a makefile. -- Copyright (c) 2009-2013 Jason Perkins and the Premake project -- local suite = test.declare("make_cpp_objects") local make = premake.make local project = premake.project -- -- Setup -- local sln, prj function suit...
bsd-3-clause
MNoya/DotaCraft
game/dota_addons/dotacraft/scripts/vscripts/heroes/beastmaster/stampede.lua
1
4273
--[[ Author: Noya Adapted from march_of_the_machines on Spell Library Date: 29.01.2015. Gets the summoning location for the new unit ]] function Stampede( event ) -- Variables local caster = event.caster local ability = event.ability local casterLoc = caster:GetAbsOrigin() local point = caster.stampede_point ...
gpl-3.0
ETegro/OpenSAN
feeds/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/df.lua
4
1624
--[[ Luci configuration model for statistics - collectd df plugin configuration (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...
gpl-3.0
nekrozar/ygopro-scripts
c13556444.lua
3
1652
--スターダスト・ミラージュ function c13556444.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:SetCountLimit(1,13556444+EFFECT_COUNT_CODE_OATH) e1:SetHintTiming(0,TIMING_END_PHASE) e1:SetCondition(c13556444....
gpl-2.0
sami2448/m
plugins/anti_flood.lua
281
2422
local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 5 local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, function (data, success, result) if success ~= 1 then local text = 'I can\'t k...
gpl-2.0
mrshayan/power_bot
plugins/inpm.lua
4
9511
local function pre_process(msg) local to = msg.to.type local service = msg.service if to == 'user' and msg.fwd_from then if not is_support(msg.from.id) and not is_admin1(msg) then return end local user = 'user#id'..msg.from.id local from_id = msg.fwd_from.peer_id if msg.fwd_from.first_name then from_fi...
gpl-2.0
nekrozar/ygopro-scripts
c30525991.lua
7
1160
--スパルタクァの呪術師 function c30525991.initial_effect(c) --recover local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(30525991,0)) e1:SetCategory(CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetRange(LOC...
gpl-2.0
nekrozar/ygopro-scripts
c3825890.lua
2
2216
--墓守の大神官 function c3825890.initial_effect(c) --summon with 1 tribute local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(3825890,0)) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SUMMON_PROC) e1:SetCondition(c3825890.otcon) e1:SetOp...
gpl-2.0
venkatarajasekhar/bee
test/db/errinj.test.lua
1
3554
errinj = db.error.injection space = db.schema.space.create('tweedledum') index = space:create_index('primary', { type = 'hash' }) errinj.info() errinj.set("some-injection", true) errinj.set("some-injection") -- check error space:select{222444} errinj.set("ERRINJ_TESTING", true) space:select{222444} errinj.set("ERRINJ...
bsd-2-clause
ag6ag/skynet
service/service_provider.lua
10
2242
local skynet = require "skynet" local provider = {} local function new_service(svr, name) local s = {} svr[name] = s s.queue = {} return s end local svr = setmetatable({}, { __index = new_service }) function provider.query(name) local s = svr[name] if s.queue then table.insert(s.queue, skynet.response()) ...
mit
Pandafuchs/iLife
client/Classes/util/cModelImporter.lua
2
11798
-- -- Created by IntelliJ IDEA. -- User: Noneatme -- Date: 27.01.2015 -- Time: 18:49 -- To change this template use File | Settings | File Templates. -- cModellImporter = {}; --[[ ]] -- /////////////////////////////// -- ///// New ////// -- ///// Returns: Object ////// -- /////////////////////////////// functi...
mit
nekrozar/ygopro-scripts
c80476891.lua
1
2991
--進化合獣ヒュードラゴン function c80476891.initial_effect(c) aux.EnableDualAttribute(c) --atkup local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(80476891,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_FIELD) e1:SetRange(LOCATION_MZONE) e1:SetCode(EVENT_SUMMON_SUCCESS) e...
gpl-2.0
yuhangwang/luabuild
luaish/luaish.lua
3
14611
local have_ml,ml = pcall(require, 'ml') local posix = require 'posix' local linenoise = require 'linenoise' local lsh = { tostring = tostring } local append = table.insert io.write "luaish (c) Steve Donovan 2012-2014\n" local our_completions, our_history = {} local our_shortcuts = {} local home = os.getenv 'HOME' ...
mit
nekrozar/ygopro-scripts
c38737148.lua
2
1964
--ライトレイ ダイダロス function c38737148.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(c38737148.spcon) c:RegisterEffect(e1) --sps...
gpl-2.0
nekrozar/ygopro-scripts
c90207654.lua
3
3993
--極星天グルヴェイグ function c90207654.initial_effect(c) c:EnableReviveLimit() aux.AddLinkProcedure(c,c90207654.matfilter,1,1) --banish and summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(90207654,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_...
gpl-2.0
nekrozar/ygopro-scripts
c72708264.lua
4
2011
--EMボットアイズ・リザード function c72708264.initial_effect(c) --copy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(72708264,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetCondition(c72708264.copycon) e1:SetCost(c72708264.copycost) e1:SetOperation(c72708264.co...
gpl-2.0
nekrozar/ygopro-scripts
c74593218.lua
4
1873
--H-C クサナギ function c74593218.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_WARRIOR),4,3) c:EnableReviveLimit() --negate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(74593218,0)) e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY+CATEGORY_ATKCHANGE) ...
gpl-2.0
nekrozar/ygopro-scripts
c94820406.lua
2
2744
--ダーク・フュージョン function c94820406.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c94820406.target) e1:SetOperation(c94820406.activate) c:RegisterEffect(e1) end fu...
gpl-2.0
nekrozar/ygopro-scripts
c40204620.lua
1
1520
--メガリス・プロモーション function c40204620.initial_effect(c) --activate local e0=Effect.CreateEffect(c) e0:SetType(EFFECT_TYPE_ACTIVATE) e0:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e0) --lv change local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(40204620,0)) e1:SetCategory(CATEGORY_LVCHANGE) e1:SetType...
gpl-2.0
FailcoderAddons/SVUI
SVUI_!Core/libs/_SVUI_Lib/Events.lua
1
5960
--[[ /$$$$$$$$ /$$ | $$_____/ | $$ | $$ /$$ /$$ /$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$$ | $$$$$| $$ /$$//$$__ $$| $$__ $$|_ $$_/ /$$_____/ | $$__/ \ $$/$$/| $$$$$$$$| $$ \ $$ | $$ | $$$$$$ | $$ \ $$$/ | $$_____/| $$ | $$ | $$ /$$\____ $$ ...
mit
nekrozar/ygopro-scripts
c84472026.lua
3
2378
--ゴーストリック・イエティ function c84472026.initial_effect(c) --summon limit local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_SUMMON) e1:SetCondition(c84472026.sumcon) c:RegisterEffect(e1) --turn set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(84472026,0)) e2:Se...
gpl-2.0
kxxoling/google-diff-match-patch
lua/diff_match_patch.lua
265
73869
--[[ * Diff Match and Patch * * Copyright 2006 Google Inc. * http://code.google.com/p/google-diff-match-patch/ * * Based on the JavaScript implementation by Neil Fraser. * Ported to Lua by Duncan Cross. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance ...
apache-2.0
ag6ag/skynet
lualib/skynet/cluster.lua
5
2534
local skynet = require "skynet" local clusterd local cluster = {} local sender = {} local task_queue = {} local function request_sender(q, node) local ok, c = pcall(skynet.call, clusterd, "lua", "sender", node) if not ok then skynet.error(c) c = nil end -- run tasks in queue local confirm = coroutine.running...
mit
nekrozar/ygopro-scripts
c79965360.lua
7
2412
--アマゾネスの秘宝 function c79965360.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(c79965360.target) e1:SetOperation(c79965360.operation) c:RegisterEffect(e1...
gpl-2.0
nekrozar/ygopro-scripts
c93503294.lua
2
3159
--オルターガイスト・プライムバンシー function c93503294.initial_effect(c) --link summon c:EnableReviveLimit() aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0x103),2) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(93503294,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(...
gpl-2.0
nekrozar/ygopro-scripts
c58131925.lua
2
1698
--BF-極夜のダマスカス function c58131925.initial_effect(c) --atkup local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(58131925,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(TIMING_DAMAGE_STEP) e1:SetRange(LOCATION_HAND) e1:SetProperty(E...
gpl-2.0
nekrozar/ygopro-scripts
c41456841.lua
1
3470
--究極変異態・インセクト女王 function c41456841.initial_effect(c) --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) e1:SetValue(c41456841.splimit) c:RegisterEffect(e1) --indes local e...
gpl-2.0
nekrozar/ygopro-scripts
c923596.lua
3
1727
--ギアギアーマー function c923596.initial_effect(c) --turn set local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(923596,0)) e1:SetCategory(CATEGORY_POSITION) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetTarget(c923596.target) e1:SetOperation(c923596.operation) c:RegisterEffect(e1) ...
gpl-2.0