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
amireh/lua_cliargs
spec/features/option_spec.lua
3
7538
local helpers = require("spec_helper") describe("cliargs - options", function() local cli before_each(function() cli = require("cliargs.core")() end) describe('defining options', function() it('requires a key', function() assert.error_matches(function() cli:option() end, 'Key and ...
mit
LiXizhi/NPLRuntime
Client/trunk/externals/bullet3/build3/stringifyKernel.lua
22
2697
function stringifyKernel(filenameIn, filenameOut, kernelMethod) local BUFSIZE = 10*1024*1024 -- 10MB local f = io.open(filenameIn,"r"); local fw = io.open(filenameOut,"w"); fw:write("//this file is autogenerated using stringify.bat (premake --stringify) in the build folder of this project\n") fw:wr...
gpl-2.0
nekrozar/ygopro-scripts
c36352429.lua
4
1244
--ヴァンパイア・ドラゴン function c36352429.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(36352429,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_TO_GRAVE) e1:SetCo...
gpl-2.0
nekrozar/ygopro-scripts
c54407825.lua
2
1772
--驚天動地 function c54407825.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --to deck local e2=Effect.CreateEffect(c) e2:SetCategory(CATEGORY_TODECK) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e2:SetRange(LOCATION_SZONE...
gpl-2.0
nekrozar/ygopro-scripts
c58921041.lua
2
1117
--魔封じの芳香 function c58921041.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --cannot activate local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetCode(EFFEC...
gpl-2.0
ETegro/OpenSAN
feeds/luci/applications/luci-openvpn/luasrc/model/cbi/openvpn.lua
5
3359
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id: openvpn.l...
gpl-3.0
jsitnicki/rushit
vendor/luajit.org/luajit-2.1/src/jit/dump.lua
43
20112
---------------------------------------------------------------------------- -- LuaJIT compiler dump module. -- -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -- -...
apache-2.0
nekrozar/ygopro-scripts
c37433748.lua
1
3357
--SPYRAL GEAR-ラスト・リゾート function c37433748.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(37433748,0)) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_HAND+LOCATION_MZONE) e1:SetTarget(c37433748...
gpl-2.0
nekrozar/ygopro-scripts
c23379054.lua
1
2983
--劫火の舟守 ゴースト・カロン function c23379054.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,23379054) e1:SetCondition(c23379054.condition) e1:SetC...
gpl-2.0
zhoushishang/Coc_Demo
src/cocos/cocos2d/DeprecatedCocos2dEnum.lua
79
16871
--Enums will be deprecated,begin _G.kCCTextAlignmentLeft = cc.TEXT_ALIGNMENT_LEFT _G.kCCTextAlignmentRight = cc.TEXT_ALIGNMENT_RIGHT _G.kCCTextAlignmentCenter = cc.TEXT_ALIGNMENT_CENTER _G.kCCVerticalTextAlignmentTop = cc.VERTICAL_TEXT_ALIGNMENT_TOP _G.kCCVerticalTextAlignment...
apache-2.0
w-oertl/Luapress
luapress/lib/markdown.lua
2
37680
--[[ # markdown.lua -- version 0.32-luapress Modified by Nick Barrett, <pointlessrambler@gmail.com> for use in Luapress (github.com/Fizzadar/Luapress) Changed: - Lua 5.2 compatability by removing setfenv and: - Namespaced all functions under markdown table - Removed CLI related things Original: <http://w...
mit
chrisjbray/hammerspoon
extensions/socket/test_socket.lua
10
17715
-- hs.socket tests hs.socket = require("hs.socket") hs.timer = require("hs.timer") hs.fnutils = require("hs.fnutils") require "test_udpsocket" -- globals for async TCP tests port = 9001 sockfile = "/tmp/sock" callback = function(data, tag) readData = data readTag = tag end -- constructors function testTcpSocket...
mit
nekrozar/ygopro-scripts
c33611061.lua
1
1659
--武神集結 function c33611061.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TODECK+CATEGORY_HANDES+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,33611061+EFFECT_COUNT_CODE_OATH) e1:SetCondition(c33611061.condition) e1:SetTarg...
gpl-2.0
nekrozar/ygopro-scripts
c35100834.lua
1
2503
--Powerhold the Moving Battery function c35100834.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c35100834.target) e1:SetOperation(c35100834.activate) c:RegisterEffect(...
gpl-2.0
nekrozar/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
xcv58/Hammerspoon-xcv58
hammerspoon/Spoons/Shortcuts.spoon/init.lua
1
2365
--- === Shortcuts === --- --- local obj = {} obj.__index = obj obj.name = "Shortcuts" obj.version = "0.0.1" obj.author = "xcv58 <hammerspoon_windows@xcv58.com>" obj.homepage = "https://github.com/xcv58/Hammerspoon-xcv58" obj.license = "MIT - https://opensource.org/licenses/MIT" --- Windows.logger --- Variable --- Logg...
mit
nekrozar/ygopro-scripts
c89642993.lua
4
1652
--No.63 おしゃもじソルジャー function c89642993.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,1,2) c:EnableReviveLimit() -- local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(89642993,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,89642993) e1:SetCost(c8964299...
gpl-2.0
nekrozar/ygopro-scripts
c80143954.lua
1
4183
--オルターガイスト・カモフラージュ function c80143954.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:SetCost(c80143954.cost) e1:SetTarget(c80143954.target) e1:SetOperation(c8014...
gpl-2.0
nekrozar/ygopro-scripts
c83461421.lua
4
1140
--ペンデュラム・ストーム function c83461421.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c83461421.target) e1:SetOperation(c83461421.activate) c:RegisterEffect(e1) end function c83461421.filter2(c) ...
gpl-2.0
dtaht/cerowrt-luci-3.3
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
mamaddeveloper/ultixxx
plugins/anti-spam14.lua
7
2439
local NUM_MSG_MAX = 14 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 14 local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, function (data, success, result) if success ~= 1 then local text = 'I can\'t...
gpl-2.0
Alkorin/nodemcu-firmware
lua_modules/lm92/lm92.lua
52
2140
-- ****************************************************** -- LM92 module for ESP8266 with nodeMCU -- -- Written by Levente Tamas <levente.tamas@navicron.com> -- -- GNU LGPL, see https://www.gnu.org/copyleft/lesser.html -- ****************************************************** -- Module Bits local moduleName = ... loca...
mit
finalsliver/supervillain-ui
SVUI_UnitFrames/libs/oUF_1.6.9/elements/stagger.lua
6
4950
--[[ Element: Monk Stagger Bar Handles updating and visibility of the monk's stagger bar. Widget Stagger - A StatusBar Sub-Widgets .bg - A Texture that functions as a background. It will inherit the color of the main StatusBar. Notes The default StatusBar texture will be applied if the UI widget do...
mit
SoScared/OpenRA
mods/d2k/maps/ordos-02b/ordos02b-AI.lua
8
1137
--[[ Copyright 2007-2019 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
Pandafuchs/iLife
client/Classes/Firework/Rocket/Types/cRohrbombenRocket.lua
2
4133
-- -- Created by IntelliJ IDEA. -- User: Noneatme -- Date: 26.12.2014 -- Time: 20:27 -- Project: MTA iLife -- cRohrbombenRocket = {}; --[[ ]] -- /////////////////////////////// -- ///// New ////// -- ///// Returns: Object ////// -- /////////////////////////////// function cRohrbombenRocket:new(...) local obj ...
mit
f4l0/DCS-ToggleSwitches
ToggleSwitchesMod/Mods/aircraft/flaming cliffs/input/su-25/joystick/default.lua
1
7333
local res = external_profile("Config/Input/Aircrafts/base_joystick_binding.lua") join(res.keyCommands,{ -- alternate {combos = {{key = 'JOY_BTN30'}} ,down = iCommandLeftEngineStop , up = iCommandLeftEngineStart, name = _('Left Engine Throttle Set OFF') , category = _('DCSToggleSwitches')}, {combos = {{key = 'JOY...
mit
mihailim/koreader
frontend/device/android/device.lua
1
12178
local Generic = require("device/generic/device") local A, android = pcall(require, "android") -- luacheck: ignore local Geom = require("ui/geometry") local ffi = require("ffi") local C = ffi.C local lfs = require("libs/libkoreader-lfs") local logger = require("logger") local _ = require("gettext") local T = require("f...
agpl-3.0
nekrozar/ygopro-scripts
c20785975.lua
2
2912
--CNo.103 神葬零嬢ラグナ・インフィニティ function c20785975.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,5,3) c:EnableReviveLimit() -- local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(20785975,0)) e1:SetCategory(CATEGORY_REMOVE+CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_C...
gpl-2.0
nekrozar/ygopro-scripts
c9109991.lua
4
1421
--BF-鉄鎖のフェーン function c9109991.initial_effect(c) --direct attack local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_DIRECT_ATTACK) c:RegisterEffect(e1) --change pos local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(9109991,0)) e2:SetCategory(CATEGORY_POSITION) e2:Set...
gpl-2.0
sami2448/m
plugins/s1.lua
2
14732
do function run(msg, matches) return "زمون مجردیم قبل از سربازی یه همسایه داشتیم دیوار به دیوار ما بودن یه زن خوشگل و خوش استیل حدود ۴۰‬ سال ولی چون هم از من بزرگ تر بود هم با ما رفت و آمد داشتن جرات نمیكردم بهش چیزی بگم فقط به‬ ‫یادش جلق میزدم چیزی كه بیشتر از هر چیزی به من حال میداد پستونای بزرگش بود كه به زور تو ...
gpl-2.0
nekrozar/ygopro-scripts
c56074358.lua
4
2555
--D・フィールド function c56074358.initial_effect(c) c:EnableCounterPermit(0x8) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --add counter local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetCode(...
gpl-2.0
ETegro/OpenSAN
feeds/luci/modules/niu/luasrc/model/cbi/niu/network/lan1.lua
11
5033
--[[ LuCI - Lua Configuration Interface Copyright 2009 Steven Barth <steven@midlink.org> Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
gpl-3.0
ag6ag/skynet
test/testmysql.lua
12
6116
local skynet = require "skynet" local mysql = require "skynet.db.mysql" local function dump(obj) local getIndent, quoteStr, wrapKey, wrapVal, dumpObj getIndent = function(level) return string.rep("\t", level) end quoteStr = function(str) return '"' .. string.gsub(str, '"', '\\"') .. '"'...
mit
ndronen/fbcunn
examples/imagenet/models/alexnetowt_ccn2.lua
8
2462
function createModel(nGPU) require 'cudnn' require 'ccn2' -- from https://code.google.com/p/cuda-convnet2/source/browse/layers/layers-imagenet-1gpu.cfg -- this is AlexNet that was presented in the One Weird Trick paper. http://arxiv.org/abs/1404.5997 local features = nn.Sequential() features:add(nn.T...
bsd-3-clause
zhoushishang/Coc_Demo
src/cocos/extension/DeprecatedExtensionFunc.lua
61
1351
if nil == cc.Control then return end --tip local function deprecatedTip(old_name,new_name) print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") end --functions of CCControl will be deprecated end local CCControlDeprecated = { } function CCControlDeprecated.ad...
apache-2.0
PAC3-Server/notagain
lua/notagain/essential/libraries/netdata.lua
2
3218
local netdata = {} local meta={__index=table} local queue=setmetatable({},meta ) local started=false local function doqueue() local sent for pl,plqueue in pairs(queue) do sent=true if not IsValid(pl) then queue[pl]=nil else local func = plqueue:remove(1) if not func then queue[pl]=nil else ...
gpl-3.0
xuejian1354/attitude_adjustment
feeds/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-res.lua
80
3097
--[[ 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...
gpl-2.0
crazyboy11/dd12
plugins/inpm.lua
243
3007
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
nekrozar/ygopro-scripts
c66789970.lua
6
2302
--聖刻龍-セテクドラゴン function c66789970.initial_effect(c) c:EnableReviveLimit() --spsummon from hand local e1=Effect.CreateEffect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE_FIELD) e1:SetRange(LOCATION_HAND) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetCondition(c66789970.hspc...
gpl-2.0
PAC3-Server/notagain
lua/notagain/jrpg/damage_types/lightning.lua
2
2519
local META = {} META.Name = "lightning" META.Adjectives = {"shocking", "electrical", "electrifying"} META.Names = {"lightning", "thunder", "zeus"} META.DamageTranslate = { DMG_SHOCK = true, } function META:OnDamage(self, attacker, victim, dmginfo) jdmg.SetStatus(victim, "lightning", dmginfo:GetDamage()/50) end if CL...
gpl-3.0
nekrozar/ygopro-scripts
c97792247.lua
4
1722
--スターダスト・アサルト・ウォリアー function c97792247.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) c:EnableReviveLimit() --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(97792247,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EF...
gpl-2.0
venkatarajasekhar/bee
test/db/transaction.test.lua
1
4051
--# setopt delimiter ';' -- empty transaction - ok db.begin() db.commit(); -- double begin db.begin() db.begin(); -- no active transaction since exception rolled it back db.commit(); -- double commit - implicit start of transaction db.begin() db.commit() db.commit(); -- commit if not started - implicit start of transac...
bsd-2-clause
mihailim/koreader
plugins/texteditor.koplugin/main.lua
1
23421
local BD = require("ui/bidi") local ConfirmBox = require("ui/widget/confirmbox") local DataStorage = require("datastorage") local Font = require("ui/font") local InfoMessage = require("ui/widget/infomessage") local InputDialog = require("ui/widget/inputdialog") local LuaSettings = require("luasettings") local Notificat...
agpl-3.0
nekrozar/ygopro-scripts
c17639150.lua
7
2928
--機殻の生贄 function c17639150.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(c17639150.eqtg) e1:SetOperation(c17639150.eqop) c:RegisterEffect(e1) --Equip...
gpl-2.0
nekrozar/ygopro-scripts
c36975314.lua
1
2439
--大捕り物 function c36975314.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_CONTROL) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CONTINUOUS_TARGET) e1:SetTarget(c36975314.target) e1:SetOperation(c36975314.ope...
gpl-2.0
nekrozar/ygopro-scripts
c45195443.lua
4
2631
--E・HERO ソリッドマン function c45195443.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(45195443,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(c45195443.sptg1) e1:SetOper...
gpl-2.0
esc0rtd3w/realarcade-wrapper-killer
extras/rga/rguninst/Installer/socket/url.lua
1
10530
----------------------------------------------------------------------------- -- URI parsing, composition and relative URL resolution -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: url.lua,v 1.3 2006/03/22 22:33:13 twilliams Exp $ ---------------------------------------------------------------------------...
gpl-3.0
vasili-v/themis
vendor/github.com/apache/thrift/lib/lua/TCompactProtocol.lua
30
13135
-- -- 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 ma...
apache-2.0
ArchiveTeam/xfire-grab
xfire.lua
1
5031
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*a...
unlicense
ld-test/lgi
samples/cairo.lua
6
6334
#! /usr/bin/env lua -- -- Sample cairo application, based on http://cairographics.org/samples/ -- -- Renders all samples into separate PNG images -- local math = require 'math' local lgi = require 'lgi' local cairo = lgi.cairo local dir = arg[0]:sub(1, arg[0]:find('[^%/\\]+$') - 1):gsub('[/\\]$', '') local imagename...
mit
FailcoderAddons/SVUI
SVUI_Skins/components/addons/alDamageMeter.lua
2
1221
--[[ ########################################################## S V U I By: Munglunch ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.selec...
mit
ivonxiao/viaview
luci/protocols/core/luasrc/model/cbi/admin_network/proto_static.lua
1
2672
--[[ LuCI - Lua Configuration Interface Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- local ma...
gpl-2.0
MNoya/DotaCraft
game/dota_addons/dotacraft/scripts/vscripts/buildings/upgrades.lua
1
6038
--[[ Replaces the building to the upgraded unit name ]]-- function UpgradeBuilding( event ) local caster = event.caster local new_unit = event.UnitName local position = caster:GetAbsOrigin() local playerID = caster:GetPlayerOwnerID() local player = PlayerResource:GetPlayer(playerID) local cu...
gpl-3.0
nekrozar/ygopro-scripts
c32999573.lua
1
1220
--エクシーズ・オーバーライド function c32999573.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --remove overlay replace local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(32999573,0)) e2:SetType(EFFECT_TYPE_CONTINUO...
gpl-2.0
haker20154/self_bot
plugins/Warn.lua
9
7697
local function warn_by_username(extra, success, result) -- /warn <@username> if success == 1 then local msg = result local target = extra.target local receiver = extra.receiver local hash = 'warn:'..target local value = redis:hget(hash, msg.id) local text = '' local name = '' if msg.first_name then...
gpl-3.0
nekrozar/ygopro-scripts
c61320914.lua
1
3916
--V・HERO ミニマム・レイ function c61320914.initial_effect(c) --to field local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(61320914,0)) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_DAMAGE) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e1:SetRange(LOCATION_GRAVE) e1:SetCo...
gpl-2.0
Pandafuchs/iLife
server/Classes/Jobs/cSupplierJob.lua
2
6114
CSupplierJob = {} addEvent("onSupplierJobStart", true) function CSupplierJob:constructor() --Targets to finish the Job self.Targets = { [1] = "2396.0302734375|-1977.56640625|13.546875", --Ammunation South [2] = "2395.7197265625|-1887.3681640625|13.54687", --Clucking Bell South [3] = "2478.9482421875|-1741.81...
mit
ETegro/OpenSAN
feeds/luci/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua
10
7256
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
gpl-3.0
nekrozar/ygopro-scripts
c20403123.lua
4
2220
--EMスライハンド・マジシャン function c20403123.initial_effect(c) --spsummon from hand local e1=Effect.CreateEffect(c) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE_FIELD) e1:SetRange(LOCATION_HAND) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetCondition(c20403123.hspcon) e1:SetOperation(c20403123.hspop) c:Regist...
gpl-2.0
zhoujijian/skynet-websocket
lualib/skynet/snax.lua
15
3814
local skynet = require "skynet" local snax_interface = require "snax.interface" local snax = {} local typeclass = {} local interface_g = skynet.getenv("snax_interface_g") local G = interface_g and require (interface_g) or { require = function() end } interface_g = nil skynet.register_protocol { name = "snax", id =...
mit
nekrozar/ygopro-scripts
c2930675.lua
1
2096
--星遺物へ至る鍵 function c2930675.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c2930675.target) c:RegisterEffect(e1) --disable local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetCode(EV...
gpl-2.0
nekrozar/ygopro-scripts
c81954378.lua
7
1676
--死神の大鎌-デスサイス function c81954378.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CANNOT_DISABLE) e1:SetTarget(c81954378.target) e1:SetOperation(c81954378.o...
gpl-2.0
nekrozar/ygopro-scripts
c39853199.lua
3
2915
--妖仙獣 閻魔巳裂 function c39853199.initial_effect(c) --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(39853199,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_BATTLE_START) e1:SetTarget(c39853199.destg1) e1:SetOperation(c39853199.deso...
gpl-2.0
Pandafuchs/iLife
client/Classes/Firework/Rocket/cFireworkBattery.lua
2
1550
-- -- Created by IntelliJ IDEA. -- User: Noneatme -- Date: 26.12.2014 -- Time: 00:26 -- Project: MTA iLife -- cFireworkBattery = {}; --[[ ]] -- /////////////////////////////// -- ///// New ////// -- ///// Returns: Object ////// -- /////////////////////////////// function cFireworkBattery:new(...) local obj = s...
mit
steven0143/nodemcu-httpserver
httpserver-b64decode.lua
7
2212
#!/usr/local/bin/lua -- httpserver-b64decode.lua -- Part of nodemcu-httpserver, contains b64 decoding used for HTTP Basic Authentication. -- Based on http://lua-users.org/wiki/BaseSixtyFour by Alex Kloss -- compatible with lua 5.1 -- http://www.it-rfc.de -- Author: Marcos Kirsch -- bitshift functions (<<, >> e...
gpl-2.0
MegadreamsBE/BlueBird
BB_AFKDetect/detectorClient.lua
1
4487
-- AFK Detector script -- Made by Dr.CrazY -- CONSTANTS (Settings) local UPDATE_DELAY = 1000 -- Time before warning local MAX_WARNING_TIME = 20 -- In seconds -- Time before killing/kicking local MAX_AFK_TIME = 30 -- In seconds local MAX_AFK_ROUNDS = 3 -- local localPlayer = getLocalPlayer() local rootElement = getR...
mit
nekrozar/ygopro-scripts
c92609670.lua
2
2844
--H・C アンブッシュ・ソルジャー function c92609670.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(92609670,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_PHASE+PHASE_STANDBY) e1:SetRange(LOCATION_MZONE) e1:Se...
gpl-2.0
nekrozar/ygopro-scripts
c2326738.lua
4
1508
--デス・ラクーダ function c2326738.initial_effect(c) --turn set local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(2326738,0)) e1:SetCategory(CATEGORY_POSITION) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetTarget(c2326738.target) e1:SetOperation(c2326738.operation) c:RegisterEffect(e...
gpl-2.0
Pandafuchs/iLife
client/Classes/Element/dxGui/cDxCheckbox.lua
4
1250
CDxCheckbox = inherit(CDxElement) function CDxCheckbox:constructor(sTitle, left, top, width, height, color, bState,Parent) self.Title = sTitle or "CheckBox" self.Color = color self.State = bState or false self.Parent = Parent or false if (self.Parent) then self.StartX, self.StartY = self.Parent:getStartPositio...
mit
hakelimopu/CoronaSDKDev
JLOuya/options.lua
1
7706
local storyboard = require( "storyboard" ) local asciiGrid = require("ASCIIGrid") local asciiBoard = require("ASCIIBoard") local asciiBoardCell = require("ASCIIBoardCell") local scene = storyboard.newScene() function scene:redraw() local profile = self.gameData.profile self.board:clear(asciiBoardCell.createCell(0,0,...
gpl-2.0
nekrozar/ygopro-scripts
c90640901.lua
4
1695
--リバース・バスター function c90640901.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET) e1:SetValue(c90640901.vala) c:RegisterEffect(e1) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_CANNOT_DIRECT_ATTACK) ...
gpl-2.0
aoboturov/lua-hdf5
examples/attribute.lua
3
1364
#!/usr/bin/env luajit ------------------------------------------------------------------------------ -- Write and read string attribute. -- Copyright © 2013–2015 Peter Colberg. -- Distributed under the MIT license. (See accompanying file LICENSE.) ------------------------------------------------------------------------...
mit
Alkorin/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
nekrozar/ygopro-scripts
c99594764.lua
4
1386
--ドラグニティ-コルセスカ function c99594764.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(99594764,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_BATTLE_DESTROYING) e1:SetRange(LOCATION_SZONE) e1:SetCondi...
gpl-2.0
nekrozar/ygopro-scripts
c88757791.lua
2
2772
--法眼の魔術師 function c88757791.initial_effect(c) --pendulum summon aux.EnablePendulumAttribute(c) --change scale local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(88757791,0)) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_PZONE) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCountLimit(1) e2:...
gpl-2.0
mihailim/koreader
plugins/newsdownloader.koplugin/lib/handler.lua
14
10985
--- -- Overview: -- ========= -- Standard XML event handler(s) for XML parser module (xml.lua) -- -- Features: -- ========= -- printHandler - Generate XML event trace -- domHandler - Generate DOM-like node tree -- simpleTreeHandler - Generate 'simple' node tree -- -- API: -- ...
agpl-3.0
ndronen/fbcunn
examples/imagenet/models/alexnet_ccn2.lua
8
1951
require 'ccn2' require 'cudnn' function createModel(nGPU) local features = nn.Sequential() -- branch 1 features:add(nn.Transpose({1,4},{1,3},{1,2})) features:add(ccn2.SpatialConvolution(3,64,11,4,0,1,4)) -- 224 -> 55 features:add(cudnn.ReLU(true)) features:add(ccn2.SpatialMaxPooling(3,2)) ...
bsd-3-clause
mihailim/koreader
frontend/ui/widget/keyboardlayoutdialog.lua
1
4876
--[[-- This widget displays a keyboard layout dialog. ]] local Blitbuffer = require("ffi/blitbuffer") local ButtonTable = require("ui/widget/buttontable") local CenterContainer = require("ui/widget/container/centercontainer") local Font = require("ui/font") local FrameContainer = require("ui/widget/container/framecont...
agpl-3.0
Pandafuchs/iLife
client/Classes/Element/dxGui/cDxTabbedPane.lua
2
5689
-- -- Created by IntelliJ IDEA. -- User: Noneatme -- Date: 10.02.2015 -- Time: 21:12 -- To change this template use File | Settings | File Templates. -- CDxTabbedPane = inherit(CDxElement) sx,sy = guiGetScreenSize() function CDxTabbedPane:constructor(left, top, width, height, color, Parent, focusScroll) self.Col...
mit
nekrozar/ygopro-scripts
c29401950.lua
4
2290
--奈落の落とし穴 function c29401950.initial_effect(c) --Activate(summon) local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_REMOVE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(c29401950.target) e1:SetOperation(c29401950.activate) c:RegisterEffect(e1) local e2=E...
gpl-2.0
FailcoderAddons/SVUI
SVUI_QuestTracker/components/button.lua
2
4517
--[[ ############################################################################## S V U I By: Munglunch ############################################################################## QUEST TRACKER BUTTON: Originally "ExtraQuestButton" by p3lim, modified/minimally re-written for SVUI by Munglunch ##############...
mit
FailcoderAddons/SVUI
SVUI_UnitFrames/libs/oUF/elements/portraits.lua
1
4063
--[[ Element: Portraits THIS FILE HEAVILY MODIFIED FOR USE WITH SUPERVILLAIN UI ]] --GLOBAL NAMESPACE local _G = _G; --LUA local unpack = _G.unpack; local select = _G.select; local assert = _G.assert; --BLIZZARD API local UnitClass = _G.UnitClass; local UnitReaction = _G.UnitReacti...
mit
Audumla/audiot-nodemcu-firmware
lua_modules/mpr121/mpr121.lua
19
2055
--------------------------------------------------------------- -- MPR121 I2C module for NodeMCU -- Based on code from: http://bildr.org/2011/05/mpr121_arduino/ -- Tiago Custódio <tiagocustodio1@gmail.com> --------------------------------------------------------------- local moduleName = ... local M = {} _G[moduleName...
mit
nekrozar/ygopro-scripts
c84298614.lua
2
2371
--強化蘇生 function c84298614.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:SetHintTiming(0,TIMING_END_PHASE) e1:SetTarget(c84298614.target) e1:SetOperatio...
gpl-2.0
nekrozar/ygopro-scripts
c59482302.lua
6
1386
--A・ボム function c59482302.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(59482302,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetConditio...
gpl-2.0
nekrozar/ygopro-scripts
c82821760.lua
2
3146
--巨大戦艦 ビッグ・コアMk-Ⅲ function c82821760.initial_effect(c) c:EnableCounterPermit(0x1f) --special summon local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SPSUM_PARAM) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetTargetRange(POS_FACEUP_DEFENSE,0) e1:SetRange(LO...
gpl-2.0
nekrozar/ygopro-scripts
c11954712.lua
4
1852
--フライファング function c11954712.initial_effect(c) --reg local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_BATTLE_DAMAGE) e1:SetOperation(c11954712.regop) c:RegisterEffect(e1) --pierce local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EF...
gpl-2.0
Alkorin/nodemcu-firmware
lua_examples/ucglib/GraphicsTest.lua
11
3269
-- setup SPI and connect display function init_spi_display() -- Hardware SPI CLK = GPIO14 -- Hardware SPI MOSI = GPIO13 -- Hardware SPI MISO = GPIO12 (not used) -- CS, D/C, and RES can be assigned freely to available GPIOs local cs = 8 -- GPIO15, pull-down 10k to GND local dc = 4 -- GPIO2 ...
mit
nekrozar/ygopro-scripts
c31554054.lua
1
1914
--エクシーズ・リベンジ・シャッフル function c31554054.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOEXTRA) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_BE_BATTLE_TARGET) e1:SetCondition(c31554054.condition) e1:SetTarge...
gpl-2.0
PAC3-Server/notagain
lua/notagain/pac_server/autorun/server/npc_spawn_uncluster.lua
2
1284
local pushaway = {} local function is_clustered(ent) for i,v in ipairs(ents.FindInBox(ent:WorldSpaceAABB())) do if v:IsNPC() and v ~= ent then return true end end end hook.Add("Think", "npc_spawn_uncluster", function() for i, npc in ipairs(pushaway) do if not npc:IsVali...
gpl-3.0
MNoya/DotaCraft
game/dota_addons/dotacraft/scripts/vscripts/heroes/lich/dark_ritual.lua
1
3068
--[[ Author: Noya Kills a target, gives Mana to the caster according to the sacrificed target current Health Can only be cast on organic undead units and while the caster has mana deficit --]] lich_dark_ritual_warcraft = class({}) function lich_dark_ritual_warcraft:OnSpellStart( event ) local ability ...
gpl-3.0
nekrozar/ygopro-scripts
c27995943.lua
4
1421
--Dr.フランゲ function c27995943.initial_effect(c) --tohand local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e1:SetCountLimit(1,27995943) e1:...
gpl-2.0
nekrozar/ygopro-scripts
c90724272.lua
3
2209
--闇薔薇の妖精 function c90724272.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(90724272,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetRange(LOCATION_HAND) e1:SetProperty(EFFECT_FLA...
gpl-2.0
nekrozar/ygopro-scripts
c45894482.lua
2
1423
--俊足のギラザウルス function c45894482.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(c45894482.spcon) e1:SetValue(1) c:RegisterEffect(e1) --spsummon lo...
gpl-2.0
nekrozar/ygopro-scripts
c71692913.lua
2
2844
--相克の魔術師 function c71692913.initial_effect(c) --pendulum summon aux.EnablePendulumAttribute(c) --xyz level local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_PZONE) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCountLimit(1) e2:SetTarget(c71692913.xyztg) e2:SetOperation(c716...
gpl-2.0
FailcoderAddons/SVUI
SVUI_TrackOMatic/components/unitframe_gps.lua
2
11232
--[[ ########################################################## S V U I By: S.Jackson ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select ...
mit
tempbottle/codis
extern/deprecated/redis-2.8.21/deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
mit
dtaht/cerowrt-luci-3.3
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
FailcoderAddons/SVUI
SVUI_UnitFrames/class_resources/warlock.lua
1
8852
--[[ ########################################################## S V U I By: Munglunch ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.s...
mit
nekrozar/ygopro-scripts
c18175965.lua
2
4096
--ガーディアン・デスサイス function c18175965.initial_effect(c) c:EnableReviveLimit() --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 limit local e2=E...
gpl-2.0