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
Lsty/ygopro-scripts
c50088247.lua
3
2629
--氷結界の伝道師 function c50088247.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(c50088247.spcon) e1:SetOperation(c50088247.spop) c:RegisterEffect(e1) ...
gpl-2.0
gallenmu/MoonGen
libmoon/lua/proto/newProtocolTemplate.lua
4
4464
------------------------------------------------------------------------ --- @file PROTO.lua --- @brief (PROTO) utility. --- Utility functions for the PROTO_header structs --- Includes: --- - PROTO constants --- - PROTO header utility --- - Definition of PROTO packets --------------------------------------------------...
mit
jadarve/lluvia
lluvia/lua/ll/library.lua
1
9892
ll['nodeBuilders'] = {} ll['activeSession'] = nil function ll.logd(tag, ...) -- print(tag, ...) end function ll.class(base) local c = {} if base then -- shallow copy of base class members if type(base) == 'table' then for i, v in pairs(base) do c[i] = v ...
apache-2.0
StewEsho/Prepenole
enemies.lua
2
5060
-------------------------------------------------------------------------------- -- -- Centralized module for spawning, tracking, and handling enemies -- Contains a table, which itself contains more table_insert -- Each subtable contains all instances of enemies. -- This way, every enemy can be accessed through this on...
gpl-3.0
Lsty/ygopro-scripts
c3064425.lua
3
3508
--超重武者装留ビッグバン function c3064425.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(3064425,0)) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_HAND+LOCATION_MZONE) e1:SetTarget(c3064425.eqtg) e1:S...
gpl-2.0
cshore-firmware/openwrt-luci
libs/luci-lib-httpclient/luasrc/httpclient.lua
62
9481
-- Copyright 2009 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. require "nixio.util" local nixio = require "nixio" local ltn12 = require "luci.ltn12" local util = require "luci.util" local table = require "table" local http = require "luci.http.protocol" local date = requir...
apache-2.0
MalRD/darkstar
scripts/zones/The_Boyahda_Tree/npcs/qm2.lua
9
1861
----------------------------------- -- Area: The Boyahda Tree -- NPC: qm2 (???) -- Involved in Quest: Searching for the Right Words -- !pos 34.651 -20.183 -61.647 153 ----------------------------------- local ID = require("scripts/zones/The_Boyahda_Tree/IDs") require("scripts/globals/keyitems") require("scripts/globals...
gpl-3.0
MalRD/darkstar
scripts/zones/San_dOria-Jeuno_Airship/IDs.lua
12
1307
----------------------------------- -- Area: San_dOria-Jeuno_Airship ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.SAN_DORIA_JEUNO_AIRSHIP] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the...
gpl-3.0
MalRD/darkstar
scripts/zones/Port_Bastok/Zone.lua
9
2770
----------------------------------- -- -- Zone: Port_Bastok (236) -- ----------------------------------- local ID = require("scripts/zones/Port_Bastok/IDs"); require("scripts/globals/conquest") require("scripts/globals/missions") require("scripts/globals/settings") require("scripts/globals/zone") ----------------------...
gpl-3.0
gallenmu/MoonGen
libmoon/lua/lib/syscall.lua
28
2041
-- this puts everything into one table ready to use local require, print, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string, math = require, print, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, tabl...
mit
robertbrook/Penlight
tests/test-stringio.lua
15
1569
local stringio = require 'pl.stringio' local test = require 'pl.test' local asserteq = test.asserteq local T = test.tuple function fprintf(f,fmt,...) f:write(fmt:format(...)) end fs = stringio.create() for i = 1,100 do fs:write('hello','\n','dolly','\n') end asserteq(#fs:value(),1200) fs = strin...
mit
weshoke/DSL
test/test.expr.lua
1
5600
if(LuaAV) then addmodulepath = LuaAV.addmodulepath else --------------------------------------------------------------- -- Bootstrapping functions required to coalesce paths local function exec(cmd, echo) echo = echo or true if(echo) then print(cmd) print("") end local res = io.popen(cmd):read("*a") ...
mit
CommandPost/CommandPost-App
extensions/serial/test_serial.lua
5
2084
function testAvailablePortNames() local availablePortNames = hs.serial.availablePortNames() assertTrue(type(availablePortNames) == "table") return success() end function testAvailablePortPaths() local availablePortPaths = hs.serial.availablePortPaths() assertTrue(type(availablePortPaths) == "table") retur...
mit
Lsty/ygopro-scripts
c54537489.lua
5
1742
--タツノオトシオヤ function c54537489.initial_effect(c) --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) e1:SetValue(c54537489.splimit) c:RegisterEffect(e1) --token local e2=Effect...
gpl-2.0
Lsty/ygopro-scripts
c27971137.lua
3
3110
--腐乱犬 function c27971137.initial_effect(c) --atkup local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetOperation(c27971137.atkop) c:RegisterEffect(e1) --special summon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(279711...
gpl-2.0
MalRD/darkstar
scripts/zones/Kazham/npcs/Tatapp.lua
9
11840
----------------------------------- -- Area: Kazham -- NPC: Tatapp -- Standard Merchant NPC ----------------------------------- require("scripts/globals/pathfind"); local path = { 15.005042, -8.000000, -104.349953, 14.694142, -8.000000, -103.382622, 14.346356, -8.000000, -102.330627, 14.005146, -8.000...
gpl-3.0
Lsty/ygopro-scripts
c40975574.lua
9
2248
--レッド・リゾネーター function c40975574.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(40975574,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(c40975574.sptg) e1:SetOperation(c409...
gpl-2.0
Lsty/ygopro-scripts
c83982270.lua
9
1090
--雲魔物-ポイズン・クラウド function c83982270.initial_effect(c) --destroy&damage local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(83982270,0)) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c83982270.cond...
gpl-2.0
shahabsaf1/My-system
plugins/giphy.lua
633
1796
-- Idea by https://github.com/asdofindia/telegram-bot/ -- See http://api.giphy.com/ do local BASE_URL = 'http://api.giphy.com/v1' local API_KEY = 'dc6zaTOxFJmzC' -- public beta key local function get_image(response) local images = json:decode(response).data if #images == 0 then return nil end -- No images loca...
gpl-2.0
hfjgjfg/hack54
plugins/giphy.lua
633
1796
-- Idea by https://github.com/asdofindia/telegram-bot/ -- See http://api.giphy.com/ do local BASE_URL = 'http://api.giphy.com/v1' local API_KEY = 'dc6zaTOxFJmzC' -- public beta key local function get_image(response) local images = json:decode(response).data if #images == 0 then return nil end -- No images loca...
gpl-2.0
Lsty/ygopro-scripts
c11109820.lua
3
3180
--エクシーズ・ユニバース function c11109820.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(11109820,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOGRAVE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTar...
gpl-2.0
Lsty/ygopro-scripts
c1945387.lua
3
1198
--E・HERO ノヴァマスター function c1945387.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcFun2(c,aux.FilterBoolFunction(Card.IsSetCard,0x3008),aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_FIRE),true) --spsummon condition local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:S...
gpl-2.0
Lsty/ygopro-scripts
c78574395.lua
3
1415
--ワンダー・バルーン function c78574395.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --counter local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(78574395,0)) e2:SetCategory(CATEGORY_COUNTER) e2:SetType(EFFEC...
gpl-2.0
MalRD/darkstar
scripts/globals/mobskills/reactor_overheat.lua
11
1025
--------------------------------------------- -- Reactor Overheat -- Zedi, while in Animation form 3 (Rings) -- Blinkable 1-3 hit, addtional effect Plague on hit. --------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/monstertpmov...
gpl-3.0
MalRD/darkstar
scripts/zones/The_Celestial_Nexus/mobs/Ealdnarche.lua
8
2265
----------------------------------- -- Area: The Celestial Nexus -- Mob: Eald'narche (Phase 1) -- Zilart Mission 16 BCNM Fight ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- function onMobI...
gpl-3.0
Lsty/ygopro-scripts
c59965151.lua
3
1751
--デッド・ガードナー function c59965151.initial_effect(c) --change battle target local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(59965151,0)) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_BE_BATTLE_TARGET) e1:SetRange(LOCATION_MZONE) e1:SetCondition(c59965151.cbcon) e1:SetOperation(...
gpl-2.0
MalRD/darkstar
scripts/globals/abilities/coursers_roll.lua
12
2900
----------------------------------- -- Ability: Courser's Roll -- Enhances "Snapshot" effect for party members within area of effect. -- Optimal Job: None -- Lucky Number: 3 -- Unlucky Number: 9 -- Level: 81 -- Phantom Roll +1 Value: 1 -- -- No Reliable Community Data available. Numbers Based on Blitzer's Roll Values. ...
gpl-3.0
Lsty/ygopro-scripts
c53334641.lua
3
2829
--ゴーストリックの駄天使 function c53334641.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,4,2,c53334641.ovfilter,aux.Stringid(53334641,0)) c:EnableReviveLimit() --win local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYA...
gpl-2.0
maxrio/luci981213
build/luadoc/luadoc/config.lua
165
1234
------------------------------------------------------------------------------- -- LuaDoc configuration file. This file contains the default options for -- luadoc operation. These options can be overriden by the command line tool -- @see luadoc.print_help -- @release $Id: config.lua,v 1.6 2007/04/18 14:28:39 tomas Exp...
apache-2.0
MalRD/darkstar
scripts/zones/Aht_Urhgan_Whitegate/IDs.lua
9
6219
----------------------------------- -- Area: Aht_Urhgan_Whitegate ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.AHT_URHGAN_WHITEGATE] = { text = { ITEM_CANNOT_BE_OBTAINED = 219, -- You cannot obtain the ...
gpl-3.0
MalRD/darkstar
scripts/zones/Port_Bastok/npcs/Ferrol.lua
9
2763
----------------------------------- -- Area: Port Bastok -- NPC: Ferrol -- Starts Quest: Trial Size Trial by Earth -- !pos 33.708 6.499 -39.425 236 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/quests"); require("scripts/globals/teleports"); local ID = require("scripts...
gpl-3.0
MalRD/darkstar
scripts/zones/Jugner_Forest_[S]/npcs/qm8.lua
9
1316
----------------------------------- -- Area: Jugner Forest (S) -- NPC: ??? -- Type: Quest NPC -- !pos -6 0 -295 82 ----------------------------------- local ID = require("scripts/zones/Jugner_Forest_[S]/IDs") require("scripts/globals/quests") ----------------------------------- function onTrade(player, npc, trade) en...
gpl-3.0
Lsty/ygopro-scripts
c37011715.lua
9
1281
--奇跡の蘇生 function c37011715.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:SetCondition(c37011715.condition) e1:SetTarget(c37011715.target) e1:SetOperati...
gpl-2.0
sonoro1234/cimgui
generator/output/typedefs_dict.lua
1
2892
local defs = {} defs["ImColor"] = "struct ImColor" defs["ImDrawCallback"] = "void(*)(const ImDrawList* parent_list,const ImDrawCmd* cmd);" defs["ImDrawChannel"] = "struct ImDrawChannel" defs["ImDrawCmd"] = "struct ImDrawCmd" defs["ImDrawCornerFlags"] = "int" defs["ImDrawData"] = "struct ImDrawData" defs["ImDrawIdx"] = ...
mit
MalRD/darkstar
scripts/zones/Lower_Delkfutts_Tower/npcs/_540.lua
9
1651
----------------------------------- -- Area: Lower Delkfutt's Tower -- NPC: Cermet Door -- Cermet Door for Windy Ambassador -- Windurst Mission 3.3 "A New Journey" -- !pos 636 16 59 184 ----------------------------------- local ID = require("scripts/zones/Lower_Delkfutts_Tower/IDs") require("scripts/globals/keyitems")...
gpl-3.0
Lsty/ygopro-scripts
c95308449.lua
5
1125
--終焉のカウントダウン function c95308449.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_REMOVE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c95308449.cost) e1:SetOperation(c95308449.activate) c:RegisterEffect(e1) end function c95308449.cost(e,tp,eg,ep,ev...
gpl-2.0
Lsty/ygopro-scripts
c2830693.lua
5
2749
--虹クリボー function c2830693.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(2830693,0)) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_HAND) ...
gpl-2.0
ThingMesh/openwrt-luci
modules/niu/luasrc/model/cbi/niu/wireless/apdevice.lua
51
1625
--[[ LuCI - Lua Configuration Interface 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$ ]]-- loca...
apache-2.0
Lsty/ygopro-scripts
c32015116.lua
3
1313
--無差別破壊 function c32015116.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_END_PHASE) c:RegisterEffect(e1) --roll and destroy local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(32015116,0)) e2:SetC...
gpl-2.0
Lsty/ygopro-scripts
c32918479.lua
3
1959
--光神機-閃空 function c32918479.initial_effect(c) --handes local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(32918479,0)) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_BATTLE_DAMAGE) e1:SetCondition(c32918479.condition) e1:SetTarget(c32918479.target...
gpl-2.0
CommandPost/CommandPost-App
extensions/mouse/mouse.lua
4
6307
--- === hs.mouse === --- --- Inspect/manipulate the position of the mouse pointer --- --- This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/). --- --- This module uses ManyMouse by Ryan C. Gordon. --- --- MANYMOUSE LICENSE: --- --- Copyright ...
mit
Frenzie/koreader
spec/unit/nickel_conf_spec.lua
9
5773
describe("Nickel configuation module", function() local lfs, NickelConf setup(function() require("commonrequire") lfs = require("libs/libkoreader-lfs") NickelConf = require("device/kobo/nickel_conf") end) describe("Frontlight module", function() it("should read value", f...
agpl-3.0
Lsty/ygopro-scripts
c16678947.lua
3
1370
--カース・サイキック function c16678947.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_BATTLE_DESTROYED) e1:SetCondition(c16678947.condition) e1:SetTarget(c16678947.target) e1:SetOper...
gpl-2.0
Lsty/ygopro-scripts
c32703716.lua
9
1266
--フィッシュアンドキックス function c32703716.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_REMOVE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c32703716.condition) e1:SetTarget(c32703716.target) e1:SetOperatio...
gpl-2.0
Lsty/ygopro-scripts
c38411870.lua
3
1068
--つり天井 function c38411870.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,0x1c0+TIMING_END_PHASE) e1:SetCondition(c38411870.condition) e1:SetTarget(c38411870.target) e1:SetOperation(c3...
gpl-2.0
Nuthen/ludum-dare-39
entities/event.lua
1
9517
local Scene = require "entities.scene" local TextBox = require "entities.textbox" local EventScene = Class("EventScene", Scene) function EventScene:initialize(parent) self.parent = parent self.textBoxWidth = 0.8 self.textBoxHeight = 0.7 local continueText = "\n(Click here or press space to continue)...
mit
Lsty/ygopro-scripts
c57554544.lua
3
4038
--炎王の孤島 function c57554544.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --destroy local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(57554544,0)) e2:SetCategory(CATEGORY_DESTROY+CATEGORY_TOHAND+CATEGO...
gpl-2.0
takaaptech/nightmaretris
const.lua
1
1776
local const = { -- Resource paths BG_IMAGE_PATH = 'img/bgimage.png', FONT_PATH = 'fonts/mrsmonster.ttf', TETROMINOS_DIR = 'tetrominos', -- Sizes TITLE_FONT_SIZE = 36, STOPPED_FONT_SIZE = 45, PAUSED_FONT_SIZE = 60, GAMEOVER_FONT_SIZE = 64, GAMEOVER_MESSAGE_SHADOW_OFFSET ...
gpl-3.0
tryroach/vlc
share/lua/intf/test.lua
91
1909
function assert_url(result, protocol, username, password, host, port, path) assert(result.protocol == protocol) assert(result.username == username) assert(result.password == password) assert(result.host == host) assert(result.port == port) assert(result.path == path) end vlc.msg.inf...
gpl-2.0
Mijyuoon/starfall
lua/moonscript/base.lua
1
1775
local compile = loadmodule("moonscript.compile") local parse = loadmodule("moonscript.parse") local concat, insert, remove do local _obj_0 = table concat, insert, remove = _obj_0.concat, _obj_0.insert, _obj_0.remove end local split, dump, get_options, unpack do local _obj_0 = loadmodule("moonscript.util") split...
bsd-3-clause
Lsty/ygopro-scripts
c48179391.lua
3
2691
--オレイカルコスの結界 function c48179391.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c48179391.actcost) e1:SetTarget(c48179391.acttg) e1:SetOperation(c48179391.actop) c:RegisterEffect(e1) --spsumm...
gpl-2.0
Lsty/ygopro-scripts
c5183693.lua
3
2768
--下克上の首飾り function c5183693.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(c5183693.target) e1:SetOperation(c5183693.operation) c:RegisterEffect(e1) -...
gpl-2.0
MahmoudDolah/Firmware-Entry-Points-In-Memory
openwrt/openwrt-generic-x86/usr/lib/lua/luci/model/cbi/admin_network/ifaces.lua
37
15435
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local ut = require "luci.util" local pt = require "luci.tools.proto" local nw = require "luci.model.network" local fw = requ...
apache-2.0
MalRD/darkstar
scripts/globals/items/uskumru.lua
11
1046
----------------------------------------- -- ID: 5452 -- Item: Uskumru -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 3 -- Mind -5 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ----------------------------------------...
gpl-3.0
Lsty/ygopro-scripts
c75363626.lua
5
1262
--マドルチェ・シューバリエ function c75363626.initial_effect(c) --to deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(75363626,0)) e1:SetCategory(CATEGORY_TODECK) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_TO_GRAVE) e1:SetCondition(c75363626.retcon) e1:SetTarget(c75363626.rettg...
gpl-2.0
ara8586/9900
libs/url.lua
567
9183
--[[ Copyright 2004-2007 Diego Nehab. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute,...
agpl-3.0
MalRD/darkstar
scripts/globals/abilities/drain_samba_ii.lua
12
1343
----------------------------------- -- Ability: Drain Samba II -- Inflicts the next target you strike with Drain Daze, allowing all those engaged in battle with it to drain its HP. -- Obtained: Dancer Level 35 -- TP Required: 25% -- Recast Time: 1:00 -- Duration: 1:30 ----------------------------------- require("script...
gpl-3.0
Lsty/ygopro-scripts
c61757117.lua
5
1611
--救世の美神ノースウェムコ function c61757117.initial_effect(c) c:EnableReviveLimit() --set target local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetDescription(aux.Stringid(61757117,0)) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c6175...
gpl-2.0
neverlose1/sickmind
plugins/id.lua
31
6231
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
jmattsson/nodemcu-firmware
lua_examples/ucglib/GT_fonts.lua
30
1512
local M, module = {}, ... _G[module] = M function M.run() -- make this a volatile module: package.loaded[module] = nil print("Running component fonts...") local d = 5 disp:setColor(0, 0, 40, 80) disp:setColor(1, 150, 0, 200) disp:setColor(2, 60, 0, 40) disp:setColor(3, 0, 160, 160) ...
mit
Lsty/ygopro-scripts
c50951359.lua
5
1460
--チューナー・キャプチャー function c50951359.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_SPSUMMON_SUCCESS) e1:SetCondition(c50951359.condition) e1:SetTarget(c50951359.target) ...
gpl-2.0
Lsty/ygopro-scripts
c74968065.lua
3
1155
--ヘカテリス function c74968065.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(74968065,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCost(c74968065.cost) e1:SetTarget(c74968065.target) e1:SetOperation...
gpl-2.0
MalRD/darkstar
scripts/zones/Bibiki_Bay/npcs/Warmachine.lua
9
1674
----------------------------------- -- Area: Bibiki Bay -- NPC: Warmachine -- !pos -345.236 -3.188 -976.563 4 ----------------------------------- require("scripts/globals/keyitems"); local ID = require("scripts/zones/Bibiki_Bay/IDs"); require("scripts/globals/missions"); ----------------------------------- function o...
gpl-3.0
ASDF482/TeleTak
plugins/invite.lua
393
1225
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
MalRD/darkstar
scripts/zones/Port_Bastok/npcs/Ronan.lua
9
2271
----------------------------------- -- Area: Port Bastok -- NPC: Ronan -- Start & Finishes Quest: Out of One's Shell ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/titles"); require("scripts/globals/quests"); local ID = require("scripts/zones/Port_Bastok/IDs"); ------...
gpl-3.0
Lsty/ygopro-scripts
c99861526.lua
3
1407
--サブマリンロイド function c99861526.initial_effect(c) --direct attack local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_DIRECT_ATTACK) c:RegisterEffect(e1) --damage reduce local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) e2:SetRange(LOCATION_MZONE) ...
gpl-2.0
ashkanpj/yagoopfire
plugins/tweet.lua
634
7120
local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json" local client = OAuth.new(consumer_key, consumer_secret, ...
gpl-2.0
Lsty/ygopro-scripts
c16889337.lua
3
2854
--荒魂 function c16889337.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(aux.FALSE) c:RegisterEffect(e1) --summon,flip local e2=Effect.Crea...
gpl-2.0
MalRD/darkstar
scripts/globals/items/gold_lobster.lua
11
1250
----------------------------------------- -- ID: 5797 -- Item: gold_lobster -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity -5 -- Vitality 3 -- Defense % 16 (Cap 50) ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ------...
gpl-3.0
Lsty/ygopro-scripts
c77631175.lua
3
1762
--CH キング・アーサー function c77631175.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_WARRIOR),4,2) c:EnableReviveLimit() --destroy replace local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:Se...
gpl-2.0
cshore-firmware/openwrt-luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/trunks.lua
68
2343
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") cbimap = Map("asterisk", "Trunks") cbimap.pageaction = false local sip_peers = { } cbimap.uci:foreach("asterisk", "sip", function(s) if s.type == "peer" then s.name =...
apache-2.0
rotmanmi/nn
SpatialConvolutionMM.lua
9
3125
local SpatialConvolutionMM, parent = torch.class('nn.SpatialConvolutionMM', 'nn.Module') function SpatialConvolutionMM:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padW, padH) parent.__init(self) dW = dW or 1 dH = dH or 1 self.nInputPlane = nInputPlane self.nOutputPlane = nOutputPlane self....
bsd-3-clause
Frenzie/koreader
frontend/ui/widget/linkbox.lua
4
1554
local Blitbuffer = require("ffi/blitbuffer") local Device = require("device") local Geom = require("ui/geometry") local GestureRange = require("ui/gesturerange") local InputContainer = require("ui/widget/container/inputcontainer") local Size = require("ui/size") local UIManager = require("ui/uimanager") local Screen = ...
agpl-3.0
cshore-firmware/openwrt-luci
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/netlink.lua
39
5747
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.netlink", package.seeall) function rrdargs( graph, plugin, plugin_instance ) -- -- traffic diagram -- local traffic = { title = "%H: Netlink...
apache-2.0
Lsty/ygopro-scripts
c68811206.lua
9
1324
--Tyler the Great Warrior function c68811206.initial_effect(c) --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) --damage local e2=Effect.CreateEffect(c)...
gpl-2.0
robertbrook/Penlight
lua/pl/comprehension.lua
39
9077
--- List comprehensions implemented in Lua. -- -- See the [wiki page](http://lua-users.org/wiki/ListComprehensions) -- -- local C= require 'pl.comprehension' . new() -- -- C ('x for x=1,10') () -- ==> {1,2,3,4,5,6,7,8,9,10} -- C 'x^2 for x=1,4' () -- ==> {1,4,9,16} -- C '{x,x^2} for x=1,4' () -- ==...
mit
Lsty/ygopro-scripts
c9365703.lua
3
1411
--スピード・ウォリアー function c9365703.initial_effect(c) --summon success local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetOperation(c9365703.sumop) c:RegisterEffect(e1) --atk up local e2=Effect.Creat...
gpl-2.0
moody2020/TH3_BOSS
plugins/TH3BOSS4.lua
4
1842
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ مساعدة4 ...
gpl-2.0
Lsty/ygopro-scripts
c37383714.lua
5
1535
--魂の綱 function c37383714.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:SetCondition(c37383714.condition) e1:SetCost(c37383714.cost) e1:SetTarget(c37383714.target) e1:SetOperation(c37383714.acti...
gpl-2.0
rigeirani/teshep
plugins/help.lua
3
8499
local function run(msg, matches) if matches[1] == 'admin' then local data = load_data(_config.moderation.data) local admins = 'admins' if not data[tostring(admins)] then data[tostring(admins)] = {} save_data(_config.moderation.data, data) end local message = 'Lista degli amministra...
gpl-2.0
Lsty/ygopro-scripts
c65079854.lua
3
3182
--憎悪の棘 function c65079854.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(c65079854.target) e1:SetOperation(c65079854.operation) c:RegisterEffect(e1) -...
gpl-2.0
sagarwaghmare69/nn
RReLU.lua
22
1197
local ffi = require 'ffi' local RReLU, parent = torch.class('nn.RReLU', 'nn.Module') function RReLU:__init(l, u, ip) parent.__init(self) self.lower = l or 1/8 self.upper = u or 1/3 assert(self.lower <= self.upper and self.lower >= 0 and self.upper >= 0) self.noise = torch.Tensor() self.train = true ...
bsd-3-clause
openwrt/luci
applications/luci-app-radicale2/luasrc/model/cbi/radicale2/server.lua
10
5336
-- Licensed to the public under the Apache License 2.0. local fs = require("nixio.fs") local rad2 = require "luci.controller.radicale2" local http = require("luci.http") local m = Map("radicale2", translate("Radicale 2.x"), translate("A lightweight CalDAV/CardDAV server")) s = m:section(SimpleSection, transla...
apache-2.0
kidaa/luafun
tests/basic.lua
3
4699
-------------------------------------------------------------------------------- -- iter -------------------------------------------------------------------------------- -- -- Arrays -- for _it, a in iter({1, 2, 3}) do print(a) end --[[test 1 2 3 --test]] for _it, a in iter(iter(iter({1, 2, 3}))) do print(a) end --[...
mit
Lsty/ygopro-scripts
c73872164.lua
3
1705
--お家おとりつぶし function c73872164.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:SetHintTiming(0,0x1e0) e1:SetCost(c73872164.cost) e1:SetTarget(c73872164.target) ...
gpl-2.0
Mkalo/forgottenserver
data/actions/scripts/other/enchanting.lua
1
7592
local items = { equipment = { [2147] = { -- small ruby [COMBAT_FIREDAMAGE] = {id = 2343, targetId = 2147} -- helmet of the ancients (enchanted) }, [2383] = { -- spike sword [COMBAT_FIREDAMAGE] = {id = 7744}, [COMBAT_ICEDAMAGE] = {id = 7763}, [COMBAT_EARTHDAMAGE] = {id = 7854}, [COMBAT_ENERGYDAMAGE] = {i...
gpl-2.0
gallenmu/MoonGen
libmoon/lua/lib/turbo/turbo/platform.lua
11
1395
--- Turbo.lua C Platform / OS variables. -- -- Copyright 2014 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...
mit
marktsai0316/nodemcu-firmware
lua_examples/onewire-ds18b20.lua
60
1505
--' -- 18b20 one wire example for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Vowstar <vowstar@nodemcu.com> --' pin = 9 ow.setup(pin) count = 0 repeat count = count + 1 addr = ow.reset_search(pin) addr = ow.search(pin) tmr.wdclr() until((addr ~= nil) or (count > 100)) if (addr ==...
mit
MalRD/darkstar
scripts/globals/teleports.lua
8
29578
----------------------------------- -- A collection of frequently needed teleport shortcuts. ----------------------------------- require("scripts/globals/settings") require("scripts/globals/zone") dsp = dsp or {} dsp.teleport = dsp.teleport or {} ----------------------------------- -- TELEPORT IDS -------------------...
gpl-3.0
Lsty/ygopro-scripts
c63977008.lua
3
1614
--ジャンク・シンクロン function c63977008.initial_effect(c) --summon success local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(63977008,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:...
gpl-2.0
MalRD/darkstar
scripts/globals/spells/sacrifice.lua
12
1250
----------------------------------------- -- Spell: Sacrifice -- ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0 end func...
gpl-3.0
MalRD/darkstar
scripts/zones/Bastok_Markets_[S]/npcs/Engelhart.lua
9
3261
----------------------------------- -- Area: Bastok Markets (S) -- NPC: Engelhart -- Quest NPC -- pos -79 -4 -125 ----------------------------------- local ID = require("scripts/zones/Bastok_Markets_[S]/IDs") require("scripts/globals/quests"); require("scripts/globals/settings"); ----------------------------------- f...
gpl-3.0
Lsty/ygopro-scripts
c21313376.lua
3
1782
--No.14 強欲のサラメーヤ function c21313376.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,5,2) c:EnableReviveLimit() --reflect damage local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_REFLECT_DAMAGE) e1:SetRange(LOCATION_MZONE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetT...
gpl-2.0
Lsty/ygopro-scripts
c52824910.lua
5
1349
--カイザー・グライダー function c52824910.initial_effect(c) --indes local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetValue(c52824910.indes) c:RegisterEffect(e1) --to hand local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(52824910,0)) e2:SetCatego...
gpl-2.0
MalRD/darkstar
scripts/globals/spells/bluemagic/filamented_hold.lua
12
1548
----------------------------------------- -- Spell: Filamented Hold -- Reduces the attack speed of enemies within a fan-shaped area originating from the caster -- Spell cost: 38 MP -- Monster Type: Vermin -- Spell Type: Magical (Earth) -- Blue Magic Points: 3 -- Stat Bonus: VIT+1 -- Level: 52 -- Casting Time: 2 seconds...
gpl-3.0
Noneatme/MTA-SCP-049
client/utils/CEgo.lua
1
11163
-- ####################################### -- ## Project: MTA:scp-088 ## -- ## Name: Ego ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ####################################### -- FUNCTIONS / METHODS -- local cFunc = {}; -- Local Functions local cSetting = ...
mit
Mkalo/forgottenserver
data/actions/scripts/other/constructionkits.lua
23
1464
local constructionKits = { [3901] = 1666, [3902] = 1670, [3903] = 1652, [3904] = 1674, [3905] = 1658, [3906] = 3813, [3907] = 3817, [3908] = 1619, [3909] = 12799, [3910] = 2105, [3911] = 1614, [3912] = 3806, [3913] = 3807, [3914] = 3809, [3915] = 1716, [3916] = 1724, [3917] = 1732, [3918] = 1775, [3919] = 1774, [39...
gpl-2.0
Lsty/ygopro-scripts
c18605135.lua
3
1301
--竜巻海流壁 function c18605135.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c18605135.actcon) c:RegisterEffect(e1) --avoid battle damage local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_AVO...
gpl-2.0
ara8586/9900
plugins/admin.lua
1
10728
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(rec...
agpl-3.0
Lsty/ygopro-scripts
c72913666.lua
3
2059
--ゴーストリック・ワーウルフ function c72913666.initial_effect(c) --summon limit local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_SUMMON) e1:SetCondition(c72913666.sumcon) c:RegisterEffect(e1) --turn set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(72913666,0)) e2:S...
gpl-2.0