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
Godfather021/tg
plugins/weather.lua
274
1531
do local BASE_URL = "http://api.openweathermap.org/data/2.5/weather" local function get_weather(location) print("Finding weather in ", location) location = string.gsub(location," ","+") local url = BASE_URL url = url..'?q='..location url = url..'&units=metric' url = url..'&appid=bd82977b86bf27fb59a04b61b6...
gpl-2.0
ark120202/aabs
game/scripts/vscripts/modules/custom_abilities/random_omg.lua
1
1449
function CustomAbilities:RandomOMGRollAbilities(unit) if Options:IsEquals("EnableRandomAbilities") then local ability_count = 6 local ultimate_count = 2 for i = 0, unit:GetAbilityCount() - 1 do local ability = unit:GetAbilityByIndex(i) if ability then for _,v in ipairs(unit:FindAllModifiers()) do ...
mit
Lsty/ygopro-scripts
c94693857.lua
3
1549
--ブンボーグ001 function c94693857.initial_effect(c) --atk/def local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetValue(c94693857.atkval) c:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EFFEC...
gpl-2.0
MalRD/darkstar
scripts/zones/Southern_San_dOria/npcs/Deraquien.lua
9
1846
----------------------------------- -- Area: Southern San d'Oria -- NPC: Deraquien -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- !pos -98 -2 31 230 ------------------------------------- require("scripts/globals/quests"); local ID = require("scripts/zones/Southern_San_dOria/IDs"); --------------------------...
gpl-3.0
Lsty/ygopro-scripts
c1918087.lua
9
1223
--ゴブリンの小役人 function c1918087.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_DRAW_PHASE) e1:SetCondition(c1918087.actcon) c:RegisterEffect(e1) --damage local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Str...
gpl-2.0
Frenzie/koreader
frontend/device/kindle/device.lua
1
47020
local Generic = require("device/generic/device") local time = require("ui/time") local lfs = require("libs/libkoreader-lfs") local logger = require("logger") local function yes() return true end local function no() return false end -- luacheck: ignore local function kindleEnableWifi(toggle) local haslipc, lipc =...
agpl-3.0
MalRD/darkstar
scripts/zones/Navukgo_Execution_Chamber/mobs/Karababa.lua
8
1898
----------------------------------- -- Area: Navukgo Execution Chamber -- Mob: Karababa ----------------------------------- require("scripts/globals/status") local ID = require("scripts/zones/Navukgo_Execution_Chamber/IDs") ----------------------------------- function onMobFight(mob,target) local warp = mob:getLo...
gpl-3.0
Lsty/ygopro-scripts
c79407975.lua
5
2472
--究極宝玉神 レインボー・ダーク・ドラゴン function c79407975.initial_effect(c) c:EnableReviveLimit() --splimit 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=Effec...
gpl-2.0
Lsty/ygopro-scripts
c7563579.lua
3
2817
--Emヒグルミ function c7563579.initial_effect(c) --pendulum summon aux.AddPendulumProcedure(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --spsummon local e2=Effect.CreateEffect(c) e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DA...
gpl-2.0
T-L-N/Dev_TLN
plugins/dev-n.lua
1
1389
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY ډٵٰہٰيٰہہح|🌝💔 ▀▄ ▄▀ ▀▄ ▄▀ BYډٵٰہٰيٰہہح|🌝💔 (@ss70ss ) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY ډٵٰہٰيٰہہح|🌝💔 ▀▄ ▄▀ ▀▄ ▄▀ dev1 : dev ▀▄...
gpl-2.0
MalRD/darkstar
scripts/globals/spells/luminohelix.lua
12
2050
-------------------------------------- -- Spell: Luminohelix -- Deals light damage that gradually reduces -- a target's HP. Damage dealt is greatly affected by the weather. -------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/magic") -----...
gpl-3.0
Lsty/ygopro-scripts
c52370835.lua
9
1409
--H・C ソード・シールド function c52370835.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(52370835,0)) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_HAND) e1:SetCondition(c52370835.condition) e1:SetCost(c52370835.cost) e1:SetOperation(c523...
gpl-2.0
SyDr/Advent-Of-Code-2016
23.lua
1
2034
local lpeg = require'lpeg' local pp = require'pretty' local function to_op(cmd, op1, op2) local command = 3 if cmd == "cpy" or cmd == "inc" then command = 1 end if cmd == "jnz" or cmd == "dec" then command = 2 end if cmd == "cpy" or cmd == "jnz" then return function(t) if t then if command...
mit
Lsty/ygopro-scripts
c85255550.lua
3
1252
--異国の剣士 function c85255550.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(85255550,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_DAMAGE_STEP_END) e1:SetCondition(c85255550.condition) e1:SetOperation(c85255550.operation...
gpl-2.0
Lsty/ygopro-scripts
c17601919.lua
3
2165
--ゴースト姫-パンプリンセス- function c17601919.initial_effect(c) --send replace local e1=Effect.CreateEffect(c) e1:SetCode(EFFECT_SEND_REPLACE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE) e1:SetRange(LOCATION_MZONE) e1:SetTarget(c17601919.reptg) e1:...
gpl-2.0
Lsty/ygopro-scripts
c91020571.lua
5
1835
--地征竜-リアクタン function c91020571.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(91020571,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,91020571) e1:SetCost(c91020571.spcost) e1:SetTarget(c910...
gpl-2.0
devcline/mtasa-blue
vendor/lua/src/premake.lua
38
6155
---------------------------------------------------- -- The main porpouse of this file is to build linux gcc makefiles. -- Must have Premake version 3 installed. -- Original Premake was changed to remove some parameters and add others. -- Default parameters: -- premake3s --target gnu --os linux -- But it can build wi...
gpl-3.0
Lsty/ygopro-scripts
c21831848.lua
9
1175
--ガガガドロー function c21831848.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c21831848.cost) e1:SetTarget(c21831848.target) e1:SetOperation(c21831848.acti...
gpl-2.0
MalRD/darkstar
scripts/zones/Cloister_of_Gales/mobs/Garuda_Prime.lua
8
1457
----------------------------------- -- Area: Cloister of Gales -- Mob: Garuda Prime -- Involved in Quest: Trial by Wind, Trial Size Trial by Wind -- Involved in Mission: ASA-4 Sugar Coated Directive ----------------------------------- require("scripts/globals/keyitems") require("scripts/globals/settings") require("scr...
gpl-3.0
ThingMesh/openwrt-luci
modules/admin-mini/luasrc/model/cbi/mini/luci.lua
81
1335
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
apache-2.0
Lsty/ygopro-scripts
c4939890.lua
3
2329
--シャドール・ヘッジホッグ function c4939890.initial_effect(c) --flip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(4939890,0)) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCountLimit(1,4939890) e1:SetCost(c493...
gpl-2.0
robertbrook/Penlight
lua/pl/Date.lua
12
17716
--- Date and Date Format classes. -- See @{05-dates.md|the Guide}. -- -- Dependencies: `pl.class`, `pl.stringx` -- @classmod pl.Date -- @pragma nostrip local class = require 'pl.class' local os_time, os_date = os.time, os.date local stringx = require 'pl.stringx' local utils = require 'pl.utils' local assert_arg,asse...
mit
Lsty/ygopro-scripts
c17810268.lua
3
2368
--雲魔物-アシッド・クラウド function c17810268.initial_effect(c) --battle indestructable local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetValue(1) c:RegisterEffect(e1) --selfdes local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetProperty(EFFEC...
gpl-2.0
MalRD/darkstar
scripts/globals/items/chunk_of_sweet_lizard.lua
11
1113
----------------------------------------- -- ID: 5738 -- Item: chunk_of_sweet_lizard -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 5 -- MP 5 -- Dexterity 1 -- hHP +2 -- hMP +2 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") --...
gpl-3.0
MalRD/darkstar
scripts/globals/items/serving_of_salmon_meuniere.lua
11
1096
----------------------------------------- -- ID: 4583 -- Item: serving_of_salmon_meuniere -- Food Effect: 180Min, All Races ----------------------------------------- -- Dexterity 2 -- Mind -2 -- Ranged ACC % 7 -- Ranged ACC Cap 10 ----------------------------------------- require("scripts/globals/status") require("scri...
gpl-3.0
MalRD/darkstar
scripts/globals/items/slice_of_grilled_black_hare.lua
11
1095
----------------------------------------- -- ID: 4516 -- Item: slice_of_grilled_black_hare -- Food Effect: 240Min, All Races ----------------------------------------- -- Strength 2 -- Intelligence -1 -- Attack % 20 -- Attack Cap 30 ----------------------------------------- require("scripts/globals/status") require("scr...
gpl-3.0
MalRD/darkstar
scripts/zones/Ifrits_Cauldron/npcs/Altar_of_Ashes.lua
8
1619
---------------------------------- -- Area: Ifrit's Cauldron -- NPC: Altar of Ashes -- Involved in Quest: Greetings to the Guardian -- !pos 16 .1 -58 205 ----------------------------------- local ID = require("scripts/zones/Ifrits_Cauldron/IDs") require("scripts/globals/quests") ----------------------------------- fu...
gpl-3.0
MalRD/darkstar
scripts/globals/mobskills/havoc_spiral.lua
11
1175
--------------------------------------------- -- Havoc Spiral -- -- Description: Deals damage to players in an area of effect. Additional effect: Sleep -- Type: Physical -- 2-3 Shadows -- Range: Unknown -- Special weaponskill unique to Ark Angel MR. Deals ~100-300 damage. -----------------------------------------...
gpl-3.0
RamiLego4Game/PlatformerWorld
Engine/lovebird.lua
1
16749
-- -- lovebird -- -- Copyright (c) 2014, rxi -- -- This library is free software; you can redistribute it and/or modify it -- under the terms of the MIT license. See LICENSE for details. -- local socket = require "socket" local lovebird = { _version = "0.3.0" } lovebird.loadstring = loadstring or load lovebird.inite...
gpl-2.0
Lsty/ygopro-scripts
c93451636.lua
9
1325
--ゼンマイハニー function c93451636.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(93451636,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c93451636.condition) e1:SetT...
gpl-2.0
Lsty/ygopro-scripts
c54719828.lua
3
1795
--No.16 色の支配者ショック・ルーラー function c54719828.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,4,3) c:EnableReviveLimit() --act limit local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(54719828,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetCountLimit(1) e1:SetRange(LOCATION_MZONE) e1:SetCost(c547...
gpl-2.0
MalRD/darkstar
scripts/zones/The_Sanctuary_of_ZiTah/IDs.lua
8
3727
----------------------------------- -- Area: The_Sanctuary_of_ZiTah ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.THE_SANCTUARY_OF_ZITAH] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain t...
gpl-3.0
MalRD/darkstar
scripts/zones/Crawlers_Nest_[S]/npcs/Rodeupansat.lua
11
1664
----------------------------------- -- Area: Crawlers_Nest_[S] -- NPC: Rodeupansat -- Starts and Finishes Quest: EVIL_AT_THE_INLET -- !pos 129 -34 26 171 ----------------------------------- require("scripts/globals/npc_util") require("scripts/globals/keyitems") require("scripts/globals/quests") -----------------------...
gpl-3.0
Lsty/ygopro-scripts
c82432018.lua
3
2102
--凶暴化の仮面 function c82432018.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(c82432018.target) e1:SetOperation(c82432018.operation) c:RegisterEffect(e1) ...
gpl-2.0
Mike325/.vim
lua/plugins/snippets/rust.lua
1
2847
local load_module = require('utils.helpers').load_module local ls = load_module 'luasnip' if not ls then return false end local s = ls.snippet local sn = ls.snippet_node local t = ls.text_node -- local isn = ls.indent_snippet_node local i = ls.insert_node -- local f = ls.function_node -- local c = ls.choice_node l...
mit
cshore-firmware/openwrt-luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/dialplan_out.lua
68
3021
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") local function find_outgoing_contexts(uci) local c = { } local h = { } -- uci:foreach("asterisk", "dialplan", -- function(s) -- if not h[s['.name']] then -- c[#c+1]...
apache-2.0
Lsty/ygopro-scripts
c11264180.lua
3
2147
--TGX1-HL function c11264180.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(TIMING_DAMAGE_STEP) e1:SetC...
gpl-2.0
Lsty/ygopro-scripts
c65149697.lua
5
1039
--レアル・ジェネクス・クラッシャー function c65149697.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(65149697,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_MZONE) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTar...
gpl-2.0
sagarwaghmare69/nn
FlattenTable.lua
21
3205
local FlattenTable, parent = torch.class('nn.FlattenTable', 'nn.Module') function FlattenTable:__init() parent.__init(self) self.output = {} self.input_map = {} self.gradInput = {} end -- Recursive function to flatten a table (output is a table) local function flatten(output, input) local input_map -- has...
bsd-3-clause
Lsty/ygopro-scripts
c41097056.lua
3
1693
--シンクロ・クラッカー function c41097056.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TODECK+CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c41097056.target) e1:SetOperation(c41097056.activate) ...
gpl-2.0
Lsty/ygopro-scripts
c30069398.lua
3
1585
--アイヴィ・ウォール function c30069398.initial_effect(c) --token local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(30069398,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN) e1:SetType(EFFECT_TYPE_FLIP+EFFECT_TYPE_SINGLE) e1:SetTarget(c30069398.target) e1:SetOperation(c30069398.operation) c:Regist...
gpl-2.0
Lsty/ygopro-scripts
c8487449.lua
7
2375
--ジェスター・コンフィ function c8487449.initial_effect(c) c:SetUniqueOnField(1,0,8487449) --special summon local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_SPSUM_PARAM+EFFECT_FLAG_UNCOPYABLE) e1:SetTargetRange(POS_FACEUP_ATTACK,0) e1:SetRange(LOCAT...
gpl-2.0
maxrio/luci981213
modules/luci-mod-admin-full/luasrc/controller/admin/status.lua
11
4362
-- 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.status", package.seeall) function index() entry({"admin", "status"}, alias("admin", "status", "overview"), _("Status"), 20).ind...
apache-2.0
Xasin/TRRIAN
LUA/FactorioLayout/main.lua
1
4427
require "piece" require "piecelist" piecelist = {} math.randomseed(os.time() + os.clock()); for i = 1, 200 do math.random(1, 1); end function initialise_randomly(size, fill) tespiece = nil; piecelist = nil; testpiece = new_piece(size, size); testpiece.routes:new(1, 1, size, size, 0); for i = 1, fi...
gpl-3.0
MalRD/darkstar
scripts/zones/Chateau_dOraguille/npcs/_6h0.lua
9
4595
----------------------------------- -- Area: Chateau d'Oraguille -- Door: Prince Royal's -- Finishes Quest: A Boy's Dream, Under Oath -- Involved in Missions: 3-1, 5-2, 8-2 -- !pos -38 -3 73 233 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/settings"); require("scripts/...
gpl-3.0
MalRD/darkstar
scripts/zones/Valley_of_Sorrows/IDs.lua
9
2127
----------------------------------- -- Area: Valley_of_Sorrows ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.VALLEY_OF_SORROWS] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>....
gpl-3.0
Lsty/ygopro-scripts
c8275702.lua
5
1203
--宝玉の契約 function c8275702.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:SetTarget(c8275702.sptg) e1:SetOperation(c8275702.spop) c:RegisterEffect(e1) en...
gpl-2.0
Lsty/ygopro-scripts
c42776960.lua
5
2034
--魂のリレー function c42776960.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(c42776960.target) e1:SetOperation(c42776960.activate) c:RegisterEffect(e1) end function c42776960.filter(c,e,...
gpl-2.0
cleytonk/globalfull
data/talkactions/scripts/deathlist.lua
12
2178
local function getArticle(str) return str:find("[AaEeIiOoUuYy]") == 1 and "an" or "a" end local function getMonthDayEnding(day) if day == "01" or day == "21" or day == "31" then return "st" elseif day == "02" or day == "22" then return "nd" elseif day == "03" or day == "23" then return "rd" else return "t...
gpl-2.0
Lsty/ygopro-scripts
c79531196.lua
3
3119
--クリスタル・ローズ function c79531196.initial_effect(c) --to grave local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOGRAVE) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetTarget(c79531196.tgtg) e1:SetOperation(c79531196.tgop) c:RegisterEffect(e1) --spsummon local e2=E...
gpl-2.0
asterite/mal
lua/step7_quote.lua
40
4344
#!/usr/bin/env lua local table = require('table') local readline = require('readline') local utils = require('utils') local types = require('types') local reader = require('reader') local printer = require('printer') local Env = require('env') local core = require('core') local List, Vector, HashMap = types.List, typ...
mpl-2.0
MalRD/darkstar
scripts/globals/items/angler_stewpot.lua
11
1608
----------------------------------------- -- ID: 5611 -- Item: Angler's Stewpot -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% (cap 200) -- MP +10 -- HP Recoverd while healing 5 -- MP Recovered while healing 1 -- Accuracy +15% Cap 15 -- Ranged Accuracy 15% Ca...
gpl-3.0
Lsty/ygopro-scripts
c39037517.lua
3
2470
--コアキメイル・ビートル function c39037517.initial_effect(c) --cost local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE) e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCountLimit(1) e1:SetRange(LOCATION_MZONE) e1:SetCondition(c3903...
gpl-2.0
MalRD/darkstar
scripts/zones/Dynamis-Xarcabard/IDs.lua
9
8606
----------------------------------- -- Area: Dynamis-Xarcabard ----------------------------------- require("scripts/globals/keyitems") require("scripts/globals/dynamis") require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.DYNAMIS_XARCABARD] = { text = { ...
gpl-3.0
Lsty/ygopro-scripts
c47658964.lua
3
1593
--紅蓮の炎壁 function c47658964.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:SetCost(c47658964.cost) e1:SetTarget(c47658964.target) e1:SetOperation(c47658964.activate) c:RegisterEffect(e1) end fu...
gpl-2.0
LuaDist2/tethys
tethys2/plugins/deposit/Mailman.lua
2
1226
module(..., package.seeall) local oo = require "loop.simple" local Plugin = require 'tethys2.plugins.deposit.Plugin' local MailFormat = require 'tethys2.util.Maildir' require'posix' require'lfs' require'config' new = oo.class({}, Plugin.class) Mailman = new class = new Mailman.mailman_types = { {"^(.*)%-admin$", "b...
gpl-3.0
Lsty/ygopro-scripts
c36042004.lua
9
1187
--ベビケラサウルス function c36042004.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(36042004,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_TO_GRAVE) e1:SetCondi...
gpl-2.0
Lsty/ygopro-scripts
c93554166.lua
3
1325
--暗黒界の雷 function c93554166.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c93554166.target) e1:SetOperation(c93554166.activate) c:RegisterEffect(e1) ...
gpl-2.0
Lsty/ygopro-scripts
c7092142.lua
3
1776
--激流蘇生 function c7092142.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_TO_GRAVE) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetCountLimit(1,7092142+EFFECT_COUNT_CODE_OATH) e1:SetCondition(c7092142.condition)...
gpl-2.0
MalRD/darkstar
scripts/globals/abilities/pets/attachments/mana_tank.lua
11
1151
----------------------------------- -- Attachment: Mana Tank ----------------------------------- require("scripts/globals/automaton") require("scripts/globals/status") ----------------------------------- function onEquip(pet) -- We do not have support to do a fraction of a percent so we rounded local frame = p...
gpl-3.0
marktsai0316/nodemcu-firmware
examples/fragment.lua
55
19918
pwm.setup(0,500,50) pwm.setup(1,500,50) pwm.setup(2,500,50) pwm.start(0) pwm.start(1) pwm.start(2) function led(r,g,b) pwm.setduty(0,g) pwm.setduty(1,b) pwm.setduty(2,r) end wifi.sta.autoconnect(1) a=0 tmr.alarm( 1000,1,function() if a==0 then a=1 led(50,50,50) else a=0 led(0,0,0) end end) sv:on("receive", function(s,...
mit
ashkanpj/yagoopfire
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
MalRD/darkstar
scripts/zones/The_Ashu_Talif/instances/the_black_coffin.lua
9
2037
----------------------------------- -- -- TOAU-15: The Black Coffin -- ----------------------------------- require("scripts/globals/instance") require("scripts/globals/keyitems") local ID = require("scripts/zones/The_Ashu_Talif/IDs") ----------------------------------- function afterInstanceRegister(player) local ...
gpl-3.0
Lsty/ygopro-scripts
c40640057.lua
3
1037
--クリボー function c40640057.initial_effect(c) --no damage local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(40640057,0)) e1:SetType(EFFECT_TYPE_QUICK_O+EFFECT_TYPE_FIELD) e1:SetRange(LOCATION_HAND) e1:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e1:SetCondition(c40640057.con) e1:SetCost(c40640057.cost) e1:Se...
gpl-2.0
MalRD/darkstar
scripts/globals/effects/field_support_food.lua
12
2969
----------------------------------- -- -- dsp.effect.FIELD_SUPPORT_FOOD -- From FoV and GoV ----------------------------------- function onEffectGain(target,effect) if (effect:getPower() == 1) then -- Dried Meat target:addMod(dsp.mod.STR, 4) target:addMod(dsp.mod.FOOD_ATTP, 22) target:addMo...
gpl-3.0
Lsty/ygopro-scripts
c67111213.lua
3
1213
--リチュア・アビス function c67111213.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(67111213,0)) e1:SetCategory(CATEGORY_TOHAND) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(c6711121...
gpl-2.0
mikhail-angelov/vlc
share/lua/playlist/katsomo.lua
97
2906
--[[ Translate www.katsomo.fi video webpages URLs to the corresponding movie URL $Id$ Copyright © 2009 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 o...
gpl-2.0
MalRD/darkstar
scripts/globals/items/bowl_of_sopa_de_pez_blanco.lua
11
1259
----------------------------------------- -- ID: 4601 -- Item: Bowl of Sopa de Pez Blanco -- Food Effect: 180Min, All Races ----------------------------------------- -- Health 12 -- Dexterity 6 -- Mind -4 -- Accuracy 3 -- Ranged ACC % 7 -- Ranged ACC Cap 10 ----------------------------------------- require("scripts/glo...
gpl-3.0
tarulas/luadch
luasec/src/ssl.lua
1
4304
------------------------------------------------------------------------------ -- LuaSec 0.5 -- Copyright (C) 2006-2014 Bruno Silvestre -- ------------------------------------------------------------------------------ local core = require("ssl.core") local context = require("ssl.context") local x509 = require("s...
gpl-3.0
Lsty/ygopro-scripts
c1828513.lua
5
1713
--六武衆の影-紫炎 function c1828513.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x3d),4,2) c:EnableReviveLimit() --attack up local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetDescription(aux.Stringid(1828513,0)) e1:SetType(EFFECT_TYPE_QUICK_O) e1:S...
gpl-2.0
Lsty/ygopro-scripts
c76763417.lua
3
1408
--サイバー・ジムナティクス function c76763417.initial_effect(c) --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(76763417,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetCost(c7676341...
gpl-2.0
maxrio/luci981213
applications/luci-app-dump1090/luasrc/model/cbi/dump1090.lua
30
7206
-- Copyright 2014-2015 Álvaro Fernández Rojas <noltari@gmail.com> -- Licensed to the public under the Apache License 2.0. m = Map("dump1090", "dump1090", translate("dump1090 is a Mode S decoder specifically designed for RTLSDR devices, here you can configure the settings.")) s = m:section(TypedSection, "dump1090", ""...
apache-2.0
cshore-firmware/openwrt-luci
applications/luci-app-dump1090/luasrc/model/cbi/dump1090.lua
30
7206
-- Copyright 2014-2015 Álvaro Fernández Rojas <noltari@gmail.com> -- Licensed to the public under the Apache License 2.0. m = Map("dump1090", "dump1090", translate("dump1090 is a Mode S decoder specifically designed for RTLSDR devices, here you can configure the settings.")) s = m:section(TypedSection, "dump1090", ""...
apache-2.0
Lsty/ygopro-scripts
c20188127.lua
5
1269
--泉の精霊 function c20188127.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c20188127.target) e1:SetOperation(c20188127.activate) c:RegisterEffect(e1) en...
gpl-2.0
MalRD/darkstar
scripts/zones/LaLoff_Amphitheater/mobs/Ark_Angel_TT.lua
9
1818
----------------------------------- -- Area: LaLoff Amphitheater -- Mob: Ark Angel TT ----------------------------------- mixins = {require("scripts/mixins/job_special")} require("scripts/globals/status"); ----------------------------------- function onMobInitialize(mob) mob:addMod(dsp.mod.UFASTCAST, 30); end; f...
gpl-3.0
aminassian/scipm
lua/scipm.core.toolmenu.lua
1
13460
scipm.core.toolmenu = function () -- vars local actionToAddInToolMenu = {}; local actionToAddInContextMenu = {}; local subsystem = { ["console"] = "0", ["windows"] = "1", ["shellexec"] = "2", ["luadirector"] = "3", ["htmlhelp"] = "4", ["winhelp"] = "5", ["immediate"] = "7" } local addedAction = {}...
gpl-3.0
gallenmu/MoonGen
libmoon/lua/lib/turbo/examples/chunked.lua
12
1209
--- Turbo.lua Streaming write example -- -- Copyright 2013 John Abrahamsen -- -- 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 re...
mit
Silencer2K/wow-action-bar-profiles
Restore.lua
1
36090
local addonName, addon = ... local L = LibStub("AceLocale-3.0"):GetLocale(addonName) local DEBUG = "|cffff0000Debug:|r " local S2KFI = LibStub("LibS2kFactionalItems-1.0") function addon:GetProfiles(filter, case) local list = self.db.profile.list local sorted = {} local name, profile for name, profi...
mit
maxrio/luci981213
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/exec.lua
68
2536
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("luci_statistics", translate("Exec Plugin Configuration"), translate( "The exec plugin starts external commands to read values " .. "from or to notify external processes when cer...
apache-2.0
Lsty/ygopro-scripts
c44910027.lua
3
1659
--ヴィクトリー・ドラゴン function c44910027.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) c:RegisterEffect(e1) --summon with 3 tribute local e1=Effect.CreateEff...
gpl-2.0
Lsty/ygopro-scripts
c66066482.lua
3
2860
--甲虫装機 リュシオル function c66066482.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(66066482,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetCategory(CATEGORY_EQUIP) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetTarget(c66066482.eqtg) e1:SetOperation(c66066482.eqop) c:R...
gpl-2.0
Lsty/ygopro-scripts
c58069384.lua
5
4266
--サイバー・ドラゴン・ノヴァ function c58069384.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_MACHINE),5,2) c:EnableReviveLimit() --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(58069384,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT...
gpl-2.0
zhaozg/lit
deps/weblit-app.lua
3
1064
--[[lit-meta name = "creationix/weblit-app" version = "3.2.1" dependencies = { 'creationix/coro-net@3.0.0', 'luvit/http-codec@3.0.0', 'luvit/querystring@2.0.0', 'creationix/weblit-server@3.0.0', 'creationix/weblit-router@3.0.0' } description = "Weblit is a webapp framework designed around ...
apache-2.0
Lsty/ygopro-scripts
c16021142.lua
3
1705
--幻奏の音女カノン function c16021142.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:SetCountLimit(1,16021142) e1:SetCondition(c16021142.spcon) c:RegisterEffect(e1) -...
gpl-2.0
gallenmu/MoonGen
libmoon/lua/lib/turbo/examples/parameters.lua
12
1463
--- Turbo.lua Parameters example -- -- Copyright 2013 John Abrahamsen -- -- 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 require...
mit
ThingMesh/openwrt-luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/rrdtool.lua
80
3431
--[[ Luci configuration model for statistics - collectd rrdtool 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 Licen...
apache-2.0
vadi2/Mudlet
src/mudlet-lua/lua/utf8_filenames.lua
3
120620
------------------------------------------------------------------------------------------------------------------------------ -- Module: utf8_filenames ------------------------------------------------------------------------------------------------------------------------------ -- Filename: utf8_filenames.lua -- Versi...
gpl-2.0
Lsty/ygopro-scripts
c58169731.lua
5
1107
--分断の壁 function c58169731.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetCondition(c58169731.condition) e1:SetTarget(c58169731.target) e1:SetOperation(c58169731.activate) c:RegisterEffect(e1) end function c58169731.condition(...
gpl-2.0
Lsty/ygopro-scripts
c69488544.lua
3
3313
--フェニックス・ギア・フリード function c69488544.initial_effect(c) aux.EnableDualAttribute(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(69488544,0)) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_F...
gpl-2.0
Lsty/ygopro-scripts
c74100225.lua
5
1892
--進化の特異点 function c74100225.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:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget(c74100225.target) e1:SetOperation(c74100225.activate) c:RegisterEff...
gpl-2.0
MalRD/darkstar
scripts/zones/Bastok_Markets/npcs/Matthias.lua
9
6995
----------------------------------- -- Area: Bastok Markets -- NPC: Matthias -- Standard Info NPC -- Involved in Quest: ----------------------------------- local ID = require("scripts/zones/Bastok_Markets/IDs"); require("scripts/globals/quests"); ----------------------------------- --local variables for item IDs to m...
gpl-3.0
Mike325/.vim
lua/plugins/lsp/config.lua
1
9638
-- local sys = require 'sys' local nvim = require 'neovim' local load_module = require('utils.helpers').load_module -- local executable = require('utils.files').executable -- local is_dir = require('utils.files').is_dir -- local plugins = require'neovim'.plugins -- local set_autocmd = require'neovim.autocmds'.set_aut...
mit
chu11/flux-core
src/shell/lua.d/intel_mpi.lua
7
1063
------------------------------------------------------------- -- Copyright 2020 Lawrence Livermore National Security, LLC -- (c.f. AUTHORS, NOTICE.LLNS, COPYING) -- -- This file is part of the Flux resource manager framework. -- For details, see https://github.com/flux-framework. -- -- SPDX-License-Identifier: LGPL-3.0...
lgpl-3.0
MalRD/darkstar
scripts/globals/mobskills/vortex.lua
11
1053
--------------------------------------------------- -- Vortex -- Creates a vortex that damages targets in an area of effect. Additional effect: Terror --------------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/monstertpmoves") ---...
gpl-3.0
Lsty/ygopro-scripts
c48130397.lua
3
3111
--超融合 function c48130397.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,0x1e0) e1:SetCost(c48130397.cost) e1:SetTarget(c48130397.target) e1:SetOperation(c48130397.activate) c:...
gpl-2.0
Lsty/ygopro-scripts
c45653036.lua
3
2256
--暴風雨 function c45653036.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:SetHintTiming(0,0x1e0) e1:SetTarget(c45653036.target) e1:SetOperation(c45653036.activate) c:RegisterEffect(e1) end funct...
gpl-2.0
RamiLego4Game/PlatformerWorld
Engine/Tiles/CupSign.lua
1
1118
--Author : Ramilego4Game - This File Is Part Of Platformer World-- --Type : Class/Tile-Sign-- Tile = class:new() function Tile:init() self.name = "CupSign" self.category = "Decor" self.hover = "Cup" self.thumbnail = "sign"..self.hover self.snap = 70 end function Tile:buildbatch(marker,map,spritebatch,spritemap...
gpl-2.0
Lsty/ygopro-scripts
c27827903.lua
3
1311
--A・ジェネクス・クラッシャー function c27827903.initial_effect(c) --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(27827903,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LO...
gpl-2.0
npge/alnbox
src/alnbox/alignmentParameters.lua
3
2181
-- alnbox, alignment viewer based on the curses library -- Copyright (C) 2015 Boris Nagaev -- See the LICENSE file for terms of use -- gets an alignment, return parameters for alnbox return function(alignment, curses) local p = {} p.rows = #alignment.names assert(p.rows > 0) p.cols = 0 local bottom...
mit
Lsty/ygopro-scripts
c15545291.lua
3
2892
--剛地帝グランマーグ function c15545291.initial_effect(c) --summon with 1 tribute local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(15545291,0)) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SUMMON_PROC) e1:SetCondition(c15545291.otcon) e1...
gpl-2.0