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 |
|---|---|---|---|---|---|
AdamGagorik/darkstar | scripts/zones/Marjami_Ravine/npcs/HomePoint#1.lua | 27 | 1266 | -----------------------------------
-- Area: Marjami Ravine
-- NPC: HomePoint#1
-- @pos -23 0 174 266
-----------------------------------
package.loaded["scripts/zones/Marjami_Ravine/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Marjami_Ravine/TextIDs");
require("scripts/globals/homep... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Miah_Riyuh.lua | 50 | 5024 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Miah Riyuh
-- @pos 5.323 -2 37.462 94
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyite... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/TextIDs.lua | 15 | 1760 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6383; -- You cannot obtain the <item>. Try trading again after sorting your inventory.
ITEM_OBTAINED = 6384; ... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Port_Bastok/npcs/HomePoint#3.lua | 27 | 1258 | -----------------------------------
-- Area: Port_Bastok
-- NPC: HomePoint#3
-- @pos -126 -6 10 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_Bastok/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
wez2020/roh | plugins/lock_sticker.lua | 39 | 19259 | -- data saved to data/moderation.json
do
local administrators_only = 'For administrator only!'
local moderators_only = 'For moderators only!'
local function create_group(msg)
if not is_admin(msg) then return administrators_only end
local group_creator = msg.from.print_name
create_group_chat (group_creator, grou... | gpl-2.0 |
AdamGagorik/darkstar | scripts/globals/spells/earth_carol.lua | 27 | 1535 | -----------------------------------------
-- Spell: Earth Carol
-- Increases earth resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Lower_Jeuno/npcs/_6tc.lua | 25 | 4144 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Door: "Neptune's Spire"
-- Starts and Finishes Quest: Beat Around the Bushin
-- @zone 245
-- @pos 35 0 -15
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
GPUOpen-LibrariesAndSDKs/GPUParticles11 | amd_sdk/premake/premake5.lua | 8 | 1255 | dofile ("../../premake/amd_premake_util.lua")
workspace "AMD_SDK"
configurations { "Debug", "Release" }
platforms { "x64" }
location "../build"
filename ("AMD_SDK" .. _AMD_VS_SUFFIX)
startproject "AMD_SDK"
filter "platforms:x64"
system "Windows"
architecture "x64"
project "AMD_SDK"
k... | mit |
mohammadrassoul/roborsevenn | plugins/id.lua | 3 | 1634 | -----my_name_is_ehsan*#@mafia_boy
-----@ENERGY_TEAM FOR UPDATE
-----لطفا پیام بالا رو پاک نکنید
function run(msg,matches)
if matches[1] == 'id' or 'ایدی' and msg.reply_to_message_id_ == 0 then
if is_sudo(msg) then
rank = 'صاحب ربات'
elseif is_owner(msg) then
rank = 'صاحب گروه'
elseif is_mod(msg) then
ra... | gpl-3.0 |
TrurlMcByte/docker-prosody | etc/prosody-modules/mod_couchdb/couchdb/mod_couchdb.lua | 32 | 2155 |
local http = require "socket.http";
local url = require "socket.url";
local couchapi = module:require("couchdb/couchapi");
local json = module:require("couchdb/json");
local couchdb_url = assert(module:get_option("couchdb_url"), "Option couchdb_url not specified");
local db = couchapi.db(couchdb_url);
local functio... | mit |
hlieberman/sysdig | userspace/sysdig/chisels/v_docker_events.lua | 4 | 1681 | --[[
Copyright (C) 2013-2018 Draios Inc dba Sysdig.
This file is part of sysdig.
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 ... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Northern_San_dOria/npcs/Macuillie.lua | 4 | 2566 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Macuillie
-- Type: Guildworker's Union Representative
-- @zone: 231
-- @pos -191.738 11.001 138.656
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/globals/keyitems");
re... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Dynamis-Valkurm/Zone.lua | 13 | 2454 | -----------------------------------
--
-- Zone: Dynamis-Valkurm
--
-----------------------------------
package.loaded["scripts/zones/Dynamis-Valkurm/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Dynamis-Valkurm/TextIDs");
---------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Xarcabard_[S]/npcs/HomePoint#1.lua | 27 | 1267 | -----------------------------------
-- Area: Xarcabard [S]
-- NPC: HomePoint#1
-- @pos 223 -13 -254 137
-----------------------------------
package.loaded["scripts/zones/Xarcabard_[S]/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Xarcabard_[S]/TextIDs");
require("scripts/globals/homep... | gpl-3.0 |
LuaDist2/split | test/test-empty-fields.lua | 2 | 1170 | #!/usr/bin/env lua
local t = require 'tapered'
package.path = '../src/?.lua;' .. package.path
local split = require 'split'.split
local s, got
s = ',foo,bar'
got = split(s, ',')
t.is(#got, 3, "split(',foo,bar', ',') should have three fields.")
t.is(got[1], '', 'First item should be empty field.')
t.is(got[2], 'foo', ... | bsd-3-clause |
teamactivebot/team-active | plugins/anti_spam.lua | 191 | 5291 | --An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Save... | gpl-2.0 |
AdamGagorik/darkstar | scripts/globals/items/plate_of_homemade_salad.lua | 18 | 1107 | -----------------------------------------
-- ID: 5227
-- Item: plate_of_homemade_salad
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 10
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----------... | gpl-3.0 |
Snazz2001/fbcunn | test/test_ModelParallel.lua | 9 | 5656 | require 'fb.luaunit'
require 'torch'
require 'cunn'
require 'sys'
require 'fbcunn'
function testEndToEnd()
torch.setdefaulttensortype('torch.FloatTensor')
local mptest = {}
local utils = {}
local times = {}
local nGPUs = 4
local precision = 1e-4
local mytester = torch.Tester()
funct... | bsd-3-clause |
AdamGagorik/darkstar | scripts/zones/Davoi/Zone.lua | 17 | 3403 | -----------------------------------
--
-- Zone: Davoi (149)
--
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
require("scripts/globals/quests");
require("scripts/zones... | gpl-3.0 |
robertfoss/nodemcu-firmware | lua_modules/http/http.lua | 89 | 6624 | ------------------------------------------------------------------------------
-- HTTP server module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
------------------------------------------------------------------------------
local collectgarbage, tonumber, tostring = col... | mit |
AdamGagorik/darkstar | scripts/zones/Ifrits_Cauldron/npcs/HomePoint#1.lua | 27 | 1269 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: HomePoint#1
-- @pos -63 50 81 205
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Ifrits_Cauldron/TextIDs");
require("scripts/globals/ho... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/spells/suiton_ni.lua | 5 | 1227 | -----------------------------------------
-- Spell: Suiton: Ni
-- Deals water damage to an enemy and lowers its resistance against lightning.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
--------... | gpl-3.0 |
nesforge/slash | tests/stream.lua | 1 | 1096 | -- uwsgi plugin is in development
Slash = require("..slash.slash")
app = Slash({
dev = true
})
require "socket"
local function sleep(n)
socket.select(nil, nil, n)
end
app:get("/",
function(req,res)
local headers = {}
headers["Content-Type"] = 'text/plain; charset=utf-8'
local function generator(... | bsd-3-clause |
AdamGagorik/darkstar | scripts/zones/Port_Jeuno/npcs/Dohhel.lua | 13 | 1046 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Dohhel
-- Type: Event Scene Replayer
-- @zone: 246
-- @pos -156.031 -2 6.051
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Abyssea-Attohwa/npcs/qm19.lua | 17 | 1523 | -----------------------------------
-- Zone: Abyssea-Attohwa
-- NPC: ???
-- Spawns: Ulhuadshi
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(pla... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Walls/npcs/Nine_of_Diamonds.lua | 13 | 1062 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Nine of Diamonds
-- Type: Standard NPC
-- @zone: 239
-- @pos -76.446 -10.822 107.692
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
--... | gpl-3.0 |
Dynosaur/dynosaur | system/modules/lualibs/socket/headers.lua | 133 | 3698 | -----------------------------------------------------------------------------
-- Canonic header field capitalization
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
local socket = require("socket")
socket.headers = {}
local _M = socket.headers
... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Port_Windurst/npcs/Panja-Nanja.lua | 53 | 1909 | -----------------------------------
-- Area: Port Windurst
-- NPC: Panja-Nanja
-- Type: Fishing Adv. Image Support
-- @pos -194.499 -3 58.692 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
deltheil/loadccv | init.lua | 1 | 10925 | require 'torch'
torch.setdefaulttensortype('torch.FloatTensor')
require 'nn'
local sqlite3 = require 'lsqlite3'
local ffi = require 'ffi'
local C = ffi.load(package.searchpath('loadccv', package.cpath))
ffi.cdef 'void loadccv_half_precision_to_float(uint16_t*, float*, size_t);'
local CCV_TYPES = {
'CCV_CONVNET_CO... | mit |
Nathan22Miles/sile | languages/la.lua | 4 | 2972 | SILE.hyphenator.languages["la"] = {};
SILE.hyphenator.languages["la"].patterns =
{
".a2b3l",
".anti1",
".anti3m2n",
".circu2m1",
".co2n1iun",
".di2s3cine",
".e2x1",
".o2b3", -- .o2b3l .o2b3r .o2b3s
".para1i",
".para1u",
".su2b3lu",
".su2b3r",
"2s3que.",
"2s3dem.",
"3p2sic",
"3p2neu",
... | mit |
AdamGagorik/darkstar | 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 |
alenslan/redis | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters/npcs/Orez-Ebrez.lua | 17 | 1793 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Orez-Ebrez
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst_Waters/TextI... | gpl-3.0 |
geoffleyland/lua-mmapfile | spec/mmapfile_spec.lua | 1 | 4049 | -- luacheck: std max+busted
local both_error_messages =
{
CREATE_BAD_DIRECTORY =
{
"mmapfile.create: Error creating 'there_is_no_directory_with_this_name/test':"..
" No such file or directory",
"mmapfile.create: Error creating 'there_is_no_directory_with_this_name/test':"..
" The system cannot ... | mit |
AdamGagorik/darkstar | scripts/zones/Qufim_Island/npcs/qm3.lua | 29 | 4306 | -----------------------------------
-- Area: Qufim Island
-- NPC: ??? (qm3)
-- Mission: ACP - The Echo Awakens
-- @zone 126
-- @pos -120.342 -19.471 306.661
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Qufim... | gpl-3.0 |
talldan/lua-reactor | src/reactor/components/text.lua | 1 | 1280 | -- luacheck: globals love
local createLeafNode = require('reactor.helpers.createLeafNode')
local function getFormattedText(props)
local value = props.value
local wraplimit = nil
local alignment = 'left'
if props.width ~= nil then
wraplimit = props.width
end
if props.alignment ~= nil then
alignme... | mit |
AdamGagorik/darkstar | scripts/globals/spells/hunters_prelude.lua | 27 | 1520 | -----------------------------------------
-- Spell: Hunter's Prelude
-- Gives party members ranged attack accuracy
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingChe... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/East_Ronfaure/TextIDs.lua | 15 | 1413 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6401; -- You cannot obtain the item <item> come back again after sorting your inventory.
ITEM_OBTAINED = 6406; -- Obtained: <item>.
GIL_OBTAINED = 6407; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6409; -- Obt... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/blind_bolt.lua | 41 | 1057 | -----------------------------------------
-- ID: 18150
-- Item: Blind Bolt
-- Additional Effect: Blindness
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------
... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/abilities/monks_roll.lua | 4 | 2605 | -----------------------------------
-- Ability: Monk's Roll
-- Enhances "Subtle Blow" effect for party members within area of effect
-- Optimal Job: Monk
-- Lucky Number: 3
-- Unlucky Number: 7
-- Level: 31
--
-- Die Roll |No MNK |With MNK
-- -------- -------- -----------
-- 1 |+8 |+18
-- 2 ... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/plate_of_fin_sushi_+1.lua | 18 | 1476 | -----------------------------------------
-- ID: 5666
-- Item: plate_of_fin_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Intelligence 5
-- Accuracy % 17
-- Ranged Accuracy % 17
-----------------------------------------
require("scripts/globals/status");
----------------------... | gpl-3.0 |
ioiasff/awqp | plugins/spammer.lua | 14 | 75190 | local function run(msg)
if msg.text == "[!/]spam" and is_sudo(msg) then
return "".. [[
... | gpl-2.0 |
AdamGagorik/darkstar | scripts/globals/spells/bluemagic/maelstrom.lua | 25 | 1815 | -----------------------------------------
-- Spell: Maelstrom
-- Deals water damage to enemies within range. Additional effect: STR Down
-- Spell cost: 162 MP
-- Monster Type: Aquans
-- Spell Type: Magical (Water)
-- Blue Magic Points: 5
-- Stat Bonus: Mind +2
-- Level: 61
-- Casting Time: 6 seconds
-- Recast Time: 39 ... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Woods/npcs/Hae_Jakkya.lua | 13 | 1359 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Hae Jakkya
-- Working 100%
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
--------... | gpl-3.0 |
paritoshmmmec/kong | spec/integration/tools/http_client_spec.lua | 21 | 7205 | local cjson = require "cjson"
local http_client = require "kong.tools.http_client"
require "kong.tools.ngx_stub"
describe("http_client", function()
describe("GET", function()
it("should send a valid GET request", function()
local response, status, headers = http_client.get("http://httpbin.org/get", {nam... | mit |
juesato/rnn | init.lua | 1 | 1866 | require 'dpnn'
require 'torchx'
dpnn.version = dpnn.version or 0
assert(dpnn.version > 1, "Please update dpnn : luarocks install dpnn")
-- create global rnn table:
rnn = {}
rnn.version = 2
rnn.version = 2.1 -- [get,set][Grad]HiddenState(step)
unpack = unpack or table.unpack
torch.include('rnn', 'recursiveUtils.lua')... | bsd-3-clause |
aquileia/wesnoth | data/ai/micro_ais/cas/ca_bottleneck_move.lua | 1 | 20885 | local H = wesnoth.require "lua/helper.lua"
local LS = wesnoth.require "lua/location_set.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local BC = wesnoth.require "ai/lua/battle_calcs.lua"
local MAISD = wesnoth.require "ai/micro_ais/micro_ai_self_data.lua"
local function bottleneck_is_my_territory(map, enemy_ma... | gpl-2.0 |
AdamGagorik/darkstar | scripts/globals/items/watermelon.lua | 18 | 1176 | -----------------------------------------
-- ID: 4491
-- Item: watermelon
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -6
-- Intelligence 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----... | gpl-3.0 |
Wiladams/cream | testy/sites.lua | 2 | 7478 | local exports = {
"facebook.com",
"twitter.com",
"google.com",
"youtube.com",
"wordpress.org",
"adobe.com",
"blogspot.com",
"wikipedia.org",
"linkedin.com",
"wordpress.com",
"yahoo.com",
"amazon.com",
"flickr.com",
"pinterest.com",
"tumblr.com",
"w3.org",
"apple.com",
"myspace.com",
"vimeo.com",
"microsoft.com",
"youtu... | mit |
AdamGagorik/darkstar | scripts/zones/Northern_San_dOria/npcs/Arlenne.lua | 13 | 2152 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Arlenne
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
requi... | gpl-3.0 |
hadirahimi1380/-AhRiMaN- | 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 |
AdamGagorik/darkstar | scripts/zones/Northern_San_dOria/npcs/Greubaque.lua | 53 | 1967 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Greubaque
-- Type: Smithing Adv. Synthesis Image Support
-- @pos -179.400 10.999 150.000 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Maze_of_Shakhrami/Zone.lua | 11 | 1906 | -----------------------------------
--
-- Zone: Maze_of_Shakhrami (198)
--
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Maze_of_Shakhr... | gpl-3.0 |
martin-ueding/vicious | contrib/dio.lua | 16 | 2210 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
---------------------------------------------------
-- {{{ Grab environment
local ipairs = ipairs
local setmetatable = setmetatable
local table = { insert = table.inser... | gpl-2.0 |
luveti/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/code.lua | 42 | 2520 | -- tolua: code class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1999
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements, o... | mit |
AdamGagorik/darkstar | scripts/zones/Qulun_Dome/npcs/Magicite.lua | 13 | 1659 | -----------------------------------
-- Area: Qulun Dome
-- NPC: Magicite
-- Involved in Mission: Magicite
-- @pos 11 25 -81 148
-----------------------------------
package.loaded["scripts/zones/Qulun_Dome/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/... | gpl-3.0 |
mahmedhany128/Mr_BOT | plugins/dev.lua | 1 | 1135 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY faeder ▀▄ ▄▀
▀▄ ▄▀ BY faeder(@xXxDev_iqxXx) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY faeder ▀▄ ▄▀
▀▄ ▄▀ dev1 : dev ▀▄ ▄... | gpl-2.0 |
kanaka/raft.js | research_class/pgfplots/tex/generic/pgfplots/lua/pgfplots.lua | 4 | 1869 |
require("pgfplots.binary")
-- all classes/globals will be added to this table:
pgfplots = {}
-- will be set by TeX:
pgfplots.pgfplotsversion = nil
if _VERSION == "Lua 5.1" or _VERSION == "Lua 5.0" then
texio.write("pgfplots: setting 'lua support=false': the lua version on this system is " .. _VERSION .. "; expecte... | mpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Sacrificial_Chamber/npcs/_4j2.lua | 13 | 1421 | -----------------------------------
-- Area: Sacrificial Chamber
-- NPC: Mahogany Door
-- @pos -260 -33 274 163
-------------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/missi... | gpl-3.0 |
rinstrum/LUA-LIB | C500Examples/hello.lua | 2 | 1245 | #!/usr/bin/env lua
-------------------------------------------------------------------------------
-- Hello
--
-- Traditional Hello World example
--
-- Configures a rinApp application, displays 'Hello World' on screen and waits
-- for a key press before exit
-------------------------------------------------------------... | gpl-3.0 |
rinstrum/LUA-LIB | K400Examples/multi-hello.lua | 2 | 1411 | #!/usr/bin/env lua
-------------------------------------------------------------------------------
-- multi-device
--
-- Demonstrates how the libraries can control multiple devices
--
-- Displays 'hello' to two instruments and closes when a button is pressed on
-- a certain instrument.
---------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/spells/poisonga_ii.lua | 26 | 1132 | -----------------------------------------
-- Spell: Poisonga II
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target... | gpl-3.0 |
AdamGagorik/darkstar | 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 |
AdamGagorik/darkstar | scripts/zones/Batallia_Downs/Zone.lua | 13 | 4062 | -----------------------------------
--
-- Zone: Batallia_Downs (105)
--
-----------------------------------
package.loaded[ "scripts/zones/Batallia_Downs/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require( "scripts/zones/Batallia_Downs/TextIDs");
requi... | gpl-3.0 |
Hostle/luci | applications/luci-app-pbx-voicemail/luasrc/model/cbi/pbx-voicemail.lua | 18 | 6965 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx-voicemail.
luci-pbx-voicemail 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 3 of ... | apache-2.0 |
D-m-L/evonara | modules/libs/3d2/lib/fun.lua | 16 | 28395 | ---
--- Lua Fun - a high-performance functional programming library for LuaJIT
---
--- Copyright (c) 2013-2014 Roman Tsisyk <roman@tsisyk.com>
---
--- Distributed under the MIT/X11 License. See COPYING.md for more details.
---
local exports = {}
local methods = {}
-----------------------------------------------------... | mit |
AdamGagorik/darkstar | scripts/globals/items/nopales_salad.lua | 18 | 1174 | -----------------------------------------
-- ID: 5701
-- Item: nopales_salad
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Strength 1
-- Agility 6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
------... | gpl-3.0 |
sini370/jellytg | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
gflima/luamagic | examples/file.lua | 1 | 2258 | #!/usr/bin/env lua
-- Determine type of FILES.
--
-- Copyright (C) 2010 Guilherme F. Lima.
--
-- This file is part of LuaMagic.
--
-- LuaMagic 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 ve... | lgpl-3.0 |
AdamGagorik/darkstar | scripts/globals/abilities/violent_flourish.lua | 26 | 3715 | -----------------------------------
-- Ability: Violent Flourish
-- Stuns target with a low rate of success. Requires one Finishing Move.
-- Obtained: Dancer Level 45
-- Finishing Moves Used: 1
-- Recast Time: 0:20
-- Duration: ??
-----------------------------------
require("scripts/globals/settings");
require("script... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Vunkerl_Inlet_[S]/mobs/Gnole.lua | 13 | 1677 | -----------------------------------
-- Area: Vunkerl Inlet (S)
-- MOB: Gnole
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("transformTime", os.time())
end;
--------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Upper_Jeuno/npcs/Glyke.lua | 13 | 1512 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Glyke
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
-- onTrade A... | gpl-3.0 |
sbuettner/kong | kong/tools/faker.lua | 11 | 3216 | local Object = require "classic"
local Faker = Object:extend()
function Faker:new(dao_factory)
self.dao_factory = dao_factory
end
-- Generate a fake entity.
-- @param `type` Type of the entity to generate.
-- @return An valid entity (a table) complying to the defined schema.
function Faker:fake_entity(type... | mit |
AdamGagorik/darkstar | scripts/zones/Ship_bound_for_Mhaura/npcs/Chhaya.lua | 13 | 1311 | -----------------------------------
-- Area: Ship Bound for Mhaura
-- NPC: Chhaya
-- Standard Merchant NPC
-- @pos -1.139 -2.101 -9.000 221
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
punisherbot/helper | bot/seedbot.lua | 1 | 10056 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters/npcs/Upih_Khachla.lua | 12 | 2150 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Upih Khachla
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Silver_Sea_route_to_Al_Zahbi/npcs/Shadeeu.lua | 13 | 1142 | -----------------------------------
-- Area: Silver_Sea_route_to_Al_Zahbi
-- NPC: Shadeeu
-- Notes: Tells ship ETA time
-- @pos 0.340 -12.232 -4.120 58
-----------------------------------
package.loaded["scripts/zones/Silver_Sea_route_to_Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
Wiladams/cream | core/AsyncSocket.lua | 1 | 4920 | local ffi = require("ffi")
local bit = require("bit")
local band, bor, lshift, rshift = bit.band, bit.bor, bit.lshift, bit.rshift
local linux = require("linux")
local errnos = linux.errnos;
local asyncio = Kernel.AsyncIO
local function lookupsite(nodename, servname)
--local servname = nil; -- "http"
local r... | mit |
ohmbase/OpenRA | mods/ra/maps/soviet-05/AI.lua | 26 | 4192 | IdleHunt = function(unit) if not unit.IsDead then Trigger.OnIdle(unit, unit.Hunt) end end
IdlingUnits = function()
local lazyUnits = Map.ActorsInBox(NWIdlePoint.CenterPosition, Map.BottomRight, function(actor)
return actor.HasProperty("Hunt") and (actor.Owner == GoodGuy or actor.Owner == Greece) end)
Utils.Do(laz... | gpl-3.0 |
sbuettner/kong | spec/integration/cli/restart_spec.lua | 7 | 1106 | local IO = require "kong.tools.io"
local spec_helper = require "spec.spec_helpers"
describe("CLI", function()
setup(function()
pcall(spec_helper.stop_kong)
end)
teardown(function()
pcall(spec_helper.stop_kong)
end)
it("should restart kong when it's not running", function()
local _, code = spec... | mit |
CraftedCart/CC-Common | api/jsonParser.lua | 7 | 34842 | -- -*- 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... | mit |
Hostle/luci | applications/luci-app-qos/luasrc/model/cbi/qos/qos.lua | 36 | 2367 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local wa = require "luci.tools.webadmin"
local fs = require "nixio.fs"
m = Map("qos", translate("Quality of Service"),
translate("With <abbr title=\"Quality of Service\">QoS</abbr> you " ..
"can prioritize n... | apache-2.0 |
l0veshe/lua-resty-template | lib/resty/template/html.lua | 10 | 1201 | local template = require "resty.template"
local escape = template.escape
local concat = table.concat
local pairs = pairs
local type = type
local function tag(name, content, attr)
local r, a, content = {}, {}, content or attr
r[#r + 1] = "<"
r[#r + 1] = name
if attr then
for k, v in pairs(attr) ... | bsd-3-clause |
samuelwbaird/brogue | examples/slash/classes/slash_service.lua | 1 | 4682 | local class = require('core.class')
local array = require('core.array')
local sqlite = require('dweeb.sqlite')
local stowage = require('dweeb.stowage')
local rascal = require('rascal.core')
return class(function (slash_service)
-- api definitions ----------------------------------------------------
local request_... | mit |
AdamGagorik/darkstar | scripts/zones/Port_Bastok/npcs/Romilda.lua | 29 | 2475 | -----------------------------------
-- Area: Port Bastok
-- NPC: Romilda
-- Involved in Quest: Forever to Hold
-- Starts & Ends Quest: Till Death Do Us Part
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles"... | gpl-3.0 |
juesato/rnn | SeqGRU.lua | 5 | 14039 | --[[
The MIT License (MIT)
Copyright (c) 2016 Stéphane Guillitte, Joost van Doorn
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to u... | bsd-3-clause |
AdamGagorik/darkstar | scripts/zones/Metalworks/npcs/Ghemp.lua | 20 | 2071 | -----------------------------------
-- Area: Metalworks
-- NPC: Ghemp
-- Type: Smithing Guild Master
-- @pos -109 2 27 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/craft... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Lower_Jeuno/npcs/Stinknix.lua | 13 | 1299 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Stinknix
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
-- onTrad... | gpl-3.0 |
mynameiscraziu/karizma | plugins/meme.lua | 637 | 5791 | local helpers = require "OAuth.helpers"
local _file_memes = './data/memes.lua'
local _cache = {}
local function post_petition(url, arguments)
local response_body = {}
local request_constructor = {
url = url,
method = "POST",
sink = ltn12.sink.table(response_body),
headers = {},
red... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Jugner_Forest/npcs/Cavernous_Maw.lua | 29 | 1443 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Cavernous Maw
-- @pos -118 -8 -518 104
-- Teleports Players to Jugner Forest [S]
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
D-m-L/evonara | modules/libs/Peep/LoveFrames/objects/progressbar.lua | 3 | 8023 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- progressbar object
local newobject = loveframes.NewObject("progressbar", "loveframes_object_progressbar", true)
--[[----... | mit |
r1k/vlc | share/lua/intf/modules/host.lua | 7 | 12413 | --[==========================================================================[
host.lua: VLC Lua interface command line host module
--[==========================================================================[
Copyright (C) 2007-2012 the VideoLAN team
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>
... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Ordelles_Caves/npcs/Ruillont.lua | 13 | 2298 | -----------------------------------
-- Area: Ordelles Caves
-- NPC: Ruillont
-- Involved in Mission: The Rescue Drill
-- @pos -70 1 607 193
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require... | gpl-3.0 |
TrurlMcByte/docker-prosody | etc/prosody-modules/mod_presence_cache/mod_presence_cache.lua | 1 | 3028 | -- XEP-0280: Message Carbons implementation for Prosody
-- Copyright (C) 2015-2016 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local is_contact_subscribed = require"core.rostermanager".is_contact_subscribed;
local jid_split = require"util.jid".split;
local jid_bare = require"util.jid".bare;
local st = require"uti... | mit |
AdamGagorik/darkstar | scripts/zones/Northern_San_dOria/npcs/Morunaude.lua | 13 | 1412 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Morunaude
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
requ... | gpl-3.0 |
TrurlMcByte/docker-prosody | etc/prosody-modules/mod_statistics/mod_statistics.lua | 32 | 3681 | module:set_global();
local stats = module:require("mod_statistics/stats");
local filters = require "util.filters";
local serialize = require "util.serialization".serialize;
local cached_values = {};
local sessions = {};
local function push_stat(conn, name, value)
local value_str = serialize(value);
return conn:wr... | mit |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters/npcs/Chomoro-Kyotoro.lua | 13 | 1642 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Chomoro-Kyotoro
-- Involved in Quest: Making the Grade
-- @zone = 238
-- @pos = 133 -5 167
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
----... | gpl-3.0 |
ohmbase/OpenRA | mods/cnc/maps/nod02a/nod02a.lua | 19 | 7989 | NodUnits = { "bggy", "e1", "e1", "e1", "e1", "e1", "bggy", "e1", "e1", "e1", "bggy" }
NodBaseBuildings = { "hand", "fact", "nuke" }
DfndActorTriggerActivator = { Refinery, Barracks, Powerplant, Yard }
Atk3ActorTriggerActivator = { Guard1, Guard2, Guard3, Guard4, Guard5, Guard6, Guard7 }
Atk1CellTriggerActivator = { C... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Port_San_dOria/npcs/Callort.lua | 13 | 1355 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Callort
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/TextIDs");
--... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Waughroon_Shrine/bcnms/hills_are_alive.lua | 30 | 1818 | -----------------------------------
-- Area: Waughroon_Shrine
-- Name: Hills are Alive
-- KSNM99
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.