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
GrimKriegor/Misc
Conky/draw_bg.lua
1
2730
--[[ Background by londonali1010 (2009) VinDSL Background Hack (2010-2011) This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish. To call this script in Conky, use (assuming you have saved this script to ~/scripts/): lua_load ~/...
gpl-3.0
jono659/enko
scripts/zones/LaLoff_Amphitheater/npcs/qm1_2.lua
12
2354
----------------------------------- -- Area: LaLoff_Amphitheater -- NPC: Shimmering Circle (BCNM Entrances) ------------------------------------- package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil; package.loaded["scripts/globals/bcnm"] = nil; ------------------------------------- require("scripts/glob...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/mobskills/turbofan.lua
33
1281
--------------------------------------------------- -- Turbofan -- Description: -- Type: Magical -- additional effect : Silence. --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); -------------------...
gpl-3.0
verath/GuildSkadaHighScore
vendor/Ace3/AceGUI-3.0/widgets/AceGUIWidget-Button.lua
21
2746
--[[----------------------------------------------------------------------------- Button Widget Graphical Button. -------------------------------------------------------------------------------]] local Type, Version = "Button", 24 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidget...
mit
Arcscion/Shadowlyre
scripts/zones/Palborough_Mines/npcs/_3z8.lua
3
1535
----------------------------------- -- Area: Palborough Mines -- NPC: Refiner Lever -- Involved In Mission: Journey Abroad -- @zone 143 -- !pos 180 -32 167 ----------------------------------- package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/s...
gpl-3.0
N0U/Zero-K
units/jumpskirm.lua
3
6572
unitDef = { unitname = [[jumpskirm]], name = [[Moderator]], description = [[Disruptor Skirmisher Walker]], acceleration = 0.2, activateWhenBuilt = true, brakeRate = 0.6, buildCostMetal = 240, builder = false, buildPic = [...
gpl-2.0
Arcscion/Shadowlyre
scripts/globals/abilities/pets/attachments/mana_channeler.lua
4
1201
----------------------------------- -- Attachment: Mana Channeler ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onUseAbility ----------------------------------- function onEquip(pet) pet:addMod(MOD_MATT, 10); pet:addMod(MOD_AUTO_MAGIC_DELAY, -3)...
gpl-3.0
jono659/enko
scripts/zones/Port_Bastok/npcs/Dulsie.lua
17
1326
----------------------------------- -- Area: Port Bastok -- NPC: Dulsie -- Adventurer's Assistant -- Working 100% ------------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ------------------------------------- require("scripts/globals/settings"); require("scripts/zones/...
gpl-3.0
jono659/enko
scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Decarabia.lua
19
1255
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Marquis Decarabia ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- fun...
gpl-3.0
ra-kalai/lem
lem/queue.lua
2
1715
-- -- This file is part of LEM, a Lua Event Machine. -- Copyright 2013 Emil Renner Berthing -- -- LEM is free software: you can redistribute it and/or modify it -- under the terms of the GNU Lesser General Public License as -- published by the Free Software Foundation, either version 3 of -- the License, or (at your op...
lgpl-3.0
joewalker/prosody-modules
mod_auth_imap/auth_imap/mod_auth_imap.lua
32
2142
-- IMAP authentication backend for Prosody -- -- Copyright (C) 2011 FIMXE from hg annotate -u local name = "IMAP SASL"; local log = require "util.logger".init("auth_imap"); local imap_host = module:get_option_string("imap_auth_host", "localhost"); local imap_port = module:get_option_number("imap_auth_port"); local i...
mit
Arcscion/Shadowlyre
scripts/zones/Grand_Palace_of_HuXzoi/npcs/_iyc.lua
3
1036
----------------------------------- -- Area: Grand Palace of Hu'Xzoi -- NPC: Particle Gate -- !pos -39 0 -319 34 ----------------------------------- package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"); ---...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Abyssea-Misareaux/npcs/qm5.lua
3
1346
----------------------------------- -- Zone: Abyssea-Misareaux -- NPC: qm5 (???) -- Spawns Cep-Kamuy -- !pos ? ? ? 216 ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) --...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/mobskills/drop_hammer.lua
33
1032
--------------------------------------------- -- Drop Hammer -- -- Description: Drops the hammer. Additional effect: Bind -- Type: Physical -- Utsusemi/Blink absorb: 2-3 shadows? -- Range: Melee -- Notes: Only used by "destroyers" (carrying massive warhammers). --------------------------------------------- requi...
gpl-3.0
monsieurzhang/OpenNMT
onmt/utils/Cuda.lua
2
4229
local Cuda = { fp16 = false, gpuIds = {}, activated = false } local options = { { '-gpuid', { 0 }, [[List of GPU identifiers (1-indexed). CPU is used when set to 0.]] }, { '-fallback_to_cpu', false, [[If GPU can't be used, rollback on the CPU.]] }, { '-fp16', false, [[Use half-p...
mit
rtsisyk/tarantool
src/lua/socket.lua
2
30353
-- socket.lua (internal file) local TIMEOUT_INFINITY = 500 * 365 * 86400 local LIMIT_INFINITY = 2147483647 local ffi = require('ffi') local boxerrno = require('errno') local internal = require('socket') local fiber = require('fiber') local fio = require('fio') local log = require('log') local buffer = require('b...
bsd-2-clause
Arcscion/Shadowlyre
scripts/zones/Spire_of_Holla/Zone.lua
30
1406
----------------------------------- -- -- Zone: Spire_of_Holla (17) -- ----------------------------------- package.loaded["scripts/zones/Spire_of_Holla/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Spire_of_Holla/TextIDs"); ---------------------------...
gpl-3.0
hypnoscope/let-s-code-an-indie-game
episode_30/src/graphics/view.lua
4
1199
local view = {} local scale = function (self) return love.graphics.getWidth() / self.gameWidth end local clamp = function (min, n, max) if n < min then return min end if n > max then return max end return n end local viewOffset = 0 local update = function (self, game) local currentRoom = game.map:currentR...
mit
hypnoscope/let-s-code-an-indie-game
episode_31/src/graphics/view.lua
4
1199
local view = {} local scale = function (self) return love.graphics.getWidth() / self.gameWidth end local clamp = function (min, n, max) if n < min then return min end if n > max then return max end return n end local viewOffset = 0 local update = function (self, game) local currentRoom = game.map:currentR...
mit
davygeek/redis-3.0-annotated-doxygen
deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
apache-2.0
wandoulabs/codis
extern/redis-3.2.11/deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
mit
N0U/Zero-K
LuaUI/Widgets/api_i18n.lua
6
3402
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- --[[ Example: local tr local hellWorld function widget:Initialize() tr=WG.initializeTranslation(GetInfo().name,langCallback) hellWorld=tr("helloworld") end ...
gpl-2.0
Arcscion/Shadowlyre
scripts/globals/spells/bluemagic/refueling.lua
5
1114
----------------------------------------- -- Spell: Refueling -- Increases attack speed -- Spell cost: 29 MP -- Monster Type: Arcana -- Spell Type: Magical (Wind) -- Blue Magic Points: 4 -- Stat Bonus: AGI+2 -- Level: 48 -- Casting Time: 1.5 seconds -- Recast Time: 30 seconds -- Duration: 5 minutes -- -- Combos: None -...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/FeiYin/npcs/_no4.lua
3
2246
----------------------------------- -- Area: Fei'Yin -- NPC: Cermet Door (triggers Rukususu dialog) -- Type: Quest NPC -- !pos -183 0 190 204 -- Involved in Quests: Curses, Foiled A-Golem!?,SMN AF2: Class Reunion, SMN AF3: Carbuncle Debacle -- Involved in Missions: Windurst 5-1/7-2/8-2 ----------------------...
gpl-3.0
N0U/Zero-K
lups/ParticleClasses/RingParticles.lua
5
9198
-- $Id: RingParticles.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local RingParticles = {} RingPart...
gpl-2.0
Arcscion/Shadowlyre
scripts/zones/Port_San_dOria/npcs/Phersula.lua
17
1403
----------------------------------- -- Area: Port San d'Oria -- NPC: Phersula -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_San_dOria/TextIDs"); require("scripts/globals/quests"); --...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Southern_San_dOria/npcs/Lotte.lua
17
1455
----------------------------------- -- Area: Southern San d'Oria -- NPC: Lotte -- General Info NPC ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria/TextIDs"); require("scripts/globals/set...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Cloister_of_Gales/bcnms/sugar-coated_directive.lua
30
1808
---------------------------------------- -- Area: Cloister of Gales -- BCNM: Sugar Coated Directive (ASA-4) ---------------------------------------- package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil; ---------------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/qu...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/items/bowl_of_adoulinian_soup_+1.lua
12
1566
----------------------------------------- -- ID: 5999 -- Item: Bowl of Adoulin Soup +1 -- Food Effect: 240 Min, All Races ----------------------------------------- -- HP % 4 Cap 45 -- Vitality 4 -- Defense % 16 Cap 75 -- HP Healing 7 ----------------------------------------- require("scripts/globals/status"); -------...
gpl-3.0
jono659/enko
scripts/globals/items/plate_of_bream_sushi_+1.lua
35
1470
----------------------------------------- -- ID: 5177 -- Item: plate_of_bream_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Dexterity 6 -- Vitality 5 -- Accuracy % 17 -- Ranged ACC % 17 -- Sleep Resist 5 ----------------------------------------- require("scripts/glo...
gpl-3.0
jono659/enko
scripts/zones/The_Eldieme_Necropolis/npcs/_5fr.lua
34
2570
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: South Plate -- @pos 180 -34 -31 195 ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; ------------------------...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Port_Windurst/npcs/Chipmy-Popmy.lua
17
1288
----------------------------------- -- Area: Port Windurst -- NPC: Chipmy-Popmy -- Working 100% ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/missions"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(playe...
gpl-3.0
jono659/enko
scripts/globals/abilities/ice_shot.lua
22
2936
----------------------------------- -- Ability: Ice Shot -- Consumes a Ice Card to enhance ice-based debuffs. Deals ice-based magic damage -- Frost Effect: Enhanced DoT and AGI- ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Empyreal_Paradox/mobs/Promathia_2.lua
23
2582
----------------------------------- -- Area: Empyreal Paradox -- MOB: Promathia (phase 2) ----------------------------------- package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Empyreal_Paradox/TextIDs"); require("scripts/globals/status"); require...
gpl-3.0
N0U/Zero-K
scripts/dynamicCommander.lua
3
10979
local INLOS = {inlos = true} local spSetUnitShieldState = Spring.SetUnitShieldState local dgunTable local weapon1 local weapon2 local shield local weaponNumMap = {} local weaponsInitialized = false local paceMult local scaleMult local commWreckUnitRulesParam = {"comm_baseWreckID", "comm_baseHeapID"} local moduleWreck...
gpl-2.0
jono659/enko
scripts/zones/Dynamis-Xarcabard/mobs/Animated_Horn.lua
17
1472
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Animated Horn ----------------------------------- require("scripts/globals/status"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- function...
gpl-3.0
DEVASL/DEVASL-V1
plugins/banhammer.lua
1
12771
local function pre_process(msg) local data = load_data(_config.moderation.data) -- 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('Che...
gpl-3.0
ssledz/dotfiles
awesome/themes/default/theme.lua
1
5190
--------------------------- -- Default awesome theme -- --------------------------- theme = {} theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/default" theme.font = "sans 10" theme.bg_normal = "#222222" theme.bg_focus = "#535d6c" theme.bg_urgent = "#ff0000" t...
apache-2.0
jono659/enko
scripts/zones/Meriphataud_Mountains/npcs/Stone_Monument.lua
32
1308
----------------------------------- -- Area: Meriphataud Mountains -- NPC: Stone Monument -- Involved in quest "An Explorer's Footsteps" -- @pos 450.741 2.110 -290.736 119 ----------------------------------- package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil; -------------------------------...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Southern_San_dOria/npcs/Taumila.lua
3
2332
----------------------------------- -- Area: Northern San d'Oria -- NPC: Taumila -- Starts and Finishes Quest: Tiger's Teeth (R) -- !pos -140 -5 -8 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/sett...
gpl-3.0
MostTheBest/Nod-32
plugins/time.lua
94
3004
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
maysam0111/nn
plugins/time.lua
94
3004
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
Cyumus/GarryWare13
gamemode/garryware_vgui_livescoreboard.lua
2
5018
PANEL.Base = "DPanel" function PANEL:Init() self:SetSkin( G_GWI_SKIN ) self:SetPaintBackground( false ) self:SetVisible( false ) self.SortRefreshDelay = 0.1 self.SortRefreshTime = 0 self.LabelMakeRefreshDelay = 2.0 self.LabelMakeRefreshTime = 0 self.m_playerlist = {} self._STY_LabelHeight = 16 self....
gpl-2.0
Arcscion/Shadowlyre
scripts/globals/mobskills/pyric_blast.lua
33
1323
--------------------------------------------- -- Pyric Blast -- -- Description: Deals Fire damage to enemies within a fan-shaped area. Additional effect: Plague -- Type: Breath -- Ignores Shadows -- Range: Unknown Cone --------------------------------------------- require("scripts/globals/settings"); require("scr...
gpl-3.0
hypnoscope/let-s-code-an-indie-game
episode_39/src/logic/gamestate.lua
4
1963
local map = require("src.logic.rooms.map") local display = require("src.graphics.display") local inventory = require("src.logic.inventory") local pausestate = require("src.logic.pausestate") local gameController = require("src.logic.game_controller") local gamestate = {} local modulate = function (self) return (sel...
mit
Arcscion/Shadowlyre
scripts/globals/items/uskumru.lua
12
1322
----------------------------------------- -- ID: 5452 -- Item: Uskumru -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 3 -- Mind -5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----------...
gpl-3.0
MRunFoss/skynet
lualib/skynet.lua
1
15598
local c = require "skynet.core" local tostring = tostring local tonumber = tonumber local coroutine = coroutine local assert = assert local pairs = pairs local pcall = pcall local profile = require "profile" local coroutine_resume = profile.resume local coroutine_yield = profile.yield local proto = {} local skynet =...
mit
LouisK130/Orange-Cosmos-Roleplay
ocrp/gamemode/server/default_cycle.lua
1
4922
-- edit me! local night = { ["sun_angles"] = Angle(-90, 45, 0), ["moon_angles"] = -Angle(-90, 45, 0), ["world_light_multiplier"] = 0, ["color_brightness"] = 1, ["color_contrast"] = 1, ["color_saturation"] = 0.75, ["color_multiply"] = Vector(-0.017, -0.005, 0.02), ["color_add"] = Vector(0, 0, 0), ["fog_s...
mit
zzh442856860/skynet-Note
test/testsocket.lua
80
1078
local skynet = require "skynet" local socket = require "socket" local mode , id = ... local function echo(id) socket.start(id) while true do local str = socket.read(id) if str then socket.write(id, str) else socket.close(id) return end end end if mode == "agent" then id = tonumber(id) skynet....
mit
sdgdsffdsfff/skynet
test/testsocket.lua
80
1078
local skynet = require "skynet" local socket = require "socket" local mode , id = ... local function echo(id) socket.start(id) while true do local str = socket.read(id) if str then socket.write(id, str) else socket.close(id) return end end end if mode == "agent" then id = tonumber(id) skynet....
mit
N0U/Zero-K
LuaUI/Widgets/api_gadget_icons.lua
4
8416
------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Gadget Icons", desc = "Shows icons from gadgets that cannot access the widget stuff ...
gpl-2.0
dpressel/torchure
NLLSequenceCriterion.lua
1
1359
-- Only count unmasked items local nn = require 'nn' local NLLSequenceCriterion, parent = torch.class('NLLSequenceCriterion', 'nn.Criterion') local PAD_MIN = 0 -- The target output may use a 0 value by default. If you want to use -- something else for pad, 1 is also fairly common, just set minpad=1 function NLLSeque...
mit
jono659/enko
scripts/globals/items/coffeecake_muffin_+1.lua
35
1377
----------------------------------------- -- ID: 5656 -- Item: coffeecake_muffin_+1 -- Food Effect: 1Hr, All Races ----------------------------------------- -- Mind 2 -- Strength -1 -- MP % 10 (cap 90) ----------------------------------------- require("scripts/globals/status"); ---------------------------...
gpl-3.0
hypnoscope/let-s-code-an-indie-game
episode_34/src/graphics/spritesheet.lua
14
1306
local spritesheet = {} local draw = function (self, view, x, y, flipped) view:inContext(function () local xOffset = self.size / 2 local yOffset = self.size / 2 local xScale = 1 if flipped then xScale = -1 end love.graphics.draw( self.image, self.sprites[self.animation:frame()], ...
mit
N0U/Zero-K
LuaUI/Widgets/gui_command_indicator.lua
5
6804
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Command Indicator (beta)", desc = "Simple visual feedback of received commands", author = "Kin...
gpl-2.0
Arcscion/Shadowlyre
scripts/globals/spells/sinewy_etude.lua
5
1810
----------------------------------------- -- Spell: Sinewy Etude -- Static STR Boost, BRD 24 ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,targe...
gpl-3.0
jono659/enko
scripts/zones/Northern_San_dOria/npcs/Fittesegat.lua
38
1029
----------------------------------- -- Area: Northern San d'Oria -- NPC: Fittesegat -- Type: Standard Dialogue NPC -- @zone: 231 -- @pos 144.250 0.000 138.203 -- ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/zones/Northern_San_dOria/TextIDs"...
gpl-3.0
CQUI-Org/cqui
Assets/UI/actionpanel.lua
5
52631
-- =========================================================================== -- Action Panel -- Main area of game to advance turns and show what is currently blocking. -- Tabs set to 4 spaces; retaining tab. -- =========================================================================== include( "InstanceManager" ...
mit
verath/GuildSkadaHighScore
src/ldb.lua
1
3359
-- -- ldb.lua -- -- LDB launcher and minimap icon setup using LibDBIcon -- local addonName, addonTable = ... local LibDataBroker = LibStub:GetLibrary("LibDataBroker-1.1"); local LibDBIcon = LibStub("LibDBIcon-1.0"); -- Set up module local addon = addonTable[1]; local ldb = addon:NewModule("ldb", "AceEvent-3.0") addo...
mit
jono659/enko
scripts/zones/Palborough_Mines/npcs/_3z6.lua
58
1142
----------------------------------- -- Elevator in Palborough -- Notes: Used to operate Elevator @3z0 ----------------------------------- package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scripts/globals/settings"); re...
gpl-3.0
abbasgh12345/extreme0
plugins/quran.lua
20
1243
do umbrella = "http://umbrella.shayan-soft.ir/quran/" -- database -- get sound of sura local function read_sura(chat_id, target) local readq = http.request(umbrella.."Sura"..target..".mp3") local url = umbrella.."Sura"..target..".mp3" local file = download_to_file(url) local cb_extra = {file_path=file} return sen...
gpl-2.0
rtsisyk/tarantool
test/wal_off/snapshot_stress.test.lua
3
7250
-- The test emulates account system. There are increasing number or accounts -- and a lot of double entry transactions are made that moving random -- ammount from random account to another random accont. -- Snapshots are made every snapshot_interval seconds and then checked for consistency env = require('test_run') tes...
bsd-2-clause
sdgdsffdsfff/skynet
lualib/cluster.lua
48
1257
local skynet = require "skynet" local clusterd local cluster = {} function cluster.call(node, address, ...) -- skynet.pack(...) will free by cluster.core.packrequest return skynet.call(clusterd, "lua", "req", node, address, skynet.pack(...)) end function cluster.open(port) if type(port) == "string" then skynet....
mit
MRunFoss/skynet
lualib/cluster.lua
48
1257
local skynet = require "skynet" local clusterd local cluster = {} function cluster.call(node, address, ...) -- skynet.pack(...) will free by cluster.core.packrequest return skynet.call(clusterd, "lua", "req", node, address, skynet.pack(...)) end function cluster.open(port) if type(port) == "string" then skynet....
mit
jono659/enko
scripts/zones/Southern_San_dOria/npcs/Kueh_Igunahmori.lua
34
1274
----------------------------------- -- Area: Southern San d'Oria -- NPC: Kueh Igunahmori -- Guild Merchant NPC: Leathercrafting Guild -- @pos -194.791 -8.800 13.130 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- re...
gpl-3.0
jono659/enko
scripts/globals/weaponskills/double_thrust.lua
30
1320
----------------------------------- -- Double Thrust -- Polearm weapon skill -- Skill Level: 5 -- Delivers a two-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Light Gorget. -- Aligned with the Light Belt. -- Element: None -- Modifiers: STR:30% -- 100%TP 200%TP 3...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Beaucedine_Glacier/npcs/Trail_Markings.lua
3
2904
----------------------------------- -- Area: Beaucedine Glacier -- NPC: Trail Markings -- Dynamis-Beaucedine Enter -- !pos -284 -39 -422 111 ----------------------------------- package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); re...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Davoi/npcs/qm1.lua
3
1403
----------------------------------- -- Area: Davoi -- NPC: ??? (qm1) -- Involved in Quest: To Cure a Cough -- !pos -115.830 -0.427 -184.289 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scr...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/items/breath_mantle.lua
43
1422
----------------------------------------- -- ID: 15486 -- Item: Breath Mantle -- Item Effect: HP+18 / Enmity+3 ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ------------------------------------...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Southern_San_dOria/npcs/Foletta.lua
17
1458
----------------------------------- -- Area: Southern San d'Oria -- NPC: Foletta -- General Info NPC ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria/TextIDs"); require("scripts/globals/...
gpl-3.0
jono659/enko
scripts/globals/items/senroh_skewer.lua
36
1404
----------------------------------------- -- ID: 5982 -- Item: Senroh Skewer -- Food Effect: 30 Mins, All Races ----------------------------------------- -- Dexterity 2 -- Vitality 3 -- Mind -1 -- Defense % 25 Cap 150 ----------------------------------------- require("scripts/globals/status"); -----------------------...
gpl-3.0
jono659/enko
scripts/globals/items/sausage_roll.lua
35
1655
----------------------------------------- -- ID: 4396 -- Item: sausage_roll -- Food Effect: 30Min, All Races ----------------------------------------- -- Health % 6 -- Vitality 3 -- Intelligence -1 -- Attack % 27 -- Attack Cap 30 -- Ranged ATT % 27 -- Ranged ATT Cap 30 --------------------------------------...
gpl-3.0
jono659/enko
scripts/zones/Korroloka_Tunnel/npcs/qm2.lua
17
3455
----------------------------------- -- Area: Korroloka Tunnel -- NPC: ??? (qm2) -- Involved In Quest: Ayame and Kaede -- @pos -208 -9 176 173 ----------------------------------- package.loaded["scripts/zones/Korroloka_Tunnel/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settin...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/FeiYin/npcs/Dry_Fountain.lua
3
1467
----------------------------------- -- Area: FeiYin -- NPC: Dry Fountain -- Involved In Quest: Peace for the Spirit -- !pos -17 -16 71 204 ----------------------------------- package.loaded["scripts/zones/FeiYin/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts...
gpl-3.0
jono659/enko
scripts/zones/Bastok_Markets/npcs/Brunhilde.lua
36
1636
----------------------------------- -- Area: Bastok Markets -- NPC: Brunhilde -- Standard Merchant NPC -- -- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; requir...
gpl-3.0
N0U/Zero-K
LuaRules/Utilities/tablefunctions.lua
5
4207
------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- --deep not safe with circular tables! defaults To false function Spring.Utilities.CopyTable(tableToCopy, deep) local copy = {} for key, value in...
gpl-2.0
Arcscion/Shadowlyre
scripts/zones/QuBia_Arena/mobs/Worgbut_of_Clan_Death.lua
23
2661
----------------------------------- -- Area: QuBia_Arena -- Mission 9-2 SANDO ----------------------------------- ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) end; ----------------------------------- -- onMobFight ----------------------------...
gpl-3.0
zeriyoshi/LunaDLL
LuaScriptsLib/ext/debugger/debugger.lua
3
127740
------------------------------------------------------------------------------- -- Copyright (c) 2011-2012 Sierra Wireless and others. -- All rights reserved. This program and the accompanying materials -- are made available under the terms of the Eclipse Public License v1.0 -- which accompanies this distribution, and ...
gpl-3.0
flexiant/fco-trigger-examples
triggers/scheduled_create_snapshot_trigger/custom_create_snapshots_trigger.lua
1
7557
-- (c) 2016 Flexiant Ltd -- Released under the Apache 2.0 Licence - see LICENCE for details function scheduled_create_snapshot_trigger(p) if (p == nil) then return { ref = "scheduled_create_snapshot", name = "Scheduled Create Snapshot Tiggger", description = "This will create a snapshot for user if he has ...
apache-2.0
jono659/enko
scripts/zones/Windurst_Waters_[S]/npcs/Quartermaster.lua
38
1051
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Quartermaster -- Type: Standard NPC -- @zone: 94 -- @pos -60.200 -4.7 32.500 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil...
gpl-3.0
srvz/telegram-bot
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
jono659/enko
scripts/zones/North_Gustaberg/npcs/Monument.lua
34
1448
----------------------------------- -- Area: North Gustaberg -- NPC: Monument -- Involved in Quest "Hearts of Mythril" -- @pos 300.000 -62.803 498.200 106 ----------------------------------- package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Sealions_Den/mobs/Tenzen.lua
23
1173
----------------------------------- -- Area: Sealion den -- NPC: Tenzen ----------------------------------- ----------------------------------- -- onMobSpawn ----------------------------------- function onMobSpawn(mob) end; ----------------------------------- -- onMobEngaged ----------------------------------- fun...
gpl-3.0
zeriyoshi/LunaDLL
LuaScriptsLibExt/inputs2.lua
3
8947
--*************************************************************************************** -- * -- inputs2.lua * -- v1.1 ...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/spells/mages_ballad.lua
5
1134
----------------------------------------- -- Spell: Mage's Ballad -- Gradually restores target's MP. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end...
gpl-3.0
sbodenstein/nn
MM.lua
46
2695
--[[ Module to perform matrix multiplication on two minibatch inputs, producing a minibatch. ]] local MM, parent = torch.class('nn.MM', 'nn.Module') --[[ The constructor takes two optional arguments, specifying whether or not transpose any of the input matrices before perfoming the multiplication. ]] functi...
bsd-3-clause
jono659/enko
scripts/globals/items/crepe_belle_helene.lua
36
1333
----------------------------------------- -- ID: 5778 -- Item: Crepe Belle Helene -- Food Effect: 60 Min, All Races ----------------------------------------- -- Intelligence +2 -- MP Healing +3 -- Magic Accuracy +6 -- Magic Defense +1 ----------------------------------------- require("scripts/globals/status"); ------...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Aht_Urhgan_Whitegate/npcs/Qutiba.lua
3
2278
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Qutiba -- Type: Standard NPC -- !pos 92.341 -7.5 -129.980 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require(...
gpl-3.0
jono659/enko
scripts/globals/spells/absorb-int.lua
11
1199
-------------------------------------- -- Spell: Absorb-INT -- Steals an enemy's intelligence. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast --------...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/spells/knights_minne_iv.lua
5
1472
----------------------------------------- -- Spell: Knight's Minne IV -- Grants Defense bonus to all allies. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) retur...
gpl-3.0
spawnazzo/luci
libs/core/luasrc/util.lua
81
21858
--[[ LuCI - Utility library Description: Several common useful Lua functions License: 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-2.0
Arcscion/Shadowlyre
scripts/zones/Abyssea-La_Theine/npcs/qm1.lua
3
1348
----------------------------------- -- Zone: Abyssea-LaTheine -- NPC: qm1 (???) -- Spawns Dozing Dorian -- !pos ? ? ? 132 ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade)...
gpl-3.0
jono659/enko
scripts/zones/Gusgen_Mines/npcs/_5g4.lua
34
1102
----------------------------------- -- Area: Gusgen Mines -- NPC: _5g4 (Door E) -- @pos 19.998 -22.4 174.506 196 ----------------------------------- package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Gusgen_Mines/TextIDs"); ---------------...
gpl-3.0
jono659/enko
scripts/zones/Aht_Urhgan_Whitegate/npcs/Yahsra.lua
30
3592
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Yahsra -- Type: Assault Mission Giver -- @pos 120.967 0.161 -44.002 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyi...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Bastok_Markets/npcs/Visala.lua
3
1189
----------------------------------- -- Area: Bastok Markets -- NPC: Visala -- Guild Merchant NPC: Goldsmithing Guild -- !pos -202.000 -7.814 -56.823 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/sett...
gpl-3.0
jono659/enko
scripts/zones/Dynamis-Tavnazia/mobs/Nightmare_Leech.lua
17
1502
----------------------------------- -- Area: Dynamis Tavnazia -- NPC: Nightmare_Leech ----------------------------------- package.loaded["scripts/zones/Dynamis-Tavnazia/TextIDs"] = nil; ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Tavnazia/TextIDs");...
gpl-3.0
jono659/enko
scripts/zones/Attohwa_Chasm/npcs/Jakaka.lua
10
2417
----------------------------------- -- Area: Attohwa Chasm -- NPC: Jakaka -- Type: ENM -- @pos -144.711 6.246 -250.309 7 ----------------------------------- package.loaded["scripts/zones/Attohwa_Chasm/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Attohwa_Chasm/TextIDs"); require("scr...
gpl-3.0
temasek/android_external_skia
tools/lua/skia.lua
207
1863
-- Experimental helpers for skia -- function string.startsWith(String,Start) return string.sub(String,1,string.len(Start))==Start end function string.endsWith(String,End) return End=='' or string.sub(String,-string.len(End))==End end Sk = {} function Sk.isFinite(x) return x * 0 == 0 end ----------------...
bsd-3-clause
jono659/enko
scripts/globals/spells/Herculean_Etude.lua
11
1615
----------------------------------------- -- Spell: Herculean Etude -- Static STR Boost, BRD 74 ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- ...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/spells/bluemagic/eyes_on_me.lua
31
1587
----------------------------------------- -- Spell: Eyes On Me -- Deals dark damage to an enemy -- Spell cost: 112 MP -- Monster Type: Demons -- Spell Type: Magical (Dark) -- Blue Magic Points: 4 -- Stat Bonus: HP-5, MP+15 -- Level: 61 -- Casting Time: 4.5 seconds -- Recast Time: 29.25 seconds -- Magic Bursts on: Compr...
gpl-3.0