repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
25A0/Quadtastic
Quadtastic/http_thread.lua
1
1271
-- This thread accepts incoming requests on one channel, and pushes back responses -- on another channel. -- These two channels can be passed as var args, or will otherwise default to -- "http_requests" and "http_responses". -- Requests need to be a single URL. This module currently only supports GET -- requests. local...
mit
Dingf/Icewrack
game/dota_addons/icewrack/scripts/vscripts/abilities/drow_ranger/iw_drow_ranger_bullseye.lua
1
2202
iw_drow_ranger_bullseye = class({}) function iw_drow_ranger_bullseye:OnAbilityPhaseStart() local hEntity = self:GetCaster() hEntity:TriggerExtendedEvent(IW_MODIFIER_EVENT_ON_PRE_ATTACK_EVENT) return true end function iw_drow_ranger_bullseye:CastFilterResultTarget(hTarget) if IsServer() then local hEntity = self...
mit
dacrybabysuck/darkstar
scripts/commands/completemission.lua
11
1747
--------------------------------------------------------------------------------------------------- -- func: completemission <logID> <missionID> <player> -- desc: Completes the given mission for the target player, if that mission is currently active. ---------------------------------------------------------------------...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/mobskills/promyvion_brume.lua
11
1031
--------------------------------------------- -- Promyvion Brume -- -- Description: AoE Additional effect: poison -- Type: Magical Water -- Utsusemi/Blink absorb: Wipes shadows -- Range: 10' cone -- Notes: Additional effect can be removed with Poisona. --------------------------------------------- require("script...
gpl-3.0
dcourtois/premake-core
binmodules/luasocket/src/tp.lua
51
3766
----------------------------------------------------------------------------- -- Unified SMTP/FTP subsystem -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- -- Declare...
bsd-3-clause
dacrybabysuck/darkstar
scripts/globals/weaponskills/leg_sweep.lua
10
1767
----------------------------------- -- Leg Sweep -- Polearm weapon skill -- Skill Level: 100 -- Stuns enemy. Chance of stunning varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Thunder Gorget. -- Aligned with the Thunder Belt. -- Element: None -- Modifiers: STR:30% -- 100%TP 200%TP 300%TP -- 1...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/items/carbuncles_pole.lua
12
1361
----------------------------------------- -- ID: 18581 -- Item: Carbuncle's Pole -- Item Effect: Restores 160-220 HP ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") function onAdditionalEffect(player,target,damage) local ch...
gpl-3.0
KittyCookie/skynet
examples/agent.lua
65
2082
local skynet = require "skynet" local netpack = require "netpack" local socket = require "socket" local sproto = require "sproto" local sprotoloader = require "sprotoloader" local WATCHDOG local host local send_request local CMD = {} local REQUEST = {} local client_fd function REQUEST:get() print("get", self.what) ...
mit
keviner2004/shoot-em-up
levels/myLevel/MyEnemy3.lua
1
1474
local Enemy = require("Enemy") local Sprite = require("Sprite") local MyEnemy = {} MyEnemy.new = function(options) local myEnemy = Enemy.new(options) local part1 = Sprite.new("Ships/Parts/Cockpits/Bases/18") local part2 = Sprite.new("Ships/Parts/Cockpits/Glass/25") --left wing local part3 = Sprite...
mit
shayanchabok007/antispam_yogob
plugins/btc.lua
289
1375
-- See https://bitcoinaverage.com/api local function getBTCX(amount,currency) local base_url = 'https://api.bitcoinaverage.com/ticker/global/' -- Do request on bitcoinaverage, the final / is critical! local res,code = https.request(base_url..currency.."/") if code ~= 200 then return nil end local data = j...
gpl-2.0
eagle14/kia12
plugins/btc.lua
289
1375
-- See https://bitcoinaverage.com/api local function getBTCX(amount,currency) local base_url = 'https://api.bitcoinaverage.com/ticker/global/' -- Do request on bitcoinaverage, the final / is critical! local res,code = https.request(base_url..currency.."/") if code ~= 200 then return nil end local data = j...
gpl-2.0
dacrybabysuck/darkstar
scripts/globals/moghouse.lua
9
12198
-- -- Mog House related functions -- require("scripts/globals/npc_util") require("scripts/globals/quests"); require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/titles") require("scripts/globals/zone") ------------------------------------ -- Mog Locker constants --------------...
gpl-3.0
Dingf/Icewrack
game/dota_addons/icewrack/scripts/vscripts/mechanics/attributes.lua
1
3049
--[[ Icewrack Attributes Values listed are per point of that attribute STRENGTH (STR): *Increases HP by 2 *Increases Physical damage dealt with attacks by 1% *Increases carry capacity by 1 CONSTITUTION (CON): *Increases HP by 5 *Increases SP by 1 ...
mit
Dingf/Icewrack
game/dota_addons/icewrack/scripts/vscripts/custom_init.lua
1
4782
ICEWRACK_GAME_MODE_ID = 538255698 for k in string.gmatch(package.path, "[%w/\\.: _?()]+") do if string.find(k, "common\\dota 2 beta\\game\\bin\\win64\\lua\\%?.lua") ~= nil then ICEWRACK_GAME_DIR = string.gsub(k, "common\\dota 2 beta\\game\\bin\\win64\\lua\\%?.lua", "workshop\\content\\570\\" .. ICEWRACK_GAME_MODE_ID...
mit
keviner2004/shoot-em-up
Enemy.lua
1
9618
local Enemy = {} local move = require("move") local Item = require("Item") local GameObject = require("GameObject") local Effect = require("effects.StarExplosion2") --local Effect = require("effects.PooledStarExplosion") local Sprite = require("Sprite") local sfx = require("sfx") local ScaleText = require("ui.ScaleText...
mit
dacrybabysuck/darkstar
scripts/zones/RuLude_Gardens/npcs/_6r8.lua
9
1986
----------------------------------- -- Area: Ru'Lud Gardens -- Door: Windurstian Ambassador -- Windurst Missions 3.3 "A New Journey" and 4.1 "Magicite" -- !pos 31 9 -22 243 ----------------------------------- local ID = require("scripts/zones/RuLude_Gardens/IDs") require("scripts/globals/keyitems") require("scripts/glo...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Miah_Riyuh.lua
9
4768
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Miah Riyuh -- !pos 5.323 -2 37.462 94 ----------------------------------- local ID = require("scripts/zones/Windurst_Waters_[S]/IDs") require("scripts/globals/keyitems") require("scripts/globals/missions") require("scripts/globals/settings") requ...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Yhoator_Jungle/Zone.lua
9
2255
----------------------------------- -- -- Zone: Yhoator_Jungle (124) -- ----------------------------------- local ID = require("scripts/zones/Yhoator_Jungle/IDs") require("scripts/globals/icanheararainbow") require("scripts/globals/chocobo_digging") require("scripts/globals/conquest") require("scripts/globals/chocobo")...
gpl-3.0
turingbot/B1
plugins/del.lua
1
1619
local function delmsg (i,naji) msgs = i.msgs for k,v in pairs(naji.messages_) do msgs = msgs - 1 tdcli.deleteMessages(v.chat_id_,{[0] = v.id_}, dl_cb, cmd) if msgs == 1 then tdcli.deleteMessages(naji.messages_[0].chat_id_,{[0] = naji.messages_[0].id_}, dl_cb, cmd) ...
gpl-3.0
aliaz001/aliaz
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-3.0
dkogan/notion.xfttest
contrib/scripts/weather.lua
3
11827
-- Authors: Andrea Rossato <arossato@istitutocolli.org> -- License: GPL, version 2 or later -- Last Changed: 2006-07-07 -- -- weather.lua -- -- NOTE: this script should be rewritten as a statusd script -- -- weather.lua: an Ion3 applet for displaying weather information -- INTRODUCTION -- I discovered Ion last week...
lgpl-2.1
KittyCookie/skynet
lualib/sharedata/corelib.lua
64
2453
local core = require "sharedata.core" local type = type local next = next local rawget = rawget local conf = {} conf.host = { new = core.new, delete = core.delete, getref = core.getref, markdirty = core.markdirty, incref = core.incref, decref = core.decref, } local meta = {} local isdirty = core.isdirty local...
mit
keviner2004/shoot-em-up
bullets/Missile.lua
1
2307
local Enemy = require("Enemy") local Sprite = require("Sprite") local GameObject = require("GameObject") local util = require("util") local sfx = require("sfx") local Missile = {} local move = require "move" Missile.new = function (options) local sprite = Sprite.new("Missiles/4") local missile = Enemy.new() ...
mit
keviner2004/shoot-em-up
Background.lua
1
2489
local gameConfig = require("gameConfig") local Sprite = require("Sprite") local Backgrounds = {} Backgrounds.new = function(speed) local backgrounds = display.newGroup() --local tile = display.newImage("imgs/backgrounds/purple.png") local tile = Sprite["tiles"].new("purple") tile.alpha = 0 backgrou...
mit
nalkaro/CppSharp
src/CppParser/Bindings/premake4.lua
5
1613
project "CppSharp.Parser.Gen" kind "ConsoleApp" language "C#" SetupManagedProject() debugdir "." files { "ParserGen.cs", "*.lua" } links { "CppSharp", "CppSharp.AST", "CppSharp.Generator", "System.Core" } SetupParser() project "CppSharp.Parser.CSharp" kind "SharedLib" language "C#" SetupM...
mit
dacrybabysuck/darkstar
scripts/zones/Port_San_dOria/npcs/Thierride.lua
9
2198
----------------------------------- -- Area: Port San d'Oria -- NPC: Thierride -- Type: Quest Giver -- !pos -67 -5 -28 232 -- -- Starts and Finishes Quest: A Taste For Meat ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"); require("scripts/globals/titles"); lo...
gpl-3.0
andeandr100/Crumbled-World
Lua/Menu/selectedMenu.lua
1
6767
require("Game/builderUpgrader.lua") require("Game/targetArea.lua") require("Menu/MainMenu/mainMenuStyle.lua") require("Menu/settings.lua") require("Menu/selectedTowerMenu.lua") require("Menu/selectedNpcMenu.lua") --this = SceneNode() function instalForm() str = "" local panelSpacing = PanelSize(Vec2(0.005),Vec2(1)) ...
mit
wongsyrone/packages-1
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua
20
3272
local ubus = require "ubus" local bit = require "bit" local function get_wifi_hostapd_interfaces(u) local ubuslist = u:objects() local interfaces = {} for _,net in ipairs(ubuslist) do if net.find(net,"hostapd.") then table.insert(interfaces, net) end end return interfaces end local function ...
gpl-2.0
TheAncientGoat/cCCommunity-L-VE-Project-Base
goo/objects/textinput.lua
1
6139
--------------- -- TEXT INPUT --------------- goo.textinput = class('goo text input', goo.object) function goo.textinput:initialize( parent ) super.initialize(self,parent) self.text = '' self.textXoffset = 0 self.focus = false self.blink = false self.blinkRate = self.style.blinkRate self.blinkTime = love.timer....
mit
fakechris/Atlas
lib/load-multi.lua
39
13282
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is dis...
gpl-2.0
extreme01/extreme
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
shayanchabok007/antispam_yogob
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
shahabsaf12/x
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
aboshosho/aboshosho
plugins/info.lua
3
1116
--[[ $ :) -- - ( #ابو_شهوده) - -- $ :) -- - ( @abo_shosho98) - -- $ :) --Channel-( @aboaloshbot )-- $ :) ]]-- do function run(msg, matches) local reply_id = msg['id'] local info = '🈷 - ٱيـۧډيک : '..msg.from.id..'\n' ..'🈶 - مۘعرفک : @'..msg.from.username..'\n' ..'🈸 - ٱسـۧمـک ٲلٲول : '..(msg.from.first_na...
agpl-3.0
ArIaNDeVeLoPeR/IDsearcher
plugins/ingroup.lua
527
44020
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
aqasaeed/xxx
plugins/ingroup.lua
527
44020
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
dacrybabysuck/darkstar
scripts/zones/Carpenters_Landing/npcs/qm8.lua
9
1939
----------------------------------- -- Area: Carpenters' Landing -- NPC: ??? (qm2) -- Involved in Missions: Calm Before the Storm (CoP 7-4) -- !pos 120.615 -5.457 -390.133 2 ----------------------------------- local ID = require("scripts/zones/Carpenters_Landing/IDs") require("scripts/globals/missions") -------------...
gpl-3.0
dcourtois/premake-core
src/tools/dotnet.lua
7
8700
-- -- dotnet.lua -- Interface for the C# compilers, all of which are flag compatible. -- Copyright (c) 2002-2013 Jason Perkins and the Premake project -- local p = premake p.tools.dotnet = {} local dotnet = p.tools.dotnet local project = p.project local config = p.config -- -- Examine the file and project conf...
bsd-3-clause
TheAncientGoat/cCCommunity-L-VE-Project-Base
states/menu.lua
1
3720
Gamestate.menu = Gamestate.new() local state = Gamestate.menu panels = {} panels.name = { 'Play Game', 'Load', 'Options', 'Credits', 'Quit'} function state:enter() goo:load() love.graphics.setBackgroundColor(100,100,100) createButtons() end function state:update(dt) goo:update(dt) anim:update(dt) end function ...
mit
JFonS/Cult
intro.lua
1
1915
local Flux = require "lib/flux" local Vector = require "lib/vector" require "lib/swingers" local Intro = {} local musicSource, localTime, background, offset, titleImg local introTime = 8 local titleTime = 5 local things = {} local myBodyIsReady = false function Intro:init() Score = 0 background = {} backgr...
gpl-3.0
keviner2004/shoot-em-up
sprites/pixelitem.lua
1
10167
-- -- created with TexturePacker (http://www.codeandweb.com/texturepacker) -- -- $TexturePacker:SmartUpdate:a4c4d780b4e1c7e8baec48bd6466abde:a0af7dfc1e50ac503c9e751c7f1b773f:9ff6442ac2770c2259a6383f497108a1$ -- -- local sheetInfo = require("mysheet") -- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI...
mit
fgielow/devenserver
data/migrations/14.lua
55
1362
function onUpdateDatabase() print("> Updating database to version 15 (moving groups to data/XML/groups.xml)") db.query("ALTER TABLE players DROP FOREIGN KEY players_ibfk_2") db.query("DROP INDEX group_id ON players") db.query("ALTER TABLE accounts DROP FOREIGN KEY accounts_ibfk_1") db.query("DROP INDEX group_id ...
gpl-2.0
varunparkhe/Algorithm-Implementations
Pi_Algorithms/Lua/Yonaba/pi_test.lua
26
1962
-- Tests for golden_ratio.lua local PI = require 'pi' 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 stat...
mit
dacrybabysuck/darkstar
scripts/globals/survival_guide_map.lua
8
24915
require("scripts/globals/zone") survivalGuides = { [6] = { zoneId = dsp.zone.WEST_RONFAURE, group = 1, groupMask = 2^0, groupIndex = 1, posX = -451, posY = -19, posZ = -217, posRot = 64 }, [11] = { zoneId = dsp.zone.VALKURM_DUN...
gpl-3.0
dcourtois/premake-core
src/base/semver.lua
22
6948
local semver = { _VERSION = '1.2.1', _DESCRIPTION = 'semver for Lua', _URL = 'https://github.com/kikito/semver.lua', _LICENSE = [[ MIT LICENSE Copyright (c) 2015 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining a copy of tother software ...
bsd-3-clause
Flatlander57/TheImaginedOTClient
modules/gamelib/const.lua
1
5549
-- @docconsts @{ FloorHigher = 0 FloorLower = 15 SkullNone = 0 SkullYellow = 1 SkullGreen = 2 SkullWhite = 3 SkullRed = 4 SkullBlack = 5 SkullOrange = 6 PshieldNone = 0 PshieldWhiteYellow = 1 PshieldWhiteBlue = 2 PshieldBlue = 3 PshieldYellow = 4 PshieldBlueSharedExp = 5 PshieldYellowSharedExp = 6 PshieldBlueNoShare...
mit
fegimanam/uzrep
plugins/vote.lua
615
2128
do local _file_votes = './data/votes.lua' function read_file_votes () local f = io.open(_file_votes, "r+") if f == nil then print ('Created voting file '.._file_votes) serialize_to_file({}, _file_votes) else print ('Values loaded: '.._file_votes) f:close() end return loadfile (_file_votes)()...
gpl-2.0
hussian1997/hk-_bot
plugins/ar-lock-bot.lua
3
2937
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY(@AHMED_ALOBIDE) ▀▄ ▄▀ ▀▄ ▄▀ BY(@hussian_9) ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ (ملف قفل البوتات في المجموعة ▀▄ ...
gpl-2.0
dacrybabysuck/darkstar
scripts/zones/Norg/npcs/Magephaud.lua
9
2026
----------------------------------- -- Area: Norg -- NPC: Magephaud -- Standard Info NPC ----------------------------------- local ID = require("scripts/zones/Norg/IDs") require("scripts/globals/keyitems") require("scripts/globals/quests") require("scripts/globals/titles") ----------------------------------- function...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/items/roll_of_buche_au_chocolat.lua
11
1298
----------------------------------------- -- ID: 5550 -- Item: Roll of Buche Au Chocolat -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +8 -- MP +3% Cap 13 -- Intelligence +2 -- HP Recovered while healing +1 -- MP Recovered while healing +4 -----------------------...
gpl-3.0
andeandr100/Crumbled-World
Lua/Prop/candleBase.lua
1
3464
--this = SceneNode() local CandleFlame = { WallboardParticle = true, color = { color1 = {r = 0.005, g = 0.5, b = 1.4, a = 0.3, size = 0.01, per = 0.00}, --0.005,0.5,1.4,0.30,0.01,0.0 color2 = {r = 0.005, g = 0.5, b = 1.0, a = 0.3, size = 0.022, per = 0.15},--0.005,0.5,1.0,0.30,0.022,0.15 color3 =...
mit
dacrybabysuck/darkstar
scripts/globals/spells/bluemagic/awful_eye.lua
12
1668
----------------------------------------- -- Spell: Awful Eye -- Lowers Strength of enemies within a fan-shaped area originating from the caster -- Spell cost: 32 MP -- Monster Type: Lizards -- Spell Type: Magical (Water) -- Blue Magic Points: 2 -- Stat Bonus: MND+1 -- Level: 46 -- Casting Time: 2.5 seconds -- Recast T...
gpl-3.0
dcourtois/premake-core
tests/workspace/test_objdirs.lua
16
1906
-- -- tests/workspace/test_objdirs.lua -- Test the workspace unique objects directory building. -- Copyright (c) 2012-2015 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("workspace_objdir") -- -- Setup and teardown -- local wks function suite.setup() p.action.set("test"...
bsd-3-clause
dacrybabysuck/darkstar
scripts/zones/VeLugannon_Palace/npcs/Monolith.lua
12
1153
----------------------------------- -- Area: VeLugannon Palace -- NPC: Monolith ----------------------------------- local ID = require("scripts/zones/VeLugannon_Palace/IDs"); require("scripts/globals/status"); function onTrade(player,npc,trade) end; function onTrigger(player,npc) local offset = npc:getID() - ID....
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/weaponskills/starburst.lua
10
1329
----------------------------------- -- Starburst -- Staff weapon skill -- Skill Level: 100 -- Deals light or darkness elemental damage. Damage varies with TP. -- Aligned with the Shadow Gorget & Aqua Gorget. -- Aligned with the Shadow Belt & Aqua Belt. -- Element: Light/Dark (Random) -- Modifiers: : STR:40% MND:40% ...
gpl-3.0
gyoho/cnn-object-recognition
src/SVHN/4_train.lua
1
6771
---------------------------------------------------------------------- -- This script demonstrates how to define a training procedure, -- irrespective of the model/loss functions chosen. -- -- It shows how to: -- + construct mini-batches on the fly -- + define a closure to estimate (a noisy) loss -- function, a...
mit
ArIaNDeVeLoPeR/IDsearcher
plugins/help.lua
2
1654
do -- Returns true if is not empty local function has_usage_data(dict) if (dict.usage == nil or dict.usage == '') then return false end return true end -- Get commands for that plugin local function plugin_help(name) local plugin = plugins[name] if not plugin then return nil end local text = "" if ...
gpl-2.0
22333322/i4bot
plugins/lyrics.lua
695
2113
do local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs' local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5' local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect' local function getInfo(query) print('Getting info of ' .. query) local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY ...
gpl-2.0
dcourtois/premake-core
binmodules/luasocket/gem/test.lua
37
1081
function readfile(n) local f = io.open(n, "rb") local s = f:read("*a") f:close() return s end lf = readfile("t1lf.txt") os.remove("t1crlf.txt") os.execute("lua t1.lua < t1lf.txt > t1crlf.txt") crlf = readfile("t1crlf.txt") assert(crlf == string.gsub(lf, "\010", "\013\010"), "broken") gt = readfile("t2...
bsd-3-clause
fetchbot/nodemcu-firmware
lua_examples/mqtt/mqtt_file.lua
5
1667
-- test transfer files over mqtt. m_dis={} function dispatch(m,t,pl) if pl~=nil and m_dis[t] then m_dis[t](m,pl) end end function pubfile(m,filename) file.close() file.open(filename) repeat local pl=file.read(1024) if pl then m:publish("/topic2",pl,0,0) end until not pl file.close() end -- payload...
mit
Squ34k3rZ/SamsBday
cocos2d/external/lua/luajit/src/src/jit/bcsave.lua
78
18123
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
tung/doomrl
bin/lua/levels/armory.lua
2
6941
-- HELL'S ARMORY -------------------------------------------------------- register_level "hells_armory" { name = "Hell's Armory", entry = "On level @1 he entered Hell's Armory.", level = 9, welcome = "You enter Hell's Armory.", canGenerate = function () return DIFFICULTY > 1 end, OnCompletedCheck = functio...
gpl-2.0
dacrybabysuck/darkstar
scripts/globals/abilities/high_jump.lua
10
2310
----------------------------------- -- Ability: High Jump -- Performs a high jumping attack on enemy. -- Obtained: Dragoon Level 35 -- Recast Time: 2:00 -- Duration: Instant ----------------------------------- require("scripts/globals/weaponskills") require("scripts/globals/settings") require("scripts/globals/status") ...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Yhoator_Jungle/npcs/qm2.lua
11
1441
----------------------------------- -- Area: Yhoator Jungle -- NPC: ??? Used for Norg quest "Stop Your Whining" -- !pos -94.073 -0.999 22.295 124 ----------------------------------- local ID = require("scripts/zones/Yhoator_Jungle/IDs") require("scripts/globals/keyitems") require("scripts/globals/quests") ------------...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/spells/absorb-mnd.lua
12
1561
-------------------------------------- -- Spell: Absorb-MND -- Steals an enemy's mind. -------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------------- function onMagicC...
gpl-3.0
branden/dcos
packages/adminrouter/extra/src/lib/resty/lock.lua
35
4451
-- Copyright (C) Yichun Zhang (agentzh) local ffi = require "ffi" local ffi_new = ffi.new local shared = ngx.shared local sleep = ngx.sleep local shdict_mt local debug = ngx.config.debug local setmetatable = setmetatable local getmetatable = getmetatable local tonumber = tonumber local _M = { _VERSION = '0.04' } lo...
apache-2.0
dcourtois/premake-core
modules/vstudio/_preload.lua
2
3302
-- -- _preload.lua -- Define the makefile action(s). -- Copyright (c) Jason Perkins and the Premake project -- local p = premake local project = p.project -- initialize module. p.modules.vstudio = p.modules.vstudio or {} p.modules.vstudio._VERSION = p._VERSION p.vstudio = p.modules.vstudio -- load actions. i...
bsd-3-clause
dacrybabysuck/darkstar
scripts/zones/Cloister_of_Tides/bcnms/trial_by_water.lua
9
1506
----------------------------------- -- Area: Cloister of Tides -- BCNM: Trial by Water ----------------------------------- local ID = require("scripts/zones/Cloister_of_Tides/IDs") require("scripts/globals/battlefield") require("scripts/globals/keyitems") require("scripts/globals/quests") require("scripts/globals/title...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/items/goblin_pie.lua
11
1395
----------------------------------------- -- ID: 4539 -- Item: goblin_pie -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 12 -- Magic 12 -- Dexterity -1 -- Agility 3 -- Vitality -1 -- Charisma -5 -- Defense % 9 (cap 100) ----------------------------------------- require("scripts/glo...
gpl-3.0
KittyCookie/skynet
examples/share.lua
66
1702
local skynet = require "skynet" local sharedata = require "sharedata" local mode = ... if mode == "host" then skynet.start(function() skynet.error("new foobar") sharedata.new("foobar", { a=1, b= { "hello", "world" } }) skynet.fork(function() skynet.sleep(200) -- sleep 2s skynet.error("update foobar a = 2") ...
mit
aliaz001/aliaz
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
fiallo1313veeee/ARJ
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
Suprcheese/Red-Alerts
prototypes/entities.lua
1
2153
data:extend({ { type = "accumulator", name = "power-sensor", icon = "__Red Alerts__/graphics/PowerSensorIcon.png", flags = {"placeable-neutral", "player-creation"}, minable = {hardness = 0.2, mining_time = 0.5, result = "power-sensor"}, max_health = 100, corpse = "small-remnants", collision_bo...
mit
dcourtois/premake-core
tests/_tests.lua
4
1558
return { -- Base API tests "test_string.lua", "base/test_aliasing.lua", "base/test_binmodules.lua", "base/test_configset.lua", "base/test_context.lua", "base/test_criteria.lua", "base/test_detoken.lua", "base/test_include.lua", "base/test_module_loader.lua", "base/test_option.lua", "base/test_os.lua", "bas...
bsd-3-clause
dacrybabysuck/darkstar
scripts/zones/Northern_San_dOria/npcs/Antonian.lua
11
1379
----------------------------------- -- Area: Northern San d'Oria -- NPC: Antonian -- Regional Marchant NPC -- Only sells when San d'Oria controlls Aragoneu. ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs") require("scripts/globals/events/harvest_festivals") require("script...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/mobskills/violent_rupture.lua
11
1029
--------------------------------------------- -- Dynamic Implosion -- -- Description: Deals Water damage to enemies in a fan-shaped area of effect. Additional effect: STR Down -- Type: Breath -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone -- Notes: --------------------------------------------- ...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/The_Ashu_Talif/mobs/Ashu_Talif_Captain.lua
11
1952
----------------------------------- -- Area: The Ashu Talif (The Black Coffin) -- NM: Ashu Talif Captain ----------------------------------- local ID = require("scripts/zones/The_Ashu_Talif/IDs") require("scripts/globals/instance") ----------------------------------- function onMobSpawn(mob) mob:setUnkillable(tr...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/items/plate_of_mushroom_paella.lua
11
1154
----------------------------------------- -- ID: 5970 -- Item: Plate of Mushroom Paella -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- HP 40 -- Strength -1 -- Mind 5 -- Magic Accuracy 5 -- Undead Killer 5 ----------------------------------------- require("scripts/globals/status") require(...
gpl-3.0
AbolDalton/Abolbot
libs/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-2.0
dacrybabysuck/darkstar
scripts/globals/spells/blade_madrigal.lua
10
1567
----------------------------------------- -- Spell: Blade Madrigal -- Gives party members accuracy ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0 end fun...
gpl-3.0
funkring/gs5
misc/freeswitch/scripts/dialplan/dialplan.lua
1
45575
-- Gemeinschaft 5 module: dialplan class -- (c) AMOOMA GmbH 2012-2013 -- module(...,package.seeall) Dialplan = {} -- local constants local DIAL_TIMEOUT = 120; local MAX_LOOPS = 20; local DIALPLAN_FUNCTION_PATTERN = '^f[_%-].*'; local CALL_FORWARDING_SERVICES = { USER_BUSY = 'busy', CALL_REJECTED = 'busy', NO_...
mit
dkogan/notion.xfttest
contrib/scripts/zoom.lua
3
3603
-- Authors: Rene van Bevern <rvb@pro-linux.de>, Etan Reisner <deryni@gmail.com> -- License: Public domain -- Last Changed: Unknown -- -- zoom.lua -- -- exchanges current client window with the active client window of the frame -- called 'zoomframe' -- resembling the behavior of larswm -- -- +--------------------------...
lgpl-2.1
Flatlander57/TheImaginedOTClient
modules/corelib/ui/uimessagebox.lua
4
3376
if not UIWindow then dofile 'uiwindow' end -- @docclass UIMessageBox = extends(UIWindow) -- messagebox cannot be created from otui files UIMessageBox.create = nil function UIMessageBox.display(title, message, buttons, onEnterCallback, onEscapeCallback) local messageBox = UIMessageBox.internalCreate() rootWidget:...
mit
dacrybabysuck/darkstar
scripts/globals/spells/bluemagic/spinal_cleave.lua
8
1596
----------------------------------------- -- Spell: Spinal Cleave -- Accuracy varies with TP -- Spell cost: 61 MP -- Monster Type: Undead -- Spell Type: Physical (Slashing) -- Blue Magic Points: 4 -- Stat Bonus: VIT+2, INT+1, MND+1 -- Level: 63 -- Casting Time: 0.5 seconds -- Recast Time: 28.5 seconds -- Skillchain Ele...
gpl-3.0
zeromq/lyre
src/lyre/impl/message.lua
2
6831
-- -- Author: Alexey Melnichuk <mimir@newmail.ru> -- -- Copyright (C) 2014 Alexey Melnichuk <mimir@newmail.ru> -- -- Licensed according to the included 'LICENSE' document -- -- This file is part of Lyre library. -- local UUID = require "lyre.impl.uuid" local utils = require "lyre.impl.utils" local ZRE ...
mit
dkogan/notion.xfttest
etc/cfg_layouts.lua
3
1700
-- -- Layouts for Notion -- -- -- Helper routines and structures -- -- Tiled frame template for the layouts below local a_frame = { type="WSplitRegion", regparams = { type = "WFrame", frame_style = "frame-tiled" } } -- Helper function for generating splits for layouts local function mksp...
lgpl-2.1
Fir3element/downgrade86
data/migrations/10.lua
58
2306
function onUpdateDatabase() print("> Updating database to version 11 (improved guild and players online structure)") db.query("CREATE TABLE IF NOT EXISTS `guild_membership` (`player_id` int(11) NOT NULL, `guild_id` int(11) NOT NULL, `rank_id` int(11) NOT NULL, `nick` varchar(15) NOT NULL DEFAULT '', PRIMARY KEY (`pla...
gpl-2.0
dacrybabysuck/darkstar
scripts/zones/Southern_San_dOria/npcs/Hae_Jakhya.lua
9
1526
----------------------------------- -- Area: Southern San d'Oria -- NPC: Hae Jakhya -- General Info NPC ------------------------------------- local ID = require("scripts/zones/Southern_San_dOria/IDs"); require("scripts/globals/keyitems") require("scripts/globals/settings"); require("scripts/globals/quests"); --------...
gpl-3.0
fgielow/devenserver
data/actions/scripts/tools/fishing.lua
30
2222
local waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 7236, 10499, 15401, 15402} local lootTrash = {2234, 2238, 2376, 2509, 2667} local lootCommon = {2152, 2167, 2168, 2669, 7588, 7589} local lootRare = {2143, 2146, 2149, 7158, 7159} local loo...
gpl-2.0
jnhwkim/rnn
examples/recurrent-time-series.lua
5
3860
-- Multi-variate time-series example require 'rnn' cmd = torch.CmdLine() cmd:text() cmd:text('Train a multivariate time-series model using RNN') cmd:option('--rho', 5, 'maximum number of time steps for back-propagate through time (BPTT)') cmd:option('--multiSize', 6, 'number of random variables as input and output')...
bsd-3-clause
dacrybabysuck/darkstar
scripts/zones/La_Theine_Plateau/npcs/Cermet_Headstone.lua
11
2611
----------------------------------- -- Area: La Theine Plateau -- NPC: Cermet Headstone -- Involved in Mission: ZM5 Headstone Pilgrimage (Water Fragment) -- !pos -170 39 -504 102 ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/titles"); require("scripts/globals/mission...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Arrapago_Remnants/IDs.lua
11
11152
----------------------------------- -- Area: Arrapago_Remnants ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.ARRAPAGO_REMNANTS] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. ...
gpl-3.0
CoderPuppy/cc-poke
poke.lua
1
6291
local config do local path = fs.combine(shell.getRunningProgram(), '../config.lua') local fn, err = loadfile(path) if fn then config = fn() else error(err, 0) end for name, mode in pairs(config.modes) do if name ~= 'default' then if type(mode) ~= 'table' then error('invalid mode: ' .. tostring(name) .. ...
mit
sbwhitecap/Cello
benchmarks/Map/rb.lua
4
4173
--------------------------------------- -- -- rb.lua -- 20110212 -- -- from cormen 2nd edition -- --------------------------------------- --[[ node = { k; -- key red; -- true or false l; -- left subtree r; -- right subtree p; -- parent data; -- for the client } tree = { root; NIL; --...
bsd-2-clause
dacrybabysuck/darkstar
scripts/globals/items/cehuetzi_snow_cone.lua
11
1263
----------------------------------------- -- ID: 6223 -- Item: Cehuetzi snow cone -- Food Effect: 30 Min, All Races ----------------------------------------- -- MP +20% (cap 100) -- INT +5 -- MND +5 -- Magic Atk. Bonus +13 -- Lizard Killer +5 ----------------------------------------- require("scripts/globals/status") r...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/abilities/conspirator.lua
14
1349
----------------------------------- -- Ability: Conspirator -- Enhances accuracy and "Subtle Blow" effect for party members within area of effect. -- Does not affect the party member being targeted by the enemy. -- Obtained: Thief Level 87 -- Recast Time: 5:00 -- Duration: 1:00 ----------------------------------- requi...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Windurst_Waters_[S]/IDs.lua
9
2609
----------------------------------- -- Area: Windurst_Waters_[S] ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.WINDURST_WATERS_S] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/mobskills/auroral_drape.lua
12
1121
--------------------------------------------- -- Auroral Drape -- -- Description: Silence and Blind Area of Effect (10.0') -- Type: Enfeebling -- Utsusemi/Blink absorb: Ignores shadows --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("sc...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Northern_San_dOria/npcs/Maloquedil.lua
9
3283
----------------------------------- -- Area: Northern San d'Oria -- NPC: Maloquedil -- Involved in Quest : Warding Vampires, Riding on the Clouds, Lure of the Wildcat (San d'Oria) -- !pos 35 0.1 60 231 ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs"); require("scripts/glob...
gpl-3.0
mosy210/shadow-bot
plugins/Feedback.lua
1
1090
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