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 |
|---|---|---|---|---|---|
sjznxd/lc-20130204 | libs/core/luasrc/model/firewall.lua | 84 | 11156 | --[[
LuCI - Firewall model
Copyright 2009 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | apache-2.0 |
AdamGagorik/darkstar | scripts/globals/spells/geohelix.lua | 26 | 1688 | --------------------------------------
-- Spell: Geohelix
-- Deals earth damage that gradually reduces
-- a target's HP. Damage dealt is greatly affected by the weather.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/mag... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Castle_Oztroja/npcs/_47w.lua | 13 | 1276 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47w (Handle)
-- Notes: Opens door _473 from behind
-- @pos -41.377 -17.084 17.036 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Cast... | gpl-3.0 |
chfg007/skynet | lualib/snax.lua | 59 | 3683 | local skynet = require "skynet"
local snax_interface = require "snax.interface"
local snax = {}
local typeclass = {}
local interface_g = skynet.getenv("snax_interface_g")
local G = interface_g and require (interface_g) or { require = function() end }
interface_g = nil
skynet.register_protocol {
name = "snax",
id =... | mit |
AdamGagorik/darkstar | scripts/zones/Qufim_Island/npcs/Giant_Footprint.lua | 13 | 1039 | -----------------------------------
-- Area: Qufim Island
-- NPC: Giant Footprint
-- Involved in quest: Regaining Trust
-- @pos 501 -11 354 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Qufim_Island/TextID... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/weaponskills/impulse_drive.lua | 11 | 1509 | -----------------------------------
-- Impulse Drive
-- Polearm weapon skill
-- Skill Level: 240
-- Delivers a two-hit attack. Damage varies with TP.
-- In order to obtain Impulse Drive, the quest Methods Create Madness must be completed.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget, Soil Gorget &... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Port_San_dOria/npcs/Gallijaux.lua | 11 | 3445 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Gallijaux
-- Starts The Rivalry
-- @zone: 232
-- @pos -14 -2 -45
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_San_dOria/TextIDs")... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Selbina/npcs/Abelard.lua | 13 | 7641 | -----------------------------------
-- Area: Selbina
-- NPC: Abelard
-- An Explorer's Footsteps
-- @pos -52 -11 -13 248
-- This quest was changed to require a minimum amount of fame to combat RMTs POS-Hacking around to
-- quickly earn gil. However, as this is not a legitimate concern on private servers players ma... | gpl-3.0 |
Nathan22Miles/sile | lua-libraries/std/strbuf.lua | 6 | 1203 | --[[--
String buffers.
@classmod std.strbuf
]]
local Object = require "std.object"
--- Add a string to a buffer.
-- @tparam string s string to add
-- @treturn std.strbuf modified buffer
local function concat (self, s)
table.insert (self, s)
return self
end
--- Convert a buffer to a string.
-- @treturn strin... | mit |
aquileia/wesnoth | data/lua/wml/message.lua | 1 | 11513 |
local helper = wesnoth.require "lua/helper.lua"
local utils = wesnoth.require "lua/wml-utils.lua"
local location_set = wesnoth.require "lua/location_set.lua"
local _ = wesnoth.textdomain "wesnoth"
local function log(msg, level)
wesnoth.log(level, msg, true)
end
local function get_image(cfg, speaker)
local image = ... | gpl-2.0 |
AdamGagorik/darkstar | scripts/globals/items/serving_of_beaugreen_sautee.lua | 18 | 1404 | -----------------------------------------
-- ID: 4572
-- Item: serving_of_beaugreen_sautee
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -1
-- Ranged ATT % 7
-- Ranged ATT Cap 15
-----------------------------------------
require("scripts/globals/status");
-------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/coeurl_sub_+1.lua | 18 | 1925 | -----------------------------------------
-- ID: 5167
-- Item: coeurl_sub_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 15
-- Strength 6
-- Agility 1
-- Intelligence -2
-- Health Regen While Healing 1
-- Attack % 22
-- Attack Cap 80
-- Ranged ATT % 22
-- Ranged ATT Cap 80
-- Sle... | gpl-3.0 |
diarmuidcwc/LuaDissectors | mpegts.lua | 1 | 2342 |
-------------------------------------------------------
-- This is a basic Wireshark dissector for the MPEG Transport Stream Payload
-------------------------------------------------------
-- Copyright 2014 Diarmuid Collins dcollins@curtisswright.com
-- https://github.com/diarmuid
-- https://github.com/diarmui... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Northern_San_dOria/npcs/Alphollon_C_Meriard.lua | 12 | 3560 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Alphollon C Meriard
-- Type: Purifies cursed items with their corresponding abjurations.
-- @zone: 231
-- @pos 98.108 -1 137.999
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
---------------... | gpl-3.0 |
mahmedhany128/Mr_BOT | plugins/supergroup.lua | 3 | 80784 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY faeder ▀▄ ▄▀
▀▄ ▄▀ BY faeder (@xXxDev_iqxXx) ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ faeder : سوبر كروب ▀... | gpl-2.0 |
TrurlMcByte/docker-prosody | etc/prosody-modules/mod_muc_log/mod_muc_log.lua | 32 | 4843 | -- Copyright (C) 2009 Thilo Cestonaro
-- Copyright (C) 2009 Waqas Hussain
-- Copyright (C) 2009-2013 Matthew Wild
-- Copyright (C) 2013 Kim Alvefur
-- Copyright (C) 2013 Marco Cirillo
local hosts = prosody.hosts;
local tostring = tostring;
local split_jid = require "util.jid".split;
local datamanager = require"core.st... | mit |
AdamGagorik/darkstar | scripts/zones/Port_Windurst/npcs/Choyi_Totlihpa.lua | 13 | 1471 | -----------------------------------
-- Area: Port Windurst
-- NPC: Choyi Totlihpa
-- Type: Standard NPC
-- @pos -58.927 -5.732 132.819 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require... | gpl-3.0 |
sbuettner/kong | spec/plugins/response_transformer_spec.lua | 14 | 3160 | local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local cjson = require "cjson"
local STUB_GET_URL = spec_helper.PROXY_URL.."/get"
local STUB_HEADERS_URL = spec_helper.PROXY_URL.."/response-headers"
describe("Response Transformer Plugin #proxy", function()
setup(f... | mit |
AdamGagorik/darkstar | scripts/zones/South_Gustaberg/mobs/Rock_Lizard.lua | 6 | 1374 | -----------------------------------
-- Area: South Gustaberg
-- MOB: Rock Lizard
-- Note: Place holder Leaping Lizzy
-----------------------------------
require("scripts/zones/South_Gustaberg/MobIDs");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onMobDeath
-----------------------... | gpl-3.0 |
Nathan22Miles/sile | core/harfbuzz-shaper.lua | 1 | 3290 |
if not SILE.shapers then SILE.shapers = { } end
SILE.shapers.harfbuzz = {}
SILE.tokenizers.default = function(text)
return SU.gtoke(text, SILE.settings.get("shaper.spacepattern"))
end
SILE.settings.declare({
name = "shaper.spacepattern",
type = "string",
default = "%s+",
help = "The Lua pattern used for s... | mit |
AdamGagorik/darkstar | scripts/zones/Sacrificial_Chamber/npcs/_4j0.lua | 13 | 1471 | -----------------------------------
-- Area: Sacrificial Chamber
-- NPC: Mahogany Door
-- @pos 299 0.1 349 163
-------------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/missio... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Daruru_WW.lua | 13 | 3349 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Daruru, W.W.
-- Type: Border Conquest Guards
-- @pos -120.393 -25.822 -592.604 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Dynamis-Windurst/bcnms/dynamis_windurst.lua | 22 | 1323 | -----------------------------------
-- Area: Dynamis Windurst
-- Name: Dynamis Windurst
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaWindurst]UniqueID",player:getDynamisUniqueID(1282));
SetServer... | gpl-3.0 |
D-m-L/evonara | modules/libs/Peep/LoveFrames/objects/internal/menuoption.lua | 9 | 5963 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- menuoption object
local newobject = loveframes.NewObject("menuoption", "loveframes_object_menuoption", true)
--[[-------... | mit |
Hostle/luci | libs/luci-lib-nixio/root/usr/lib/lua/nixio/util.lua | 179 | 5824 | --[[
nixio - Linux I/O library for lua
Copyright 2009 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
local... | apache-2.0 |
Dynosaur/dynosaur | Dynosaur.wx.lua | 1 | 52483 | --[[
Dynosaur
Author: pulsar
License: GNU GPLv3
Environment: wxLua-2.8.12.3-Lua-5.1.5-MSW-Unicode
This Project is licensed under GPLv3, read 'docs/LICENSE-Dynosaur' for more details.
To check the version history read 'docs/CHANGELOG'.
]]
... | gpl-3.0 |
hlieberman/sysdig | userspace/sysdig/chisels/v_procs_errors.lua | 4 | 4052 | --[[
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/Dynamis-Xarcabard/mobs/Effigy_Prototype.lua | 6 | 1100 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Effigy Prototype
-----------------------------------
package.loaded["scripts/zones/Dynamis-Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/dynamis");
require("scripts/zones... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/remedy.lua | 17 | 1283 | -----------------------------------------
-- ID: 4155
-- Item: Remedy
-- Item Effect: This potion remedies status ailments.
-- Works on paralysis, silence, blindness, poison, and disease.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
aqasaeed/hesam | bot/seedbot.lua | 1 | 9968 | 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 |
TrurlMcByte/docker-prosody | etc/prosody-modules/mod_list_inactive/mod_list_inactive.lua | 11 | 1534 | -- Copyright (C) 2012-2013 Kim Alvefur
local um = require "core.usermanager";
local sm = require "core.storagemanager";
local dm_load = require "util.datamanager".load;
local jid_join = require"util.jid".join;
local multipliers = {
d = 86400, -- day
w = 604800, -- week
m = 2629746, -- month
y = 31556952, -- year
... | mit |
CCAAHH/Teleseed | bot/utils.lua | 646 | 23489 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Woods/npcs/Apururu.lua | 12 | 7966 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Apururu
-- Involved in Quests: The Kind Cardian, Can Cardians Cry?
-- @zone 241
-- @pos -11 -2 13
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
packa... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/weaponskills/slug_shot.lua | 11 | 1542 | -----------------------------------
-- Slug Shot
-- Marksmanship weapon skill
-- Skill Level: 175
-- Delivers an inparams.accurate attack that deals quintuple damage. params.accuracy varies with TP.
-- Despite the lack of a STR weaponskill mod, STR is still the most potent stat for increasing this weaponskill's damage ... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Lower_Jeuno/npcs/Chetak.lua | 13 | 1405 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Chetak
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
-- onTrade ... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5ct.lua | 13 | 2583 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5ct (Magical Gizmo) #5
-- Involved In Mission: The Horutoto Ruins Experiment
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
Hostle/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua | 68 | 2351 | -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ast = require("luci.asterisk")
--
-- SIP trunk info
--
if arg[2] == "info" then
form = SimpleForm("asterisk", "SIP Trunk Information")
form.reset = false
form.submit = "Back to overview"
local info,... | apache-2.0 |
jeradjohnson/AdvancedOilPump | prototypes/pump-2.lua | 1 | 2686 | data:extend({
-- Item
{
type = "item",
name = "AOP-pumpjack-2",
icon = "__base__/graphics/icons/pumpjack.png",
flags = {"goes-to-quickbar"},
subgroup = "liquid-pump",
place_result = "AOP-pumpjack-2",
stack_size = 20
},
--Recipe
{
type = "recipe",
name = "AOP-pumpjack-2",
e... | mit |
AdamGagorik/darkstar | scripts/globals/items/plate_of_squid_sushi.lua | 17 | 1612 | -----------------------------------------
-- ID: 5148
-- Item: plate_of_squid_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 30
-- Dexterity 6
-- Agility 5
-- Mind -1
-- Accuracy % 15
-- Ranged ACC % 15
-- Sleep Resist 5
-----------------------------------------
require("scr... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Grauberg_[S]/npcs/qm1.lua | 30 | 1695 | -----------------------------------
-- Area: Grauberg [S]
-- NPC: ???
-- Quest - DNC AF1
-----------------------------------
package.loaded["scripts/zones/Grauberg_[S]/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
require("scripts/zones/Grauberg_[S]/TextIDs");
-----... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Windurst-Jeuno_Airship/TextIDs.lua | 22 | 1084 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6384; -- Obtained: <item>
GIL_OBTAINED = 6385; -- Obtained <number> gil
KEYITEM_OBTAINED = 6387; -- Obtain... | gpl-3.0 |
thomasgabor/hades | hades.lua | 1 | 20748 | --HADES a discrete environment simulator
--[[
local dbgconnection = require "debugger"
dbgconnection("127.0.0.1", 10000, "hadeskey")
--]]--
here = string.match(arg[0], "^.*/") or "./"
package.path = here.."hexameter/?.lua;"..here.."lib/?.lua;"..package.path
local hexameter = require "hexameter"
local serialize = requ... | gpl-3.0 |
sjznxd/lc-20130204 | modules/admin-full/luasrc/model/cbi/admin_network/network.lua | 19 | 2372 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
h... | apache-2.0 |
zlua/zLua | luasocket3.0/src/ltn12.lua | 33 | 8589 | -----------------------------------------------------------------------------
-- LTN12 - Filters, sources, sinks and pumps.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
------------------------------------------------------------------------... | mit |
juesato/rnn | examples/encoder-decoder-coupling.lua | 3 | 3983 | --[[
Example of "coupled" separate encoder and decoder networks, e.g. for sequence-to-sequence networks.
]]--
require 'rnn'
version = 1.4 -- Uses [get,set]GradHiddenState for LSTM
local opt = {}
opt.learningRate = 0.1
opt.hiddenSize = 6
opt.numLayers = 1
opt.useSeqLSTM = true -- faster implementation of LSTM + Seq... | bsd-3-clause |
D-m-L/evonara | maps/island01.lua | 1 | 65926 | return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 128,
height = 128,
tilewidth = 8,
tileheight = 8,
properties = {},
tilesets = {
{
name = "island1.png",
firstgid = 1,
tilewidth = 8,
tileheight = 8,
spacing = 0,
margin = 0,
... | mit |
Hostle/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua | 48 | 2480 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
m = Map("network", translate("Interfaces"))
m.pageaction = false
m:section(SimpleSection).template = "admin_network/iface_overvi... | apache-2.0 |
AdamGagorik/darkstar | scripts/zones/Port_Windurst/TextIDs.lua | 8 | 6323 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 10962; -- Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 10966; -- Try trading again after sorting your inventory.
ITEM_OBTAINED = 10967; -- Obtained:
... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Xarcabard_[S]/mobs/Fusty_Gnole.lua | 13 | 1699 | -----------------------------------
-- Area: Xarcabard (S)
-- NPC: Fusty Gnole
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("transformTime", os.time())
end;
-------------------------------... | gpl-3.0 |
sbuettner/kong | spec/integration/proxy/dns_resolver_spec.lua | 1 | 1250 | local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local TCP_PORT = spec_helper.find_port()
describe("DNS", function()
setup(function()
spec_helper.prepare_db()
spec_helper.insert_fixtures {
api = {
{ name = "tests dns 1", public_dns = "dns1.c... | mit |
TrurlMcByte/docker-prosody | etc/prosody-modules/mod_track_muc_joins/mod_track_muc_joins.lua | 1 | 1282 | local jid_bare = require "util.jid".bare;
local sessions = prosody.full_sessions;
module:hook("presence/full", function (event)
local stanza = event.stanza;
local session = sessions[stanza.attr.to];
if not session then return end;
local log = session.log or module._log;
local muc_x = stanza:get_child("x", "http:... | mit |
D-m-L/evonara | modules/libs/Peep/LoveFrames/objects/numberbox.lua | 3 | 12802 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- numberbox object
local newobject = loveframes.NewObject("numberbox", "loveframes_object_numberbox", true)
--[[----------... | mit |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters/npcs/Ness_Rugetomal.lua | 12 | 1686 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ness Rugetomal
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/TextI... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Northern_San_dOria/npcs/Esqualea.lua | 13 | 1411 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Esqualea
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
requi... | gpl-3.0 |
henfredemars/random-forest | Symbolizer.lua | 1 | 5770 |
-- fixup
require('path-compat')
-- imports
local class = require("pl.class")
local Set = require("pl.Set")
local stringx = require("pl.stringx")
local tablex = require("pl.tablex")
local test = require("pl.test")
local pretty = require("pl.pretty")
local C = require("pl.comprehension").new()
local Util = require("Ut... | mit |
AdamGagorik/darkstar | scripts/zones/Port_San_dOria/npcs/_6g7.lua | 13 | 1116 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Door: Arrivals Entrance
-- @zone 232
-- @pos -24 -8 15
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/North_Gustaberg/npcs/relic.lua | 13 | 1854 | -----------------------------------
-- Area: North Gustaberg
-- NPC: <this space intentionally left blank>
-- @pos -217 97 461 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/North_Gustaberg/TextIDs");
-... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Dynamis-Windurst/mobs/Xoo_Kaza_the_Solemn.lua | 7 | 1032 | -----------------------------------
-- Area: Dynamis Windurst
-- NPC: Xoo Kaza the Solemn
-- Boss Trigger for RDM NM
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
end;
-----------------------------------
-- o... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Rabao/npcs/Alfesar.lua | 12 | 2419 | -----------------------------------
-- Area: Rabao
-- NPC: Alfesar
-- Standard Info NPC
--Starts The Missing Piece
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
requi... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Al_Zahbi/npcs/Gaweesh.lua | 13 | 1044 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Gaweesh
-- Type: Najelith's Attendant
-- @zone: 48
-- @pos -64.537 -8 37.928
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
--------------------... | gpl-3.0 |
tahashakiba/xx | plugins/danbooru.lua | 616 | 1750 | do
local URL = "http://danbooru.donmai.us"
local URL_NEW = "/posts.json"
local URL_POP = "/explore/posts/popular.json"
local scale_day = "?scale=day"
local scale_week = "?scale=week"
local scale_month = "?scale=month"
local function get_post(url)
local b, c, h = http.request(url)
if c ~= 200 then return nil end
... | gpl-2.0 |
sjznxd/lc-20130204 | applications/luci-pbx/luasrc/model/cbi/pbx-google.lua | 146 | 5490 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx 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 the License, or
... | apache-2.0 |
rinstrum/LUA-LIB | C500Examples/marquee.lua | 2 | 3052 | #!/usr/bin/env lua
-------------------------------------------------------------------------------
-- myApp
--
-- Application template
--
-- Copy this file to your project directory and insert the specific code of
-- your application
-------------------------------------------------------------------------------
local... | gpl-3.0 |
samuelwbaird/brogue | source/dweeb/sqlite.lua | 1 | 17104 | -- wraps access to sqlite with
-- database
-- statement
-- result
-- query builder
-- copyright 2014 Samuel Baird MIT Licence
local table = require('table')
local string = require('string')
local sql = require('lsqlite3')
local class = require('core.class')
local array = require('core.array')
local cache = require('... | mit |
AdamGagorik/darkstar | scripts/zones/RuLude_Gardens/npcs/Perisa-Neburusa.lua | 13 | 1063 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Perisa-Neburusa
-- Type: Residence Renter
-- @zone: 243
-- @pos 54.651 8.999 -74.372
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-... | gpl-3.0 |
FrostOS-Team/FrostOS | programs/frostantivirus.lua | 1 | 1059 | --[[
Frost Antivirus
Developed for FrostOS but can be used in anything (including CraftOS)
--]]
w, h = term.getSize()
ver = "0.1"
term.setCursorPos(w, h)
write("Connecting to github... ")
local virusdatabase = http.get("https://raw.githubusercontent.com/FrostOS-Team/FrostAntiVirus-Database/master/virus.data")
term.setT... | gpl-2.0 |
hlieberman/sysdig | userspace/sysdig/chisels/spy_syslog.lua | 3 | 5814 | --[[
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 |
SilentStar/BolScripts-1 | ViktorMechanics.lua | 19 | 24132 | --[[
_____ _____ __ .__
/ \_______ / _ \________/ |_|__| ____ __ __ ____ ____
/ \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \
/ Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> )
\____|__ /__| \___... | gpl-2.0 |
AdamGagorik/darkstar | scripts/globals/spells/foe_requiem_iv.lua | 26 | 1631 | -----------------------------------------
-- Spell: Foe Requiem IV
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target... | gpl-3.0 |
77ricardo77/google-diff-match-patch | lua/diff_match_patch.lua | 265 | 73869 | --[[
* Diff Match and Patch
*
* Copyright 2006 Google Inc.
* http://code.google.com/p/google-diff-match-patch/
*
* Based on the JavaScript implementation by Neil Fraser.
* Ported to Lua by Duncan Cross.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance ... | apache-2.0 |
Laeeth/dub | test/inspect_template_test.lua | 4 | 3732 | --[[------------------------------------------------------
dub.Inspector
-------------
Test template parsing and introspective operations with
the 'template' group of classes.
--]]------------------------------------------------------
local lub = require 'lub'
local lut = require 'lut'
local dub = require 'd... | mit |
paritoshmmmec/kong | kong/plugins/log_serializers/alf.lua | 5 | 6615 | -- ALF serializer module.
-- ALF is the format supported by Mashape Analytics (http://apianalytics.com)
--
-- This module represents _one_ ALF entry, which can have multiple requests entries.
-- # Usage:
--
-- ## Create the ALF like so:
-- local alf = ALFSerializer:new_alf()
--
-- ## Add entries:
-- local n... | mit |
rinstrum/LUA-LIB | src/rinLibrary/GenericUtil.lua | 2 | 16107 | -------------------------------------------------------------------------------
--- General Utilities.
-- General Functions for configuring the instrument
-- @module rinLibrary.Device.Util
-- @author Darren Pearson
-- @author Merrick Heley
-- @copyright 2014 Rinstrum Pty Ltd
-------------------------------------------... | gpl-3.0 |
antlad/route_solver_service | profiles/bicycle.lua | 1 | 14462 | -- Bicycle profile
local find_access_tag = require("lib/access").find_access_tag
local limit = require("lib/maxspeed").limit
local set_classification = require("lib/guidance").set_classification
-- Begin of globals
barrier_whitelist = { [""] = true, ["cycle_barrier"] = true, ["bollard"] = true, ["entrance"] = true, [... | mit |
sbuettner/kong | spec/integration/proxy/realip_spec.lua | 7 | 1526 | local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local stringy = require "stringy"
local cjson = require "cjson"
local utils = require "kong.tools.utils"
local IO = require "kong.tools.io"
local FILE_LOG_PATH = os.tmpname()
describe("Real IP", function()
setup(fu... | mit |
AdamGagorik/darkstar | scripts/zones/Ilrusi_Atoll/npcs/Excaliace.lua | 30 | 4512 | -----------------------------------
-- Area: Periqia
-- NPC: Excaliace
-----------------------------------
require("scripts/zones/Periqia/IDs");
require("scripts/globals/pathfind");
local start = {-322,-16.5,380};
local startToChoice1 = {
-320.349548, -16.046591, 379.684570
-318.312317, -16.046591, 379.5798... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/serving_of_black_curry.lua | 18 | 1884 | -----------------------------------------
-- ID: 4297
-- Item: serving_of_black_curry
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 2
-- Vitality 4
-- Intelligence -1
-- Health Regen While Healing 2
-- Magic Regen While Healing 1
-- defense % 15
-- Accuracy 5
-- Evasion 5
-- R... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/roll_of_sylvan_excursion.lua | 18 | 1574 | -----------------------------------------
-- ID: 5551
-- Item: Roll of Sylvan Excursion
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10
-- MP +3% Cap 15
-- Intelligence +3
-- HP Recovered while healing +2
-- MP Recovered while healing +5
-----------------------... | gpl-3.0 |
Hostle/luci | modules/luci-mod-rpc/luasrc/controller/rpc.lua | 37 | 4466 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local require = require
local pairs = pairs
local print = print
local pcall = pcall
local table = table
module "luci.controller.rpc"
function index()
local ... | apache-2.0 |
AdamGagorik/darkstar | scripts/globals/spells/sacrifice.lua | 33 | 1201 | -----------------------------------------
-- Spell: Sacrifice
--
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/mobskills/Nullifying_Dropkick.lua | 58 | 1046 | ---------------------------------------------
-- Nullifying Dropkick
--
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/zones/Empyreal_Paradox/TextIDs");
-----------------------------------... | gpl-3.0 |
Hostle/luci | protocols/luci-proto-ppp/luasrc/model/network/proto_ppp.lua | 18 | 2363 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local netmod = luci.model.network
local _, p
for _, p in ipairs({"ppp", "pptp", "pppoe", "pppoa", "3g", "l2tp", "pppossh"}) do
local proto = netmod:register_protocol(p)
function proto.get_i18n(self)
if p ... | apache-2.0 |
LuaDist2/luasocket-unix | samples/cddb.lua | 56 | 1415 | local socket = require("socket")
local http = require("socket.http")
if not arg or not arg[1] or not arg[2] then
print("luasocket cddb.lua <category> <disc-id> [<server>]")
os.exit(1)
end
local server = arg[3] or "http://freedb.freedb.org/~cddb/cddb.cgi"
function parse(body)
local lines = string.gfind(bo... | mit |
AdamGagorik/darkstar | scripts/zones/Port_Bastok/npcs/HomePoint#1.lua | 27 | 1267 | -----------------------------------
-- Area: Port Bastok
-- NPC: HomePoint#1
-- @pos 58.850 7.499 -27.790 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_Bastok/TextIDs");
require("scripts/globals/home... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/spells/bluemagic/frenetic_rip.lua | 35 | 1729 | -----------------------------------------
-- Spell: Frenetic Rip
-- Delivers a threefold attack. Damage varies with TP
-- Spell cost: 61 MP
-- Monster Type: Demon
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: INT+1
-- Level: 63
-- Casting Time: 0.5 seconds
-- Recast Time: 28.5 seconds
-- Skillc... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/spells/bluemagic/uppercut.lua | 35 | 1828 | -----------------------------------------
-- Spell: Uppercut
-- Damage varies with TP
-- Spell cost: 31 MP
-- Monster Type: Plantoids
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: STR+2, DEX+1
-- Level: 38
-- Casting Time: 0.5 seconds
-- Recast Time: 17.75 seconds
-- Skillchain Element(s): Fire... | gpl-3.0 |
Hostle/luci | applications/luci-app-multi-user/luasrc/users.lua | 1 | 9262 | -- luci/openwrt multi user implementation V2 --
-- users.lua by Hostle 01/13/2016 --
module("luci.users", package.seeall)
--## General dependents ##--
require "luci.sys"
require("uci")
--## Add/Remove User files and dependants ##--
local fs = require "nixio.fs"
local util = require ("luci.util")
local uci = uci.curs... | apache-2.0 |
AdamGagorik/darkstar | scripts/globals/mobskills/Chemical_Bomb.lua | 28 | 1133 | ---------------------------------------------
-- Chemical_Bomb
--
-- Description: slow + elegy
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------
function onMob... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Ifrits_Cauldron/npcs/Treasure_Coffer.lua | 13 | 5076 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: Treasure Coffer
-- @zone 205
-- @pos 188 0 -28
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyi... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Kristen.lua | 13 | 1056 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Kristen
-- Type: Standard NPC
-- @zone: 94
-- @pos 2.195 -2 60.296
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
--------... | gpl-3.0 |
Android092921/season | plugins/stats.lua | 2 | 3996 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
AdamGagorik/darkstar | scripts/globals/regimeinfo.lua | 35 | 13239 | -------------------------------------------------
--
-- Regime Info Database
--
-- Stores details on the number of monsters to kill
-- as well as the suggested level range.
-- n1,n2,n3,n4 = Number of monsters needed
-- sl = Start Level range
-- el = Level range
--
-- Example:
-- n1=6, n2=0, n3=0, n4=0, sl=1, el=6, Regi... | gpl-3.0 |
Air-Fighter/seq2seq4te | utils.lua | 1 | 3115 | --[[
Utility functions.
--]]
require("torch")
--require("cutorch")
require("nn")
--require("cunn")
require("nngraph")
require("pl")
-- list comprehension operator
COMP = require("pl.comprehension").new()
function printerr(msg, newline)
local suffix = newline or "\n"
io.stderr:write(tostring(msg) .... | apache-2.0 |
Wiladams/cream | ovs/ovsdb/log.lua | 1 | 1437 | local ffi = require("ffi")
ffi.cdef[[
struct json;
struct ovsdb_log;
typedef struct int64_t off_t;
/* Access mode for opening an OVSDB log. */
enum ovsdb_log_open_mode {
OVSDB_LOG_READ_ONLY, /* Open existing file, read-only. */
OVSDB_LOG_READ_WRITE, /* Open existing file, read/write. */
OVSD... | mit |
karottenreibe/luapdf | lib/bookmarks.lua | 1 | 5662 | ----------------------------------------------------------------
-- Bookmark managing --
-- Copyright © 2010 Henning Hasemann <hhasemann@web.de> --
-- Copyright © 2010 Mason Larobina <mason.larobina@gmail.com> --
------------------------------------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Port_Windurst/npcs/Sattsuh_Ahkanpari.lua | 16 | 1538 | -----------------------------------
-- Area: Port Windurst
-- NPC: Sattsuh Ahkanpari
-- Regional Marchant NPC
-- Only sells when Windurst controlls Elshimo Uplands
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loa... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/East_Ronfaure/npcs/Croteillard.lua | 13 | 1044 | -----------------------------------
-- Area: East Ronfaure
-- NPC: Croteillard
-- Type: Gate Guard
-- @pos 87.426 -62.999 266.709 101
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/East_Ronfaure/TextIDs");... | gpl-3.0 |
Snazz2001/fbcunn | fbcunn/AbstractParallel.lua | 8 | 7985 | -- Copyright 2004-present Facebook. All Rights Reserved.
require('cutorch')
local withDevice = cutorch.withDevice
local gpu_local_copy_buffers = {}
--[[
`nn.AbstractParallel` is the base class for modules controlling
data/model-parallel behaviour in Torch.
The key concept is that data/model-parallelism _splits_ a... | bsd-3-clause |
tahashakiba/xx | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Rakh_Mhappyoh.lua | 13 | 1066 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Rakh Mhappyoh
-- Type: Standard NPC
-- @zone: 94
-- @pos -55.989 -4.5 48.365
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.