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 |
|---|---|---|---|---|---|
maxrio/luci981213 | modules/luci-base/luasrc/http/protocol/date.lua | 68 | 1697 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
-- This class contains functions to parse, compare and format http dates.
module("luci.http.protocol.date", package.seeall)
require("luci.sys.zoneinfo")
MONTHS = {
"Jan", "Feb", "Mar", "Ap... | apache-2.0 |
digoot/dotfiles | hammerspoon/alfred.lua | 1 | 14468 | --
-- This will watch the configuration file
-- and reload it if anything changes. It
-- actually watches the configuration
-- directory.
--
hs.pathwatcher.new(os.getenv("HOME") .. "/.Hammerspoon/", hs.reload):start()
--
-- If the ipc program is not installed, then install it. This also enables the ipc
-- commands to... | apache-2.0 |
Lsty/ygopro-scripts | c191749.lua | 5 | 2451 | --ヒーローフラッシュ!!
function c191749.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(c191749.cost)
e1:SetTarget(c191749.target)
e1:SetOperation(c191749.activate)
c:RegisterEffect(e1)
end
func... | gpl-2.0 |
Lsty/ygopro-scripts | c37507488.lua | 3 | 1733 | --モンスターレリーフ
function c37507488.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCondition(c37507488.condition)
e1:SetTarget(c375074... | gpl-2.0 |
Lsty/ygopro-scripts | c16241441.lua | 6 | 1473 | --C・ラーバ
function c16241441.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(16241441,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c16241441.spcon)
e1:SetCost(c16241441.spcost)
e1:SetTarget(c16... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/bowl_of_wisdom_soup.lua | 11 | 1539 | -----------------------------------------
-- ID: 4592
-- Item: bowl_of_wisdom_soup
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP 3
-- MP 3
-- Strength 1
-- Dexterity 1
-- Agility 1
-- Vitality 1
-- Intelligence 1
-- Mind 1
-- Charisma 1
-- HP Recovered While Healing 3
-----------------... | gpl-3.0 |
MalRD/darkstar | scripts/globals/spells/dark_carol.lua | 10 | 1545 | -----------------------------------------
-- Spell: Dark Carol
-- Increases dark resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------------
... | gpl-3.0 |
MalRD/darkstar | scripts/globals/items/serving_of_cherry_bavarois_+1.lua | 11 | 1067 | -----------------------------------------
-- ID: 5746
-- Item: serving_of_cherry_bavarois_+1
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP 30
-- Intelligence 4
-- MP 15
-- HP Recovered While Healing 4
-----------------------------------------
require("scripts/globals/status")
require("... | gpl-3.0 |
Lsty/ygopro-scripts | c23857661.lua | 9 | 1192 | --武神器-オキツ
function c23857661.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(23857661,0))
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_GRAVE)
e1:SetCost(c23857661.cost)
e1:SetOperation(c23857661.operation)
c:RegisterEffect(e1)
end... | gpl-2.0 |
CommandPost/CommandPost-App | extensions/host/host.lua | 4 | 6020 | --- === hs.host ===
---
--- Inspect information about the machine Hammerspoon is running on
---
--- Notes:
--- * The network/hostname calls can be slow, as network resolution calls can be called, which are synchronous and will block Hammerspoon until they complete.
local host = require "hs.libhost"
local fnutils = re... | mit |
maxrio/luci981213 | applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpc.lua | 78 | 1289 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("ntpclient", translate("Time Synchronisation"), translate("Synchronizes the system time"))
s = m:section(TypedSection, "ntpclient", translate("General... | apache-2.0 |
MalRD/darkstar | scripts/globals/items/serving_of_salmon_meuniere_+1.lua | 11 | 1099 | -----------------------------------------
-- ID: 4347
-- Item: serving_of_salmon_meuniere_+1
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Dexterity 2
-- Mind -2
-- Ranged ACC % 7
-- Ranged ACC Cap 15
-----------------------------------------
require("scripts/globals/status")
require("s... | gpl-3.0 |
Lsty/ygopro-scripts | c2420921.lua | 3 | 1394 | --ライトロード・スピリット シャイア
function c2420921.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(c2420921.value)
c:RegisterEffect(e1)
--discard deck
local e2=Effect... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Port_Windurst/npcs/Kuroido-Moido.lua | 9 | 4114 | -----------------------------------
-- Area: Port Windurst (240)
-- NPC: Kuriodo-Moido
-- Involved In Quest: Making Amends, Wonder Wands,
-- Starts and Finishes: Making Amens!, Orastery Woes
-- !pos -112.5 -4.2 102.9 240
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/mi... | gpl-3.0 |
ddobrev/CppSharp | src/CppParser/premake5.lua | 1 | 1476 | clang_msvc_flags =
{
"/wd4146", "/wd4244", "/wd4800", "/wd4345",
"/wd4355", "/wd4996", "/wd4624", "/wd4291",
"/wd4251",
"/wd4141", -- 'inline' : used more than once
}
if EnableNativeProjects() then
project "CppSharp.CppParser"
kind "SharedLib"
language "C++"
SetupNativeProject()
rtti "Off"
filte... | mit |
MalRD/darkstar | scripts/zones/Port_Bastok/npcs/_6kt.lua | 11 | 1858 | -----------------------------------
-- Area: Port Bastok
-- NPC: Drawbridge
-----------------------------------
require("scripts/globals/status");
-----------------------------------
function onSpawn(npc)
--Triggers to open the drawbridge
npc:addPeriodicTrigger(0, 360, 4)
npc:addPeriodicTrigger(2, 360, 80... | gpl-3.0 |
bforbis/thrift | test/lua/test_basic_client.lua | 11 | 5962 | -- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may n... | apache-2.0 |
MalRD/darkstar | scripts/globals/spells/bluemagic/head_butt.lua | 8 | 1996 | -----------------------------------------
-- Spell: Head Butt
-- Damage varies with TP. Additional effect: "Stun"
-- Spell cost: 12 MP
-- Monster Type: Beastmen
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: DEX+2
-- Level: 12
-- Casting Time: 0.5 seconds
-- Recast Time: 10 seconds
-- Skillchain... | gpl-3.0 |
MalRD/darkstar | scripts/zones/The_Ashu_Talif/mobs/Gessho.lua | 9 | 2086 | -----------------------------------
-- Area: The Ashu Talif (The Black Coffin)
-- Mob: Gessho
-- TOAU-15 Mission Battle
-----------------------------------
local ID = require("scripts/zones/The_Ashu_Talif/IDs")
require("scripts/globals/allyassist");
require("scripts/globals/instance");
require("scripts/globals/statu... | gpl-3.0 |
raiguard/ModernGadgets | Skins/ModernGadgets/@Resources/Scripts/Calendar.lua | 2 | 30187 | -- LuaCalendar v5.0 by Smurfier (john@smurfier.com)
-- This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
-- Modifications by SilverAzide:
-- 1.0.0 - revised so moon phases are subordinate to holidays
-- 3.0.0 - corrected error in calculating "{LastXxx}" event dates w... | mit |
MalRD/darkstar | scripts/globals/abilities/shield_bash.lua | 11 | 2099 | -----------------------------------
-- Ability: Shield Bash
-- Delivers an attack that can stun the target. Shield required.
-- Obtained: Paladin Level 15, Valoredge automaton frame Level 1
-- Recast Time: 3:00 minutes (3:00 for Valoredge version)
-- Duration: Instant
-----------------------------------
require("script... | gpl-3.0 |
MalRD/darkstar | scripts/globals/weaponskills/impulse_drive.lua | 10 | 1550 | -----------------------------------
-- Impulse Drive
-- Polearm weapon skill
-- Skill Level: 240
-- Delivers a two-hit attack. Damage varies with TP.
-- In order to obtain Impulse Drive, the quest Methods Create Madness must be completed.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget, Soil Gorget &... | gpl-3.0 |
Lsty/ygopro-scripts | c62892347.lua | 3 | 3192 | --アルカナフォース0-THE FOOL
function c62892347.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)
--
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANN... | gpl-2.0 |
cshore-firmware/openwrt-luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/email.lua | 73 | 1673 | -- 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("E-Mail Plugin Configuration"),
translate(
"The email plugin creates a unix socket which can be used " ..
"to transmit email-statistics to a running ... | apache-2.0 |
ASDF482/TeleTak | plugins/anti_spam.lua | 417 | 3978 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
Lsty/ygopro-scripts | c66926224.lua | 3 | 1488 | --弱肉一色
function c66926224.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_HANDES)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c66926224.condition)
e1:SetTarget(c66926224.target)
e1:SetOperation(c66926224.activate)
c:Registe... | gpl-2.0 |
MalRD/darkstar | scripts/zones/RuLude_Gardens/npcs/_6r5.lua | 8 | 1976 | -----------------------------------
-- Area: Ru'Lude Gardens
-- Door: San d'Orian Emb.
-- San d'Oria Missions 3.3 "Appointment to Jeuno" and 4.1 "Magicite"
-----------------------------------
local ID = require("scripts/zones/RuLude_Gardens/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
-... | gpl-3.0 |
gallenmu/MoonGen | libmoon/lua/lib/syscall/linux/arm64/nr.lua | 24 | 5171 | -- arm64 syscall numbers are the new architecture defaults
-- so we could reuse this file for other architectures
-- note that there are some name differences for new 32 bit architectures
local nr = {
SYS = {
io_setup = 0,
io_destroy = 1,
io_submit = 2,
io_cancel = 3,
io_getevents = 4,
setxattr = 5,
ls... | mit |
groupforspeed/WaderTG | bot/WaderTGbot.lua | 1 | 15445 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
gallenmu/MoonGen | libmoon/examples/hyperscan/test.lua | 4 | 1417 | hs = require "hs"
--Usage of wrapped Hyperscan API
local function abstract()
print("Test abstract methods")
db, scr = hs.init(hs.HS_MODE_BLOCK, {"Test1", "Test2", "Test3", "Test4"}, {0,0, HS_FLAG_DOTALL,0}, {2,3,4, 100})
hs.doscan_block("Test1Test2Test3Test1Test4",26, db, scr, hs.matchHandlerDummy_ptr)
hs.free... | mit |
Lsty/ygopro-scripts | c28325165.lua | 3 | 2481 | --水物語-ウラシマ
function c28325165.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DISABLE+CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetHintTiming(TIMING_D... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Toraimarai_Canal/IDs.lua | 9 | 2433 | -----------------------------------
-- Area: Toraimarai Canal (169)
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.TORAIMARAI_CANAL] =
{
text =
{
SEALED_SHUT = 3, -- It's sealed shut with incre... | gpl-3.0 |
Lsty/ygopro-scripts | c71315423.lua | 5 | 2304 | --ワーム・ミリディス
function c71315423.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e1:SetTarget(c71315423.eqtg)
e1:SetOperation(c71315423.eqop)
c:Re... | gpl-2.0 |
Lsty/ygopro-scripts | c74506079.lua | 3 | 4640 | --ワーム・ゼロ
function c74506079.initial_effect(c)
--fusion material
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_FUSION_MATERIAL)
e1:SetCondition(c74506079.fscondition)
e1:SetOperation(c745060... | gpl-2.0 |
Lsty/ygopro-scripts | c29863101.lua | 7 | 1178 | --バスター・テレポート
function c29863101.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(c29863101.cost)
e1:SetTarget(c29863101.target)
e1:SetOperation(c29863101.... | gpl-2.0 |
Lsty/ygopro-scripts | c43114901.lua | 7 | 1310 | --ジェムナイト・サニクス
function c43114901.initial_effect(c)
aux.EnableDualAttribute(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(43114901,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLE_DESTROYED)
e1:SetRange(LO... | gpl-2.0 |
robertbrook/Penlight | lua/pl/permute.lua | 51 | 1574 | --- Permutation operations.
--
-- Dependencies: `pl.utils`, `pl.tablex`
-- @module pl.permute
local tablex = require 'pl.tablex'
local utils = require 'pl.utils'
local copy = tablex.deepcopy
local append = table.insert
local coroutine = coroutine
local resume = coroutine.resume
local assert_arg = utils.assert_arg
loc... | mit |
Lsty/ygopro-scripts | c99517131.lua | 3 | 1244 | --生命力吸収魔術
function c99517131.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_POSITION+CATEGORY_RECOVER)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_DRAW_PHASE)
e1:SetTarget(c99517131.target)
e1:SetOperation(c99517131.activate)
c:R... | gpl-2.0 |
MalRD/darkstar | scripts/globals/abilities/pets/fire_ii.lua | 11 | 1042 | ---------------------------------------------------
-- Fire 2
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
require("scripts/globals/magic")
---------------------------------------------------
functio... | gpl-3.0 |
Lsty/ygopro-scripts | c36708764.lua | 5 | 2066 | --ルーレット・スパイダー
function c36708764.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DICE+CATEGORY_DAMAGE+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCondition(c36708764.condition)
e1:SetTarget(c36708764.target)
e1:SetOperation(c367... | gpl-2.0 |
Lsty/ygopro-scripts | c70156997.lua | 3 | 1875 | --地霊術-「鉄」
function c70156997.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c70156997.cost)
e1:SetTarget(c70156997.target)
e1:SetOperation(c7015... | gpl-2.0 |
Lsty/ygopro-scripts | c51282878.lua | 3 | 1420 | --フィッシュボーグ-プランター
function c51282878.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(51282878,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e1:SetRange(LOCATION_GRAVE)
e1:SetCountLimit(1)
e1:SetC... | gpl-2.0 |
MalRD/darkstar | scripts/zones/QuBia_Arena/Zone.lua | 8 | 1857 | -----------------------------------
--
-- Zone: Qu'Bia Arena (206)
--
-----------------------------------
local ID = require("scripts/zones/QuBia_Arena/IDs")
require("scripts/globals/conquest")
-----------------------------------
function onInitialize(zone)
end
function onZoneIn(player,prevZone)
local cs = -1
... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Southern_San_dOria/npcs/Helbort.lua | 11 | 2046 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Helbort
-- Starts and Finished Quest: A purchase of Arms
-- !pos 71 -1 65 230
-----------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs");
require("scripts/globals/settings");
require("scripts/globals/keyitems"... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Bearclaw_Pinnacle/bcnms/brothers.lua | 9 | 1268 | -----------------------------------
-- Brothers
-- Bearclaw Pinnacle ENM, Zephyr Fan
-- !addkeyitem ZEPHYR_FAN
-----------------------------------
require("scripts/globals/battlefield")
require("scripts/globals/keyitems")
-----------------------------------
function onBattlefieldInitialise(battlefield)
battlefield... | gpl-3.0 |
Lsty/ygopro-scripts | c3019642.lua | 3 | 2983 | --サイバー・ダーク・キール
function c3019642.initial_effect(c)
--equip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(3019642,0))
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c3019642... | gpl-2.0 |
Lsty/ygopro-scripts | c45496268.lua | 5 | 2697 | --SDロボ・エレファン
function c45496268.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(45496268,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c45496268.sumtg)
e1:SetOperation(c45... | gpl-2.0 |
Lsty/ygopro-scripts | c37390589.lua | 3 | 2792 | --鎖付きブーメラン
function c37390589.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCondition(c37390589.c... | gpl-2.0 |
MalRD/darkstar | scripts/globals/abilities/fire_shot.lua | 11 | 2980 | -----------------------------------
-- Ability: Fire Shot
-- Consumes a Fire Card to enhance fire-based debuffs. Deals fire-based magic damage
-- Burn effect: Enhanced DoT and INT-
-----------------------------------
require("scripts/globals/ability")
require("scripts/globals/magic")
require("scripts/globals/status")
-... | gpl-3.0 |
RamiLego4Game/PlatformerWorld | Engine/Tiles/CoinSign.lua | 1 | 1120 | --Author : Ramilego4Game - This File Is Part Of Platformer World--
--Type : Class/Tile-Sign--
Tile = class:new()
function Tile:init()
self.name = "CoinSign"
self.category = "Decor"
self.hover = "Coin"
self.thumbnail = "sign"..self.hover
self.snap = 70
end
function Tile:buildbatch(marker,map,spritebatch,spritem... | gpl-2.0 |
Lsty/ygopro-scripts | c34796454.lua | 3 | 1248 | --三連星のトリオン
function c34796454.initial_effect(c)
--to grave
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetOperation(c34796454.regop)
c:RegisterEffect(e1)
end
function c34796454.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsReas... | gpl-2.0 |
Lsty/ygopro-scripts | c99916754.lua | 3 | 1761 | --ナチュル・エクストリオ
function c99916754.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCode2(c,33198837,2956282,false,false)
--negate
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(99916754,0))
e2:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_QUICK_O)
... | gpl-2.0 |
Frenzie/koreader | plugins/autowarmth.koplugin/main.lua | 1 | 44163 | --[[--
Plugin for setting screen warmth based on the sun position and/or a time schedule
@module koplugin.autowarmth
--]]--
local ConfirmBox = require("ui/widget/confirmbox")
local Device = require("device")
local DateTimeWidget = require("ui/widget/datetimewidget")
local DoubleSpinWidget = require("/ui/widget/double... | agpl-3.0 |
Lsty/ygopro-scripts | c64245689.lua | 3 | 2538 | --メリアスの木霊
function c64245689.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_EARTH),3,2)
c:EnableReviveLimit()
--to grave
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(64245689,0))
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_IGN... | gpl-2.0 |
Lsty/ygopro-scripts | c45458027.lua | 5 | 1767 | --ネジマキシキガミ
function c45458027.initial_effect(c)
c:EnableReviveLimit()
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c45458027.spcon)
c:RegisterEffect(e1)
--atk
l... | gpl-2.0 |
Lsty/ygopro-scripts | c19113101.lua | 5 | 1201 | --プリベントマト
function c19113101.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(19113101,0))
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_GRAVE)
e1:SetCondition(c19113101.condition)
e1:SetCost(c19113101.cost)
e1:SetOperation(c1911310... | gpl-2.0 |
Lsty/ygopro-scripts | c88494120.lua | 3 | 1695 | --不屈の闘志
function c88494120.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
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:SetCondition(c88494120.... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Bastok_Mines/npcs/Door_House.lua | 9 | 2394 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Door_House (Corsair's Bottes)
-- !pos 10 0 -16 234
-----------------------------------
local ID = require("scripts/zones/Bastok_Mines/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/npc_util")
-----------------------------------
func... | gpl-3.0 |
Lsty/ygopro-scripts | c58851034.lua | 3 | 1699 | --封魔の呪印
function c58851034.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CHAINING)
e1:SetCondition(c58851034.condition)
e1:SetCost(c58851034.cost)
e1:SetTarget(c58851034.target)
e1:SetOperation(c58... | gpl-2.0 |
robertbrook/Penlight | lua/pl/class.lua | 29 | 7674 | --- Provides a reuseable and convenient framework for creating classes in Lua.
-- Two possible notations:
--
-- B = class(A)
-- class.B(A)
--
-- The latter form creates a named class within the current environment. Note
-- that this implicitly brings in `pl.utils` as a dependency.
--
-- See the Guide for further ... | mit |
MalRD/darkstar | scripts/zones/Batallia_Downs_[S]/IDs.lua | 9 | 1377 | -----------------------------------
-- Area: Batallia_Downs_[S]
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.BATALLIA_DOWNS_S] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Com... | gpl-3.0 |
Wuzzy2/mobs_mc | witch.lua | 1 | 3013 | --MCmobs v0.2
--maikerumine
--made for MC like Survival game
--License for code WTFPL and otherwise stated in readmes
-- intllib
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
--dofile(minetest.get_modpath("mobs").."/api.lua")
--###################
--########... | gpl-3.0 |
Lsty/ygopro-scripts | c52098461.lua | 3 | 1591 | --ラス・オブ・ネオス
function c52098461.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK+CATEGORY_DESTROY)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c52098461.target)
e1:SetOperation(c52098461.activate)
c... | gpl-2.0 |
Lsty/ygopro-scripts | c2729285.lua | 3 | 1327 | --ファーニマル・キャット
function c2729285.initial_effect(c)
--tohand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(2729285,0))
e1:SetCategory(CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_BE_MATERIAL)
e1:Se... | gpl-2.0 |
Lsty/ygopro-scripts | c95701283.lua | 3 | 1517 | --光神機-轟龍
function c95701283.initial_effect(c)
--summon with 1 tribute
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(95701283,0))
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c95701283.otcon)
e1:Se... | gpl-2.0 |
tofurama3000/The-Obscurity-Project | cocos2d/plugin/luabindings/auto/api/ProtocolAds.lua | 146 | 1442 |
--------------------------------
-- @module ProtocolAds
-- @extend PluginProtocol
-- @parent_module plugin
--------------------------------
-- brief show adview<br>
-- param info The information of adview will be shown<br>
-- Pay attention to the subclass definition<br>
-- param pos The position where the adview be s... | mit |
Lsty/ygopro-scripts | c27450400.lua | 3 | 1383 | --クラスター・ペンデュラム
function c27450400.initial_effect(c)
--token
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(27450400,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c27450400.sptg)
e1:Set... | gpl-2.0 |
maxrio/luci981213 | applications/luci-app-minidlna/luasrc/model/cbi/minidlna.lua | 60 | 5493 | -- Copyright 2012 Gabor Juhos <juhosg@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local m, s, o
m = Map("minidlna", translate("miniDLNA"),
translate("MiniDLNA is server software with the aim of being fully compliant with DLNA/UPnP-AV clients."))
m:section(SimpleSection).template = "minidln... | apache-2.0 |
ennuuos/Neath | enemy.lua | 1 | 10229 | enemy = {}
--[[
You ready for this 200 line *masterpiece*?
I'm not.
]]
--To begin with we define classes, which is a list of... you guessed it, classes
enemy.classes = {}
-- same thing here except special refers to special attacks
enemy.classes.special = {}
--the default do nothing special
enemy.classes.special['noth... | mit |
MalRD/darkstar | scripts/globals/weaponskills/frostbite.lua | 10 | 1248 | -----------------------------------
-- Frostbite
-- Great Sword weapon skill
-- Skill Level: 70
-- Delivers an ice elemental attack. Damage varies with TP.
-- Aligned with the Snow Gorget.
-- Aligned with the Snow Belt.
-- Element: Ice
-- Modifiers: STR:20% INT:20%
-- 100%TP 200%TP 300%TP
-- 1.00 2.00 ... | gpl-3.0 |
zhaozg/lit | libs/exec.lua | 2 | 1426 | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | apache-2.0 |
Lsty/ygopro-scripts | c66729231.lua | 7 | 1178 | --イビリチュア・ジールギガス
function c66729231.initial_effect(c)
c:EnableReviveLimit()
--draw
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(66729231,0))
e1:SetCategory(CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCost(c66729231.cost)
e1:SetTarget(c... | gpl-2.0 |
hfjgjfg/hack54 | plugins/spam.lua | 1 | 275222 | <!DOCTYPE html>
<html lang="en" class=" is-u2f-enabled">
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta ... | gpl-2.0 |
Lsty/ygopro-scripts | c60990740.lua | 3 | 1971 | --絶対王 バック・ジャック
function c60990740.initial_effect(c)
--sset
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_GRAVE)
e1:SetCountLimit(1,60990740)
e1:SetCondition(c60990740.condition)
e1:SetCost(c60990740.cost)
e1:SetTarget(c60990740.target)
e1:Set... | gpl-2.0 |
WarGamingKO/WarGamingKO | Build/GameServer/Quests/13013_Patric.lua | 1 | 16456 | local UserClass;
local QuestNum;
local Ret = 0;
local NPC = 13013;
if EVENT == 165 then
QuestNum = SearchQuest(UID, NPC);
if QuestNum == 0 then
SelectMsg(UID, 2, -1, 166, NPC, 10, 168);
Ret = 1;
elseif QuestNum > 1 and QuestNum < 100 then
NpcMsg(UID, 167, NPC);
else
EVENT = QuestNum... | gpl-2.0 |
Lsty/ygopro-scripts | c14812659.lua | 3 | 1311 | --覚星師ライズベルト
function c14812659.initial_effect(c)
--lv up
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(14812659,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetHintTiming(0x... | gpl-2.0 |
Lsty/ygopro-scripts | c44341034.lua | 5 | 1618 | --ダーク・バグ
function c44341034.initial_effect(c)
--summon success
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(44341034,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:SetT... | gpl-2.0 |
Lsty/ygopro-scripts | c93298460.lua | 3 | 1512 | --魔装戦士 ヴァンドラ
function c93298460.initial_effect(c)
--direct attack
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DIRECT_ATTACK)
c:RegisterEffect(e1)
--tohand
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(93298460,0))
e2:SetCategory(CATEGORY_TOHAND)
e2:SetType... | gpl-2.0 |
MalRD/darkstar | scripts/globals/mobskills/smoke_discharger.lua | 11 | 1370 | ---------------------------------------------------
-- Smoke_Discharger
-- Description:
-- Type: Magical
-- additional effect : Petrification.
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
--------... | gpl-3.0 |
Lsty/ygopro-scripts | c74311226.lua | 7 | 1475 | --海皇の竜騎隊
function c74311226.initial_effect(c)
--direct attack
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DIRECT_ATTACK)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(c74311226.datg)
c:RegisterEffect(e1)
--search
local e2=Effect.CreateEffect(c... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/bataquiche.lua | 11 | 1156 | -----------------------------------------
-- ID: 5168
-- Item: Bataquiche
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 8
-- Agility 1
-- Vitality -2
-- Ranged Acc % 7
-- Ranged Acc Cap 15
-----------------------------------------
require("scripts/globals/status")
require("scripts/... | gpl-3.0 |
Frenzie/koreader | frontend/ui/widget/multiconfirmbox.lua | 4 | 5478 | --[[--
Widget that shows a message and cancel/choice1/choice2 buttons
Example:
UIManager:show(MultiConfirmBox:new{
text = T( _("Set %1 as fallback font?"), face),
choice1_text = _("Default"),
choice1_callback = function()
-- set as default font
end,
choice2_text... | agpl-3.0 |
MalRD/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0ro.lua | 12 | 1083 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- !pos -60 -23 60 27
-----------------------------------
require("scripts/globals/missions");
local ID = require("scripts/zones/Phomiuna_Aqueducts/IDs");
-----------------------------------
function onTrade(player,npc,trade)
end;
funct... | gpl-3.0 |
Lsty/ygopro-scripts | c25173686.lua | 3 | 1082 | --ストレートフラッシュ
function c25173686.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,TIMING_END_PHASE)
e1:SetCondition(c25173686.condition)
e1:SetTarget(c25173686.target)
e1:SetOperation(c2... | gpl-2.0 |
Lsty/ygopro-scripts | c58199906.lua | 3 | 1592 | --サイバネティック・フュージョン・サポート
function c58199906.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,58199906+EFFECT_COUNT_CODE_OATH)
e1:SetCost(c58199906.cost)
e1:SetOperation(c58199906.... | gpl-2.0 |
Lsty/ygopro-scripts | c4168871.lua | 9 | 1532 | --黒羽の宝札
function c4168871.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:SetCountLimit(1,4168871+EFFECT_COUNT_CODE_OATH)
e1:SetCost(c4168871.cost)
e1:SetTarget(... | gpl-2.0 |
Lsty/ygopro-scripts | c39774685.lua | 3 | 1631 | --魔菌
function c39774685.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(c39774685.target)
e1:SetOperation(c39774685.operation)
c:RegisterEffect(e1)
--a... | gpl-2.0 |
kinbei/lua-test | weighted_random.lua | 3 | 3024 | -- tbl_weight = {
-- [xx] = { id = xx, weight = xx },
-- ...
-- }
local function weighted_random( tbl_weight, random_func, id, weight )
random_func = random_func or math.random
id = id or "id"
weight = weight or "weight"
local t = {}
local total_index = #tbl_weight
local total_weight = 0
for _... | mit |
Lsty/ygopro-scripts | c88935103.lua | 3 | 3070 | --貴竜の魔術師
function c88935103.initial_effect(c)
--pendulum summon
aux.AddPendulumProcedure(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(88935103,0))
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--selfdes
local e2=Effect.CreateEffect(c)
e2:Se... | gpl-2.0 |
Lsty/ygopro-scripts | c84565800.lua | 3 | 2719 | --伝説の騎士 ヘルモス
function c84565800.initial_effect(c)
c:EnableReviveLimit()
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
c:RegisterEffect(e1)
--remove
local e2=Effect.Cr... | gpl-2.0 |
Lsty/ygopro-scripts | c58786132.lua | 3 | 2505 | --邪帝家臣ルキウス
function c58786132.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,58786132)
e1:SetCost(c58786132.spcost)
e1:SetTarget(c58786132.sptg)
e1:SetOperation(c58786132.s... | gpl-2.0 |
Tatuy/uatibia-www | other/Znote AAC/LUA/TFS_03/talkaction shopsystem/Alternatives/znoteshop.lua | 2 | 3525 | -- Znote Shop v1.0 for Znote AAC on TFS 0.3.6+ Crying Damson.
function onSay(cid, words, param)
local storage = 54073 -- Make sure to select non-used storage. This is used to prevent SQL load attacks.
local cooldown = 15 -- in seconds.
if getPlayerStorageValue(cid, storage) <= os.time() then
setPlayerStorageValu... | apache-2.0 |
uonline/debut | src/day2/act2/barracks_dance_floor.room.lua | 1 | 9535 | barracks_dance_floor = room {
nam = 'Зал';
dsc = [[
Ты осторожно заглядываешь в залу. В этом просторном помещении с высокими потолками
и множеством узких окон словно витает дух какого-то затянувшегося праздника.
Столы, расставленные в два ряда друг напротив друга, несут на себе отпечаток ночной
попойки. Факел... | gpl-3.0 |
lizh06/premake-core | tests/actions/vstudio/vc2010/test_rule_vars.lua | 5 | 2004 | --
-- tests/actions/vstudio/vc2010/test_rule_vars.lua
-- Validate generation of custom rule variables at the project level.
-- Author Jason Perkins
-- Copyright (c) 2014-2015 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_vs2010_rule_vars")
local vc2010 = premake.vstudio.vc2010
--
-... | bsd-3-clause |
lizh06/premake-core | modules/xcode/xcode_common.lua | 3 | 34352 | --
-- xcode_common.lua
-- Functions to generate the different sections of an Xcode project.
-- Copyright (c) 2009-2015 Jason Perkins and the Premake project
--
local p = premake
local xcode = p.modules.xcode
local tree = p.tree
local workspace = p.workspace
local project = p.project
local config = p.confi... | bsd-3-clause |
merlokk/proxmark3 | client/lualibs/hf_reader.lua | 6 | 5956 | --[[
THIS IS WORK IN PROGREESS, very much not finished.
This library utilises other libraries under the hood, but can be used as a generic reader for 13.56MHz tags.
]]
local reader14443A = require('read14a')
local cmds = require('commands')
local TIMEOUT = 1000
local function sendToDevice(command, ignoreresponse)
... | gpl-2.0 |
mattico/planets | planet.lua | 1 | 1407 | local class = require 'middleclass'
local Planet = class('Planet')
function Planet:initialize(name, img, mass, xpos, ypos, xvel, yvel, scale)
self.name = name or "Planet"
self.img = img
self.mass = mass or 0
self.xpos = xpos or 0
self.ypos = ypos or 0
self.xvel = xvel or 0
self.yvel = yvel or 0
self.sc... | mit |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/tests/lua-tests/src/WebViewTest/WebViewTest.lua | 6 | 5467 |
----------------------------------------
----WebViewTest
----------------------------------------
local WebViewTest = class("WebViewTest", function ()
local layer = cc.Layer:create()
return layer
end)
function WebViewTest:ctor()
self:init()
end
function WebViewTest:init()
Helper.initWithLayer(self)
... | mit |
caicloud/ingress | rootfs/etc/nginx/lua/test/util/same_site_test.lua | 4 | 3573 | describe("same_site_compatible_test", function()
it("returns true for nil user agent", function()
local same_site = require("util.same_site")
assert.True(same_site.same_site_none_compatible(nil))
end)
it("returns false for chrome 4", function()
local same_site = require("util.same_site")
assert.Fa... | apache-2.0 |
Zefiros-Software/ZPM | src/tree.lua | 1 | 4584 | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- 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, ... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.