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 |
|---|---|---|---|---|---|
Ninjistix/darkstar | scripts/zones/Lower_Jeuno/npcs/_l10.lua | 3 | 2485 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- !pos -18 0 -4 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scri... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/Cermet_Headstone.lua | 5 | 3092 | -----------------------------------
-- Area: The Sanctuary of Zi'Tah
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Light Headstone)
-- !pos 235 0 280 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
------------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Lower_Jeuno/npcs/Tuh_Almobankha.lua | 5 | 3724 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Tuh Almobankha
-- Title Change NPC
-- !pos -14 0 -61 245
-----------------------------------
require("scripts/globals/titles");
local title2 = { BROWN_MAGE_GUINEA_PIG , BROWN_MAGIC_BYPRODUCT , RESEARCHER_OF_CLASSICS , TORCHBEARER , FORTUNETELLER_IN_TRAI... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/mobskills/mangle.lua | 37 | 1070 | ---------------------------------------------
-- Mangle
-- Family: Qutrub
-- Description: Deals damage in a threefold attack to targets in a fan-shaped area of effect.
-- Type: Physical
-- Utsusemi/Blink absorb: 3 shadows
-- Range: Front cone
-- Notes: Used only when wielding their initial sword, or the dagger o... | gpl-3.0 |
mandersan/premake-core | modules/xcode/tests/test_xcode_dependencies.lua | 3 | 9840 | --
-- tests/actions/xcode/test_xcode_dependencies.lua
-- Automated test suite for Xcode project dependencies.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
local suite = test.declare("xcode_deps")
local p = premake
local xcode = p.modules.xcode
-----------------------------------------------... | bsd-3-clause |
davidbuzz/ardupilot | libraries/AP_Scripting/examples/orbit_follow.lua | 9 | 1546 | -- example that does an orbit of a vehicle that is being followed
-- by adjusting the follow offset X and Y parameters
-- user settable FOLL_ORB_TIME and FOLL_ORB_RADIUS parameters
-- are provided for the time for one orbit (in seconds) and the radius
-- of the orbit
-- setup param block for FOLL_ extensions
local PAR... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Abyssea-Konschtat/npcs/Conflux_Surveyor.lua | 3 | 3234 | -----------------------------------
-- Zone: Abyssea - Konschtat
-- NPC: Conflux Surveyor
-- Type:
-- !pos 133.000 -72.738 -824.000 15
-----------------------------------
package.loaded["scripts/zones/Abyssea-Konschtat/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("s... | gpl-3.0 |
ASHRAF97/ASHRAFKASPER | plugins/getfile.lua | 14 | 1025 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ get file : جلب ملف ▀▄ ▄▀... | gpl-2.0 |
fjz13/Medusa | Test/Test/Dev/Resource/Script/Medusa/Lib/stringExtend.lua | 4 | 1166 |
function string.split(str, delimiter)
if (delimiter=='') then return false end
local pos,arr = 0, {}
-- for each divider found
for st,sp in function() return string.find(str, delimiter, pos, true) end do
table.insert(arr, string.sub(str, pos, st - 1))
pos = sp + 1
end
table.inse... | mit |
Ninjistix/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/_4fx.lua | 5 | 1651 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Granite Door
-- !pos 340 0.1 329 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Temple_of_Uggalepih/TextIDs");
require("scripts... | gpl-3.0 |
Tele-Fox/CYR | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-3.0 |
dmccuskey/dmc-websockets | dmc_corona/lib/dmc_lua/lua_error.lua | 46 | 3628 | --====================================================================--
-- lua_error.lua
--
-- Documentation:
-- * http://github.com/dmccuskey/lua-error
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2014-2015 David McCuskey. All Rights Reserved.
P... | mit |
alimashmamali/test | plugins/banhammer.lua | 1085 | 11557 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
EvPowerTeam/EV_OP | feeds/luci/libs/nixio/docsrc/nixio.TLSSocket.lua | 173 | 2926 | --- TLS Socket Object.
-- TLS Sockets contain the underlying socket and context in the fields
-- "socket" and "context".
-- @cstyle instance
module "nixio.TLSSocket"
--- Initiate the TLS handshake as client with the server.
-- @class function
-- @name TLSSocket.connect
-- @usage This function calls SSL_connect().
-- @... | gpl-2.0 |
siggame/Joueur.lua | games/anarchy/fireDepartment.lua | 2 | 4613 | -- FireDepartment: Can put out fires completely.
-- DO NOT MODIFY THIS FILE
-- Never try to directly create an instance of this class, or modify its member variables.
-- Instead, you should only be reading its variables and calling its functions.
local class = require("joueur.utilities.class")
local Building = requir... | mit |
yangboz/petulant-octo-dubstep | HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/SpriteBatchNode.lua | 1 | 4454 |
--------------------------------
-- @module SpriteBatchNode
-- @extend Node,TextureProtocol
--------------------------------
-- @function [parent=#SpriteBatchNode] appendChild
-- @param self
-- @param #cc.Sprite sprite
--------------------------------
-- @function [parent=#SpriteBatchNode] addSpriteWithoutQ... | mit |
tltneon/NutScript | gamemode/core/sh_config.lua | 2 | 6757 | nut.config = nut.config or {}
nut.config.stored = nut.config.stored or {}
function nut.config.add(key, value, desc, callback, data, noNetworking, schemaOnly)
local oldConfig = nut.config.stored[key]
nut.config.stored[key] = {data = data, value = oldConfig and oldConfig.value or value, default = value, desc = desc, ... | mit |
harryzeng/skynet | service/gate.lua | 46 | 1934 | local skynet = require "skynet"
local gateserver = require "snax.gateserver"
local netpack = require "netpack"
local watchdog
local connection = {} -- fd -> connection : { fd , client, agent , ip, mode }
local forwarding = {} -- agent -> connection
skynet.register_protocol {
name = "client",
id = skynet.PTYPE_CLIEN... | mit |
magnum357i/Magnum-s-Aegisub-Scripts | automation/autoload/mag.break_lines.lua | 1 | 11871 | function lang_switch_keys(lang)
local in_lang = {}
local langs =
{
[1] = {lang_key = "tr", lang_name = "Türkçe", script_name = "Satır Böl", sub_menu = "Satır/Böl"},
[2] = {lang_key = "en", lang_name = "English", script_name = "Break Lines", sub_menu = "Lines/Break"}
}
local lang_list = {}
local scr... | mit |
Toukibi/ToSAddon | Do-It-Yourself/LuaOnly/alter_DeveloperConsole/developerconsole.lua | 1 | 7863 |
function DEVELOPERCONSOLE_ON_INIT(addon, frame)
local acutil = require("acutil");
acutil.slashCommand("/dev", DEVELOPERCONSOLE_TOGGLE_FRAME);
acutil.slashCommand("/console", DEVELOPERCONSOLE_TOGGLE_FRAME);
acutil.slashCommand("/devconsole", DEVELOPERCONSOLE_TOGGLE_FRAME);
acutil.slashCommand("/developercons... | gpl-3.0 |
harryzeng/skynet | lualib/mongo.lua | 58 | 11027 | local bson = require "bson"
local socket = require "socket"
local socketchannel = require "socketchannel"
local skynet = require "skynet"
local driver = require "mongo.driver"
local md5 = require "md5"
local rawget = rawget
local assert = assert
local bson_encode = bson.encode
local bson_encode_order = bson.encode_ord... | mit |
FizzerWL/ExampleMods | RandomStartingCitiesMod/Utilities.lua | 3 | 1934 |
function NewIdentity()
local data = Mod.PublicGameData;
local ret = data.Identity or 1;
data.Identity = ret + 1;
Mod.PublicGameData = data;
return ret;
end
function Dump(obj)
if obj.proxyType ~= nil then
DumpProxy(obj);
elseif type(obj) == 'table' then
DumpTable(obj);
else
print('Dump ' .. type(obj));
e... | mit |
FizzerWL/ExampleMods | HybridDistributionMod/Utilities.lua | 3 | 1934 |
function NewIdentity()
local data = Mod.PublicGameData;
local ret = data.Identity or 1;
data.Identity = ret + 1;
Mod.PublicGameData = data;
return ret;
end
function Dump(obj)
if obj.proxyType ~= nil then
DumpProxy(obj);
elseif type(obj) == 'table' then
DumpTable(obj);
else
print('Dump ' .. type(obj));
e... | mit |
HannesTuhkala/saitohud | src/SaitoHUD/lua/saitohud/vgui/DListView_CheckboxLine.lua | 3 | 1940 | -- SaitoHUD
-- Copyright (c) 2009-2010 sk89q <http://www.sk89q.com>
-- Copyright (c) 2010 BoJaN
--
-- This program 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 2 of the License, or
... | gpl-2.0 |
ElectricPrism/stargus | scripts/zerg/construction.lua | 1 | 5259 | -- FIXME: need support for animations while building
DefineConstruction("construction-zerg", {
Files = {
File = "zerg/units/building morph.png",
Size = {160, 192}},
ShadowFiles = {
File = "zerg/units/building morph shadow.png",
Size = {160, 192}},
Constructions = {
{Percent = 0,
File = "co... | gpl-2.0 |
yangboz/petulant-octo-dubstep | HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/DisplayManager.lua | 1 | 3623 |
--------------------------------
-- @module DisplayManager
-- @extend Ref
--------------------------------
-- @function [parent=#DisplayManager] getDisplayRenderNode
-- @param self
-- @return Node#Node ret (return value: cc.Node)
--------------------------------
-- @function [parent=#DisplayManager] getAnch... | mit |
adminerror/00000000 | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
kobakei/CCLocalNotification | cocos2d/external/lua/luajit/src/dynasm/dasm_mips.lua | 74 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | apache-2.0 |
tltneon/NutScript | gamemode/core/derma/cl_intro.lua | 5 | 3882 | local gradient = nut.util.getMaterial("vgui/gradient-r.vtf")
local glow = surface.GetTextureID("particle/Particle_Glow_04_Additive")
local PANEL = {}
function PANEL:Init()
if (IsValid(nut.gui.intro)) then
nut.gui.intro:Remove()
end
nut.gui.intro = self
self:SetSize(ScrW(), ScrH())
self:SetZPos(9999)
... | mit |
EvPowerTeam/EV_OP | feeds/luci/applications/luci-openvpn/luasrc/model/cbi/openvpn-advanced.lua | 71 | 20039 | --[[
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... | gpl-2.0 |
kengonakajima/luvit-mysql | test.lua | 7 | 3819 | -- make it looks like node-mysql semantics
local timer = require( "timer" ) -- luvit built-in
local MySQL = require( "./mysql" )
local client = MySQL.createClient( { database="test",user="passtestuser",port=3306,password="hoge", logfunc=nil } )
client:ping( function() print("ping received") end)
client:query(... | apache-2.0 |
yangboz/petulant-octo-dubstep | HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/PhysicsShape.lua | 1 | 4440 |
--------------------------------
-- @module PhysicsShape
-- @extend Ref
--------------------------------
-- @function [parent=#PhysicsShape] getFriction
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- @function [parent=#PhysicsShape] setGroup
-- @param se... | mit |
telergybot/telergy2 | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
mortezaand/tgpragramer | mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
alireza1998/mega | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
badboyam/boti | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
sundream/gamesrv | script/card/neutral/card261016.lua | 1 | 2315 | --<<card 导表开始>>
local super = require "script.card.neutral.card161016"
ccard261016 = class("ccard261016",super,{
sid = 261016,
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 |
yangboz/petulant-octo-dubstep | HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/LabelBMFont.lua | 1 | 3545 |
--------------------------------
-- @module LabelBMFont
-- @extend Node,LabelProtocol,BlendProtocol
--------------------------------
-- @function [parent=#LabelBMFont] setLineBreakWithoutSpace
-- @param self
-- @param #bool bool
--------------------------------
-- @function [parent=#LabelBMFont] getBlendFun... | mit |
sundream/gamesrv | script/card/golden/card112002.lua | 1 | 2492 | --<<card 导表开始>>
local super = require "script.card.init"
ccard112002 = class("ccard112002",super,{
sid = 112002,
race = 1,
name = "炎爆术",
type = 101,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 0,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
magic_hurt_add... | gpl-2.0 |
rastin45/waqer12 | plugins/sudo.lua | 359 | 1878 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' yo... | gpl-2.0 |
spark0511/revolt_bot | plugins/sudo.lua | 359 | 1878 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' yo... | gpl-2.0 |
REZATITAN/AntiSpamBot | plugins/ingroup.lua | 45 | 56305 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
kengonakajima/luvit-mysql | query.lua | 2 | 4271 | --[[
Copyright 2012 Kengo Nakajima. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | apache-2.0 |
ctozlm/Dato-Core | src/unity/python/graphlab/lua/pl/MultiMap.lua | 36 | 1458 | --- MultiMap, a Map which has multiple values per key.
--
-- Dependencies: `pl.utils`, `pl.class`, `pl.tablex`, `pl.List`
-- @classmod pl.MultiMap
local classes = require 'pl.class'
local tablex = require 'pl.tablex'
local utils = require 'pl.utils'
local List = require 'pl.List'
local index_by,tsort,concat = tablex.... | agpl-3.0 |
siggame/Joueur.lua | games/spiders/player.lua | 1 | 3213 | -- Player: A player in this game. Every AI controls one player.
-- DO NOT MODIFY THIS FILE
-- Never try to directly create an instance of this class, or modify its member variables.
-- Instead, you should only be reading its variables and calling its functions.
local class = require("joueur.utilities.class")
local Ga... | mit |
FizzerWL/ExampleMods | TanksMod/Server_AdvanceTurn.lua | 1 | 2927 | require('Utilities');
function Server_AdvanceTurn_Order(game, order, result, skipThisOrder, addNewOrder)
if (order.proxyType == 'GameOrderCustom' and startsWith(order.Payload, 'BuyTank_')) then --look for the order that we inserted in Client_PresentCommercePurchaseUI
--in Client_PresentMenuUI, we stuck the ter... | mit |
rhadamants/TowerScripts | TyrrWarrior.lua | 1 | 11149 | ShowToClient("Aviso","Ativando o Guerreiro Tyrr...");
Eu = GetMe();
----------------------------------------------------------------------------------------------
----Apresentação
----------------------------------------------------------------------------------------------
if(Eu:GetClass() == 140) then
ShowToClien... | gpl-2.0 |
SeyedKia/alpha | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | agpl-3.0 |
sami2448/set | plugins/feedback.lua | 2 | 1034 | do
function run(msg, matches)
local fuse = '#DearAdmin😜 we have recived a new feedback just now : #newfeedback \n\nID▶️ : ' .. msg.from.id .. '\n\nName▶️ : ' .. msg.from.print_name ..'\n\nusername▶️ :@ ' .. msg.from.username ..'\n\n🅿️♏️ :\n\n\n' .. matches[1]
local fuses = '!printf user#id' .. msg.from.id
l... | gpl-2.0 |
dmccuskey/dmc-websockets | examples/dmc-websockets-autobahntestsuite/dmc_corona/dmc_sockets.lua | 14 | 11066 | --====================================================================--
-- dmc_corona/dmc_sockets.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2014-2015 David McCuskey
Permission is hereby g... | mit |
ominux/skia | tools/lua/bbh_filter.lua | 207 | 4407 | -- bbh_filter.lua
--
-- This script outputs info about 'interesting' skp files,
-- where the definition of 'interesting' changes but is roughly:
-- "Interesting for bounding box hierarchy benchmarks."
--
-- Currently, the approach is to output, in equal ammounts, the names of the files that
-- have most commands, and t... | apache-2.0 |
icrawler/LoveNoise | main.lua | 1 | 1406 | local modules = require 'lovenoise.modules'
local lnoise = love.math.noise
function love.load(dt)
-- all the good fun stuff
-- Creates a new Simplex Noise module with seed 20
local testNoise1 = modules.Simplex:new(20)
-- Sets its frequency to 0.01
testNoise1:setFrequency(0.01)
-- Creates a new Simplex Noise ... | mit |
YurongYou/rlTORCS | train_rl/async/AgentMaster.lua | 1 | 8759 | -- luacheck: globals log __threadid logroll
local classic = require 'classic'
local threads = require 'threads'
local tds = require 'tds'
-- local signal = require 'posix.signal'
local Model = require 'Model'
-- local AttentionAgent = require 'async/AttentionAgent'
-- local ValidationAgent = require 'async/ValidationAg... | gpl-3.0 |
bjornswenson/RxLua | src/operators/delay.lua | 2 | 1197 | local Observable = require 'Observable'
local Subscription = require 'Subscription'
local util = require 'util'
--- Returns a new Observable that produces the values of the original delayed by a time period.
-- @arg {number|function} time - An amount in milliseconds to delay by, or a function which returns
-- ... | mit |
jxskiss/orange | orange/store/mysql_db.lua | 3 | 2999 | local tinsert = table.insert
local type = type
local ipairs = ipairs
local setmetatable = setmetatable
local ngx_quote_sql_str = ngx.quote_sql_str
local mysql = require("resty.mysql")
local utils = require("orange.utils.utils")
local DB = {}
function DB:new(conf)
local instance = {}
instance.conf = conf
... | mit |
teasquat/bestfriend | kit/lib/konami.lua | 1 | 1968 | local lovemi = {name = "lovemi", instances = {}}
lovemi.__index = lovemi
function lovemi.add(f)
assert(f and f.pattern, "Pattern required")
local lovemiObj = f
setmetatable(lovemiObj, lovemi)
lovemiObj.enabled = true
lovemiObj.active = false
lovemiObj.time, lovemiObj.current = 0, 0
table.insert(love... | mit |
princess-selena/pricess-selena2 | plugins/id.lua | 3 | 1651 | do function run(msg, matches)
if matches[1]:lower() == 'id' and is_sudo(msg) then
return "[Sudo]️\n#Your ID : "..msg.from.id.."\n#Your name : "..msg.from.print_name.."\n#Group name : "..msg.to.title.."\n#Group ID : "..msg.to.id.."\n#msg ID : "..msg.id.."\n#Your msg : "..msg.text.."\n#Username : @"..msg.from.username
en... | gpl-2.0 |
tltneon/NutScript | gamemode/core/derma/cl_classes.lua | 2 | 4781 |
local PANEL = {}
function PANEL:Init()
self:SetTall(64)
local function assignClick(panel)
panel.OnMousePressed = function()
self.pressing = -1
self:onClick()
end
panel.OnMouseReleased = function()
if (se... | mit |
yangboz/petulant-octo-dubstep | HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/SpriteFrameCache.lua | 6 | 2016 |
--------------------------------
-- @module SpriteFrameCache
-- @extend Ref
--------------------------------
-- overload function: addSpriteFramesWithFile(string, string)
--
-- overload function: addSpriteFramesWithFile(string)
--
-- overload function: addSpriteFramesWithFile(string, cc.Texture2D)... | mit |
sundream/gamesrv | script/card/neutral/card266015.lua | 1 | 2221 | --<<card 导表开始>>
local super = require "script.card.neutral.card166015"
ccard266015 = class("ccard266015",super,{
sid = 266015,
race = 6,
name = "芬克·恩霍尔",
type = 202,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 1,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
... | gpl-2.0 |
sundream/gamesrv | script/card/fire/card142003.lua | 1 | 2505 | --<<card 导表开始>>
local super = require "script.card.init"
ccard142003 = class("ccard142003",super,{
sid = 142003,
race = 4,
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 |
magnum357i/Magnum-s-Aegisub-Scripts | automation/autoload/mag.translation_status.lua | 1 | 12650 | function lang_switch_keys(lang)
local in_lang = {}
local langs =
{
[1] = {lang_key = "tr", lang_name = "Türkçe", script_name = "Çeviri Durumu"},
[2] = {lang_key = "en", lang_name = "English", script_name = "Translation Status"}
}
local lang_list = {}
local script_name_list = {}
for i = 1, #langs do
... | mit |
sami2448/set | plugins/isup.lua | 741 | 3095 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
EvPowerTeam/EV_OP | feeds/packages/lang/luaexpat/files/compat-5.1r5/compat-5.1.lua | 251 | 6391 | --
-- Compat-5.1
-- Copyright Kepler Project 2004-2006 (http://www.keplerproject.org/compat)
-- According to Lua 5.1
-- $Id: compat-5.1.lua,v 1.22 2006/02/20 21:12:47 carregal Exp $
--
_COMPAT51 = "Compat-5.1 R5"
local LUA_DIRSEP = '/'
local LUA_OFSEP = '_'
local OLD_LUA_OFSEP = ''
local POF = 'luaopen_'
local LUA_PA... | gpl-2.0 |
mortezaand/tgpragramer | isup.lua | 741 | 3095 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
spark0511/revolt_bot | plugins/channels.lua | 356 | 1732 | -- 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 |
weera00/nodemcu-firmware | lua_modules/email/imap.lua | 81 | 6275 | ---
-- Working Example: https://www.youtube.com/watch?v=PDxTR_KJLhc
-- IMPORTANT: run node.compile("imap.lua") after uploading this script
-- to create a compiled module. Then run file.remove("imap.lua")
-- @name imap
-- @description An IMAP 4rev1 module that can be used to read email.
-- Tested on NodeMCU 0.9.5 buil... | mit |
jxskiss/orange | orange/orange.lua | 3 | 5265 | local ipairs = ipairs
local table_insert = table.insert
local table_sort = table.sort
local pcall = pcall
local require = require
require("orange.lib.globalpatches")()
local utils = require("orange.utils.utils")
local config_loader = require("orange.utils.config_loader")
local dao = require("orange.store.dao")
local H... | mit |
sev-/scummvm | devtools/create_ultima/files/ultima6/scripts/md/init.lua | 18 | 10512 | local lua_file = nil
--load common functions
lua_file = nuvie_load("common/common.lua"); lua_file();
OBJLIST_OFFSET_HOURS_TILL_NEXT_HEALING = 0x1cf2
OBJLIST_OFFSET_PREV_PLAYER_X = 0x1d03
OBJLIST_OFFSET_PREV_PLAYER_Y = 0x1d04
OBJLIST_OFFSET_1D22_UNK = 0x1d22
OBJLIST_OFFSET_DREAM_... | gpl-3.0 |
rastin45/waqer12 | plugins/torrent_search.lua | 411 | 1622 | --[[ NOT USED DUE TO SSL ERROR
-- See https://getstrike.net/api/
local function strike_search(query)
local strike_base = 'http://getstrike.net/api/v2/torrents/'
local url = strike_base..'search/?phrase='..URL.escape(query)
print(url)
local b,c = http.request(url)
print(b,c)
local search = json:decode(b)
v... | gpl-2.0 |
BrokenROM/external_skia | resources/slides.lua | 68 | 9898 | gShowBounds = false
gUseBlurInTransitions = false
gPath = "/skia/trunk/resources/"
function load_file(file)
local prev_path = package.path
package.path = package.path .. ";" .. gPath .. file .. ".lua"
require(file)
package.path = prev_path
end
load_file("slides_utils")
gSlides = parse_file(io.open("... | bsd-3-clause |
rm-code/PZ-UI-Overhaul | pzuioverhaul/media/lua/client/uio/BaseElement.lua | 1 | 7485 | -- TODO These MUST go elsewhere TODO
-- These are hotfixes for missing functionality in Kahlua
if table.pack == nil then
table.pack = function(...)
return { n = select("#", ...), ... }
end
end
if table.unpack == nil then
table.unpack = function(t, i)
i = i or 1;
if t[i] then
return t[i], unpack(t, i + 1)
... | mit |
ElectricPrism/stargus | scripts/terran/units.lua | 1 | 5569 | Load("scripts/terran/unit-terran-academy.lua")
Load("scripts/terran/unit-terran-armory.lua")
Load("scripts/terran/unit-terran-barracks.lua")
Load("scripts/terran/unit-terran-bunker.lua")
Load("scripts/terran/unit-terran-command-center.lua")
Load("scripts/terran/unit-terran-engineering-bay.lua")
Load("scripts/terran/uni... | gpl-2.0 |
FizzerWL/ExampleMods | DiplomacyMod/Client.lua | 1 | 1054 | require('Utilities');
function DoProposalPrompt(game, proposal)
local otherPlayer = game.Game.Players[proposal.PlayerOne].DisplayName(nil, false);
UI.PromptFromList(otherPlayer .. ' has proposed an alliance with you for ' .. proposal.NumTurns .. ' turns. Do you accept?', { AcceptProposalBtn(game, proposal), ... | mit |
movb/Algorithm-Implementations | Sieve_of_Eratosthenes/Lua/Yonaba/sieve_test.lua | 27 | 1175 | -- Tests for sieve.lua
local sieve = require 'sieve'
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 statu... | mit |
dvr333/Zero-K | LuaRules/Gadgets/Include/GetNukeIntercepted.lua | 6 | 1569 | local atan = math.atan
local cos = math.cos
local sin = math.sin
local pi = math.pi
local sqrt = math.sqrt
-- Unit (antinuke) position, Projectile (nuke silo) position, Target position
local function GetNukeIntercepted(ux, uz, px, pz, tx, tz, radiusSq)
-- Translate projectile position to the origin.
ux, uz, tx, tz,... | gpl-2.0 |
camchenry/super_shooter | states/options.lua | 1 | 14370 | options = {}
-- this is out here because it needs to be accessible before options:init() is called
options.file = 'config.txt'
options.version = 2
function options:init()
self.leftAlign = 75
end
function options:enter()
local config = nil
if not love.filesystem.exists(self.file) then
config = self:getDefaultConf... | mit |
m241dan/darkstar | scripts/globals/weaponskills/spinning_attack.lua | 9 | 1355 | -----------------------------------
-- Spinning Attack
-- Hand-to-Hand weapon skill
-- Skill Level: 150
-- Delivers an area attack. Radius varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Flame Gorget & Thunder Gorget.
-- Aligned with the Flame Belt & Thunder Belt.
-- Element: None
-- Modifiers: STR... | gpl-3.0 |
sigurdfdragon/wesnoth-fork | data/campaigns/World_Conquest/lua/map/generator/maritime.lua | 7 | 6120 |
local function generate(length, villages, castle, iterations, size, players, island)
local res = wct_generator_settings_arguments( length, villages, castle, iterations, size, players, island)
res.max_lakes=90
res.min_lake_height=250
res.lake_size=60
res.river_frequency=100
res.temperature_size=7
res.roads=25
... | gpl-2.0 |
77shahriar77/ALFA | plugins/admin.lua | 53 | 2402 | 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(rec... | gpl-2.0 |
m241dan/darkstar | scripts/zones/Al_Zahbi/npcs/Eumoa-Tajimoa.lua | 13 | 1041 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Eumoa-Tajimoa
-- Type: Standard NPC
-- @zone: 48
-- @pos 19.275 -1 55.182
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------... | gpl-3.0 |
diizzyy/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/ltq-dsl.lua | 17 | 4392 | local function scrape()
local fd = io.popen("/etc/init.d/dsl_control lucistat")
local dsl_func = loadstring(fd:read("*a"))
fd:close()
if not dsl_func then
return
end
local dsl_stat = dsl_func()
local dsl_line_attenuation = metric("dsl_line_attenuation_db", "gauge")
local dsl_signal_attenuation = ... | gpl-2.0 |
smikail/arumbash | plugins/inpm.lua | 33 | 2992 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
santssoft/darkstar | scripts/globals/mobskills/deadeye.lua | 12 | 1270 | ---------------------------------------------
-- Deadeye
-- Family: Qiqurn
-- Description: Lowers the defense and magical defense of enemies within range.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown
-- Notes: Used only by certain Notorious Monsters. Strong dsp.effect.
------------------... | gpl-3.0 |
ducseb/domoticz | scripts/dzVents/examples/check dead devices by desc.lua | 25 | 1272 | --Check dead device using their description
--This allow to configure device to be checked directly in domoticz GUI by accessing to device details and add "CDA:<delayInMinute>"
--You have to active http fetching !
return {
active = true,
on = {
['timer'] = {
'every 60 minutes'
}
},
execu... | gpl-3.0 |
santssoft/darkstar | scripts/zones/Metalworks/npcs/Mighty_Fist.lua | 9 | 2275 | -----------------------------------
-- Area: Metalworks
-- NPC: Mighty Fist
-- Starts & Finishes Quest: The Darksmith (R)
-- Involved in Quest: Dark Legacy
-- !pos -47 2 -30 237
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/shop")... | gpl-3.0 |
santssoft/darkstar | scripts/zones/Port_Windurst/npcs/Degong.lua | 12 | 1291 | -----------------------------------
-- Area: Port Windurst
-- NPC: Degong
-- Type: Fishing Synthesis Image Support
-- !pos -178.400 -3.835 60.480 240
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/crafting");
local ID = require("scripts/zones/Port_Windurst/IDs");
------... | gpl-3.0 |
santssoft/darkstar | scripts/globals/weaponskills/dragon_kick.lua | 10 | 1570 | -----------------------------------
-- Dragon Kick
-- Hand-to-Hand weapon skill
-- Skill Level: 225
-- Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Breeze Gorget & Thunder Gorget.
-- Aligned with the Breeze Belt & Thunder Belt.
-- Element: None
-- Modifiers: STR:50% VIT:50%
-- 100%TP ... | gpl-3.0 |
account3r2/EZTCP | eztcp.lua | 1 | 4008 | --[[========================================================================\\
|| EZTCP - A library to simplify TCP networking. ||
|| Copyright (C) 2015 Niko Geil. ||
|| ||
||... | gpl-3.0 |
santssoft/darkstar | scripts/zones/Lower_Jeuno/npcs/Vola.lua | 9 | 2825 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Vola
-- Starts and Finishes Quest: Fistful of Fury
-- Involved in Quests: Beat Around the Bushin (before the quest)
-- !pos 43 3 -45 245
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
require("... | gpl-3.0 |
m241dan/darkstar | scripts/zones/Southern_San_dOria/npcs/Lanqueron.lua | 13 | 1569 | -----------------------------------
-- Area: Southern San dOria
-- NPC: Lanqueron
-- Type: Item Deliverer NPC
-- Involved in Quest: Lost Chick
-- @zone: 230
-- @pos 0.335 1.199 -28.404
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
DylanM-Marshall/FIDDLE | _deprecated/TORCHmodels/models/NSmodel.lua | 2 | 1975 | --[[
NETseq models
]]--
require 'torch' -- torch
require 'nngraph' -- provides all sorts of trainable modules/layers
----------------------------------------------------------------------
----------------------------------------------------------------------
print '==> define parameters'
------------------... | gpl-3.0 |
tritao/premake-core | src/base/rule.lua | 14 | 3133 | ---
-- base/rule.lua
-- Defines rule sets for generated custom rule files.
-- Copyright (c) 2014 Jason Perkins and the Premake project
---
local p = premake
p.rule = p.api.container("rule", p.global)
local rule = p.rule
---
-- Create a new rule container instance.
---
function rule.new(name)
local self = p.... | bsd-3-clause |
santssoft/darkstar | scripts/globals/mobskills/bomb_toss_suicide.lua | 10 | 1104 | ---------------------------------------------------
-- Bomb Toss - Suicide
-- Throws a bomb at an enemy. Sometimes backfires.
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts/globals/status")
------------------------------------... | gpl-3.0 |
wuxianliang/treelstm | util/Tree.lua | 9 | 1126 | --[[
A basic tree structure.
--]]
local Tree = torch.class('treelstm.Tree')
function Tree:__init()
self.parent = nil
self.num_children = 0
self.children = {}
end
function Tree:add_child(c)
c.parent = self
self.num_children = self.num_children + 1
self.children[self.num_children] = c
end
function Tre... | gpl-2.0 |
m241dan/darkstar | scripts/zones/Port_San_dOria/npcs/Ambleon.lua | 13 | 1061 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Ambleon
-- Type: NPC World Pass Dealer
-- @zone: 232
-- @pos 71.622 -17 -137.134
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
---... | gpl-3.0 |
dpaiton/OpenPV | projects/depthSCANN/input/depthInference/ATA_validate_LCA.lua | 2 | 6847 | -------------------------------------------------------------------
-- ATA validate for LCA
--
-- Sheng Lundquist 6/9/15
--
-- Implements training of ATA method with SCANN model as described in
-- Lundquist et al., "Emergence of Depth-Tuned Hidden Units Through
-- Sparse Encoding of Binocular Images"
------------------... | epl-1.0 |
m241dan/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Luck_Rune.lua | 13 | 1050 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Luck Rune
-- Involved in Quest: Mhaura Fortune
-- @pos 573.245 24.999 199.560 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-------------------------------------
require("scripts/zon... | gpl-3.0 |
palmettos/test | modules/admin-full/luasrc/model/cbi/admin_system/startup.lua | 67 | 2805 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2012 Jo-Philipp Wich <xm@subsignal.org>
Copyright 2010 Manuel Munz <freifunk at somakoma dot de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with t... | apache-2.0 |
santssoft/darkstar | scripts/zones/Davoi/npcs/Quemaricond.lua | 9 | 1387 | -----------------------------------
-- Area: Davoi
-- NPC: Quemaricond
-- Involved in Mission: Infiltrate Davoi
-- !pos 23 0.1 -23 149
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/keyitems");
local ID = require("scripts/zones/Davoi/IDs");
require("scripts/globals/pa... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.