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 |
|---|---|---|---|---|---|
nekrozar/ygopro-scripts | c19462747.lua | 4 | 2884 | --BF-弔風のデス
function c19462747.initial_effect(c)
--lv up
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(19462747,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,19462747)
e1:SetTarget(c19462747.ta... | gpl-2.0 |
finalsliver/supervillain-ui | SVUI_UnitFrames/libs/oUF_1.6.9/elements/cpoints.lua | 6 | 2549 | --[[ Element: Combo Point Icons
Toggles visibility of the player and vehicles combo points.
Widget
CPoints - An array consisting of five UI widgets.
Notes
The default combo point texture will be applied to textures within the CPoints
array that don't have a texture or color defined.
Examples
local CPoin... | mit |
nekrozar/ygopro-scripts | c16360142.lua | 3 | 2005 | --斬機サブトラ
function c16360142.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,16360142)
e1:SetTarget(c16360142.sptg)
e1:SetOperation(c1... | gpl-2.0 |
ld-test/lgi | lgi/package.lua | 6 | 1591 | ------------------------------------------------------------------------------
--
-- LGI Support for repository packages (namespaces with classes
-- overriden in lgi)
--
-- Copyright (c) 2012 Pavel Holejsovsky
-- Licensed under the MIT license:
-- http://www.opensource.org/licenses/mit-license.php
--
-------------... | mit |
nekrozar/ygopro-scripts | c68007326.lua | 9 | 1087 | --守護天使 ジャンヌ
function c68007326.initial_effect(c)
--recover
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(68007326,0))
e1:SetCategory(CATEGORY_RECOVER)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_BATTLE_DESTROYING)
e1:SetConditi... | gpl-2.0 |
dtaht/cerowrt-luci-3.3 | modules/admin-full/luasrc/model/cbi/admin_system/fstab/swap.lua | 84 | 1922 | --[[
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 |
keneanung/Mudlet-1 | src/mudlet-lua/lua/DebugTools.lua | 1 | 11028 | ----------------------------------------------------------------------------------
--- Mudlet Debug Tools
----------------------------------------------------------------------------------
-- Documentation: https://wiki.mudlet.org/w/Manual:Lua_Functions#showCaptureGroups
function showCaptureGroups()
for k, v in pa... | gpl-2.0 |
Domderon/spice-minions | libs/quickie/group.lua | 15 | 4523 | --[[
Copyright (c) 2012 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, distribu... | mit |
nekrozar/ygopro-scripts | c30194529.lua | 2 | 3457 | --星杯戦士ニンギルス
function c30194529.initial_effect(c)
--link summon
c:EnableReviveLimit()
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkType,TYPE_LINK),2)
--draw
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(30194529,0))
e1:SetCategory(CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_T... | gpl-2.0 |
ld-test/lgi | samples/gtk-demo/demo-printing.lua | 5 | 3519 | return function(parent, dir)
local lgi = require 'lgi'
local GLib = lgi.GLib
local Gio = lgi.Gio
local Gtk = lgi.Gtk
local Gdk = lgi.Gdk
local cairo = lgi.cairo
local Pango = lgi.Pango
local PangoCairo = lgi.PangoCairo
local assert = lgi.assert
-- Prepare settings.
local settings = Gtk.PrintSettings {}
local outdir ... | mit |
jsitnicki/rushit | vendor/github.com/justincormack/ljsyscall/syscall/freebsd/errors.lua | 24 | 3817 | -- FreeBSD error messages
local require = require
local version = require "syscall.freebsd.version".version
local errors = {
PERM = "Operation not permitted",
NOENT = "No such file or directory",
SRCH = "No such process",
INTR = "Interrupted system call",
IO = "Input/output error",
NXIO = "Device not con... | apache-2.0 |
ndronen/fbcunn | examples/imagenet/models/alexnet_cudnn.lua | 8 | 1851 | function createModel(nGPU)
require 'cudnn'
assert(nGPU == 1 or nGPU == 2, '1-GPU or 2-GPU supported for AlexNet')
local features
if nGPU == 1 then
features = nn.Concat(2)
else
require 'fbcunn'
features = nn.ModelParallel(2)
end
local fb1 = nn.Sequential() -- branch 1
fb1:add(c... | bsd-3-clause |
modhunter/NerdPack | Libs/DiesalMenu-1.0/Objects/MenuItem.lua | 6 | 6079 | -- $Id: MenuItem.lua 53 2016-07-12 21:56:30Z diesal2010 $
local DiesalMenu = LibStub('DiesalMenu-1.0')
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalTools = LibStub('DiesalTools-1.0')
local DiesalStyle =... | mit |
jungikim/OpenNMT | tools/utils/unicode.lua | 6 | 5054 | -- for lua < 5.3 compatibility
local bit32 = nil
if not bit32 then
bit32 = require('bit32')
end
local unidata = require('tools.utils.unidata')
local unicode = {}
-- convert the next utf8 character to ucs
-- returns codepoint and utf-8 character
function unicode._utf8_to_cp(s, idx)
if idx > #s then return end
i... | mit |
nekrozar/ygopro-scripts | c91070115.lua | 6 | 1965 | --エーリアン・テレパス
function c91070115.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(91070115,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCost(c91070115.... | gpl-2.0 |
nekrozar/ygopro-scripts | c29307554.lua | 2 | 2246 | --破壊神の系譜
function c29307554.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c29307554.condition)
e1:SetTarget(c29307554.target)
e1:SetOperation(c29307554.activate)
c:RegisterEffect... | gpl-2.0 |
nekrozar/ygopro-scripts | c34853266.lua | 4 | 1419 | --月読命
function c34853266.initial_effect(c)
--spirit return
aux.EnableSpiritReturn(c,EVENT_SUMMON_SUCCESS,EVENT_FLIP)
--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:S... | gpl-2.0 |
evl/SliceDice | modules/feral.lua | 1 | 3860 | local addonName, addon = ...
if addon.playerClass == "DRUID" then
local heroesDreamwalkerSet = {39557, 39553, 39555, 39554, 39556} -- Tier7 10m
local valorousDreamwalkerSet = {40472, 40473, 40493, 40471, 40494} -- Tier7 25m
local valorousNightsongSet = {45356, 45359, 45358, 45355, 45357} -- Tier8 10m
local conque... | bsd-2-clause |
nekrozar/ygopro-scripts | c97169186.lua | 4 | 1096 | --地砕き
function c97169186.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(c97169186.target)
e1:SetOperation(c97169186.activate)
c:RegisterEffect(e1)
end
function c97169186.filter(c)
return c:... | gpl-2.0 |
nekrozar/ygopro-scripts | c33017655.lua | 4 | 2018 | --暗黒界の門
function c33017655.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--atkup
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_FZONE)
e2:SetT... | gpl-2.0 |
nekrozar/ygopro-scripts | c65976795.lua | 2 | 3149 | --サブテラーマリス・アクエドリア
function c65976795.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(65976795,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e1:SetCountLim... | gpl-2.0 |
JordyMoos/JMGuildSaleHistoryTracker | Libs/LibAddonMenu-2.0/controls/panel.lua | 1 | 5033 | --[[panelData = {
type = "panel",
name = "Window Title",
displayName = "My Longer Window Title", --(optional) (can be useful for long addon names or if you want to colorize it)
author = "Seerah", --(optional)
version = "2.0", --(optional)
slashCommand = "/myaddon", --(optional) will register a keybind to open to ... | mit |
steven0143/nodemcu-httpserver | httpserver.lua | 4 | 4944 | -- httpserver
-- Author: Marcos Kirsch
-- Starts web server in the specified port.
return function (port)
local s = net.createServer(net.TCP, 10) -- 10 seconds client timeout
s:listen(
port,
function (connection)
-- This variable holds the thread used for sending data back to th... | gpl-2.0 |
nekrozar/ygopro-scripts | c56809158.lua | 2 | 2623 | --紅蓮の機界騎士
function c56809158.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,56809158)
e1:SetCondition(c56809158.hspcon)
e1:SetValue(c56809158.h... | gpl-2.0 |
ld-test/lgi | tests/corocbk.lua | 5 | 1497 | --[[--------------------------------------------------------------------------
LGI testsuite, coroutine-targetted callbacks
Copyright (c) 2010, 2011 Pavel Holejsovsky
Licensed under the MIT license:
http://www.opensource.org/licenses/mit-license.php
--]]-------------------------------------------------------... | mit |
dustine/AlienGoopCracking | prototypes/items/barrel.lua | 1 | 1260 | local Proto = require 'libs/proto'
local barrel = Proto.newFrom(data.raw['item']['crude-oil-barrel'], {
name = 'alien-goop-cracking-barrel',
icon = '__AlienGoopCracking__/graphics/barrel.png'
})
local fill = Proto.newFrom(data.raw['recipe']['fill-crude-oil-barrel'], {
name = 'alien-goop-cracking-fill-barrel',
... | mit |
alexisamzpro/HypeV3 | fivemenu/drogue_client.lua | 1 | 11774 | -- Updated
local cashycash = 0
local coke = {}
local meth = {}
local organe = {}
local weed = {}
local cokefield = false
local cokeprocess = false
local cokesell = false
local methfield = false
local methprocess = false
local methsell = false
local organefield = false
local organeprocess = false
local organesell = f... | gpl-3.0 |
nekrozar/ygopro-scripts | c8384771.lua | 2 | 1691 | --EMゴムゴムートン
function c8384771.initial_effect(c)
aux.EnablePendulumAttribute(c)
--indes
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_PZONE)
e1:SetCondition(c8384771.condition)
e1:SetTarget(c8384771.... | gpl-2.0 |
nekrozar/ygopro-scripts | c13391185.lua | 6 | 2195 | --聖騎士ガラハド
function c13391185.initial_effect(c)
--Normal monster
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetCode(EFFECT_ADD_TYPE)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c13391185.eqcon1)
e1:SetValue(TYPE_NORMAL)
c:RegisterEffect(e1)
local ... | gpl-2.0 |
Lusito/premake | src/base/tree.lua | 1 | 7109 | --
-- tree.lua
-- Functions for working with the source code tree.
-- Copyright (c) 2009-2013 Jason Perkins and the Premake project
--
premake.tree = {}
local tree = premake.tree
--
-- Create a new tree.
--
-- @param n
-- The name of the tree, applied to the root node (optional).
--
function tree.new(n)
loc... | bsd-3-clause |
nekrozar/ygopro-scripts | c20426907.lua | 1 | 3918 | --機殻の再星
function c20426907.initial_effect(c)
Duel.EnableGlobalFlag(GLOBALFLAG_SELF_TOGRAVE)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--disable
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DISABLE)
e2:SetType(EFFECT... | gpl-2.0 |
nekrozar/ygopro-scripts | c4688231.lua | 2 | 3324 | --メタルフォーゼ・ミスリエル
function c4688231.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFun2(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0xe1),aux.FilterBoolFunction(Card.IsFusionType,TYPE_PENDULUM),true)
--return
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TODECK+CATEGORY_TOHAN... | gpl-2.0 |
vanfanel/scummvm | devtools/create_ultima/files/ultima6/scripts/se/usecode.lua | 18 | 7050 | local USE_EVENT_USE = 0x01
-- Returns true if the actor has the item or a container with the item
function actor_has_item(actor, obj)
local tobj = obj
while tobj.in_container do
tobj = tobj.parent
end
if tobj.on_map == false and
tobj.parent.luatype == "actor" and
tobj.parent.actor... | gpl-2.0 |
nekrozar/ygopro-scripts | c73881652.lua | 1 | 2873 | --十二獣の方合
function c73881652.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c73881652.target)
e1:SetOperation(c73881652.activate)
c:RegisterEffect(e1)
--draw
local e2=Effect.CreateEf... | gpl-2.0 |
esc0rtd3w/realarcade-wrapper-killer | extras/rga/rguninst/Installer/socket/http.lua | 1 | 11454 | -----------------------------------------------------------------------------
-- HTTP/1.1 client support for the Lua language.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: http.lua,v 1.2 2006/04/22 18:13:36 twilliams Exp $
-----------------------------------------------------------------------------
--... | gpl-3.0 |
finalsliver/supervillain-ui | SVUI_QuestTracker/components/scenario.lua | 2 | 18331 | --[[
##########################################################
S V U I By: Failcoder
##########################################################
LOCALIZED LUA FUNCTIONS
##########################################################
]]--
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.se... | mit |
nekrozar/ygopro-scripts | c4376658.lua | 1 | 1573 | --憑依装着-ヒータ
function c4376658.initial_effect(c)
--spsummon proc
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND+LOCATION_DECK)
e1:SetCondition(c4376658.spcon)
e1:SetOperation(c4376658.spop)
e1:SetValu... | gpl-2.0 |
linearregression/fbcunn | examples/imagenet/models/alexnet_fbcunn.lua | 8 | 2141 | require 'fbcunn'
require 'cudnn'
function createModel(nGPU)
assert(nGPU == 1 or nGPU == 2, '1-GPU or 2-GPU supported for AlexNet')
local features
if nGPU == 1 then
features = nn.Concat(2)
else
require 'fbnn'
features = nn.ModelParallel(2)
end
local fb1 = nn.Sequential() -- branch 1... | bsd-3-clause |
ndronen/fbcunn | examples/imagenet/models/alexnet_fbcunn.lua | 8 | 2141 | require 'fbcunn'
require 'cudnn'
function createModel(nGPU)
assert(nGPU == 1 or nGPU == 2, '1-GPU or 2-GPU supported for AlexNet')
local features
if nGPU == 1 then
features = nn.Concat(2)
else
require 'fbnn'
features = nn.ModelParallel(2)
end
local fb1 = nn.Sequential() -- branch 1... | bsd-3-clause |
nekrozar/ygopro-scripts | c77036039.lua | 1 | 1570 | --バスター・マーセナリ
function c77036039.initial_effect(c)
aux.AddCodeList(c,80280737)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(77036039,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLi... | gpl-2.0 |
nekrozar/ygopro-scripts | c33981008.lua | 4 | 3321 | --魔導書院ラメイソン
function c33981008.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--draw
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(33981008,0))
e2:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW)
e2:Set... | gpl-2.0 |
ubaldus/tibula | tibulaXhtml.lua | 1 | 15502 | -- Copyright (C) 2007-2021 by Ubaldo Porcheddu <ubaldo@eja.it>
--
-- Magyar rapszódiák
function tibulaXhtmlExport(moduleId) --export data as xhtml output
tibula.ejaHttpHeader["Content-Type"]="text/html; charset=utf-8"
tibula.ejaHttpHeader["Pragma"]="no-cache";
tibula.ejaHttpHeader["Expires"]= "-1";
tibula... | gpl-3.0 |
jsitnicki/rushit | vendor/github.com/justincormack/ljsyscall/syscall/freebsd/c.lua | 24 | 1298 | -- This sets up the table of C functions
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local abi = require ... | apache-2.0 |
geekscape/nodemcu_esp8266 | applications/button_udp.lua | 1 | 1125 | -- Copyright (c) 2015 by Geekscape Pty. Ltd. Licence LGPL V3.
--
-- Execute via the Skeleton framework
--
-- init.lua: app = require("button_udp")
-- config.lua: module.HOST = UDP_SERVER_IP_ADDRESS
-- config.lua: module.PORT = 4000
local module = {}
local PIN_BUTTON = 3 -- GPIO0
local TIME_ALARM = 25 -- 0.025 s... | lgpl-3.0 |
andreaskoepf/nn | SpatialDivisiveNormalization.lua | 19 | 5414 | local SpatialDivisiveNormalization, parent = torch.class('nn.SpatialDivisiveNormalization','nn.Module')
function SpatialDivisiveNormalization:__init(nInputPlane, kernel, threshold, thresval)
parent.__init(self)
-- get args
self.nInputPlane = nInputPlane or 1
self.kernel = kernel or torch.Tensor(9,9):fill(... | bsd-3-clause |
nekrozar/ygopro-scripts | c66337215.lua | 4 | 1344 | --創世の預言者
function c66337215.initial_effect(c)
--salvage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(66337215,0))
e1:SetCategory(CATEGORY_TOHAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c66337215.thcos... | gpl-2.0 |
ETegro/OpenSAN | feeds/luci/modules/freifunk/luasrc/controller/freifunk/remote_update.lua | 1 | 1715 | --[[
LuCI - Lua Configuration Interface
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://www.apache.org/licenses/LICENSE-2.0
]]--
module(... | gpl-3.0 |
nekrozar/ygopro-scripts | c15661378.lua | 1 | 3292 | --氷獄龍 トリシューラ
function c15661378.initial_effect(c)
--fusion summon
c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,c15661378.ffilter,3,false)
aux.AddContactFusionProcedure(c,Card.IsAbleToRemoveAsCost,LOCATION_MZONE,0,Duel.Remove,POS_FACEUP,REASON_COST+REASON_MATERIAL):SetValue(1)
--material limit
local e0=Effect.C... | gpl-2.0 |
NavidQuick/TeleSurena | plugins/msg_checks.lua | 6 | 11264 | --Begin msg_checks.lua
--Begin pre_process function
local function pre_process(msg)
-- Begin 'RondoMsgChecks' text checks by @rondoozle
if is_chat_msg(msg) or is_super_group(msg) then
if msg and not is_momod(msg) and not is_whitelisted(msg.from.id) then --if regular user
local data = load_data(_config.moderatio... | agpl-3.0 |
yuhangwang/luabuild | modules/luaexpat/tests/test-lom.lua | 18 | 1389 | #!/usr/local/bin/lua
local lom = require "lxp.lom"
local tests = {
[[<abc a1="A1" a2="A2">inside tag `abc'</abc>]],
[[<qwerty q1="q1" q2="q2">
<asdf>some text</asdf>
</qwerty>]],
}
function table._tostring (tab, indent, spacing)
local s = {}
spacing = spacing or ""
indent = indent or "\t"
table.insert (s, ... | mit |
ev1l0rd/yalnpv | dfhack/hack/scripts/troubleshoot-item.lua | 1 | 2902 | -- troubleshoot-item.lua
--@ module = true
--[[=begin
troubleshoot-item
=================
Print various properties of the selected item.
=end]]
function find_specific_ref(object, type)
for i, ref in pairs(object.specific_refs) do
if ref.type == type then
return ref
end
... | mit |
nekrozar/ygopro-scripts | c14943837.lua | 2 | 2285 | --デブリ・ドラゴン
function c14943837.initial_effect(c)
--synchro custom
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(c14943837.synlimit)
c:RegisterEffect(e1)
local e2=Effect.Cre... | gpl-2.0 |
nekrozar/ygopro-scripts | c6311717.lua | 3 | 2922 | --占い魔女 ヒカリちゃん
function c6311717.initial_effect(c)
--special summon from hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(6311717,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_DRAW)
e1:S... | gpl-2.0 |
delram/infx | plugins/Robot.lua | 5 | 1781 | -- 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 function enable_channel(receiver)
if... | gpl-2.0 |
FailcoderAddons/SVUI | SVUI_Skins/components/blizzard/blackmarket.lua | 2 | 2624 | --[[
##############################################################################
S V U I By: Munglunch
##############################################################################
--]]
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.select;
--[[ ADDON ]]--
local SV = _G['SVUI'];
lo... | mit |
ArchiveTeam/xfire-grab | table_show.lua | 58 | 3226 | --[[
Author: Julio Manuel Fernandez-Diaz
Date: January 12, 2007
(For Lua 5.1)
Modified slightly by RiciLake to avoid the unnecessary table traversal in tablecount()
Formats tables with cycles recursively to any depth.
The output is returned as a string.
References to other tables are shown as values.... | unlicense |
nekrozar/ygopro-scripts | c28053763.lua | 1 | 2525 | --ドラゴノイド・ジェネレーター
function c28053763.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c28053763.cost)
c:RegisterEffect(e1)
--Special Summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(28053763,0))
e2:SetCate... | gpl-2.0 |
MegadreamsBE/BlueBird | [Gamemodes]/veh-dd/s_race.lua | 4 | 23773 | -- Variables
g_Resource = getThisResource()
g_Root = getRootElement()
g_ResourceRoot = getResourceRootElement(g_Resource)
cdTimer = nil
cdTimeOutTimer = nil
mapState = "loading"
g_currentMap = -1
g_forcedMap = -1
g_nextMapName = "Random"
lastSurvivor = false
g_Vehicles = {}
g_Deathlist = {}
lastDeathPos = -1
local ... | mit |
MegadreamsBE/BlueBird | [Gamemodes]/veh-hunter/s_race.lua | 4 | 23773 | -- Variables
g_Resource = getThisResource()
g_Root = getRootElement()
g_ResourceRoot = getResourceRootElement(g_Resource)
cdTimer = nil
cdTimeOutTimer = nil
mapState = "loading"
g_currentMap = -1
g_forcedMap = -1
g_nextMapName = "Random"
lastSurvivor = false
g_Vehicles = {}
g_Deathlist = {}
lastDeathPos = -1
local ... | mit |
sam-alpha/alpha | plugins/spam.lua | 29 | 1984 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
ElectricPrism/stargus | scripts/tilesets/jungle.lua | 1 | 248476 | DefineTileset(
"name", "Jungle",
"image", "tilesets/jungle/jungle.png",
"slots", {
"solid", { "light-grass", "land", "unpassable",
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -- 000
}},
"solid", { "light-grass", "land", "unpassable",
{ 129, 130, 131, 132,... | gpl-2.0 |
princess-selena/pricess-selena2 | plugins/arz.lua | 5 | 1100 | local function get_arz()
local url = 'http://exchange.nalbandan.com/api.php?action=json'
local jstr, res = http.request(url)
local arz = json:decode(jstr)
return '📊 نرخ ارز ، طلا و سکه در:'..arz.dollar.date..'\n\n〽 هر گرم طلای 18 عیار:'..arz.gold_per_geram.value..' تومان\n\n🌟 سکه طرح جدید:'..arz.coin_new.valu... | gpl-2.0 |
sundream/gamesrv | script/card/wood/card224002.lua | 1 | 2290 | --<<card 导表开始>>
local super = require "script.card.wood.card124002"
ccard224002 = class("ccard224002",super,{
sid = 224002,
race = 2,
name = "救赎",
type = 101,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 0,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
magi... | gpl-2.0 |
gsingh93/ipscanner | app/src/main/assets/nmap/share/nmap/nselib/ssh1.lua | 2 | 7161 | ---
-- Functions for the SSH-1 protocol. This module also contains functions for
-- formatting key fingerprints.
--
-- @author Sven Klemm <sven@c3d2.de>
-- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html
module(... or "ssh1",package.seeall)
require "bin"
require "bit"
require "math"
require "stdnse"
... | mit |
EvPowerTeam/EV_OP | feeds/luci/modules/admin-full/luasrc/controller/admin/index.lua | 79 | 1245 | --[[
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$
]]--
mod... | gpl-2.0 |
yangboz/petulant-octo-dubstep | HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/TextBMFont.lua | 4 | 1702 |
--------------------------------
-- @module TextBMFont
-- @extend Widget
--------------------------------
-- @function [parent=#TextBMFont] setFntFile
-- @param self
-- @param #string str
--------------------------------
-- @function [parent=#TextBMFont] getStringLength
-- @param self
-- @return long#long ... | mit |
sundream/gamesrv | script/card/neutral/card262011.lua | 1 | 2274 | --<<card 导表开始>>
local super = require "script.card.neutral.card162011"
ccard262011 = class("ccard262011",super,{
sid = 262011,
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/golden/card115009.lua | 1 | 2540 | --<<card 导表开始>>
local super = require "script.card.init"
ccard115009 = class("ccard115009",super,{
sid = 115009,
race = 1,
name = "冰霜新星",
type = 101,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 0,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
magic_hurt_ad... | gpl-2.0 |
sundream/gamesrv | 3rd/behaviourtree/lib/middleclass.lua | 63 | 6117 | local middleclass = {
_VERSION = 'middleclass v3.0.1',
_DESCRIPTION = 'Object Orientation for Lua',
_URL = 'https://github.com/kikito/middleclass',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2011 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining... | gpl-2.0 |
ld-test/lua-log | lua/log/writer/net/zmq/_private/impl.lua | 4 | 1497 | local Log = require "log"
local Z = require "log.writer.net.zmq._private.compat"
local zmq, zthreads = Z.zmq, Z.threads
local zstrerror, zassert = Z.strerror, Z.assert
local ETERM = Z.ETERM
local zconnect, zbind = Z.connect, Z.bind
local log_ctx
local function context(ctx)
-- we have to use same cont... | mit |
doy/luairc | test/luabot.lua | 2 | 3887 | #!/usr/bin/env lua
local sig = require 'signal'
local irc = require 'irc'
irc.DEBUG = true
local nick = "luabot"
local channel = "#doytest"
local network = "irc.freenode.org"
local envs = {}
local function create_env()
return {
_VERSION = _VERSION,
assert = assert,
collectga... | mit |
v13inc/mal | lua/step4_if_fn_do.lua | 3 | 2828 | #!/usr/bin/env lua
local table = require('table')
local readline = require('readline')
local utils = require('utils')
local types = require('types')
local reader = require('reader')
local printer = require('printer')
local Env = require('env')
local core = require('core')
local List, Vector, HashMap = types.List, typ... | mpl-2.0 |
tomm/pioneer | scripts/wiki_ship_facts.lua | 1 | 4944 | #!/usr/bin/lua
-- Copyright © 2008-2016 Pioneer Developers. See AUTHORS.txt for details
-- Licensed under the terms of CC-BY-SA 3.0. See licenses/CC-BY-SA-3.0.txt
require("wiki_commons")
define_ship = function(shipTable)
-- calculate thrust values
forward_thrust_empty = round(thrust_empty(shipTable.forward_thrust, ... | gpl-3.0 |
sundream/gamesrv | script/card/wood/card224005.lua | 1 | 2272 | --<<card 导表开始>>
local super = require "script.card.wood.card124005"
ccard224005 = class("ccard224005",super,{
sid = 224005,
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 |
sundream/gamesrv | script/base/algorithm/Astar.lua | 1 | 4701 | Astar = Astar or {}
--/*
-- --> x
-- |
-- v y
--*/
function Astar.init(map)
Astar.open = {}
Astar.close = {}
Astar.pointid = 0
Astar.step = Astar.step or 1 -- 直走开销
Astar.oblique = Astar.oblique or 1 -- 斜向走开销
Astar.height = map.height
Astar.width = map.width
Astar.xy_point = {}
Astar.id_point = {}
for i... | gpl-2.0 |
sev-/scummvm | devtools/create_ultima/files/ultima6/scripts/u6/intro.lua | 17 | 87594 | SDLK_UP = 82 + 1073741824
SDLK_DOWN = 81 + 1073741824
SDLK_RIGHT = 79 + 1073741824
SDLK_LEFT = 80 + 1073741824
g_img_tbl = {}
local function poll_for_esc()
local input = input_poll()
if input ~= nil and input == 27 then
return true
end
if engine_should_quit() == 1 then
return... | gpl-3.0 |
clofresh/frog-raccoon-mosquito | main.lua | 1 | 24027 | WIDTH, HEIGHT = 1024, 768
PPM = 50
GRAVITY = 1000.0
love.window.setMode(WIDTH, HEIGHT)
world = nil
ground = nil
playerControl = nil
function jumpCoroutine(obj, height)
local initalSpeed = -math.sqrt(2 * GRAVITY * height)
local duration = -2 * initalSpeed / GRAVITY
obj.body:setLinearVelocity(-obj.dir * ini... | bsd-3-clause |
sundream/gamesrv | script/task/taskdb.lua | 1 | 6513 | ctaskdb = class("ctaskdb")
function ctaskdb:init(conf)
self.pid = assert(conf.pid)
self.name = assert(conf.name)
self.tasks = {}
self.finishtasks = {}
self.nowtaskid = nil -- 仅对同时只有一个任务的任务类有效
end
function ctaskdb:load(data)
if not data or not next(data) then
return
end
local tmp = {}
for taskid,d in pairs... | gpl-2.0 |
movb/Algorithm-Implementations | Move_To_Front_Transform/Lua/Yonaba/mtf_test.lua | 26 | 1524 | -- Tests for mtf.lua
local mtf = require 'mtf'
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 end
local status = ok... | mit |
letmefly/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/debug_console.lua | 5 | 5815 | local skynet = require "skynet"
local codecache = require "skynet.codecache"
local core = require "skynet.core"
local socket = require "socket"
local snax = require "snax"
local port = tonumber(...)
local COMMAND = {}
local function format_table(t)
local index = {}
for k in pairs(t) do
table.insert(index, k)
end... | apache-2.0 |
yangboz/petulant-octo-dubstep | HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/Mesh.lua | 4 | 2023 |
--------------------------------
-- @module Mesh
-- @extend Ref
--------------------------------
-- @function [parent=#Mesh] restore
-- @param self
--------------------------------
-- @function [parent=#Mesh] getMeshVertexAttribCount
-- @param self
-- @return long#long ret (return value: long)
---... | mit |
tomm/pioneer | scripts/wiki_ship_chart.lua | 1 | 1357 | #!/usr/bin/lua
-- Copyright © 2008-2016 Pioneer Developers. See AUTHORS.txt for details
-- Licensed under the terms of CC-BY-SA 3.0. See licenses/CC-BY-SA-3.0.txt
require("wiki_commons")
define_ship = function(ship_table)
forward_thrust_empty = round(thrust_empty(ship_table.forward_thrust, ship_table.hull_mass, ship... | gpl-3.0 |
tomm/pioneer | data/ui/MainMenu.lua | 1 | 5185 | -- 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 Ship = import("Ship")
local ShipDef = import("ShipDef")
local Player = import("Player"... | gpl-3.0 |
sundream/gamesrv | script/card/neutral/card265006.lua | 1 | 2224 | --<<card 导表开始>>
local super = require "script.card.neutral.card165006"
ccard265006 = class("ccard265006",super,{
sid = 265006,
race = 6,
name = "鲁莽火箭兵",
type = 201,
magic_immune = 0,
assault = 1,
sneer = 0,
atkcnt = 1,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
... | gpl-2.0 |
wenxueliu/redis_comment | 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... | bsd-3-clause |
sundream/gamesrv | script/card/neutral/card164032.lua | 1 | 2504 | --<<card 导表开始>>
local super = require "script.card.init"
ccard164032 = class("ccard164032",super,{
sid = 164032,
race = 6,
name = "大地之环先知",
type = 201,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 1,
shield = 0,
warcry = 1,
dieeffect = 0,
sneak = 0,
magic_hurt_... | gpl-2.0 |
tltneon/NutScript | gamemode/core/libs/sh_business.lua | 2 | 2650 | if (SERVER) then
netstream.Hook("bizBuy", function(client, items)
local char = client:getChar()
if (!char) then
return
end
if (table.Count(items) < 1) then
return
end
local cost = 0
for k, v in pairs(items) do
local itemTable = nut.item.list[k]
if (itemTable and hook.Run("CanPlayerUseBus... | mit |
dmccuskey/dmc-websockets | examples/dmc-websockets-autobahntestsuite/test_cases.lua | 1 | 22363 | --[[
Test Case Array for Autobahn WebSocket Test Suite
Entry:
{
index='1',
id='1.1.1',
desc="Send text message with payload 0"
}
Comment out a line to disable that test
--]]
local test_cases = {
--== 1.1 Framing, Text Msgs
--[[
--]]
{ index='1', id='1.1.1', desc="Send text message with payload 0." },
{ ind... | mit |
EvPowerTeam/EV_OP | feeds/luci/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... | gpl-2.0 |
EvPowerTeam/EV_OP | feeds/luci/modules/failsafe/luasrc/controller/failsafe/failsafe.lua | 1 | 5206 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008-2011 Jo-Philipp Wich <xm@subsignal.org>
Copyright 2012 Daniel Golle <dgolle@allnet.de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License... | gpl-2.0 |
FizzerWL/ExampleMods | DiplomacyMod/Server_GameCustomMessage.lua | 1 | 3017 | require('Utilities');
function Server_GameCustomMessage(game, playerID, payload, setReturnTable)
if (payload.Message == "Propose") then
--Create a proposal
local proposal = {};
proposal.ID = NewIdentity();
proposal.PlayerOne = playerID;
proposal.PlayerTwo = payload.TargetPlayerID;
proposal.NumTurns = p... | mit |
EvPowerTeam/EV_OP | feeds/luci/applications/luci-firewall/luasrc/model/cbi/firewall/forwards.lua | 85 | 3942 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2012 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 |
facebokiii/facebookplug | bot/bot.lua | 4 | 7076 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '0.14.6'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
r... | gpl-2.0 |
sundream/gamesrv | script/card/neutral/card261024.lua | 1 | 2287 | --<<card 导表开始>>
local super = require "script.card.neutral.card161024"
ccard261024 = class("ccard261024",super,{
sid = 261024,
race = 6,
name = "迦顿男爵",
type = 201,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 1,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
... | gpl-2.0 |
NVolvozx/mamad | 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 |
ElectricPrism/stargus | scripts/sc.lua | 2 | 5475 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____/... | gpl-2.0 |
CodingKitsune/Riritools | riritools/lua/gui_radiobox.lua | 1 | 4321 | local class = require("riritools.lua.class")
local gui_component = require("riritools.lua.gui_component")
local gui_radiobutton = require("riritools.lua.gui_radiobutton")
local gui_radiobox = class("rt.gui_radiobox", gui_component)
local function on_radio_click(_, args)
args.box:set_value(args.box.__radiovalu... | mit |
sundream/gamesrv | script/card/neutral/card163020.lua | 1 | 2375 | --<<card 导表开始>>
local super = require "script.card.init"
ccard163020 = class("ccard163020",super,{
sid = 163020,
race = 6,
name = "负伤剑圣",
type = 201,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 1,
shield = 0,
warcry = 1,
dieeffect = 0,
sneak = 0,
magic_hurt_ad... | gpl-2.0 |
ElectricPrism/stargus | scripts/protoss/unit-protoss-nexus.lua | 1 | 14693 | DefineAnimations("animations-protoss-nexus", {
Still = {
"frame 0", "wait 125",
},
Train = {--[[FIXME: active overlay 276]]
"frame 0", "wait 125",
},
})
DefineConstruction("construction-protoss-nexus", {
Files = {
File = "terran/units/building construction large.png",
Size = {160, 128}},
Sh... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.