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 |
|---|---|---|---|---|---|
nekrozar/ygopro-scripts | c27895597.lua | 1 | 1968 | --フォーチュンレディ・コーリング
function c27895597.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,27895597+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c27895597.spcon)
e1:SetTarget(c27895597.sptg... | gpl-2.0 |
nekrozar/ygopro-scripts | c79718768.lua | 7 | 1571 | --急転直下
function c79718768.initial_effect(c)
--special summon
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:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e2:SetCode(EVENT_BECOME_TARGET)
e2:SetR... | gpl-2.0 |
nekrozar/ygopro-scripts | c97677329.lua | 1 | 3457 | --バックアップ・スーパーバイザー
function c97677329.initial_effect(c)
--link summon
c:EnableReviveLimit()
aux.AddLinkProcedure(c,nil,2,2)
--mat check
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetCode(EFFECT_MATERIAL_CHECK)
e0:SetValue(c97677329.valcheck)
c:RegisterEffect(e0)
--spsummon cyberse
local... | gpl-2.0 |
FailcoderAddons/SVUI | SVUI_Skins/components/blizzard/calendar.lua | 2 | 7886 | --[[
##############################################################################
S V U I By: Munglunch
##############################################################################
--]]
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.select;
local ipairs = _G.ipairs;
local pa... | mit |
chrisJohn404/ljswitchboard-module_manager | lib/switchboard_modules/lua_script_debugger/premade_scripts_addresses/i2c/io-expander-sx1059.lua | 1 | 2964 | --This is an example that uses the SX1509 I/O Expander on the I2C Bus on EIO4(SCL) and EIO5(SDA)
--[[
User RAM registers- change these in another program (LabVIEW, Python, C++ and more) to change the state of pins
To understand this script, it is very important to be familiar with the datasheet
This script uses only a... | mit |
finalsliver/supervillain-ui | SVUI_Skins/components/addons/Ace3.lua | 2 | 9028 | --[[
##############################################################################
S V U I By: Failcoder
##############################################################################
--]]
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.select;
--[[ ADDON ]]--
local SV = _G['SVUI'];
lo... | mit |
nekrozar/ygopro-scripts | c90846359.lua | 1 | 3619 | --群雄割拠
function c90846359.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER)
e1:SetTarget(c90846359.acttg)
c:RegisterEffect(e1)
--adjust
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIEL... | gpl-2.0 |
nekrozar/ygopro-scripts | c35975813.lua | 4 | 2591 | --ジェノサイドキングデーモン
function c35975813.initial_effect(c)
--sumlimit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetCondition(c35975813.excon)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
c:RegisterEffect(e2)
--maintain
local... | gpl-2.0 |
nekrozar/ygopro-scripts | c111280.lua | 1 | 3252 | --黒魔導強化
function c111280.initial_effect(c)
aux.AddCodeList(c,46986414,38033121)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetConditio... | gpl-2.0 |
nekrozar/ygopro-scripts | c2362787.lua | 9 | 1220 | --救援光
function c2362787.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c2362787.cost)
e1:SetTarget(c2362787.target)
e1:SetOperation(c2362787.activate)
... | gpl-2.0 |
nekrozar/ygopro-scripts | c84636823.lua | 3 | 1229 | --マジック・キャンセラー
function c84636823.initial_effect(c)
--cannot trigger
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(1,1)
e1:SetValue(c84636823.aclimit)
c:RegisterEffect(e1)
... | gpl-2.0 |
nekrozar/ygopro-scripts | c51912531.lua | 4 | 1619 | --幻妖種ミトラ
function c51912531.initial_effect(c)
--synchro limit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetValue(c51912531.synlimit)
c:RegisterEffect(e1)
--level down
local e2... | gpl-2.0 |
chrisjbray/hammerspoon | extensions/crash/init.lua | 13 | 2127 | --- === hs.crash ===
---
--- Various features/facilities for developers who are working on Hammerspoon itself, or writing extensions for it. It is extremely unlikely that you should need any part of this extension, in a normal user configuration.
local crash = require "hs.crash.internal"
local fnutils = require "hs.fn... | mit |
nekrozar/ygopro-scripts | c77972406.lua | 4 | 1111 | --反撃の毒牙
function c77972406.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCondition(c77972406.condition)
e1:SetTarget(c77972406.target)
e1:SetOperation(c77972406.activate)
c:RegisterEf... | gpl-2.0 |
nekrozar/ygopro-scripts | c60950180.lua | 4 | 3033 | --RR-インペイル・レイニアス
function c60950180.initial_effect(c)
--pos
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(60950180,0))
e1:SetCategory(CATEGORY_POSITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(c609... | gpl-2.0 |
SoScared/OpenRA | lua/scriptwrapper.lua | 4 | 1461 | --[[
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/Schweif/cRohrbombenSchweif.lua | 2 | 2645 | --
-- Created by IntelliJ IDEA.
-- User: Noneatme
-- Date: 25.12.2014
-- Time: 17:40
-- Project: MTA iLife
--
--
cFireworkRohrbombenSchweif = {};
--[[
]]
-- ///////////////////////////////
-- ///// New //////
-- ///// Returns: Object //////
-- ///////////////////////////////
function cFireworkRohrbombenSchweif... | mit |
nekrozar/ygopro-scripts | c60682203.lua | 9 | 1094 | --大寒波
function c60682203.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c60682203.condition)
e1:SetOperation(c60682203.operation)
c:RegisterEffect(e1)
end
function c60682203.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.G... | gpl-2.0 |
nekrozar/ygopro-scripts | c26157485.lua | 9 | 1216 | --C・シューター
function c26157485.initial_effect(c)
--damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(26157485,0))
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCost(c26157485.dam... | gpl-2.0 |
nekrozar/ygopro-scripts | c27967615.lua | 4 | 1706 | --フュージョン・ウェポン
function c27967615.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(c27967615.target)
e1:SetOperation(c27967615.operation)
c:RegisterEffect... | gpl-2.0 |
finalsliver/supervillain-ui | SVUI_UnitFrames/libs/oUF/elements/lfdrole.lua | 4 | 1357 | local parent, ns = ...
local oUF = ns.oUF
local Update = function(self, event)
local lfdrole = self.LFDRole
if(lfdrole.PreUpdate) then
lfdrole:PreUpdate()
end
local role = UnitGroupRolesAssigned(self.unit)
if(role == 'TANK' or role == 'HEALER' or role == 'DAMAGER') then
lfdrole:SetTexCoord(GetTexCoordsForRol... | mit |
xuejian1354/attitude_adjustment | feeds/luci/applications/luci-openvpn/luasrc/model/cbi/openvpn.lua | 65 | 3316 | --[[
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$
]]--
loc... | gpl-2.0 |
nekrozar/ygopro-scripts | c20654247.lua | 1 | 3427 | --青眼の混沌龍
function c20654247.initial_effect(c)
c:EnableReviveLimit()
--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(aux.ritlimit)
c:RegisterEffect(e1)
--cannot... | gpl-2.0 |
sBaildon/sInterface | modules/skins/details.lua | 1 | 4719 | local addon, ns = ...
local E = ns.E
if not E:C('skins', 'details', 'enabled') then return end
local C = {
general = {
texture = E:C('general', 'texture')
},
skins = {
details = {
width = E:C('skins', 'details', 'width'),
point = E:C('skins', 'details', 'point'),
barHeight = E:C('skins', 'details', 'b... | mit |
movb/Algorithm-Implementations | Breadth_First_Search/Lua/Yonaba/bfs.lua | 26 | 3153 | -- Generic Breadth-First search algorithm implementation
-- See : http://en.wikipedia.org/wiki/Breadth-first_search
-- Notes : this is a generic implementation of Breadth-First search algorithm.
-- It is devised to be used on any type of graph (point-graph, tile-graph,
-- or whatever. It expects to be initialized with... | mit |
EvPowerTeam/EV_OP | feeds/luci/modules/admin-mini/luasrc/model/cbi/mini/network.lua | 82 | 6273 | --[[
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 |
ArchiveTeam/screenr-grab | urlcode.lua | 58 | 3476 | ----------------------------------------------------------------------------
-- Utility functions for encoding/decoding of URLs.
--
-- @release $Id: urlcode.lua,v 1.10 2008/01/21 16:11:32 carregal Exp $
----------------------------------------------------------------------------
local ipairs, next, pairs, tonumber, ty... | unlicense |
dmccuskey/dmc-websockets | examples/dmc-websockets-autobahntestsuite/dmc_corona/lib/dmc_lua/lua_objects.lua | 44 | 4827 | --====================================================================--
-- dmc_lua/lua_objects.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2011-2015 David McCuskey
Permission is hereby gran... | mit |
Toukibi/ToSAddon | CollectionSorter/src/collectionsorter.lua | 1 | 5555 | local addonName = "CollectionSorter";
local verText = "1.00";
local autherName = "TOUKIBI";
local addonNameLower = string.lower(addonName);
_G['ADDONS'] = _G['ADDONS'] or {};
_G['ADDONS'][autherName] = _G['ADDONS'][autherName] or {};
_G['ADDONS'][autherName][addonName] = _G['ADDONS'][autherName][addonName] or {... | gpl-3.0 |
BrokenROM/external_skia | tools/lua/paths.lua | 92 | 3129 | --
-- Copyright 2014 Google Inc.
--
-- Use of this source code is governed by a BSD-style license that can be
-- found in the LICENSE file.
--
-- Path scraping script.
-- This script is designed to count the number of times we fall back to software
-- rendering for a path in a given SKP. However, this script does not ... | bsd-3-clause |
wez2020/bow | 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 |
badboyam/boti | 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 |
ealegol/kolla-newton | docker/heka/plugins/encoders/os_syslog.lua | 6 | 1075 | -- Copyright 2016 Mirantis, Inc.
--
-- 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 or agreed to ... | apache-2.0 |
sundream/gamesrv | script/card/golden/card215003.lua | 1 | 2269 | --<<card 导表开始>>
local super = require "script.card.golden.card115003"
ccard215003 = class("ccard215003",super,{
sid = 215003,
race = 1,
name = "奥术飞弹",
type = 101,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 0,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
... | gpl-2.0 |
dylanwh/moonshine | runtime/moonshine/parseopt/spec_parser.lua | 1 | 1246 | local lpeg = require 'lpeg'
local types = require "moonshine.parseopt.types"
local M = {}
local P, S, R = lpeg.P, lpeg.S, lpeg.R
local C, Ct, Cc = lpeg.C, lpeg.Ct, lpeg.Cc
local letter = R ("az", "AZ") + S "_-"
local word = letter ^ 1
local argument = P "#" * Cc '#'
... | gpl-3.0 |
sundream/gamesrv | script/card/neutral/card161002.lua | 1 | 2724 | --<<card 导表开始>>
local super = require "script.card.init"
ccard161002 = class("ccard161002",super,{
sid = 161002,
race = 6,
name = "工匠大师欧沃斯巴克",
type = 201,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 1,
shield = 0,
warcry = 1,
dieeffect = 0,
sneak = 0,
magic_hu... | gpl-2.0 |
EvPowerTeam/EV_OP | feeds/luci/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua | 55 | 8246 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-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
htt... | gpl-2.0 |
viticm/pf_win | applications/bin/public/data/script/preload.lua | 2 | 1696 | require("functions/overload") -- 重写的方法
-- 开始打印脚本日志,基本环境已经准备完毕
log.fast_debug("begin load script files...")
-- 载入游戏模块
local data = file.opentab("scripttable.txt")
local basemodule = { modulename_ = "__ModuleBase" };
local moduleindex = { __index = basemodule }
local moduleset = {}
for _, line in pairs(data) do
local... | mit |
princess-selena/pricess-selena2 | plugins/anti_spam.lua | 191 | 5291 | --An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Save... | gpl-2.0 |
CodingKitsune/Riritools | riritools/lua/time_utils.lua | 1 | 2077 | local table_utils = require("riritools.lua.table_utils")
local floor = math.floor
local time = table_utils.make_read_only_table {
milliseconds_to_seconds = function(milliseconds)
return (milliseconds * 0.001)
end,
milliseconds_to_minutes = function(milliseconds)
return (milliseconds * 0.00001666666)
end,
... | mit |
t1633361/pskynet | lualib/snax/hotfix.lua | 21 | 2186 | local si = require "snax.interface"
local io = io
local hotfix = {}
local function envid(f)
local i = 1
while true do
local name, value = debug.getupvalue(f, i)
if name == nil then
return
end
if name == "_ENV" then
return debug.upvalueid(f, i)
end
i = i + 1
end
end
local function collect_uv(f , ... | apache-2.0 |
facebokiii/facebookplug | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
spark0511/revolt_bot | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
rastin45/waqer12 | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
wangchenOS/skynet | service/cmaster.lua | 78 | 3256 | local skynet = require "skynet"
local socket = require "socket"
--[[
master manage data :
1. all the slaves address : id -> ipaddr:port
2. all the global names : name -> address
master hold connections from slaves .
protocol slave->master :
package size 1 byte
type 1 byte :
'H' : HANDSHAKE, report slav... | mit |
t1633361/pskynet | service/cmaster.lua | 78 | 3256 | local skynet = require "skynet"
local socket = require "socket"
--[[
master manage data :
1. all the slaves address : id -> ipaddr:port
2. all the global names : name -> address
master hold connections from slaves .
protocol slave->master :
package size 1 byte
type 1 byte :
'H' : HANDSHAKE, report slav... | apache-2.0 |
tltneon/NutScript | plugins/spawnsaver.lua | 5 | 1231 | PLUGIN.name = "Spawn Saver"
PLUGIN.author = "Chessnut"
PLUGIN.desc = "Saves the position of a character."
-- Called right before the character has its information save.
function PLUGIN:CharacterPreSave(character)
-- Get the player from the character.
local client = character:getPlayer()
-- Check to see if we can g... | mit |
Houshalter/lw-replay | socket/headers.lua | 133 | 3698 | -----------------------------------------------------------------------------
-- Canonic header field capitalization
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
local socket = require("socket")
socket.headers = {}
local _M = socket.headers
... | mit |
olostan/mudlet | src/mudlet-lua/lua/geyser/GeyserContainer.lua | 1 | 9640 | --------------------------------------
-- --
-- The Geyser Layout Manager by guy --
-- --
--------------------------------------
--- Represents a generic container with positional information.
-- Has no notion of contents and is used to contain other wi... | gpl-2.0 |
GhoulofGSG9/Shine-Epsilon | lua/shine/extensions/pregameplus/server.lua | 1 | 9265 | local Plugin = ...
Plugin.HasConfig = true
Plugin.ConfigName = "PregamePlus.json"
Plugin.DefaultConfig = {
CheckLimit = true,
PlayerLimit = 8,
LimitToggleDelay = 30,
StatusTextPosX = 0.05,
StatusTextPosY = 0.45,
StatusTextColour = { 0, 255, 255 },
AllowOnosExo = true,
AllowMines = true,
AllowCommanding = tr... | mit |
MIFOZ/Hieroglyph3-mirror | Dependencies/lua-5.1.4/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 |
tomm/pioneer | data/ui/StationView/CommodityMarket.lua | 1 | 17583 | -- Copyright © 2008-2016 Pioneer Developers. See AUTHORS.txt for details
-- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
local Engine = import("Engine")
local Lang = import("Lang")
local Game = import("Game")
local Format = import("Format")
local Equipment = import("Equipment")
local EquipmentTableW... | gpl-3.0 |
digitalloggers/nodemcu-firmware | lua_examples/email/read_email_imap.lua | 82 | 4543 | ---
-- Working Example: https://www.youtube.com/watch?v=PDxTR_KJLhc
-- @author Miguel (AllAboutEE.com)
-- @description This example will read the first email in your inbox using IMAP and
-- display it through serial. The email server must provided unecrypted access. The code
-- was tested with an AOL and Time Warner c... | mit |
movb/Algorithm-Implementations | Alpha_Beta_Pruning/Lua/Yonaba/alpha_beta_pruning_test.lua | 26 | 1062 | -- Tests for alpha_beta_pruning.lua
local ABP = require 'alpha_beta_pruning'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pa... | mit |
princess-selena/pricess-selena2 | plugins/stats.lua | 1 | 4140 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
BulldogLowell/VeraSerial3gBridge | ThreeGee1_VeraPlugin/L_ThreeGee1.lua | 1 | 10821 | module("L_ThreeGee1", package.seeall)
local SWITCHPOWER_SID = "urn:upnp-org:serviceId:SwitchPower1"
local SECURITY_SENSOR_SID = "urn:micasaverde-com:serviceId:SecuritySensor1"
local THREEGEE_SID = "urn:konektedplay-com:serviceId:ThreeGee1"
local THREEGEE_TYPE = "urn:schemas-konektedplay-com:device:ThreeGee:1"
local G... | mit |
DmitryUlyanov/texture_nets | src/SpatialCircularPadding.lua | 1 | 4749 | local SpatialCircularPadding, parent = torch.class('nn.SpatialCircularPadding', 'nn.Module')
function SpatialCircularPadding:__init(pad_l, pad_r, pad_t, pad_b)
parent.__init(self)
self.pad_l = pad_l
self.pad_r = pad_r or self.pad_l
self.pad_t = pad_t or self.pad_l
self.pad_b = pad_b or self.pad_l
if... | apache-2.0 |
sami2448/set | plugins/arabic_lockpn.lua | 11 | 1093 |
antiarabic = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_arabic'] then
if data[tostring(msg.to.id... | gpl-2.0 |
alireasuzuki/LIZARD | plugins/antifuck.lua | 4 | 4533 | -- By Mohamed_devt { @MD_IQ19 }
-- how to use inside telegram --
-- if you want to see fuck use this command /fuck lock
-- if you want to disable the protection use this command /fuck unlock
-- if you want to check the protection use this command /link ?
-- a function that i make to cut the command and the / from th... | gpl-2.0 |
t1633361/pskynet | lualib/sprotoparser.lua | 4 | 10634 | local lpeg = require "lpeg"
local table = require "table"
local packbytes
local packvalue
if _VERSION == "Lua 5.3" then
function packbytes(str)
return string.pack("<s4",str)
end
function packvalue(id)
id = (id + 1) * 2
return string.pack("<I2",id)
end
else
function packbytes(str)
local size = #str
loc... | apache-2.0 |
mohsen67t/BDReborn | plugins/plugins.lua | 3 | 7196 | do
-- #Begin plugins.lua by @BeyondTeam
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins f... | gpl-3.0 |
sami2448/set | plugins/on-off.lua | 3 | 1701 | --shared by @blackHatChannel
-- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local functio... | gpl-2.0 |
kfrancischen/MESH | examples/composite_example/main.lua | 1 | 2425 | s = SimulationPattern.new();
s:SetLattice(1e-7, 1e-7, 90);
s:SetNumOfG(300);
--s:OptSetLatticeTruncation("Parallelogramic")
s:AddMaterial("Si", "Si.txt");
s:AddMaterial("Vacuum", "Vacuum.txt");
s:AddLayer("SiBottom", 0, "Si");
s:SetLayerPatternCircle("SiBottom", "Vacuum", {50e-9, 50e-9}, 45e-9)
s:SetLayerPatternCircle(... | gpl-3.0 |
ElectricPrism/stargus | scripts/menus/game.lua | 1 | 1472 | function WarGameMenu(background)
local menu = MenuScreen()
if (background == nil) then
menu:setOpaque(true)
menu:setBaseColor(dark)
else
local bgg = CGraphic:New(background)
bgg:Load()
local bg = ImageWidget(bgg)
menu:add(bg, 0, 0)
end
function menu:resize(w, h)
menu:setSize(w, h... | gpl-2.0 |
tomm/pioneer | data/ui/InfoView/EconTrade.lua | 1 | 6749 | -- Copyright © 2008-2016 Pioneer Developers. See AUTHORS.txt for details
-- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
local Engine = import("Engine")
local Lang = import("Lang")
local Game = import("Game")
local Equipment = import("Equipment")
local ShipDef = import("ShipDef")
local SmallLabeledB... | gpl-3.0 |
sundream/gamesrv | script/card/soil/card153002.lua | 1 | 2276 | --<<card 导表开始>>
local super = require "script.card.init"
ccard153002 = class("ccard153002",super,{
sid = 153002,
race = 5,
name = "滋养",
type = 101,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 0,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
magic_hurt_adde... | gpl-2.0 |
gsingh93/ipscanner | app/src/main/assets/nmap/share/nmap/nselib/dnsbl.lua | 2 | 10814 | --- A minimalistic DNS BlackList library implemented to facilitate querying
-- various DNSBL services. The current list of services has been implemented
-- based on the following compilations of services:
-- * http://en.wikipedia.org/wiki/Comparison_of_DNS_blacklists
-- * http://www.robtex.com
-- * http://www.sdsc.edu/... | mit |
sundream/gamesrv | script/card/neutral/card265033.lua | 1 | 2315 | --<<card 导表开始>>
local super = require "script.card.neutral.card165033"
ccard265033 = class("ccard265033",super,{
sid = 265033,
race = 6,
name = "霜狼督军",
type = 201,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 1,
shield = 0,
warcry = 1,
dieeffect = 0,
sneak = 0,
... | gpl-2.0 |
sundream/gamesrv | script/card/wood/card222003.lua | 1 | 2270 | --<<card 导表开始>>
local super = require "script.card.wood.card122003"
ccard222003 = class("ccard222003",super,{
sid = 222003,
race = 2,
name = "复仇之怒",
type = 101,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 0,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
ma... | gpl-2.0 |
ElectricPrism/stargus | scripts/terran/unit-terran-vulture.lua | 1 | 1759 | --
-- unit-terran-vulture
--
DefineAnimations("animations-terran-vulture", {
Still = {
"frame 0", "wait 125",
},
Move = {"unbreakable begin",
"move 4", "wait 1", "frame 0", "move 4", "wait 1", "frame 0",
"move 4", "wait 1", "frame 0", "move 4", "wait 1", "frame 0",
"move 4", "wait 1", "frame 0", ... | gpl-2.0 |
antoinegiret/osrm-backend | profiles/bicycle.lua | 3 | 12435 | require("lib/access")
require("lib/maxspeed")
-- Begin of globals
barrier_whitelist = { [""] = true, ["cycle_barrier"] = true, ["bollard"] = true, ["entrance"] = true, ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["no"] = true }
access_tag_whitelist ... | bsd-2-clause |
jdourlens/Driver-Arduino-IDE | lua-firmata/example.lua | 1 | 1356 | local simple_dispatcher = require "simple_dispatcher"
local arduino_module = require "arduino"
local socket = require "socket"
require "posix"
sched = SimpleDispatcher()
arduino = Arduino("/dev/ttyACM0")
arduino.pinMode(13, ArduinoConstants.OUTPUT)
sched:AddRoutine(function()
while true do
... | mit |
gsingh93/ipscanner | app/src/main/assets/nmap/share/nmap/nselib/informix.lua | 2 | 40355 | ---
-- Informix Library supporting a very limited subset of Informix operations
--
-- Summary
-- -------
-- Informix supports both The Open Group Distributed Relational Database
-- Architecture (DRDA) protocol, and their own. This library attempts to
-- implement a basic subset of operations. It currently supports;
-- ... | mit |
mahyarnajibi/fast-rcnn-torch | utils/heap/heap.lua | 1 | 5304 | -- This implementation is based on the code borrowed from https://github.com/geoffleyland/lua-heaps/blob/master/lua/binary_heap.lua with the following copyright
-- Copyright (c) 2007-2011 Incremental IP Limited.
--[[
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and ass... | mit |
ElectricPrism/stargus | scripts/protoss/unit-protoss-robotics-support-bay.lua | 1 | 1868 | --
-- -- unit-protoss-robotics-support-bay
--
DefineAnimations("animations-protoss-robotics-support-bay", {
Still = {
"frame 0", "wait 125",
},
Train = {
"frame 0", "wait 125",
},
})
DefineConstruction("construction-protoss-robotics-support-bay", {
Files = {
File = "terran/units/building construc... | gpl-2.0 |
jxskiss/orange | bin/cmds/reload.lua | 4 | 2305 | local ngx_handle = require("bin.utils.ngx_handle")
local args_util = require("bin.utils.args_util")
local logger = require("bin.utils.logger")
local _M = {}
_M.help = [[
Usage: orange reload [OPTIONS]
Reload Orange with configurations(prefix/orange_conf/ngx_conf).
Options:
-p,--prefix (optional string) override... | mit |
sundream/gamesrv | script/card/neutral/card266021.lua | 1 | 2213 | --<<card 导表开始>>
local super = require "script.card.neutral.card166021"
ccard266021 = class("ccard266021",super,{
sid = 266021,
race = 6,
name = "豺狼人",
type = 201,
magic_immune = 0,
assault = 0,
sneer = 1,
atkcnt = 1,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
... | gpl-2.0 |
Putnam3145/SPARKING-Dwarf-Fortress-DBZ-mod | raw/scripts/modtools/custom-artifact.lua | 1 | 6949 | -- Makes it so that the world will always have certain artifacts in certain sites when world loads.
--@ module = true
--Author Putnam
local usage = [===[
modtools/custom-artifact
=====================
This tool, when run, checks if the specific item has an artifact record somewhere in the world
and places the artifac... | mit |
jdourlens/Driver-Arduino-IDE | LoveFrames/objects/internal/multichoice/multichoicelist.lua | 8 | 10372 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2013 Kenny Shields --
--]]------------------------------------------------
-- multichoicelist class
local newobject = loveframes.NewObject("multichoicelist", "loveframes_object_multichoicelist", true)
--... | mit |
padrinoo1/vagir2 | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
mahdikord/mahdi5 | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
ElectricPrism/stargus | scripts/zerg/unit-zerg-spore-colony.lua | 1 | 1570 | --
-- unit-zerg-spore-colony
--
DefineAnimations("animations-zerg-spore-colony", {
Still = {
"frame 0", "wait 2", "frame 1", "wait 2", "frame 2", "wait 2",
"frame 3", "wait 2",
},
Attack = {
"unbreakable begin", "sound zerg-spore-colony-attack",
"frame 0", "wait 1", "attack",
"unbreakable e... | gpl-2.0 |
movb/Algorithm-Implementations | Levenshtein_distance/Lua/Yonaba/levenshtein_test.lua | 27 | 1499 | -- Tests for levenshtein.lua
local lev_iter = (require 'levenshtein').lev_iter
local lev_recursive = (require 'levenshtein').lev_recursive
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total... | mit |
sundream/gamesrv | script/card/neutral/card266004.lua | 1 | 2219 | --<<card 导表开始>>
local super = require "script.card.neutral.card166004"
ccard266004 = class("ccard266004",super,{
sid = 266004,
race = 6,
name = "损坏的傀儡",
type = 206,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 1,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
... | gpl-2.0 |
movb/Algorithm-Implementations | Negamax/Lua/Yonaba/negamax_test.lua | 26 | 1129 | -- Tests for alpha_beta_pruning.lua
local negamax = require 'negamax'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 ... | mit |
EvPowerTeam/EV_OP | feeds/luci/applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua | 36 | 1043 | --[[
LuCI hd-idle
(c) 2008 Yanira <forum-2008@email.de>
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$
]]--
require("nixio.fs")
m = Map... | gpl-2.0 |
sev-/scummvm | devtools/create_ultima/files/ultima6/scripts/u6/actor.lua | 18 | 108701 | --io.stderr:write("actor.lua get here\n")
--Worktypes
WT_NOTHING = 0x0 --do nothing
WT_FOLLOW = 0x1 --follow avatar (in party)
WT_PLAYER = 0x2 --player mode
WT_FRONT = 0x3 --combat front
WT_REAR = 0x4 --combat rear
WT_FLANK ... | gpl-3.0 |
boundary/boundary-plugin-cpu-core | init.lua | 3 | 1386 | local framework = require('framework.lua')
local Plugin = framework.Plugin
local MeterDataSource = framework.MeterDataSource
local each = framework.functional.each
local pack = framework.util.pack
local params = framework.params
-- Create a new MeterDataSource which communicates
-- to the meter via its RPC channel us... | apache-2.0 |
spark0511/revolt_bot | plugins/meme.lua | 637 | 5791 | local helpers = require "OAuth.helpers"
local _file_memes = './data/memes.lua'
local _cache = {}
local function post_petition(url, arguments)
local response_body = {}
local request_constructor = {
url = url,
method = "POST",
sink = ltn12.sink.table(response_body),
headers = {},
red... | gpl-2.0 |
EvPowerTeam/EV_OP | feeds/luci/protocols/ipv6/luasrc/model/network/proto_6x4.lua | 78 | 1602 | --[[
LuCI - Network model - 6to4, 6in4 & 6rd protocol extensions
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/L... | gpl-2.0 |
ctozlm/Dato-Core | src/unity/python/graphlab/lua/pl/input.lua | 28 | 5192 | --- Iterators for extracting words or numbers from an input source.
--
-- require 'pl'
-- local total,n = seq.sum(input.numbers())
-- print('average',total/n)
--
-- _source_ is defined as a string or a file-like object (i.e. has a read() method which returns the next line)
--
-- See @{06-data.md.Reading_Unstru... | agpl-3.0 |
nginxsuper/gin | spec/db/sql_spec.lua | 2 | 4320 | require 'spec.spec_helper'
describe("Database SQL", function()
before_each(function()
SqlDatabase = require 'gin.db.sql'
options = {
adapter = 'mysql',
host = "127.0.0.1",
port = 3306,
database = "gin_development",
user = "root",
... | mit |
Alireza5928/new1 | bot/bot.lua | 1 | 21667 | tdcli = dofile('./tg/tdcli.lua')
serpent = (loadfile "./libs/serpent.lua")()
feedparser = (loadfile "./libs/feedparser.lua")()
our_id = 395550446 -- Put Here Your Bot ID
URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
json = (loadfile "./libs/JSON.lua")()
mim... | gpl-3.0 |
jdryg/bgfx | 3rdparty/spirv-headers/include/spirv/1.2/spirv.lua | 59 | 26887 | -- Copyright (c) 2014-2018 The Khronos Group Inc.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and/or associated documentation files (the "Materials"),
-- to deal in the Materials without restriction, including without limitation
-- the rights to use, copy, mod... | bsd-2-clause |
jdourlens/Driver-Arduino-IDE | LoveFrames/third-party/middleclass.lua | 6 | 5995 | local middleclass = {
_VERSION = 'middleclass v3.0.0',
_DESCRIPTION = 'Object Orientation for Lua',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2011 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation ... | mit |
sBaildon/sInterface | modules/progressbar/azerite.lua | 1 | 2317 | local _, ns = ...
local E = ns.E
if not E:C('progressbars', 'enabled') then return end;
local ProgressBars = ns.sInterfaceProgressBars
local barName = "azerite"
local function GetAzerite()
local azeriteItemLocation = C_AzeriteItem.FindActiveAzeriteItem();
if (not azeriteItemLocation) then
return;
end
local x... | mit |
facebokiii/facebookplug | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
t1633361/pskynet | lualib/snax/loginserver.lua | 6 | 4740 | local skynet = require "skynet"
local socket = require "socket"
local crypt = require "crypt"
local table = table
local string = string
local assert = assert
--[[
Protocol:
line (\n) based text protocol
1. Server->Client : base64(8bytes random challenge)
2. Client->Server : base64(8bytes handshake client key)
3... | apache-2.0 |
dalvorsn/tests | data/talkactions/scripts/kills.lua | 14 | 1396 | function onSay(cid, words, param)
local player = Player(cid)
local fragTime = configManager.getNumber(configKeys.FRAG_TIME)
if fragTime <= 0 then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You do not have any unjustified kill.")
return false
end
local skullTime = player:getSkullTime()
if skullTime... | gpl-2.0 |
sundream/gamesrv | script/card/fire/card142002.lua | 1 | 2827 | --<<card 导表开始>>
local super = require "script.card.init"
ccard142002 = class("ccard142002",super,{
sid = 142002,
race = 4,
name = "角斗士",
type = 301,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 1,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
magic_hurt_add... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.