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 |
|---|---|---|---|---|---|
uber/fbthrift | thrift/test/lua/test_basic_server.lua | 2 | 1779 | -- Copyright 2004-present Facebook. All Rights Reserved.
--------------------------------------------------------------------------------
-- Handler
TestHandler = ThriftTestIface:new{}
-- Stops the server
function TestHandler:testVoid()
self.__server:stop()
end
function TestHandler:testString(str)
return str .. ... | apache-2.0 |
mercury233/ygopro-scripts | c3285551.lua | 2 | 2928 | --アラメシアの儀
function c3285551.initial_effect(c)
aux.AddCodeList(c,3285552)
--activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,3285551+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c3285551.con... | gpl-2.0 |
mercury233/ygopro-scripts | c81997228.lua | 2 | 3249 | --プランキッズ・ハウスバトラー
function c81997228.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCode3(c,81119816,18236002,55725117,true,true)
--spsummon condition
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e0:Se... | gpl-2.0 |
mercury233/ygopro-scripts | c23756165.lua | 2 | 4404 | --魅惑の女王 LV5
function c23756165.initial_effect(c)
--equip
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetOperation(c23756165.regop)
c:RegisterEffect(e1)
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid... | gpl-2.0 |
yuhangwang/LuaExtensions | src/modules/file_module.lua | 1 | 4073 | --------------------------------------------
-- Group files by their extension
--------------------------------------------
-- Author: Yuhang Wang ---------------------
-- Date: 06/12/2015 ------------------------
-- Require: "Lua File System | lfs"
--------------------------------------------
local M = {}
local SysM... | mit |
mercury233/ygopro-scripts | c27383719.lua | 2 | 3004 | --S-Force ラプスウェル
function c27383719.initial_effect(c)
--equip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(27383719,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_F... | gpl-2.0 |
mercury233/ygopro-scripts | c17241370.lua | 2 | 1504 | --リチュア・ナタリア
function c17241370.initial_effect(c)
--spirit return
aux.EnableSpiritReturn(c,EVENT_SUMMON_SUCCESS,EVENT_FLIP)
--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)... | gpl-2.0 |
mercury233/ygopro-scripts | c24668830.lua | 2 | 2034 | --細菌感染
function c24668830.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+EFFECT_FLAG_CONTINUOUS_TARGET)
e1:SetTarget(c24668830.target)
e1:SetOperation(c24668830.opera... | gpl-2.0 |
mercury233/ygopro-scripts | c17751597.lua | 2 | 3416 | --烙印断罪
function c17751597.initial_effect(c)
aux.AddCodeList(c,68468459)
--negate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CHAINING)
e1:SetCountLimit(1,17751597... | gpl-2.0 |
Zenny89/darkstar | scripts/zones/Kazham/npcs/Hari_Pakhroib.lua | 17 | 2838 | -----------------------------------
-- Area: Kazham
-- NPC: Hari Pakhroib
-- Starts and Finishes Quest: Greetings to the Guardian
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts... | gpl-3.0 |
Zenny89/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Dagger.lua | 16 | 1481 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Animated Dagger
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
functi... | gpl-3.0 |
Zenny89/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Tafeesa.lua | 34 | 1032 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Tafeesa
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
----------... | gpl-3.0 |
ashkanpj/beny | 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 |
mercury233/ygopro-scripts | c36442179.lua | 4 | 1337 | --BF-竜巻のハリケーン
function c36442179.initial_effect(c)
--atk
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(36442179,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetTarget(c36442179... | gpl-2.0 |
mercury233/ygopro-scripts | c73558460.lua | 2 | 1891 | --サイバネット・リカバー
function c73558460.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(73558460,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
... | gpl-2.0 |
AleppoTeam/Aleppo | plugins/infoeng.lua | 7 | 9964 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : Aziz < @TH3_GHOST >
# our channel: @DevPointTeam
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
do... | gpl-2.0 |
mercury233/ygopro-scripts | c40005099.lua | 2 | 3014 | --不知火流 転生の陣
function c40005099.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,40005099+EFFECT_COUNT_CODE_OATH)
c:RegisterEffect(e1)
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(4000... | gpl-2.0 |
Zenny89/darkstar | scripts/zones/Apollyon/mobs/Borametz.lua | 16 | 1134 | -----------------------------------
-- Area: Apollyon NE
-- NPC: Borametz
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
--------------------------... | gpl-3.0 |
mercury233/ygopro-scripts | c30802207.lua | 2 | 4368 | --エクソシスター・カルペディベル
function c30802207.initial_effect(c)
--activate
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e0)
--cannot be target
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e1:Se... | gpl-2.0 |
Zenny89/darkstar | scripts/globals/abilities/alacrity.lua | 28 | 1151 | -----------------------------------
-- Ability: Alacrity
-- Reduces the casting and the recast time of your next black magic spell by 50%.
-- Obtained: Scholar Level 25
-- Recast Time: Stratagem Charge
-- Duration: 1 black magic spell or 60 seconds, whichever occurs first.
--
-- Level |Charges |Recharge Time p... | gpl-3.0 |
mercury233/ygopro-scripts | c45023678.lua | 6 | 1630 | --ライトニングパニッシャー
function c45023678.initial_effect(c)
--chain
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EVENT_CHAINING)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c45023678.chop)
c:RegisterEffect(e1)
--destroy
loca... | gpl-2.0 |
Zenny89/darkstar | scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Water.lua | 17 | 2270 | -----------------------------------
-- Area: Chamber of Oracles
-- NPC: Pedestal of Water
-- Involved in Zilart Mission 7
-- @pos 199 -2 36 168
-------------------------------------
package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil;
-------------------------------------
require("scripts/global... | gpl-3.0 |
mercury233/ygopro-scripts | c74335036.lua | 2 | 3707 | --置換融合
function c74335036.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(74335036,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c74335036.target)
e1:SetOperation(c74335036... | gpl-2.0 |
mercury233/ygopro-scripts | c8730435.lua | 2 | 2457 | --剣闘獣の闘器デーモンズシールド
function c8730435.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+EFFECT_FLAG_CONTINUOUS_TARGET)
e1:SetTarget(c8730435.target)
e1:SetOperation(c87304... | gpl-2.0 |
lambd0x/Awesome-wm-Funtoo-GreenSunset | awesome/vicious/widgets/cpu_linux.lua | 4 | 2069 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2011, Adrian C. <anrxc@sysphere.org>
-- * (c) 2009, Lucas de Vries <lucas@glacicle.com>
-- * (c) 2011, Jörg Thalheim <jthalheim@gmail.com>
---------------------------------------------------
-- {{{ Grab ... | gpl-2.0 |
adminmagma/test2 | plugins/Add_Bot.lua | 29 | 1484 | --[[
Bot can join into a group by replying a message contain an invite link or by
typing !join [invite link].
URL.parse cannot parsing complicated message. So, this plugin only works for
single [invite link] in a post.
[invite link] may be preceeded but must not followed by another characters.
--]]
do
local functio... | gpl-2.0 |
mercury233/ygopro-scripts | c20745268.lua | 4 | 1259 | --魔弾-デスペラード
function c20745268.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,20745268+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c20745268.conditi... | gpl-2.0 |
mercury233/ygopro-scripts | c19891131.lua | 2 | 3004 | --クロノダイバー・レギュレーター
function c19891131.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(19891131,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,19891131)
e1:SetCondition(c19891131.spcon)
e1:Set... | gpl-2.0 |
mercury233/ygopro-scripts | c74506079.lua | 2 | 4205 | --ワーム・ゼロ
function c74506079.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFunRep2(c,c74506079.ffilter,2,63,true)
--summon success
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_MATERIAL_CHECK)
e2:SetValue(c74506079.matcheck)
c:RegisterEffect(e2)
en... | gpl-2.0 |
mercury233/ygopro-scripts | c35098357.lua | 2 | 3699 | --ウィッチクラフト・コンフュージョン
function c35098357.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:SetCountLimit(1,35098357)
e1:SetTarget(c35098357.target)
e1:SetOperation(c35098357.a... | gpl-2.0 |
mercury233/ygopro-scripts | c9334391.lua | 3 | 1992 | --宝玉の絆
function c9334391.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:SetCountLimit(1,9334391+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c9334391.target)
e1:SetOperation(c9334391.activate)
... | gpl-2.0 |
mercury233/ygopro-scripts | c79875176.lua | 2 | 2866 | --トゥーン・キャノン・ソルジャー
function c79875176.initial_effect(c)
aux.AddCodeList(c,15259703)
--cannot attack
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetOperation(c79875176.atklimit)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EVENT... | gpl-2.0 |
mercury233/ygopro-scripts | c77693536.lua | 2 | 3115 | --フルメタルフォーゼ・アルカエスト
function c77693536.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFun2(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0xe1),aux.FilterBoolFunction(Card.IsFusionType,TYPE_NORMAL),true)
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
... | gpl-2.0 |
mercury233/ygopro-scripts | c53241226.lua | 2 | 2662 | --クロス・オーバー
function c53241226.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,53241226+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c53241226.target)
e1:S... | gpl-2.0 |
mercury233/ygopro-scripts | c77075360.lua | 2 | 3881 | --ジャンク・スピーダー
function c77075360.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,c77075360.tfilter,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(77075360,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SI... | gpl-2.0 |
mercury233/ygopro-scripts | c33314479.lua | 2 | 2460 | --飛鯉
function c33314479.initial_effect(c)
--attack up
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCountLimit(1,33314479)
e1:SetRange(LOCATION_MZ... | gpl-2.0 |
fusijie/cocos2d-x-samples | samples/FantasyWarrior3D/src/cocos/cocos2d/DeprecatedOpenglEnum.lua | 148 | 11934 | -- This is the DeprecatedEnum
DeprecatedClass = {} or DeprecatedClass
_G.GL_RENDERBUFFER_INTERNAL_FORMAT = gl.RENDERBUFFER_INTERNAL_FORMAT
_G.GL_LINE_WIDTH = gl.LINE_WIDTH
_G.GL_CONSTANT_ALPHA = gl.CONSTANT_ALPHA
_G.GL_BLEND_SRC_ALPHA = gl.BLEND_SRC_ALPHA
_G.GL_GREEN_BITS = gl.GREEN_BITS
_G.GL_STENCIL_REF = gl.STENCI... | mit |
fusijie/cocos2d-x-samples | samples/KillBug/src/cocos/cocos2d/DeprecatedOpenglEnum.lua | 148 | 11934 | -- This is the DeprecatedEnum
DeprecatedClass = {} or DeprecatedClass
_G.GL_RENDERBUFFER_INTERNAL_FORMAT = gl.RENDERBUFFER_INTERNAL_FORMAT
_G.GL_LINE_WIDTH = gl.LINE_WIDTH
_G.GL_CONSTANT_ALPHA = gl.CONSTANT_ALPHA
_G.GL_BLEND_SRC_ALPHA = gl.BLEND_SRC_ALPHA
_G.GL_GREEN_BITS = gl.GREEN_BITS
_G.GL_STENCIL_REF = gl.STENCI... | mit |
Xavyrr/LOVE | game/start.lua | 2 | 1526 | function gameStates.start.load()
start = {}
start.timer = -3
start.state = 0
start.image0 = love.graphics.newImage('img/start/start0.png')
start.image1 = love.graphics.newImage('img/start/start1.png')
start.image2 = love.graphics.newImage('img/start/start2.png')
start.image3 = love.graphics.newImage('img/... | apache-2.0 |
mercury233/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 |
Zenny89/darkstar | scripts/globals/mobskills/Spike_Flail.lua | 18 | 1248 | ---------------------------------------------------
-- Spike Flail
-- Deals extreme damage in a threefold attack to targets behind the user.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
-... | gpl-3.0 |
amirTg/TELEHONES | plugins/ingroup.lua | 371 | 44212 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
Zenny89/darkstar | scripts/zones/Windurst_Woods/npcs/Hae_Jakkya.lua | 17 | 1334 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Hae Jakkya
-- Working 100%
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
--... | gpl-3.0 |
Zenny89/darkstar | scripts/zones/Bibiki_Bay/mobs/Shen.lua | 16 | 1239 | -----------------------------------
-- Area: Bibiki Bay
-- NPC: Shen
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
end;
-----------------------------------
-- onMobFight Action
-----------------... | gpl-3.0 |
appaquet/torch-android | src/3rdparty/nnx/SpatialSparseCriterion.lua | 6 | 2486 | local SpatialSparseCriterion, parent = torch.class('nn.SpatialSparseCriterion', 'nn.SparseCriterion')
function SpatialSparseCriterion:__init(...)
parent.__init(self)
xlua.unpack_class(self, {...},
'nn.SpatialSparseCriterion',
'A spatial extension of the SparseCriterion class.\n'
..' Provides... | bsd-3-clause |
alirezanile/Lanmij | plugins/bot_on_off.lua | 292 | 1641 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
actboy168/YDWE | Development/Component/script/ydwe/stringify_slk.lua | 2 | 1444 | local table_concat = table.concat
local current_x, current_y
local function get_data(x, y, k)
local str = {}
str[#str+1] = 'C'
if x ~= current_x then
current_x = x
str[#str+1] = ('X%d'):format(x)
end
if y ~= current_y then
current_y = y
str[#str+1] = ('Y%d'):format(y... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Isdebaaq.lua | 30 | 3597 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Isdebaaq
-- Type: Assault Mission Giver
-- @pos 127.565 0.161 -43.846 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/ke... | gpl-3.0 |
nasomi/darkstar | scripts/globals/weaponskills/tornado_kick.lua | 30 | 2115 | -------------------------------
-- Auth : Thief
-- Skill: Tornado Kick
-- Class: H2H Weapon Skill
-- Level: 225
-- Mods : STR:37.5% VIT:30%
-- 100%TP 200%TP 300%TP
-- 2.0x 2.75x 3.5x
-- Delivers a twofold attack. Damage varies with TP.
-----------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
thesabbir/luci | modules/luci-mod-admin-full/luasrc/controller/admin/network.lua | 36 | 11355 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.admin.network", package.seeall)
function index()
local uci = require("luci.model.uci").cursor()
local page
page = node("admin", "n... | apache-2.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c27004144.lua | 1 | 1157 | --SD4-05 Namekian Bond Saonel
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,SPECIAL_TRAIT_ALIEN,SPECIAL_TRAIT_UNIVERSE_6,SPECIAL_TRAIT_NAMEKIAN,SPECIAL_TRAIT_INCLUDES_UNIVERSE)
ds.AddPlayProcedure(c,COLOR_GREEN,1,2)... | gpl-3.0 |
aikon-com-cn/NoxicDB | other/calendar_events/[INCOMPLETE]Wintergrasp/BattlefieldWG.lua | 1 | 51288 | local TIME_TO_BATTLE = 9000 -- How much time there will be between the battles.
local BATTLE_TIMER = 1800 -- How long time will the battle last for. (if attacker towers are not destroyed)
local timer_nextbattle = os.time() + TIME_TO_BATTLE
local timer_battle = 0
local controll = math.random(1,2)
local jointimer_1 = 120... | agpl-3.0 |
TeamHypersomnia/Augmentations | hypersomnia/content/official/gfx/ao44_magazine.meta.lua | 2 | 1899 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 80,
light_colors = {
"255 255 255 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
generate_desaturation = false
},
offsets =... | agpl-3.0 |
nasomi/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/Ochocho_WW.lua | 30 | 3072 | -----------------------------------
-- Area: The Sanctuary of Zi'Tah
-- NPC: Ochocho, W.W.
-- Border Conquest Guards
-- @pos -252.454 -1.958 624.366 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
MaxxUAV/ardupilot | Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua | 182 | 29665 |
--[[
KAP UAV Exposure Control Script v3.1
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
3DR EAI 1.0 is a fork of KAP 3.1 with settings specific to Canon cameras triggered off the Pixhawk autopilot.
Changelog:
-Modified Tv, Av, and... | gpl-3.0 |
dageq/Dage-Aliraqi | plugins/arabic_lock.lua | 234 | 1405 | antiarabic = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_arabic'] then
if data[tostring(msg.to.id)... | gpl-2.0 |
amirhacker135/mmkingtm1 | plugins/broadcast.lua | 12 | 2746 | local function run(msg, matches)
if matches[1] == 'bc' and is_admin(msg) then
local response = matches[3]
send_large_msg("chat#id"..matches[2], response)
end
if matches[1] == 'broadcast' then
if is_sudo(msg) then -- Only sudo !
local data = load_data(_config.moderation.data)
local groups = 'groups'
lo... | gpl-2.0 |
nasomi/darkstar | scripts/globals/weaponskills/blade_teki.lua | 30 | 1242 | -----------------------------------
-- Blade Teki
-- Katana weapon skill
-- Skill Level: 70
-- Decription: Deals water elemental damage. Damage varies with TP.
-- Aligned with the Aqua Gorget.
-- Aligned with the Aqua Belt.
-- Element: Water
-- Modifiers: STR:20% ; INT:20%
-- 100%TP 200%TP 300%TP
-- 0.5... | gpl-3.0 |
dmccuskey/dmc-states-mixin | dmc_corona_boot.lua | 47 | 15406 | --====================================================================--
-- dmc_corona_boot.lua
--
-- utility to read in configuration file for dmc-corona-library
--
-- Documentation:
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2013-2015 David Mc... | mit |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua | 35 | 5096 | --[[
LuCI - Lua Configuration Interface
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
$Id$
]]--
lo... | gpl-2.0 |
nasomi/darkstar | scripts/globals/items/cup_of_choco-delight.lua | 35 | 1167 | -----------------------------------------
-- ID: 4283
-- Item: cup_of_choco-delight
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Magic Regen While Healing 5
-----------------------------------------
require("scripts/globals/status");
----------------------------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Selbina/npcs/Explorer_Moogle.lua | 17 | 1768 | -----------------------------------
-- Area: Selbina
-- NPC: Explorer Moogle
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/t... | gpl-3.0 |
codeacula/achaea-neko | Services/gmcp.lua | 1 | 1070 | -- GMCP service
local GmcpService = {}
Neko.gmcp = GmcpService
GmcpService.handlers = {}
function GmcpService.handle(msg, data)
if not GmcpService.handlers[msg] then return end
for _, func in ipairs(GmcpService.handlers[msg]) do
func(data)
end
end
function GmcpService.printHandles()
-- The end of the things
... | mit |
nasomi/darkstar | scripts/globals/effects/aftermath.lua | 18 | 2588 | -----------------------------------
--
-- EFFECT_AFTERMATH
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
local power = effect:getPower();
if (ef... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Dynamis-Bastok/Zone.lua | 28 | 2474 | -----------------------------------
--
-- Zone: Dynamis-Bastok
--
-----------------------------------
package.loaded["scripts/zones/Dynamis-Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Bastok/TextIDs");
-----------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5cr.lua | 17 | 2440 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5cr (Magical Gizmo) #3
-- Involved In Mission: The Horutoto Ruins Experiment
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
ngeiswei/ardour | share/scripts/mixer_settings_store.lua | 2 | 10434 | ardour {
["type"] = "EditorAction",
name = "Store Mixer Settings",
author = "Mixbus Team",
description = [[
Stores the current Mixer state as a file
that can be read and recalled arbitrarily
by its companion script, Recall Mixer Settings.
Supports: processor settings, grouping,
mute, solo, gain... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/HomePoint#2.lua | 19 | 1220 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: HomePoint#2
-- @pos -130 0.001 -16 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require(... | gpl-3.0 |
Gamerbude/Wasteland | mods/bucket/init.lua | 2 | 5955 | -- Minetest 0.4 mod: bucket
-- See README.txt for licensing and other information.
local LIQUID_MAX = 8 --The number of water levels when liquid_finite is enabled
minetest.register_alias("bucket", "bucket:bucket_empty")
minetest.register_alias("bucket_water", "bucket:bucket_water")
minetest.register_alias("bucket_la... | gpl-3.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c27003221.lua | 1 | 1346 | --TB1-062 Teleporting Jimeze
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,SPECIAL_TRAIT_ALIEN,SPECIAL_TRAIT_UNIVERSE_2,SPECIAL_TRAIT_INCLUDES_UNIVERSE)
ds.AddPlayProcedure(c,COLOR_GREEN,2,1)
--energy cost down
ds... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Horlais_Peak/bcnms/double_dragonian.lua | 17 | 1772 | -----------------------------------
-- Area: Horlias peak
-- Name: double_dragonian
-- KSNM30
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zones/... | gpl-3.0 |
shangjiyu/luci-with-extra | applications/luci-app-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua | 61 | 3184 | -- Copyright 2009 Daniel Dickinson
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.luci_diag.smap_common", package.seeall)
require("luci.i18n")
require("luci.util")
require("luci.sys")
require("luci.cbi")
require("luci.model.uci")
local translate = luci.i18n.translate
local DummyValue... | apache-2.0 |
nasomi/darkstar | scripts/globals/items/serving_of_bavarois.lua | 35 | 1213 | -----------------------------------------
-- ID: 5729
-- Item: serving_of_bavarois
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP 20
-- Intelligence 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- ... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Prillaure.lua | 38 | 1040 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Prillaure
-- Type: Event Scene Replayer
-- @pos -143.000 0.999 9.000 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_U... | gpl-3.0 |
nasomi/darkstar | scripts/globals/spells/aspir_ii.lua | 21 | 1315 | -----------------------------------------
-- Spell: Aspir
-- Drain functions only on skill level!!
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function... | gpl-3.0 |
nasomi/darkstar | scripts/globals/mobskills/Panzerfaust.lua | 25 | 1285 | ---------------------------------------------
-- Panzerfaust
--
-- Description: Strikes a target twice with an armored fist. Additional effect: Knockback
-- Type: Physical
-- Utsusemi/Blink absorb: 2 shadows
-- Range: Melee
-- Notes:
---------------------------------------------
require("scripts/global... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/plate_of_ratatouille.lua | 35 | 1408 | -----------------------------------------
-- ID: 5731
-- Item: plate_of_ratatouille
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Agility 5
-- Evasion 5
-- HP recovered while healing 2
-- Undead Killer 5
-----------------------------------------
require("scripts/globals/status... | gpl-3.0 |
aqasaeed/hesamjun | plugins/inrealm.lua | 287 | 25005 | -- 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 |
nasomi/darkstar | scripts/globals/items/galkan_sausage_+1.lua | 35 | 1364 | -----------------------------------------
-- ID: 5859
-- Item: galkan_sausage_+1
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 4
-- Intelligence -5
-- Attack 10
-- Ranged Attack 10
-----------------------------------------
require("scripts/globals/status");
------... | gpl-3.0 |
appaquet/torch-android | src/3rdparty/nnx/SpatialNormalization.lua | 6 | 9748 | local SpatialNormalization, parent = torch.class('nn.SpatialNormalization','nn.Module')
local help_desc =
[[a spatial (2D) contrast normalizer
? computes the local mean and local std deviation
across all input features, using the given 2D kernel
? the local mean is then removed from all maps, and the std dev
used... | bsd-3-clause |
nasomi/darkstar | scripts/globals/weaponskills/shoulder_tackle.lua | 18 | 1562 | -----------------------------------
-- Shoulder Tackle
-- Hand-to-Hand weapon skill
-- Skill Level: 40
-- Stuns target. Chance of stunning varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Aqua Gorget & Thunder Gorget.
-- Aligned with the Aqua Belt & Thunder Belt.
-- Element: None
-- Modifie... | gpl-3.0 |
C60Project/C60-PRODUCT | plugins/private.lua | 1 | 3077 | local function do_keybaord_credits()
local keyboard = {}
keyboard.inline_keyboard = {
{
{text = 'Channel', url = 'https://telegram.me/'..config.channel:gsub('@', '')},
{text = 'GitHub', url = 'https://github.com/RememberTheAir/GroupButler'},
{text = 'Rate me!', url = 'https://telegram.me/sto... | gpl-2.0 |
jonathf/awesome | keybinds.lua | 1 | 5662 | local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
modkey = "Mod4"
config_path = awful.util.getdir("config")
globalkeys = awful.util.table.join(
-- command keys
awful.key({modkey}, "Return", function() awful.spawn(terminal) end),
awful.key({modkey}, "v", functi... | bsd-2-clause |
OrenjiAkira/lua-html | lib/lux/path.lua | 1 | 2964 | --[[
--
-- Copyright (c) 2013-2016 Wilson Kazuo Mizutani
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
... | mit |
Ingenious-Gaming/Starfall | lua/starfall/permissions/core.lua | 5 | 5523 | ---------------------------------------------------------------------
-- SF Permissions management
---------------------------------------------------------------------
-- TODO: Client version
--- Permission format
-- @name Permission
-- @class table
-- @field name The name of the permission
-- @field desc The descri... | bsd-3-clause |
nasomi/darkstar | scripts/zones/Port_Jeuno/npcs/Chaka_Skitimah.lua | 17 | 1281 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Chaka Skitimah
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
-- onTrade Action
----------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Northern_San_dOria/npcs/Ailbeche.lua | 17 | 7385 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Ailbeche
-- Starts and Finishes Quest: Father and Son, Sharpening the Sword, A Boy's Dream (start)
-- @zone 231
-- @pos 4 -1 24
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
--------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Outer_Horutoto_Ruins/npcs/_5ee.lua | 17 | 3321 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Ancient Magical Gizmo #1 (E out of E, F, G, H, I, J)
-- Involved In Mission: The Heart of the Matter
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
nicholas-leonard/nn | SparseLinear.lua | 12 | 7194 | local THNN = require 'nn.THNN'
local SparseLinear, parent = torch.class('nn.SparseLinear', 'nn.Module')
local NO_LAST_INPUT = 0
local ONE_LAST_INPUT = 1
local ACC_MULTIPLE_TIMES = 2
function SparseLinear:__init(inputSize, outputSize, doGradInput)
parent.__init(self)
self.weightDecay = 0
self.doGradInput = d... | bsd-3-clause |
Nathan22Miles/sile-0.9.1 | core/cairo-output.lua | 2 | 2874 | local lgi = require("lgi");
local cairo = lgi.cairo
local pango = lgi.Pango
local fm = lgi.PangoCairo.FontMap.get_default()
local pango_context = lgi.Pango.FontMap.create_context(fm)
if (not SILE.outputters) then SILE.outputters = {} end
local cr
local move -- See https://github.com/pavouk/lgi/issues/48
local sgs
SI... | mit |
nasomi/darkstar | scripts/zones/Palborough_Mines/TextIDs.lua | 9 | 1671 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6384; -- Obtained: <item>.
GIL_OBTAINED = 6385; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6387; -- Obtained... | gpl-3.0 |
nasomi/darkstar | scripts/globals/mobskills/Bomb_Toss_Suicide.lua | 2 | 1150 | require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onMobSkillCheck(target,mob,skill)
-- notorious monsters shouldn't explode, nor dynamis
if (mob:isMobType(MOBTYPE_NOTORIOUS) or mob:... | gpl-3.0 |
kerr-huang/SL4A | lua/json4lua/examples/tests.lua | 20 | 5532 | --[[
Some basic tests for JSON4Lua.
]]--
--- Compares two tables for being data-identical.
function compareData(a,b)
if (type(a)=='string' or type(a)=='number' or type(a)=='boolean' or type(a)=='nil') then return a==b end
-- After basic data types, we're only interested in tables
if (type(a)~='table') th... | apache-2.0 |
nasomi/darkstar | scripts/zones/Northern_San_dOria/npcs/Daveille.lua | 36 | 1427 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Daveille
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Mikhe_Aryohcha.lua | 38 | 1124 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Mikhe Aryohcha
-- Type: Standard NPC
-- @zone: 94
-- @pos -56.645 -4.5 13.014
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil... | gpl-3.0 |
aqasaeed/zeus | plugins/invite.lua | 33 | 2849 | --[[
Invite user into the chat group.
Type !invite by replying to a message to invite replied user.
Usefull when you want to reinviting kicked user. Most reliable.
Use !invite 1234567890 (where 1234567890 is id_number) to invite a user by id_number.
This is a very reliable method, and if failed, will failed silently... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Norg/npcs/Louartain.lua | 34 | 1420 | -----------------------------------
-- Area: Norg
-- NPC: Louartain
-- Standard Info NPC
-----------------------------------
require("scripts/globals/pathfind");
local path = {
41.878349, -6.282223, 10.820915,
42.088036, -6.282223, 11.867051,
42.096603, -6.282223, 12.939011,
42.104187, -6.282223, 17.27099... | gpl-3.0 |
nasomi/darkstar | scripts/globals/spells/foe_lullaby.lua | 10 | 1208 | -----------------------------------------
-- Spell: Foe Lullaby
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Port_Windurst/npcs/Chipmy-Popmy.lua | 17 | 1295 | -----------------------------------
-- Area: Port Windurst
-- NPC: Chipmy-Popmy
-- Working 100%
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
-----------------------------------
-- onTrade Action
-----------------------------------
function o... | gpl-3.0 |
nicholas-leonard/nn | SpatialUpSamplingNearest.lua | 9 | 1836 | local SpatialUpSamplingNearest, parent = torch.class('nn.SpatialUpSamplingNearest', 'nn.Module')
--[[
Applies a 2D up-sampling over an input image composed of several input planes.
The upsampling is done using the simple nearest neighbor technique.
The Y and X dimensions are assumed to be the last 2 tensor dimension... | bsd-3-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.