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 |
|---|---|---|---|---|---|
WAKAMAZU/sile_fe | lua-libraries/epnf.lua | 6 | 5054 | local L = require( "lpeg" )
local assert = assert
local _VERSION = assert( _VERSION )
local string, io = assert( string ), assert( io )
local error = assert( error )
local pairs = assert( pairs )
local next = assert( next )
local type = assert( type )
local tostring = assert( tostring )
local setmetatable = assert( se... | mit |
qamrhom/wawi.alnajaf | plugin/admin.lua | 27 | 10309 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(receiver, '... | gpl-3.0 |
anshkumar/yugioh-glaze | assets/script/c83108603.lua | 6 | 2057 | --陽炎柱
function c83108603.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--decrease tribute
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_DECREASE_TRIBUTE)
e2:SetRange(LOCATION_SZO... | gpl-2.0 |
adan830/UpAndAway | pkginfo.lua | 2 | 2186 | return {
--[[
-- Defines the name of the mod directory to be used inside the zip archive.
-- (it doesn't need to match the actual directory name being used)
--]]
moddir = "UpAndAway",
--[[
-- Names of the files returning asset tables.
--]]
asset_files = {
--[[
-- This file lists "regular" as well as prefa... | gpl-2.0 |
Ardavans/DSR | mbwrap/games/BlockedDoor.lua | 2 | 8293 | -- Copyright (c) 2015-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
local BlockedDoor... | mit |
psidhu/packages | utils/yunbridge/files/usr/bin/pretty-wifi-info.lua | 106 | 2067 | #!/usr/bin/lua
local function get_basic_net_info(network, iface, accumulator)
local net = network:get_network(iface)
local device = net and net:get_interface()
if device then
accumulator["uptime"] = net:uptime()
accumulator["iface"] = device:name()
accumulator["mac"] = device:mac()
accumulator["... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c76763417.lua | 3 | 1408 | --サイバー・ジムナティクス
function c76763417.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(76763417,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCost(c7676341... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c2295831.lua | 3 | 1948 | --ピースの輪
function c2295831.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_TO_HAND)
e1:SetCondition(c2295831.regcon)
e1:SetOperation(c2295831.regop)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TO... | gpl-2.0 |
Tiger66639/premake-core | tests/base/test_filename.lua | 5 | 1683 | --
-- tests/base/test_filename.lua
-- Verify generation of project/solution/rule filenames.
-- Copyright (c) 2008-2014 Jason Perkins and the Premake project
--
local suite = test.declare("project_filename")
local p = premake
--
-- Setup
--
local sln
function suite.setup()
sln = test.createsolution()
end
... | bsd-3-clause |
VanessaE/homedecor_modpack | homedecor/furniture_recipes.lua | 3 | 4438 |
minetest.register_craft({
output = "homedecor:table",
recipe = {
{ "group:wood","group:wood", "group:wood" },
{ "group:stick", "", "group:stick" },
},
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:table_mahogany",
recipe = {
"homedecor:table",
"dye:brown",
},
})
minetest.registe... | lgpl-3.0 |
kiarash14/br | plugins/spam.lua | 25 | 207170 | function run(msg, matches)
return 'SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM
SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM
SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c13293158.lua | 3 | 1983 | --E-HERO ワイルド・サイクロン
function c13293158.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCode2(c,21844576,86188410,true,true)
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(... | gpl-2.0 |
Tiger66639/premake-core | src/host/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... | bsd-3-clause |
anshkumar/yugioh-glaze | assets/script/c46372010.lua | 7 | 2012 | --地獄門の契約書
function c46372010.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--tohand
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(46372010,0))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:S... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c36442179.lua | 3 | 1331 | --BF-竜巻のハリケーン
function c36442179.initial_effect(c)
--atk
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(36442179,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetTarget(c36442179... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c31533704.lua | 3 | 3267 | --幻獣機メガラプター
function c31533704.initial_effect(c)
--level
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_UPDATE_LEVEL)
e1:SetValue(c31533704.lvval)
c:RegisterEffect(e1)
--
local e2=Effect.CreateEffect(c)
e2:... | gpl-2.0 |
gvx/space | missions/crushrebellion.lua | 1 | 1807 | return {
id='crushrebellion',
name='Crush the rebellion',
commissionedby='b',
description = [[
Those $br keep pestering us. They have recently attacked another outpost. You understand it can't go on like this. These barbarian rebels need to be crushed.
That looks like a job for... you!
Of course, there is a rewar... | mit |
anshkumar/yugioh-glaze | assets/single/QB064.lua | 1 | 1624 |
Debug.SetAIName("頂上決戦!")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI)
Debug.SetPlayerInfo(0,100,0,0)
Debug.SetPlayerInfo(1,4500,0,0)
Debug.AddCard(70095154,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(04162088,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(37630732,0,0,LOCATION_HAND,0... | gpl-2.0 |
sjznxd/lc-20130302 | applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua | 76 | 3146 | --[[
Luci diag - Diagnostics controller module
(c) 2009 Daniel Dickinson
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
]]--
module("luci.cont... | apache-2.0 |
anshkumar/yugioh-glaze | assets/script/c45653036.lua | 3 | 2256 | --暴風雨
function c45653036.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetHintTiming(0,0x1e0)
e1:SetTarget(c45653036.target)
e1:SetOperation(c45653036.activate)
c:RegisterEffect(e1)
end
funct... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c27827903.lua | 3 | 1311 | --A・ジェネクス・クラッシャー
function c27827903.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(27827903,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LO... | gpl-2.0 |
ynohtna92/SheepTag | game/dota_addons/sheeptag/scripts/vscripts/addon_game_mode.lua | 1 | 6186 | -- module_loader by Adynathos.
BASE_MODULES = {
'util',
'timers',
'sheeptag',
'abilities',
'commands',
'buildinghelper',
'orders',
'builder',
'mechanics',
'players',
'keyvalues',
'libraries/sounds',
'libraries/notifications',
'libraries/projectiles',
'libraries/popups',
'libraries/scoreboard',
}
local ... | gpl-2.0 |
MadkaT182/DDR3rdMix | BGAnimations/ScreenSelectCourse decorations/courselist.lua | 1 | 2897 | return Def.CourseContentsList {
MaxSongs=20;
NumItemsToDraw=4;
SetCommand=function(self)
self:SetFromGameState();
self:SetCurrentAndDestinationItem(3);
self:SetPauseCountdownSeconds(1);
self:SetSecondsPauseBetweenItems(0);
self:SetLoop(true);
self:SetMask(334,0);
end;
CurrentTrailP1ChangedMessageComma... | gpl-3.0 |
PassJim/MechRepairKit | repeater/WireNode.lua | 1 | 1496 | --[===[ Comment this out
function update(dt)
local delayed = self.queue[self.index]
if delayed ~= self.state then
output(delayed)
end
self.queue[self.index] = object.getInputNodeLevel(0)
self.index = self.index % self.queueSize + 1
end
function output(state)
self.state = state
object.setOutputNodeLe... | gpl-3.0 |
johnparker007/mame | 3rdparty/lsqlite3/test/test-dyld.lua | 43 | 1881 | --
-- test for load_extension
--
-- before running this script, you must compile extension-functions.c
-- e.g., in directory extras:
-- gcc -fno-common -dynamiclib extension-functions.c -o libsqlitefunctions.dylib
--
-- then run this script from the top level directory: lua test/test-dyld.lua
local sqlite3 = require... | gpl-2.0 |
cartman300/Polycode | Examples/Lua/Graphics/MaterialsAndLighting/Scripts/AdvancedLighting.lua | 10 | 1668 | Services.ResourceManager:addDirResource("Resources", false)
scene = Scene(Scene.SCENE_3D)
ground = ScenePrimitive(ScenePrimitive.TYPE_PLANE, 5,5)
ground:setMaterialByName("GroundMaterial", Services.ResourceManager:getGlobalPool())
scene:addEntity(ground)
box = ScenePrimitive(ScenePrimitive.TYPE_TORUS, 0.8,0.3,30,20)... | mit |
anshkumar/yugioh-glaze | assets/script/c52665542.lua | 3 | 3561 | --ライトロードの神域
function c52665542.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--to hand
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(52665542,0))
e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c27552504.lua | 2 | 2941 | --永遠の淑女 ベアトリーチェ
function c27552504.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,6,2,c27552504.ovfilter,aux.Stringid(27552504,0),2,c27552504.xyzop)
c:EnableReviveLimit()
--to grave
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetRange(LOCATION_MZ... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/single/QB025.lua | 1 | 1602 | --wcs2011-08
Debug.SetAIName("高性能电子头脑")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI)
Debug.SetPlayerInfo(0,100,0,0)
Debug.SetPlayerInfo(1,14000,0,0)
Debug.AddCard(10875327,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(99995595,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(58924378,0,0,LOCATI... | gpl-2.0 |
beko123/DEV_VIP | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | agpl-3.0 |
HadiBK/RahamPayam | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-3.0 |
Ardavans/DSR | dsr/TransitionTable_priority.lua | 1 | 17773 | --[[
Copyright (c) 2014 Google Inc.
See LICENSE file for full terms of limited license.
]]
require 'image'
local trans_priority = torch.class('dsr.TransitionTable_priority')
function trans_priority:__init(args)
self.stateDim = args.stateDim
self.numActions = args.numActions
self.histLen = args.histLen
... | mit |
anshkumar/yugioh-glaze | assets/script/c23587624.lua | 3 | 3143 | --青天の霹靂
function c23587624.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:SetCondition(c23587624.condition)
e1:SetTarget(c23587624.target)
e1:SetOperation(c23587624.activate)
c:RegisterEffect(... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c69402394.lua | 5 | 1568 | --暗黒の謀略
function c69402394.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:SetTarget(c69402394.target)
e1:SetOperation(c69402394.activate)
c:RegisterEffect(e1)
e... | gpl-2.0 |
brennanfee/dotfiles | rcs/config/nvim/lua/plugin-configs/toggleterm.lua | 1 | 1982 | local status_ok, toggleterm = pcall(require, "toggleterm")
if not status_ok then
return
end
toggleterm.setup({
size = 20,
open_mapping = [[<c-\>]],
hide_numbers = true,
shade_filetypes = {},
shade_terminals = true,
shading_factor = 2,
start_in_insert = true,
insert_mappings = true,
persist_size = t... | mit |
MadkaT182/DDR3rdMix | BGAnimations/ScreenSystemLayer overlay.lua | 1 | 3558 | local function CreditsText(playr)
local posX=SCREEN_CENTER_X-256;
if playr == 'PLAYER_2' then
posX=SCREEN_CENTER_X+64;
end
return LoadFont("ScreenSystemLayer credits normal")..{
InitCommand=cmd(x,posX;y,SCREEN_BOTTOM-16;playcommand,"Refresh");
RefreshCommand=function(self)
if GAMESTATE:GetCoinMode() == '... | gpl-3.0 |
hbomb79/DynaCode | src/Classes/Render/Canvas.lua | 2 | 2515 | local insert = table.insert
local remove = table.remove
abstract class "Canvas" alias "COLOUR_REDIRECT" {
width = 10;
height = 6;
buffer = nil;
}
function Canvas:initialise( ... )
local width, height = ParseClassArguments( self, { ... }, { {"width", "number"}, {"height", "number"} }, true, true )
... | mit |
johnparker007/mame | 3rdparty/genie/src/actions/xcode/xcode_common.lua | 26 | 37043 | --
-- xcode_common.lua
-- Functions to generate the different sections of an Xcode project.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
premake.xcode.parameters = { }
local xcode = premake.xcode
local tree = premake.tree
--
-- Return the Xcode build category for a given file, based on the fi... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c78010363.lua | 3 | 1092 | --黒き森のウィッチ
function c78010363.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(78010363,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(c78010363.condition)
e1:SetTarget(c... | gpl-2.0 |
MmxBoy/mmx-anti | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
adan830/UpAndAway | tools/modanalyzer.lua | 2 | 5999 | #!/usr/bin/env lua5.1
local ARGV = assert( arg )
---
local pkgdepends = {"lfs", "lpeg"}
local innerlibs = {
"compat",
"code",
"matching",
}
local submodules = {
{"formatting", {}},
{"asset_normalizer", {}},
{"syntax", {}},
}
local submodule_root = "modanalyzer."
---
local fs = {}
do
local NATIVE_DIR_SEP ... | gpl-2.0 |
Ardavans/DSR | mbwrap/GameEnvironment.lua | 1 | 2278 | local gameEnv = torch.class('mbwrap.GameEnvironment')
function gameEnv:__init(game_name)
g_opts = {}
g_opts.games_config_path = '../mbwrap/games/config/game_config.lua'
-- Specify game environment
g_opts.game = game_name
g_init_vocab()
g_init_game()
self._state = {}
self:newGame()
... | mit |
anshkumar/yugioh-glaze | assets/script/c10456559.lua | 3 | 1099 | --悪魂邪苦止
function c10456559.initial_effect(c)
--add
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND)
e1:SetDescription(aux.Stringid(10456559,0))
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e1:SetCode(EVENT_BATTLE_DESTROYED)
e1:SetCondition(c10456559.condition)
e1:SetTarget(c10456559.targe... | gpl-2.0 |
freifunk-gluon/luci | applications/luci-pbx/luasrc/model/cbi/pbx-calls.lua | 29 | 15344 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | apache-2.0 |
anshkumar/yugioh-glaze | assets/script/c77360173.lua | 3 | 1953 | --シンクローン・リゾネーター
function c77360173.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,77360173)
e1:SetCondition(c77360173.spcon)
c:RegisterEffect(e... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c6330307.lua | 3 | 2811 | --DZW-魔装鵺妖衣
function c6330307.initial_effect(c)
--equip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(6330307,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetRange(LOCATION_HAND+LOCATION_MZONE)
e1:SetTarget(c6330307.eqtg)
e1:Set... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c40695128.lua | 3 | 2997 | --磨破羅魏
function c40695128.initial_effect(c)
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
c:RegisterEffect(e1)
--summon,flip
local e2=Effect.Cr... | gpl-2.0 |
alireza1998/power | plugins/anti-bot.lua | 1 | 3056 |
local function isBotAllowed (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
local banned = redis:get(hash)
return banned
end
local function allowBot (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
redis:set(hash, true)
end
local function disallowBot (userId, ch... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c26211048.lua | 3 | 2581 | --甲虫装機 エクサスタッグ
function c26211048.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_INSECT),5,2)
c:EnableReviveLimit()
--equip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(26211048,0))
e1:SetCategory(CATEGORY_EQUIP)
e1:SetProperty(EFFECT_FLAG_CARD_TAR... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c34088136.lua | 3 | 2570 | --アルティメット・インセクト LV3
function c34088136.initial_effect(c)
--atk down
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(0,LOCATION_MZONE)
e1:SetCondition(c34088136.con)
e1:SetValue(-300)
c:RegisterEffect(e1)
--special sum... | gpl-2.0 |
mramir8274/danibot | 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 |
hfjgjfg/sv | 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 |
aqasaeed/me | 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 |
m13790115/evill | 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 |
anshkumar/yugioh-glaze | assets/script/c42851643.lua | 3 | 1648 | --穿孔重機ドリルジャンボ
function c42851643.initial_effect(c)
--lvup
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(42851643,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c42851643.lvtg)
e1:SetOperation(c42851643.lvop)
c:RegisterEffect(e1)
--to defe... | gpl-2.0 |
Teleseed2/Nod32 | plugins/anti_ads.lua | 61 | 1032 |
local function run(msg)
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['antilink'] == 'yes' then
if not is_momod(msg) then
chat_del_user('chat#id'..msg.to.id, 'user#id'..msg.from.id, ok_cb, true)
local msgads = 'ForbiddenAdText'
... | gpl-2.0 |
dwing4g/jane | tool/luainspect/dump.lua | 5 | 2727 | -- Recursive object dumper, for debugging.
-- (c) 2010 David Manura, MIT License.
local M = {}
-- My own object dumper.
-- Intended for debugging, not serialization, with compact formatting.
-- Robust against recursion.
-- Renders Metalua table tag fields specially {tag=X, ...} --> "`X{...}".
-- On first call, only p... | lgpl-3.0 |
anshkumar/yugioh-glaze | assets/script/c46895036.lua | 5 | 3236 | --ゴーストリック・デュラハン
function c46895036.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,1,2)
c:EnableReviveLimit()
--atk
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(c4689503... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c90239723.lua | 5 | 2666 | --D・リペアユニット
function c90239723.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCost(c90239723.cost)
e1:SetTarget(c90239723.target)
e1:SetOperation(c90... | gpl-2.0 |
sjznxd/lc-20130302 | modules/admin-full/luasrc/model/cbi/admin_system/fstab/mount.lua | 27 | 3228 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 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
$Id$
]]--
lo... | apache-2.0 |
anshkumar/yugioh-glaze | assets/script/c45939841.lua | 3 | 1258 | --ツイスター
function c45939841.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetCost(c45939841.cost)
e1:SetTarget(c45939841.t... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c52653092.lua | 3 | 5015 | --SNo.0 ホープ・ゼアル
function c52653092.initial_effect(c)
--xyz summon
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetRange(LOCATION_EXTRA)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCondition(c52653092.xyzcon)
e1:SetOperation(c52653092.x... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c10789972.lua | 3 | 1260 | --覚醒戦士 クーフーリン
function c10789972.initial_effect(c)
c:EnableReviveLimit()
--atkup
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(10789972,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCost(c10789972.cost)
e1:SetOper... | gpl-2.0 |
zwhfly/openwrt-luci | applications/luci-asterisk/luasrc/controller/asterisk.lua | 69 | 7498 | --[[
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 |
astog/cqui | Assets/UI/Popups/techciviccompletedpopup.lua | 5 | 15674 | -- ===========================================================================
-- Popups when a Tech or Civic are completed
-- ===========================================================================
include("TechAndCivicSupport"); -- (Already includes Civ6Common and InstanceManager) PopulateUnlockablesForTech, Pop... | mit |
karmalis/Romuva | Data/Scripts/Player/player_controls.lua | 1 | 6878 | require "g_vars"
require "class"
require "player_config"
if not PlayerControls then
PlayerControls = class(function(a, params)
if not params then
a.params = {};
else
a.params = params;
end
end)
end
if not g_PlayerObject then
PlayerControlClass = class(PlayerControls);
g_PlayerObject = PlayerContro... | mit |
Avamander/MineFix | mods/carts/init.lua | 4 | 12122 | local modpath = minetest.get_modpath("carts")
dofile(modpath .. "/blocks.lua")
dofile(modpath .. "/crafting.lua")
dofile(modpath .. "/functions.lua")
--
-- Cart entity
--
cart = {
physical = false,
collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5},
visual = "mesh",
mesh = "carts_cart.x",
visual_size = {x=1, y=1},
t... | agpl-3.0 |
TETOO2020/THETETOO_A8 | plugins/lock_media.lua | 7 | 2614 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY tetoo ▀▄ ▄▀
▀▄ ▄▀ BY nmore (@l_l_lo) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY l_l_ll ▀▄ ▄▀
▀▄ ▄▀ broadcast : تحذير الميديا ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c62957424.lua | 3 | 3076 | --彼岸の悪鬼 リビオッコ
function c62957424.initial_effect(c)
--self destroy
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_SELF_DESTROY)
e1:SetCondition(c62957424.sdcon)
c:RegisterEffect(e1)
--Special Summon
local e2=... | gpl-2.0 |
beforan/adventure-jam-2015 | lib/hump/vector-light.lua | 53 | 3560 | --[[
Copyright (c) 2012-2013 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | mit |
anshkumar/yugioh-glaze | assets/script/c293542.lua | 3 | 2363 | --TG ワーウルフ
function c293542.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(293542,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_HAND)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c293542.spc... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c33423043.lua | 3 | 1181 | --異次元の指名者
function c33423043.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCategory(CATEGORY_REMOVE)
e1:SetTarget(c33423043.target)
e1:SetOperation(c33423043.operation)
c:RegisterEffect(e1)
end
function c33423043.target(e,tp,eg,e... | gpl-2.0 |
MoZhonghua/skynet | lualib/multicast.lua | 66 | 2283 | local skynet = require "skynet"
local mc = require "multicast.core"
local multicastd
local multicast = {}
local dispatch = setmetatable({} , {__mode = "kv" })
local chan = {}
local chan_meta = {
__index = chan,
__gc = function(self)
self:unsubscribe()
end,
__tostring = function (self)
return string.format("[M... | mit |
brennanfee/dotfiles | rcs/config/nvim/lua/plugin-configs/bufferline.lua | 1 | 6705 | local status_ok, bufferline = pcall(require, "bufferline")
if not status_ok then
return
end
local utils = require("functions")
bufferline.setup {
options = {
numbers = "none", -- | "ordinal" | "buffer_id" | "both" | function({ ordinal, id, lower, raise }): string,
close_command = utils.bufdelete, -- can be... | mit |
Ardavans/DSR | dqn/NeuralQLearner.lua | 1 | 12984 | --[[
Copyright (c) 2014 Google Inc.
See LICENSE file for full terms of limited license.
]]
if not dqn then
require 'initenv'
end
local nql = torch.class('dqn.NeuralQLearner')
function nql:__init(args)
self.state_dim = args.state_dim -- State dimensionality.
self.actions = args.actions
if torch.... | mit |
anshkumar/yugioh-glaze | assets/script/c43225434.lua | 3 | 1134 | --決闘融合-バトル・フュージョン
function c43225434.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCountLimit(1,43225434+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c43225434.condition)
e1:SetOperation(c432254... | gpl-2.0 |
nanopack/flip | lib/member.lua | 2 | 3421 | -- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*-
-- vim: ts=4 sw=4 ft=lua noet
---------------------------------------------------------------------
-- @author Daniel Barney <daniel@pagodabox.com>
-- @copyright 2014, Pagoda Box, Inc.
-- @doc
--
-- @end
-- Created : 23 Oct 2014 by Daniel Barney... | mit |
shirat74/sile | classes/docbook.lua | 3 | 4651 | local plain = SILE.require("classes/plain");
docbook = plain { id = "docbook" };
SILE.scratch.docbook = {
seclevel = 0,
seccount = {}
}
docbook:loadPackage("image")
docbook:loadPackage("simpletable", {
tableTag = "tgroup",
trTag = "row",
tdTag = "entry"
})
function docbook.push(t, val)
if not SILE.scratch... | mit |
kingofpowers/SavedInstances | libs/LibDBIcon-1.0/LibDBIcon-1.0.lua | 7 | 10621 |
-----------------------------------------------------------------------
-- LibDBIcon-1.0
--
-- Allows addons to easily create a lightweight minimap icon as an alternative to heavier LDB displays.
--
local DBICON10 = "LibDBIcon-1.0"
local DBICON10_MINOR = 34 -- Bump on changes
if not LibStub then error(DBICON10 .. " r... | gpl-3.0 |
ara8586/b.v4 | bot/bot.lua | 1 | 13053 | tdcli = dofile('./tg/tdcli.lua')
serpent = (loadfile "./libs/serpent.lua")()
feedparser = (loadfile "./libs/feedparser.lua")()
require('./bot/utils')
URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./... | gpl-3.0 |
gvx/space | missions/getsculpture.lua | 1 | 1538 | return {
id='getsculpture',
name='Get sculpture from Bzadoria',
commissionedby='a',
description = [[
Hey, sport.
The $b$n Cultural Historic Museum has borrowed a classic sculpture from our empire. They would return it some time ago.
It is your job to go to the $b$n capital and request the sculpture back in time. ... | mit |
dinodeck/rpg_dialog_script | dialog_runner/code/Party.lua | 2 | 1449 | Party = {}
Party.__index = Party
function Party:Create()
local this =
{
mMembers = {}
}
setmetatable(this, self)
return this
end
function Party:Add(member)
self.mMembers[member.mId] = member
end
function Party:RemoveById(id)
self.mMembers[id] = nil
end
function Party:Remove(membe... | mit |
dinodeck/rpg_dialog_script | dialog_runner/code/WaitState.lua | 10 | 1383 | WaitState = {mName = "wait"}
WaitState.__index = WaitState
function WaitState:Create(character, map)
local this =
{
mCharacter = character,
mMap = map,
mEntity = character.mEntity,
mController = character.mController,
mFrameResetSpeed = 0.05,
mFrameCou... | mit |
anshkumar/yugioh-glaze | assets/script/c40921744.lua | 3 | 3092 | --堕天使ゼラート
function c40921744.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(40921744,0))
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c40921744.sumcon)
e1:SetOper... | gpl-2.0 |
andrejzverev/rspamd | src/plugins/lua/rspamd_update.lua | 1 | 3952 | --[[
Copyright (c) 2016, Vsevolod Stakhov <vsevolod@highsecure.ru>
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 ... | apache-2.0 |
anshkumar/yugioh-glaze | assets/script/c35429292.lua | 7 | 1243 | --ピクシーナイト
function c35429292.initial_effect(c)
--to deck
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(35429292,0))
e1:SetCategory(CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_BATTLE_DESTROYED)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCondition(c35... | gpl-2.0 |
gajjanag/config_files | awesome/lain/layout/centerfair.lua | 6 | 6064 |
--[[
Licensed under GNU General Public License v2
* (c) 2014, projektile
* (c) 2013, Luke Bonham
* (c) 2010, Nicolas Estibals
* (c) 2010-2012, Peter Hofmann
... | mit |
johnparker007/mame | plugins/autofire/autofire_menu.lua | 6 | 8945 | local lib = {}
-- Set of all menus
local MENU_TYPES = { MAIN = 0, EDIT = 1, ADD = 2, BUTTON = 3 }
-- Set of sections within a menu
local MENU_SECTIONS = { HEADER = 0, CONTENT = 1, FOOTER = 2 }
-- Last index of header items (above main content) in menu
local header_height = 0
-- Last index of content items (below he... | gpl-2.0 |
kiarash14/br | 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 |
paladiyom/paladerz | 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 |
WAKAMAZU/sile_fe | lua-libraries/repl/plugins/linenoise.lua | 6 | 2007 | -- Copyright (c) 2011-2014 Rob Hoelz <rob@hoelz.ro>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy of
-- this software and associated documentation files (the "Software"), to deal in
-- the Software without restriction, including without limitation the rights to
-- use, copy, modify,... | mit |
Tiger66639/premake-core | src/base/validation.lua | 10 | 4186 | ---
-- base/validation.lua
--
-- Verify the contents of the project object before handing them off to
-- the action/exporter.
--
-- Copyright (c) 2002-2014 Jason Perkins and the Premake project
---
local p = premake
---
-- Validate the global container and all of its contents.
---
function p.global.validate(self... | bsd-3-clause |
anshkumar/yugioh-glaze | assets/script/c49202331.lua | 3 | 1945 | --CX 超巨大空中要塞バビロン
function c49202331.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,11,3)
c:EnableReviveLimit()
--damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(49202331,0))
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetProperty(EFFEC... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c32485518.lua | 3 | 1523 | --イモータル・ルーラー
function c32485518.initial_effect(c)
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
c:RegisterEffect(e1)
--salvage
local e2=Effect.CreateEffect(c)
e2:SetD... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c37445295.lua | 3 | 2340 | --シャドール・ファルコン
function c37445295.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(37445295,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e1:SetCount... | gpl-2.0 |
dinodeck/rpg_dialog_script | dialog_runner/code/Stats.lua | 10 | 1057 | Stats = {}
Stats.__index = Stats
function Stats:Create(stats)
local this =
{
mBase = {},
mModifiers = {}
}
-- Shallow copy
for k, v in pairs(stats) do
this.mBase[k] = v
end
setmetatable(this, self)
return this
end
function Stats:GetBase(id)
return self.mBas... | mit |
fmidev/himan | himan-scripts/relative-humidity-ice.lua | 1 | 1596 | --This macro calculates the relative humidity of ice
--from HIRLAM surface variables temperature, pressure and dew point.
--Toni Amnell 26.10.2010
function rhice(p,t,dp)
-- p = air pressure in hPa
-- t = temperature in *C
-- dp = dew point in *C
--Saturated vapor pressure of pure ice or water
local ei=6.112... | mit |
anshkumar/yugioh-glaze | assets/script/c75673220.lua | 3 | 1525 | --スナップドラゴン
function c75673220.initial_effect(c)
--remove
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(75673220,0))
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCountLimit(1,75673220)
e1:SetTarget(c75673220.target... | gpl-2.0 |
freifunk-gluon/luci | libs/nixio/axTLS/www/lua/download.lua | 180 | 1550 | #!/usr/local/bin/lua
require"luasocket"
function receive (connection)
connection:settimeout(0)
local s, status = connection:receive (2^10)
if status == "timeout" then
coroutine.yield (connection)
end
return s, status
end
function download (host, file, outfile)
--local f = assert (io.open (outfile, "w"))
loc... | apache-2.0 |
sjznxd/lc-20130302 | libs/nixio/axTLS/www/lua/download.lua | 180 | 1550 | #!/usr/local/bin/lua
require"luasocket"
function receive (connection)
connection:settimeout(0)
local s, status = connection:receive (2^10)
if status == "timeout" then
coroutine.yield (connection)
end
return s, status
end
function download (host, file, outfile)
--local f = assert (io.open (outfile, "w"))
loc... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.