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
anshkumar/yugioh-glaze
assets/script/c53932291.lua
9
2248
--SRタケトンボーグ function c53932291.initial_effect(c) c:SetSPSummonOnce(53932291) --special summon local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetRange(LOCATION_HAND) e1:SetCondition(c53932291.spcon) c:RegisterEffect(e1) -...
gpl-2.0
anshkumar/yugioh-glaze
assets/script/c44178886.lua
7
1534
--ライトロード・モンク エイリン function c44178886.initial_effect(c) --to deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(44178886,0)) e1:SetCategory(CATEGORY_TODECK) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_BATTLE_CONFIRM) e1:SetTarget(c44178886.targ) e1:SetOperation(c4417888...
gpl-2.0
anshkumar/yugioh-glaze
assets/script/c39512984.lua
3
2300
--ジェムナイトマスター・ダイヤ function c39512984.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsSetCard,0x1047),3,false) --spsummon condition local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_...
gpl-2.0
rickyHong/nn_lib_torch
test.lua
1
129948
-- you can easily test specific units like this: -- th -lnn -e "nn.test{'LookupTable'}" -- th -lnn -e "nn.test{'LookupTable', 'Add'}" local mytester = torch.Tester() local jac local sjac local precision = 1e-5 local expprecision = 1e-4 local nntest = {} local function equal(t1, t2, msg) if (torch.type(t1) == "ta...
bsd-3-clause
zhaoxin54430/zhaoxin_test
src_luci/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua
18
3594
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local device, username, password local ipv6, defaultroute, metric, peerdns, dns, keepalive_failure, keepalive_interval, demand, mtu device = section:taboption("general", Value...
gpl-2.0
dafei2015/hugula
Client/Assets/Lua/state/stateBase.lua
7
3780
------------------------------------------------ -- Copyright © 2013-2014 Hugula: Arpg game Engine -- -- author pu ------------------------------------------------ StateBase=class(function(self,itemObjects,name) if itemObjects then self.m_itemList = itemObjects table.sort(self.m...
mit
Ced-le-pingouin/microlua-sim
clp/mls/container/WhiteItem.lua
2
1847
------------------------------------------------------------------------------- -- White item. -- -- @class module -- @name clp.mls.container.WhiteItem -- @author Ced-le-pingouin <Ced.le.pingouin@gmail.com> ------------------------------------------------------------------------------- -- Copyright (C) 2009-2011 Cédr...
gpl-3.0
anshkumar/yugioh-glaze
assets/script/c6625096.lua
9
1478
--鰤っ子姫 function c6625096.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(6625096,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCountLimit(...
gpl-2.0
aidansmyth/corona-dungeon-generator
config.lua
1
2956
--[[---------------------------------------------------------------------------- Corona config file File: config.lua Description: Date: Authors: Aidan Smyth Notes: Corona SDK version used: 2012.971 ------------------------------------------------------------------------------]] --[[ ...
mit
sjznxd/lc-20130302
applications/luci-freifunk-widgets/luasrc/controller/freifunk/widgets.lua
78
1124
--[[ LuCI - Lua Configuration Interface Copyright 2012 Manuel Munz <freifunk at somakoma 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 ]]-- local...
apache-2.0
anshkumar/yugioh-glaze
assets/script/c31247589.lua
3
1842
--剣闘獣ディカエリィ function c31247589.initial_effect(c) --double attack local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_EXTRA_ATTACK) e1:SetCondition(c31247589.dacon) e1:SetValue(1) c:RegisterEffect(e1) --special summon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(3...
gpl-2.0
Tiger66639/premake-core
tests/tools/test_msc.lua
3
6283
-- -- tests/test_msc.lua -- Automated test suite for the Microsoft C toolset interface. -- Copyright (c) 2012-2013 Jason Perkins and the Premake project -- local suite = test.declare("tools_msc") local msc = premake.tools.msc -- -- Setup/teardown -- local sln, prj, cfg function suite.setup() sln, prj = test...
bsd-3-clause
dafei2015/hugula
Client/Assets/Lua/state/stateManager.lua
6
2001
------------------------------------------------ -- Copyright © 2013-2014 Hugula: Arpg game Engine -- -- author pu ------------------------------------------------ local LuaItemManager = LuaItemManager local Resources = UnityEngine.Resources StateManager = { m_currentGameState = nil, m_objectCount=0 ,...
mit
anshkumar/yugioh-glaze
assets/script/c13002461.lua
5
1990
--魔導戦士 フォルス function c13002461.initial_effect(c) --atk/lv up local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(13002461,0)) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetCost(c130024...
gpl-2.0
anshkumar/yugioh-glaze
assets/script/c77007920.lua
3
1580
--レーザー砲機甲鎧 function c77007920.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(c77007920.target) e1:SetOperation(c77007920.operation) c:RegisterEffect(e1...
gpl-2.0
zhekov/geany
data/filedefs/filetypes.lua
16
3769
# For complete documentation of this file, please see Geany's main documentation [styling] # Edit these in the colorscheme .conf file instead default=default comment=comment commentline=comment_line commentdoc=comment_line_doc number=number_1 word=keyword_1 string=string_1 character=character literalstring=string_2 pre...
gpl-2.0
anshkumar/yugioh-glaze
assets/script/c54702678.lua
3
2251
--極戦機王ヴァルバロイド function c54702678.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcFunRep(c,c54702678.ffilter,5,true) --extra attack local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_EXTRA_ATTACK) e1:SetValue(1) c:RegisterEffect(e1) --disable local e2=E...
gpl-2.0
anshkumar/yugioh-glaze
assets/script/c26732909.lua
9
2134
--魔導教士 システィ function c26732909.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(26732909,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetRange(LOCATION_MZONE) e1:SetCountLim...
gpl-2.0
zhaoxin54430/zhaoxin_test
src_luci/applications/luci-app-radvd/luasrc/model/cbi/radvd/dnssl.lua
61
2025
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local sid = arg[1] local utl = require "luci.util" m = Map("radvd", translatef("Radvd - DNSSL"), translate("Radvd is a router advertisement daemon for IPv6. " .. "It listens to router solicitations and sends...
gpl-2.0
anshkumar/yugioh-glaze
assets/script/c14568951.lua
3
2484
--青竜の忍者 function c14568951.initial_effect(c) --negate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(14568951,0)) e1:SetCategory(CATEGORY_DISABLE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,0x1c0) e1:SetRange(LOCATION_...
gpl-2.0
anshkumar/yugioh-glaze
assets/script/c34236961.lua
9
1542
--アンティ勝負 function c34236961.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c34236961.target) e1:SetOperation(c34236961.activate) c:RegisterEffect(e1) end function c34236961.t...
gpl-2.0
felipedaragon/sailor
src/remy/lwan.lua
6
2212
-- Remy - Lwan compatibility -- Copyright (c) 2014 Leandro Pereira <leandro@tia.mat.br> -- License: MIT local base64 = require "base64" local remy = require "remy" local lwan = {} lwan.query_param_table = function(req) return setmetatable({}, { __index = function(tbl, key) return req.native_re...
mit
oar-team/oar
sources/extra/black-maria/black-maria-sync.lua
1
3095
require "oar" require "copas" oar.conf_load() oar.connect() if not oar.conf["BKM_SYNC_PORT"] then bkm_sync_port = 2220 else bkm_sync_port = oar.conf["BKM_SYNC_PORT"] end -- -- Transform a compact node list as use in Slurm to list of individual nodes -- ex: nodes[23,45,50-52] -> {nodes23, node45, node50, node51...
gpl-2.0
adminerror/5555555
plugins/invite.lua
1111
1195
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
sjznxd/lc-20130302
modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua
83
4608
--[[ 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$ ]]-- req...
apache-2.0
wvierber/hammerspoon
extensions/styledtext/init.lua
10
31621
--- === hs.styledtext === --- --- This module adds support for controlling the style of the text in Hammerspoon. --- --- More detailed documentation is being worked on and will be provided in the Hammerspoon Wiki at https://github.com/Hammerspoon/hammerspoon/wiki. The documentation here is a condensed version provided...
mit
anshkumar/yugioh-glaze
assets/script/c32240937.lua
9
1087
--絶対服従魔人 function c32240937.initial_effect(c) --atk limit local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_ATTACK) e1:SetCondition(c32240937.atkcon) c:RegisterEffect(e1) --negate local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e2:Set...
gpl-2.0
anshkumar/yugioh-glaze
assets/script/c40736921.lua
3
1334
--心鎮壷のレプリカ function c40736921.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:SetTarget(c40736921.target) e1:SetOperation(c40736921.operation) c:RegisterEffect(e1) end function c40736921.target(...
gpl-2.0
hadirahimi1380/botahriman
plugins/remind.lua
362
1875
local filename='data/remind.lua' local cronned = load_from_file(filename) local function save_cron(msg, text,date) local origin = get_receiver(msg) if not cronned[date] then cronned[date] = {} end local arr = { origin, text } ; table.insert(cronned[date], arr) serialize_to_file(cronned, filename) re...
gpl-2.0
astog/cqui
Integrations/BTS/UI/tradeoverview.lua
4
86857
-- =========================================================================== -- SETTINGS -- =========================================================================== local alignTradeYields = true local showNoBenefitsString = false local showSortOrdersPermanently = false local hideTradingPostIcon = false -- Color...
mit
TimZaman/DIGITS
digits/tools/torch/LRPolicy.lua
8
3721
-- Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. local LRPolicy = torch.class('LRPolicy') ---------------------------------------------------------------------------------------- -- This file contains details of learning rate policies that are used in caffe. -- Calculates and returns the current l...
bsd-3-clause
WAKAMAZU/sile_fe
lua-libraries/std/set.lua
6
7064
--[[-- Set container. Derived from @{std.container}, and inherits Container's metamethods. Note that Functions listed below are available only available from the Set prototype returned by requiring this module, because Container objects cannot have object methods. @classmod std.set @see std.container ]] loc...
mit
fmidev/himan
himan-scripts/CB-TCU-cloud.lua
1
4212
--Round to natural number function round(n) return n % 1 >= 0.5 and math.ceil(n) or math.floor(n) end --Main program -- local MU = level(HPLevelType.kMaximumThetaE,0) local HL = level(HPLevelType.kHeightLayer,500,0) local HG = level(HPLevelType.kHeight,0) EL500 = luatool:FetchWithType(current_time, HL, param("EL-L...
mit
MoZhonghua/skynet
lualib/socketchannel.lua
31
9447
local skynet = require "skynet" local socket = require "socket" local socketdriver = require "socketdriver" -- channel support auto reconnect , and capture socket error in request/response transaction -- { host = "", port = , auth = function(so) , response = function(so) session, data } local socket_channel = {} loca...
mit
SedyMMD/Sixstar22
plugins/plugins.lua
2
7148
do 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 folder local function plugin_exists( name ) for k,v in pairs(plugins_names()) do if name..'.lua...
gpl-3.0
zhaoxin54430/zhaoxin_test
src_luci/applications/luci-app-radvd/luasrc/model/cbi/radvd/route.lua
61
2294
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local sid = arg[1] local utl = require "luci.util" m = Map("radvd", translatef("Radvd - Route"), translate("Radvd is a router advertisement daemon for IPv6. " .. "It listens to router solicitations and sends...
gpl-2.0
RiverWeng/oceanbase
oceanbase_0.4/tools/mysql_stress/kucun.lua
24
1063
-- `stress_sqls' table list all sqls used to stress stress_sqls = { { sql = [[ insert into ipm_inventory_detail ( opt_type, opt_num, inventory_id, user_id, item_id, sku_id, bizorderid, childbizorderid, quantity, gmt_create, gmt_modified, status, version, time_out, time_number, opt_gmt_create, area_id, feat...
gpl-2.0
adan830/UpAndAway
code/components/beanhated.lua
2
3815
local Pred = wickerrequire "lib.predicates" -- Distance from trigger player. local GIANT_SPAWN_DIST = 40 -- Minimum distance from any player. local MIN_GIANT_SPAWN_DIST = 32 --- local function IsBeanlet(inst) return inst:HasTag("beanlet") end local function OnKillAny(inst, data) if inst.components.beanhate...
gpl-2.0
winglink/rectangle
Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua
182
29665
--[[ KAP UAV Exposure Control Script v3.1 -- Released under GPL by waterwingz and wayback/peabody http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script 3DR EAI 1.0 is a fork of KAP 3.1 with settings specific to Canon cameras triggered off the Pixhawk autopilot. Changelog: -Modified Tv, Av, and...
gpl-3.0
Enignite/darkstar
scripts/zones/Metalworks/npcs/Takiyah.lua
17
1292
----------------------------------- -- Area: Metalworks -- NPC: Takiyah -- Type: Regional Merchant ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); require(...
gpl-3.0
Enignite/darkstar
scripts/globals/items/serving_of_black_curry.lua
35
1881
----------------------------------------- -- ID: 4297 -- Item: serving_of_black_curry -- Food Effect: 180Min, All Races ----------------------------------------- -- Dexterity 2 -- Vitality 4 -- Intelligence -1 -- Health Regen While Healing 2 -- Magic Regen While Healing 1 -- defense % 15 -- Accuracy 5 -- Ev...
gpl-3.0
fcpxhacks/fcpxhacks
src/extensions/cp/apple/finalcutpro/main/FindAndReplaceTitleText.lua
2
9820
--- === cp.apple.finalcutpro.main.FindAndReplaceTitleText === --- --- Represents a "Find and Replace Title Text" dialogue box. local log = require "hs.logger" .new "FindAndReplace" local tools = require "cp.tools" local go = require "cp.rx.go" local axutils = require "cp.ui...
mit
Enignite/darkstar
scripts/zones/Zeruhn_Mines/npcs/Mining_Point.lua
29
1093
----------------------------------- -- Area: Zeruhn Mines -- NPC: Mining Point ----------------------------------- package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil; ------------------------------------- require("scripts/globals/mining"); require("scripts/zones/Zeruhn_Mines/TextIDs"); ----------...
gpl-3.0
rodrigoftw/Estagio1
Stay Alive/levels/level2.lua
1
24625
------------------------------------------------------------------------------- -- level2.lua ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -- Lib Requirements ---------------------------------------------...
apache-2.0
moteus/lua-lluv-qless
src/lluv/qless/utils.lua
1
4278
------------------------------------------------------------------ -- -- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Copyright (C) 2017-2019 Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Licensed according to the included 'LICENSE' document -- -- This file is part of lua-lluv-qless library. --...
mit
Enignite/darkstar
scripts/globals/spells/holy.lua
31
1129
----------------------------------------- -- Spell: Holy -- Deals light damage to an enemy. ----------------------------------------- require("scripts/globals/magic"); require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- fun...
gpl-3.0
perusio/lua-resty-http-debian-package
lib/resty/http_headers.lua
12
1721
local rawget, rawset, setmetatable = rawget, rawset, setmetatable local str_gsub = string.gsub local str_lower = string.lower local _M = { _VERSION = '0.01', } -- Returns an empty headers table with internalised case normalisation. -- Supports the same cases as in ngx_lua: -- -- headers.content_len...
bsd-2-clause
apung/prosody-modules
mod_mam_archive/mod_mam_archive.lua
33
11488
-- Prosody IM -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local get_prefs = module:require"mod_mam/mamprefs".get; local set_prefs = module:require"mod_mam/mamprefs".set; local rsm = module:require "mod_mam/rsm"; local jid_bare = require "util.jid...
mit
Enignite/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/MiliartTK.lua
27
5069
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Miliart T.K -- Type: Sigil NPC -- @pos 107 1 -31 80 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); requ...
gpl-3.0
terojanbot/TEROJANSBOT
plugins/pokedex.lua
626
1668
do local images_enabled = true; local function get_sprite(path) local url = "http://pokeapi.co/"..path print(url) local b,c = http.request(url) local data = json:decode(b) local image = data.image return image end local function callback(extra) send_msg(extra.receiver, extra.text, ok_cb, false) end lo...
gpl-2.0
mt246/mt
plugins/pokedex.lua
626
1668
do local images_enabled = true; local function get_sprite(path) local url = "http://pokeapi.co/"..path print(url) local b,c = http.request(url) local data = json:decode(b) local image = data.image return image end local function callback(extra) send_msg(extra.receiver, extra.text, ok_cb, false) end lo...
gpl-2.0
Shayan123456/bot
plugins/pokedex.lua
626
1668
do local images_enabled = true; local function get_sprite(path) local url = "http://pokeapi.co/"..path print(url) local b,c = http.request(url) local data = json:decode(b) local image = data.image return image end local function callback(extra) send_msg(extra.receiver, extra.text, ok_cb, false) end lo...
gpl-2.0
weinyzhou/ffmpegAutoBuild
ffmpegAutoBuild/ffmpeg/swscale/swscale_struct.lua
1
1994
--[[ 描述: lua swscale struct处理模块 作者: weiny zhou 创建日期: 2012-05-01 修改日期: 2012-05-03 版权: 版权所有,未经授权不得擅自拷贝复制或传播本代码的部分或全部.违者必究! ]]-- --[[ 函数:swscale_struct_swscale_get_table 功能:返回所有需要解析结构体列表 参数: 返回:table ]]-- function swscale_struct_swscale_get_table() local tbl={ --[[{name="AVCodec",file="avcodec.h"}, {name="AVClass"...
gpl-2.0
Enignite/darkstar
scripts/globals/mobskills/Impale.lua
18
1212
--------------------------------------------- -- Impale -- -- Description: Deals damage to a single target. Additional effect: Paralysis -- Type: Physical -- Utsusemi/Blink absorb: 1 shadow -- Range: Melee -- Notes: --------------------------------------------- require("scripts/globals/settings"); requi...
gpl-3.0
florian-shellfire/luci
applications/luci-app-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua
61
3184
-- Copyright 2009 Daniel Dickinson -- Licensed to the public under the Apache License 2.0. module("luci.controller.luci_diag.smap_common", package.seeall) require("luci.i18n") require("luci.util") require("luci.sys") require("luci.cbi") require("luci.model.uci") local translate = luci.i18n.translate local DummyValue...
apache-2.0
Enignite/darkstar
scripts/zones/Southern_San_dOria/npcs/qm4.lua
31
1204
----------------------------------- -- Area: Southern San d'Oria -- NPC: The ??? on the stack of papers in 2nd Flr of Vemalpeau's house. -- General Info NPC ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals...
gpl-3.0
RussellHaley/luasys
test/event/bench.lua
2
1892
#!/usr/bin/env lua -- libevent/test/bench.c local sys = require"sys" local sock = require"sys.sock" local num_pipes, num_active, num_writes local count, writes, fired local pipes = {} local events, events_idx = {}, {} local period = sys.period() local function read_cb(evq, evid, fd) count = count + (fd:read(...
mit
fcpxhacks/fcpxhacks
src/extensions/cp/feedback/init.lua
2
10693
--- === cp.feedback === --- --- Feedback Form. local require = require local hs = _G.hs local log = require "hs.logger".new "feedback" local inspect = require "hs.inspect" local application = require "hs.application" local base64 = require "hs.base64"...
mit
timofonic/fpga_nes
sw/scripts/inc/nesdbg.lua
3
6606
---------------------------------------------------------------------------------------------------- -- Script: nesdbg.lua -- Description: Common definitions for NesDbg scripts. ---------------------------------------------------------------------------------------------------- -- ScriptResult: Values to be retur...
bsd-2-clause
Enignite/darkstar
scripts/globals/items/candy_ring.lua
36
1211
----------------------------------------- -- ID: 5621 -- Item: Candy Ring -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- Dexterity 4 -- Agility 4 -- Charisma 4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnIte...
gpl-3.0
tks2103/angel-test
Code/Tools/BuildScripts/lua-lib/penlight-1.0.2/tests/test-pretty.lua
7
2089
local pretty = require 'pl.pretty' local utils = require 'pl.utils' local test = require 'pl.test' local asserteq, assertmatch = test.asserteq, test.assertmatch t1 = { 'one','two','three',{1,2,3}, alpha=1,beta=2,gamma=3,['&']=true,[0]=false, _fred = {true,true}, s = [[ hello dolly you're so ...
bsd-3-clause
aqasaeed/telebot
plugins/channels.lua
300
1680
-- 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
fabiodl/Gearsystem
platforms/ios/dependencies/SDL-2.0.4-9174/premake/projects/SDL2.lua
6
10613
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org> -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purp...
gpl-3.0
Enignite/darkstar
scripts/globals/items/bowl_of_ulbuconut_milk_+1.lua
36
1168
----------------------------------------- -- ID: 5977 -- Item: Bowl of Ulbuconut Milk +1 -- Food Effect: 3Min, All Races ----------------------------------------- -- Charisma +4 -- Vitality -1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnI...
gpl-3.0
dani-sj/rengerbot
plugins/inrealm.lua
287
25005
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
Enignite/darkstar
scripts/globals/items/jar_of_ground_wasabi.lua
35
1587
----------------------------------------- -- ID: 5164 -- Item: jar_of_ground_wasabi -- Food Effect: 5Min, All Races ----------------------------------------- -- Strength -1 -- Dexterity -1 -- Agility -1 -- Vitality -1 -- Intelligence -1 -- Mind -1 -- Charisma -1 ----------------------------------------- ...
gpl-3.0
luanorlandi/Hex
src/multiplayer/socket/client.lua
1
1732
require "socket" Client = {} Client.__index = Client function Client:new() local C = {} setmetatable(C, Client) C.socket = nil C.adress = nil C.port = nil return C end function Client:connect(adress, port) -- try to make a connection, return true for success if self.socket == nil the...
gpl-3.0
danjia/ejoy2d
examples/ex08.lua
20
1363
-- This example show how user defined shader works local ej = require "ejoy2d" local fw = require "ejoy2d.framework" local pack = require "ejoy2d.simplepackage" pack.load { pattern = fw.WorkDir..[[examples/asset/?]], "sample", } -- define a shader local s = ej.define_shader { name = "EXAMPLE", fs = [[ varying v...
mit
zendey/Flashcard_mobile_app
scripts/classes/Font.lua
1
1388
----------------------------------------------------------------------------------------- -- -- Font.lua -- Font class. -- ----------------------------------------------------------------------------------------- local Font = {} function Font.new( fontFace ) ---------------------------------------------------------...
gpl-2.0
doofus-01/wesnoth
data/campaigns/World_Conquest/lua/map/generator/wetland.lua
7
3340
local function generate(length, villages, castle, iterations, size, players, island) local width = length if width % 2 == 1 then width = width + 1 end local res = {} res.border_size=0 res.map_width=width res.map_height=length res.iterations=iterations res.hill_size=size res.villages=villages res.nplayers...
gpl-2.0
rodrigoftw/Estagio1
Total Destruction/Dusk/dusk_core/run/camera.lua
4
11103
-------------------------------------------------------------------------------- --[[ Dusk Engine Component: Camera Adds virtual camera functionality to maps. --]] -------------------------------------------------------------------------------- local lib_camera = {} --------------------------------------------------...
apache-2.0
Enignite/darkstar
scripts/globals/items/akamochi+1.lua
35
2066
----------------------------------------- -- ID: 6261 -- Item: akamochi+1 -- Food Effect: 60 Min, All Races ----------------------------------------- -- HP + 30 (Pet & Master) -- Vitality + 4 (Pet & Master) -- Attack + 17% Cap: 54 (Pet & Master) Pet Cap: 81 -- Accuracy + 11% Cap: 54 (Pet & Master) Pet Cap: 81 ---------...
gpl-3.0
roelofr/GMod-ParticleMaker
particle-maker/lua/autorun/particlemaker_options.lua
1
5879
--[[ Copyright 2016 Roelof Roos (SirQuack) Part of Particle Maker Garry's Mod Tool 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 app...
apache-2.0
araeisy/araeisy
plugins/Abjad.lua
5
3990
local numbers = {} numbers['ا'] = 1 numbers['ب'] = 2 numbers['ج'] = 3 numbers['د'] = 4 numbers['ه'] = 5 numbers['و'] = 6 numbers['ز'] = 7 numbers['ح'] = 8 numbers['ط'] = 9 numbers['ی'] = 10 numbers['ک'] = 20 numbers['ل'] = 30 numbers['م'] = 40 numbers['ن'] = 50 numbers['س'] = 60 numbers['ع'] = 70 numbers['ف'] = 80 numb...
mit
Enignite/darkstar
scripts/zones/Windurst_Woods/npcs/Kyaa_Taali.lua
53
1807
----------------------------------- -- Area: Windurst Woods -- NPC: Kyaa Taali -- Type: Bonecraft Image Support -- @pos -10.470 -6.25 -141.700 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); re...
gpl-3.0
Enignite/darkstar
scripts/globals/items/plate_of_sea_spray_risotto.lua
35
1632
----------------------------------------- -- ID: 4268 -- Item: plate_of_sea_spray_risotto -- Food Effect: 4Hrs, All Races ----------------------------------------- -- HP 45 -- Dexterity 6 -- Agility 3 -- Mind -4 -- HP Recovered While Healing 1 -- Accuracy % 6 (cap 20) ----------------------------------------...
gpl-3.0
Enignite/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Count_Vine.lua
16
1290
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Count Vine ----------------------------------- require("scripts/globals/status"); require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged -------------...
gpl-3.0
ld-test/dub
test/lua_memory_test.lua
4
6072
--[[------------------------------------------------------ dub.LuaBinder ------------- Test binding with the 'memory' group of classes: * no gc optimization --]]------------------------------------------------------ local lub = require 'lub' local lut = require 'lut' local dub = require 'dub' local shoul...
mit
scgilardi/mal
lua/step5_tco.lua
40
3109
#!/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
tinydanbo/Burrow-Down
game/projectiles/fireball.lua
1
1776
Class = require "lib.hump.class" vector = require "lib.hump.vector" Entity = require "entity" Timer = require "lib.hump.timer" Gamestate = require "lib.hump.gamestate" SimpleParticle = require "game.particles.simpleParticle" Fireball = Class{__includes = Entity, init = function(self, x, y, dx, dy) Entity.init(self...
mit
Enignite/darkstar
scripts/zones/Toraimarai_Canal/Zone.lua
28
1801
----------------------------------- -- -- Zone: Toraimarai_Canal (169) -- ----------------------------------- package.loaded["scripts/zones/Toraimarai_Canal/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings") require("scripts/globals/zone"); require("scripts/zones/Toraima...
gpl-3.0
Enignite/darkstar
scripts/zones/Windurst_Waters/npcs/Hakeem.lua
53
1824
----------------------------------- -- Area: Windurst Waters -- NPC: Hakeem -- Type: Cooking Image Support -- @pos -123.120 -2.999 65.472 238 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); requir...
gpl-3.0
Enignite/darkstar
scripts/globals/items/sacred_sword.lua
42
1451
----------------------------------------- -- ID: 17682 -- Sacred Sword -- Additional effect: Light damage -- Enchantment: "Enlight" ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action ----------...
gpl-3.0
Enignite/darkstar
scripts/zones/Silver_Sea_Remnants/Zone.lua
36
1134
----------------------------------- -- -- Zone: Silver_Sea_Remnants -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Silver_Sea_Remnants/TextIDs"] = nil; require("scripts/zones/Silver_Sea_Remnants/TextIDs"); ----------------------------------- -- ...
gpl-3.0
reinbach/awesome
rc.lua
1
24217
-- Standard awesome library local gears = require("gears") local awful = require("awful") awful.rules = require("awful.rules") require("awful.autofocus") -- Widget and layout library local wibox = require("wibox") -- Theme handling library local beautiful = require("beautiful") -- Notification library local naughty = r...
mit
Enignite/darkstar
scripts/globals/spells/hailstorm.lua
24
1155
-------------------------------------- -- Spell: Hailstorm -- Changes the weather around target party member to "snowy." -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------...
gpl-3.0
Stevie-O/SharpLua
test_suite/verybig.lua
21
1737
if rawget(_G, "_soft") then return 10 end print "testing large programs (>64k)" -- template to create a very big test file prog = [[$ local a,b b = {$1$ b30009 = 65534, b30010 = 65535, b30011 = 65536, b30012 = 65537, b30013 = 16777214, b30014 = 16777215, b30015 = 16777216, b30016 = 16777217, b3001...
mit
Tri125/MCServer
MCServer/Plugins/APIDump/Hooks/OnExecuteCommand.lua
5
2087
return { HOOK_EXECUTE_COMMAND = { CalledWhen = [[ A player executes an in-game command, or the admin issues a console command. Note that built-in console commands are exempt to this hook - they are always performed and the hook is not called. ]], DefaultFnName = "OnExecuteCommand", -- also used as pagena...
apache-2.0
makhtomi/su
plugins/stats.lua
5
4023
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
rodrigoftw/Estagio1
Stay Alive/levels/level7.lua
1
25801
------------------------------------------------------------------------------- -- level7.lua ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -- Lib Requirements ---------------------------------------------...
apache-2.0
Enignite/darkstar
scripts/globals/items/fish_chiefkabob.lua
35
1539
----------------------------------------- -- ID: 4575 -- Item: fish_chiefkabob -- Food Effect: 60Min, All Races ----------------------------------------- -- Dexterity 1 -- Vitality 2 -- Mind 1 -- Charisma 1 -- defense % 26 -- defense Cap 95 ----------------------------------------- require("scripts/global...
gpl-3.0
Enignite/darkstar
scripts/globals/mobskills/High-Tension_Discharger.lua
18
1253
--------------------------------------------------- -- High-Tension_Discharger -- Description: -- Type: Magical -- additional effect : Stun --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); -----...
gpl-3.0
QUSpilPrgm/cuberite
Server/Plugins/InfoReg.lua
28
6952
-- InfoReg.lua -- Implements registration functions that process g_PluginInfo --- Lists all the subcommands that the player has permissions for local function ListSubcommands(a_Player, a_Subcommands, a_CmdString) if (a_Player == nil) then LOGINFO("The " .. a_CmdString .. " command requires another verb:") el...
apache-2.0
Enignite/darkstar
scripts/globals/spells/poisonga.lua
18
1093
----------------------------------------- -- Spell: Poisonga ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,sp...
gpl-3.0
jiasy/uiCoder
codeFrame/lua/DataCenter/DataCenterTest.lua
1
4840
if _G.dc == nil then -- 创建 数据中心 的三个步骤。 require("DataCenterUtils").new() -- 1.引用 专属 工具类 dcu:init(ENV_ENGINE_NONE,"",true) -- 2.指定引擎,没有引擎指定,DataCenterTest.lua 独立运行。指明 require 的相对路径 dcu.DataCenter.new() -- 3.构建数据中心对象 if json == nil then require(dcu.requirePathPrefix.."json") end end local...
mit
LingJiJian/UnityHotFixDemo
Assets/Slua/Resources/circle/circle.lua
44
2423
import "UnityEngine" if not UnityEngine.GameObject or not UnityEngine.UI then error("Click Make/All to generate lua wrap file") end local pi=math.pi local class={} function main() local slider = GameObject.Find("Canvas/Slider"):GetComponent(UI.Slider) local counttxt = GameObject.Find("Canvas/Count"):GetComponen...
mit
Enignite/darkstar
scripts/globals/weaponskills/sanguine_blade.lua
26
1658
----------------------------------- -- Sanguine Blade -- Sword weapon skill -- Skill Level: 300 -- Drains a percentage of damage dealt to HP varies with TP. -- Will not stack with Sneak Attack. -- Not aligned with any "elemental gorgets" or "elemental belts" due to it's absence of Skillchain properties. -- Eleme...
gpl-3.0
clevermm/clever-bot
libs/dateparser.lua
502
6212
local difftime, time, date = os.difftime, os.time, os.date local format = string.format local tremove, tinsert = table.remove, table.insert local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable local dateparser={} --we shall use the host OS's...
gpl-2.0
alienstar2/gate7
system/libs/dateparser.lua
502
6212
local difftime, time, date = os.difftime, os.time, os.date local format = string.format local tremove, tinsert = table.remove, table.insert local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable local dateparser={} --we shall use the host OS's...
gpl-2.0
Enignite/darkstar
scripts/globals/mobskills/Guillotine.lua
25
1029
--------------------------------------------- -- Guillotine -- -- Description: Delivers a four-hit attack. Silences enemy. Duration of effect varies with TP. -- Type: Physical -- Number of hits -- Range: Melee --------------------------------------------- require("scripts/globals/settings"); require("scripts/globa...
gpl-3.0