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 |
|---|---|---|---|---|---|
nasomi/darkstar | scripts/globals/items/galkan_sausage_-1.lua | 35 | 1586 | -----------------------------------------
-- ID: 5862
-- Item: galkan_sausage_-1
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength -3
-- Dexterity -3
-- Vitality -3
-- Agility -3
-- Mind -3
-- Intelligence -3
-- Charisma -3
-----------------------------------------
re... | gpl-3.0 |
actboy168/YDWE | Development/Component/plugin/w3x2lni/script/gui/new/page/index.lua | 3 | 1295 | local gui = require 'yue.gui'
local timer = require 'gui.timer'
local lang = require 'share.lang'
local ui = require 'gui.new.template'
local template = ui.container {
style = { FlexGrow = 1, FlexDirection = 'row', AlignItems = 'center', JustifyContent = 'center' },
ui.label {
text = lang.ui.DRAG_MAP,
... | gpl-3.0 |
nasomi/darkstar | scripts/globals/spells/plenilune_embrace.lua | 18 | 1964 | -----------------------------------------
-- Spell: Plenilune Embrace
-- Restores target party member's HP and enhances attack and magic attack..
-- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html
-----------------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/blowfish.lua | 18 | 1257 | -----------------------------------------
-- ID: 5812
-- Item: Blowfish
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 1
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----------... | gpl-3.0 |
haka-security/haka | sample/stats/stats_utils.lua | 5 | 2760 |
local function group_by(tab, field)
local ret = {}
for _, entry in ipairs(tab) do
local value = entry[field]
assert(value, string.format("stats are not available on field %s", field))
if not ret[value] then
ret[value] = {}
end
table.insert(ret[value], entry)
end
return ret
end
local function order_by... | mpl-2.0 |
nasomi/darkstar | scripts/zones/Southern_San_dOria/npcs/Vaquelage.lua | 34 | 1528 | -----------------------------------
-- Area: Southern San dOria
-- NPC: Vaquelage
-- Type: Item Deliverer NPC
-- @pos 17.396 1.699 -29.357 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/sett... | gpl-3.0 |
RhenaudTheLukark/CreateYourFrisk | Assets/Mods/RTLGeno/Lua/Monsters/Lukark.lua | 1 | 3267 | -- A basic monster script skeleton you can copy and modify for your own creations.
comments = { "Lukark is vengeful.", "Lukark prepares his next move.", "Lukark frowns at you.",
"Lukark brushes his hair as dust gets into it.", "Lukark gazes at you with intensity.",
"The dust staining your clot... | gpl-3.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c2700061.lua | 1 | 1190 | --P-042 Great Ape Prince Vegeta
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddPlayProcedure(c,COLOR_YELLOW,2,2)
ds.AddSetcode(c,CHARACTER_VEGETA,SPECIAL_TRAIT_SAIYAN,SPECIAL_TRAIT_GREAT_APE)
--critical
ds.EnableCritical(c)
... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Bastok_Mines/npcs/Rodellieux.lua | 36 | 1462 | -----------------------------------
-- Area: Bastok_Mines
-- NPC: Rodellieux
-- Only sells when Bastok controlls Fauregandi Region
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scri... | gpl-3.0 |
thesabbir/luci | applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev.lua | 39 | 3926 | -- Copyright 2015 Jian Chang <aa65535@live.com>
-- Licensed to the public under the Apache License 2.0.
local m, s, o, e, a
if luci.sys.call("pidof ss-redir >/dev/null") == 0 then
m = Map("shadowsocks-libev", translate("ShadowSocks-libev"), translate("ShadowSocks-libev is running"))
else
m = Map("shadowsocks-libev"... | apache-2.0 |
mlem/wesnoth | data/ai/micro_ais/cas/ca_recruit_random.lua | 26 | 4781 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require("ai/lua/ai_helper.lua")
local LS = wesnoth.dofile "lua/location_set.lua"
local recruit_type
local ca_recruit_random = {}
function ca_recruit_random:evaluation(ai, cfg)
-- Random recruiting from all the units the side has
-- Check if leade... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Northern_San_dOria/npcs/Belgidiveau.lua | 17 | 2240 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Belgidiveau
-- Starts and Finishes Quest: Trouble at the Sluice
-- @zone 231
-- @pos -98 0 69
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
req... | gpl-3.0 |
raburton/nodemcu-firmware | lua_modules/ds18b20/ds18b20.lua | 18 | 3492 | --------------------------------------------------------------------------------
-- DS18B20 one wire module for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- Vowstar <vowstar@nodemcu.com>
-- 2015/02/14 sza2 <sza2trash@gmail.com> Fix for negative values
---------------------------------------... | mit |
TeamHypersomnia/Augmentations | hypersomnia/content/official/gfx/resistance_torso_bare_walk_shot_3.meta.lua | 2 | 2737 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 0.40000000596046448,
amplification = 100,
light_colors = {
"223 113 38 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
generate_desaturation = fals... | agpl-3.0 |
thesabbir/luci | applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdiface6.lua | 68 | 5949 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local util = require "luci.util"
local ip = require "luci.ip"
function write_float(self, section, value)
local n = tonumber(value)
if n ~= nil then
return Value.write(self, section, "%.1f" % n)
... | apache-2.0 |
saucisson/layeredata | src/layeredata/init.lua | 3 | 30238 | local C3 = require "c3"
local Coromake = require "coroutine.make"
local Uuid = require "uuid"
Uuid.seed ()
local Layer = setmetatable ({}, {
__tostring = function () return "Layer" end
})
local Proxy = setmetatable ({}, {
__tostring = function () return "Proxy" end
})
local Reference = setmetatable ({},... | mit |
nasomi/darkstar | scripts/zones/Castle_Zvahl_Baileys/Zone.lua | 28 | 3517 | -----------------------------------
--
-- Zone: Castle_Zvahl_Baileys (161)
--
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Baileys/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zone... | gpl-3.0 |
nasomi/darkstar | scripts/globals/mobskills/Havoc_Spiral.lua | 25 | 1095 | ---------------------------------------------
-- Havoc Spiral
--
-- Description: Deals damage to players in an area of effect. Additional effect: Sleep
-- Type: Physical
-- 2-3 Shadows
-- Range: Unknown
-- Special weaponskill unique to Ark Angel MR. Deals ~100-300 damage.
-----------------------------------------... | gpl-3.0 |
nasomi/darkstar | scripts/globals/mobskills/Stun_Cannon.lua | 17 | 1144 | ---------------------------------------------------
-- Stun_Cannon.lua
--
-- Description: 20'(?) AoE ~300 magic damage and Paralysis, ignores Utsusemi
-- Type: Magical
--
-- Range: 20 yalms
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Apollyon/mobs/Carnagechief_Jackbodokk.lua | 16 | 2435 | -----------------------------------
-- Area: Apollyon CS
-- NPC: Carnagechief_Jackbodokk
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
------------... | gpl-3.0 |
Wouterz90/SuperSmashDota | Game/scripts/vscripts/statcollection/schema_examples/enfos.lua | 5 | 5097 | customSchema = class({})
function customSchema:init()
-- Check the schema_examples folder for different implementations
-- Flags
statCollection:setFlags({ version = CEnfosGameMode:GetVersion() })
-- Listen for changes in the current state
ListenToGameEvent('game_rules_state_change', function(key... | mit |
nasomi/darkstar | scripts/zones/Lower_Jeuno/npcs/_l00.lua | 36 | 1563 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- @zone 245
-- @pos -109.065 0 -158.032
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
srush/OpenNMT | onmt/utils/Cuda.lua | 4 | 1893 | require('nn')
require('nngraph')
local Cuda = {
activated = false
}
function Cuda.init(opt, gpuIdx)
Cuda.activated = opt.gpuid > 0
if Cuda.activated then
local _, err = pcall(function()
require('cutorch')
require('cunn')
if gpuIdx == nil then
-- allow memory access between devices... | mit |
nasomi/darkstar | scripts/zones/Norg/npcs/HomePoint#2.lua | 19 | 1167 | -----------------------------------
-- Area: Norg
-- NPC: HomePoint#2
-- @pos -65 -5 54 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Norg/TextIDs");
require("scripts/globals/homepoint");
----------------------... | gpl-3.0 |
luanorlandi/SwiftSpaceBattle | src/interface/game/borderHp.lua | 2 | 1113 | local borderHpDeck = MOAIGfxQuad2D.new()
borderHpDeck:setTexture("texture/effect/borderhp.png")
borderHpDeck:setRect(-window.width/2, -window.height/2, window.width/2, window.height/2)
BorderHp = {}
BorderHp.__index = BorderHp
function BorderHp:new()
local B = {}
setmetatable(B, BorderHp)
B.active = true
B.sp... | gpl-3.0 |
TeamHypersomnia/Augmentations | hypersomnia/content/official/gfx/water_surface_33.meta.lua | 66 | 1953 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 60,
light_colors = {
"122 171 252 255",
"118 168 252 255",
"103 159 251 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
... | agpl-3.0 |
TeamHypersomnia/Augmentations | hypersomnia/content/official/gfx/water_surface_26.meta.lua | 66 | 1953 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 60,
light_colors = {
"122 171 252 255",
"118 168 252 255",
"103 159 251 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
... | agpl-3.0 |
TeamHypersomnia/Augmentations | hypersomnia/content/official/gfx/water_surface_5.meta.lua | 66 | 1953 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 60,
light_colors = {
"122 171 252 255",
"118 168 252 255",
"103 159 251 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
... | agpl-3.0 |
TeamHypersomnia/Augmentations | hypersomnia/content/official/gfx/water_surface_28.meta.lua | 66 | 1953 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 60,
light_colors = {
"122 171 252 255",
"118 168 252 255",
"103 159 251 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
... | agpl-3.0 |
ngeiswei/ardour | share/scripts/s_vamp_plugin_index.lua | 6 | 1336 | ardour { ["type"] = "Snippet", name = "Vamp Plugin List" }
function factory () return function ()
local plugins = ARDOUR.LuaAPI.Vamp.list_plugins ();
for id in plugins:iter () do
local vamp = ARDOUR.LuaAPI.Vamp(id, Session:nominal_sample_rate())
local vp = vamp:plugin ()
print (" --- VAMP Plugin ---")
print ... | gpl-2.0 |
Wouterz90/SuperSmashDota | Game/scripts/vscripts/statcollection/schema.lua | 1 | 4744 | customSchema = class({})
function customSchema:init()
-- Check the schema_examples folder for different implementations
--Flag Example
-- Doing this in OnGameInProgress because this doesnt work here
--statCollection:setFlags(GameMode.flags)
--[[ Data
GameMode.flags = {
version =... | mit |
TeamHypersomnia/Augmentations | hypersomnia/content/official/gfx/metropolis_torso_rifle_gtm_2.meta.lua | 2 | 2804 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 0.43000000715255737,
amplification = 140,
light_colors = {
"89 31 168 255",
"48 42 88 255",
"61 16 123 0"
},
radius = {
x = 80,
y = 80
},
standard_deviati... | agpl-3.0 |
TeamHypersomnia/Augmentations | hypersomnia/content/official/gfx/steel_shell.meta.lua | 2 | 1951 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 60,
light_colors = {
"255 255 255 255",
"193 177 85 255",
"202 185 89 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
}... | agpl-3.0 |
nasomi/darkstar | scripts/zones/Palborough_Mines/npcs/Treasure_Chest.lua | 19 | 2656 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Treasure Chest
-- @zone 143
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("s... | gpl-3.0 |
nasomi/darkstar | scripts/globals/abilities/tabula_rasa.lua | 28 | 1290 | -----------------------------------
-- Ability: Tabula Rasa
-- Optimizes both white and black magic capabilities while allowing charge-free stratagem use.
-- Obtained: Scholar Level 1
-- Recast Time: 1:00:00
-- Duration: 0:03:00
-----------------------------------
require("scripts/globals/settings");
require(... | gpl-3.0 |
appaquet/torch-android | src/pkg/torch/FFI.lua | 2 | 5232 | local ok, ffi = pcall(require, 'ffi')
if ok then
local Real2real = {
Byte='unsigned char',
Char='char',
Short='short',
Int='int',
Long='long',
Float='float',
Double='double'
}
-- Allocator
ffi.cdef[[
typedef struct THAllocator {
void* (*malloc)(void*, long);
vo... | bsd-3-clause |
ngeiswei/ardour | share/scripts/send_to_bus.lua | 2 | 1466 | ardour { ["type"] = "EditorAction", name = "Send Tracks to Bus",
license = "MIT",
author = "Ardour Team",
description = [[Create a Bus and add aux-sends from all selected tracks]]
}
function factory () return function ()
-- find number of channels to use for the new bus, follow master-bus' inputs
local c... | gpl-2.0 |
nasomi/darkstar | scripts/globals/items/crawler_egg.lua | 35 | 1201 | -----------------------------------------
-- ID: 4357
-- Item: crawler_egg
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health 10
-- Magic 10
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChec... | gpl-3.0 |
thesabbir/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/ping.lua | 69 | 1137 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("Ping Plugin Configuration"),
translate(
"The ping plugin will send icmp echo replies to selected " ..
"hosts and measure the roundtrip time for each... | apache-2.0 |
coolflyreg/gs | 3rd/skynet-mingw/examples/share.lua | 66 | 1702 | local skynet = require "skynet"
local sharedata = require "sharedata"
local mode = ...
if mode == "host" then
skynet.start(function()
skynet.error("new foobar")
sharedata.new("foobar", { a=1, b= { "hello", "world" } })
skynet.fork(function()
skynet.sleep(200) -- sleep 2s
skynet.error("update foobar a = 2")
... | gpl-2.0 |
nasomi/darkstar | scripts/globals/spells/bluemagic/yawn.lua | 17 | 1611 | -----------------------------------------
-- Spell: Yawn
-- Puts all enemies within range to sleep
-- Spell cost: 55 MP
-- Monster Type: Birds
-- Spell Type: Magical (Light)
-- Blue Magic Points: 3
-- Stat Bonus: CHR+1, HP+5
-- Level: 64
-- Casting Time: 3 seconds
-- Recast Time: 60 seconds
-- Duration: 90 s... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Duke_Gomory.lua | 16 | 1252 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Duke Gomory
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function ... | gpl-3.0 |
exitunlimited/Exit-Unlimited | plugins/banhammer.lua | 1085 | 11557 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
m13790115/eset | plugins/banhammer.lua | 1085 | 11557 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
nasomi/darkstar | scripts/globals/spells/ionohelix.lua | 9 | 1732 | --------------------------------------
-- Spell: Ionohelix
-- Deals lightning 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/glob... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Upper_Jeuno/npcs/Zekobi-Morokobi.lua | 38 | 1038 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Zekobi-Morokobi
-- Type: Standard NPC
-- @zone: 244
-- @pos 41.258 -5.999 -74.105
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Dangruf_Wadi/npcs/Grounds_Tome.lua | 34 | 1133 | -----------------------------------
-- Area: Dangruf Wadi
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(pl... | gpl-3.0 |
thesabbir/luci | libs/luci-lib-nixio/docsrc/nixio.TLSSocket.lua | 173 | 2926 | --- TLS Socket Object.
-- TLS Sockets contain the underlying socket and context in the fields
-- "socket" and "context".
-- @cstyle instance
module "nixio.TLSSocket"
--- Initiate the TLS handshake as client with the server.
-- @class function
-- @name TLSSocket.connect
-- @usage This function calls SSL_connect().
-- @... | apache-2.0 |
nasomi/darkstar | scripts/zones/Port_San_dOria/npcs/Liloune.lua | 36 | 1373 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Liloune
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/TextI... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Castle_Oztroja/npcs/_m75.lua | 16 | 2231 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _m75 (Torch Stand)
-- Notes: Opens door _477 when _m72 to _m75 are lit
-- @pos -139.643 -72.113 -62.682 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Northern_San_dOria/npcs/Pepigort.lua | 38 | 1027 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Pepigort
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos -126.739 11.999 262.757
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs"... | gpl-3.0 |
Wouterz90/SuperSmashDota | Game/scripts/vscripts/statcollection/schema_examples/pmp.lua | 5 | 4723 | customSchema = class({})
function customSchema:init(options)
-- Flags
statCollection:setFlags({ version = GetVersion() })
-- Listen for changes in the current state
ListenToGameEvent('game_rules_state_change', function(keys)
-- Grab the current state
local state = GameRules:State_Get(... | mit |
nasomi/darkstar | scripts/globals/items/goblin_pie.lua | 35 | 1579 | -----------------------------------------
-- ID: 4539
-- Item: goblin_pie
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 12
-- Magic 12
-- Dexterity -1
-- Agility 3
-- Vitality -1
-- Charisma -5
-- Defense % 9
-----------------------------------------
require("script... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Maze_of_Shakhrami/npcs/Ahko_Mhalijikhari.lua | 20 | 1928 | -----------------------------------
-- Area: Maze of Shakhrami
-- NPC: Ahko Mhalijikhari
-- Type: Quest NPC
-- @pos -344.617 -12.226 -166.233 198
-- 0x003d 0x003e 0x003f 0x0040 0x0041
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
akornatskyy/lucid | spec/routing/routes/plain_spec.lua | 1 | 2751 | local plain = require 'routing.routes.plain'
local assert, describe, it = assert, describe, it
local new = plain.new
describe('plain route', function()
describe('builder', function()
it('supports alphanumeric characters', function()
assert(new('abc123'))
end)
it('supports dash,... | mit |
nasomi/darkstar | scripts/zones/Abyssea-Altepa/Zone.lua | 32 | 1531 | -----------------------------------
--
-- Zone: Abyssea - Altepa
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Altepa/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Abyssea-Alte... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/bowl_of_nashmau_stew.lua | 36 | 1975 | -----------------------------------------
-- ID: 5595
-- Item: Bowl of Nashmau Stew
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- MP -100
-- Vitality -10
-- Agility -10
-- Intelligence -10
-- Mind -10
-- Charisma -10
-- Accuracy +15% Cap 25
-- Attack +18% Cap 60
-- ... | gpl-3.0 |
actboy168/YDWE | Development/Component/script/common/ffi/unicode.lua | 2 | 1695 | local ffi = require 'ffi'
ffi.cdef[[
int MultiByteToWideChar(unsigned int CodePage, unsigned long dwFlags, const char* lpMultiByteStr, int cbMultiByte, wchar_t* lpWideCharStr, int cchWideChar);
int WideCharToMultiByte(unsigned int CodePage, unsigned long dwFlags, const wchar_t* lpWideCharStr, int cchWideChar, char... | gpl-3.0 |
nasomi/darkstar | scripts/globals/mobskills/Gate_of_Tartarus.lua | 19 | 1070 | ---------------------------------------------
-- Gate of Tartarus
--
-- Description: Lowers target's attack. Additional effect: Refresh
-- Type: Physical
-- Shadow per hit
-- Range: Melee
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require(... | gpl-3.0 |
nasomi/darkstar | scripts/zones/East_Ronfaure/npcs/Logging_Point.lua | 29 | 1101 | -----------------------------------
-- Area: East Ronfaure
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/East_Ronfaure/TextIDs");
-----... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Port_Bastok/npcs/Dulsie.lua | 17 | 1327 | -----------------------------------
-- 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 |
nasomi/darkstar | scripts/zones/Heavens_Tower/npcs/_6q1.lua | 17 | 1377 | -----------------------------------
-- Area: Heaven's Tower
-- NPC: Starway Stairway
-- @pos -10 0.1 30 242
-----------------------------------
package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Heavens_... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Windurst_Waters/Zone.lua | 28 | 3433 | -----------------------------------
--
-- Zone: Windurst_Waters (238)
--
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/events/harvest_festivals");
require("scripts/globals/zone");
require("script... | gpl-3.0 |
raziel057/FrameworkBenchmarks | frameworks/Lua/octopus/config.lua | 12 | 1032 | return {
extensions = {
{octopusExtensionsDir, "core"},
{octopusExtensionsDir, "baseline"},
{octopusExtensionsDir, "orm"},
{octopusExtensionsDir, "app"},
},
octopusExtensionsDir = octopusExtensionsDir,
octopusHostDir = octopusHostDir,
port = 8080,
securePort = 38080,
luaCodeCache = "on",... | bsd-3-clause |
nasomi/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Gavrie.lua | 34 | 1475 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Gavrie
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require("... | gpl-3.0 |
C60Project/C60-PRODUCT | plugins/mediasettings.lua | 4 | 3530 | local function get_group_name(text)
local name = text:match('.*%((.+)%)$')
if not name then
return ''
end
name = '\n('..name..')'
return name:mEscape()
end
local function doKeyboard_media(chat_id)
local keyboard = {}
keyboard.inline_keyboard = {}
for i,media in pairs(config.medi... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Metalworks/npcs/_6le.lua | 34 | 1035 | -----------------------------------
-- Area: Metalworks
-- Door: _6le (Presidential Suite)
-- @pos 113 -20 8 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
--------------------... | gpl-3.0 |
EnjoyHacking/nn | Concat.lua | 40 | 3881 | local Concat, parent = torch.class('nn.Concat', 'nn.Container')
function Concat:__init(dimension)
parent.__init(self)
self.size = torch.LongStorage()
self.dimension = dimension
end
function Concat:updateOutput(input)
local outs = {}
for i=1,#self.modules do
local currentOutput = self.modules[i]:u... | bsd-3-clause |
Hello23-Ygopro/ygopro-ds | expansions/script/c27004274.lua | 1 | 1560 | --TB2-069 Son Goku & Uub, Seeds of the Future
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,CHARACTER_SON_GOKU,SPECIAL_TRAIT_SAIYAN,CHARACTER_INCLUDES_SON_GOKU,SPECIAL_TRAIT_WORLD_TOURNAMENT,CHARACTER_UUB,SPECIAL_TRA... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Lufaise_Meadows/npcs/qm4.lua | 17 | 1350 | -----------------------------------
-- Area: Lufaise Meadows
-- NPC: ??? - spawns Splinterspine Grukjuk for quest "A Hard Day's Knight"
-- @pos -38.605 -9.022 -290.700 24
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
requ... | gpl-3.0 |
nasomi/darkstar | scripts/globals/abilities/pets/pet_lightning_breath.lua | 25 | 1262 | ---------------------------------------------------
-- Lightning Breath
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onAbili... | gpl-3.0 |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua | 30 | 3470 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Copyright 2013 Manuel Munz <freifunk at somakoma dot de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with... | gpl-2.0 |
dani-sj/soheyl | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
jeffreyling/seq2seq-hard | model_utils.lua | 1 | 3094 | function clone_many_times(net, T)
local clones = {}
local params, gradParams
if net.parameters then
params, gradParams = net:parameters()
if params == nil then
params = {}
end
end
local paramsNoGrad
if net.parametersNoGrad then
paramsNoGrad = net:par... | mit |
nasomi/darkstar | scripts/zones/Crawlers_Nest/npcs/qm9.lua | 17 | 1819 | -----------------------------------
-- Area: Crawlers Nest
-- NPC: ???
-- Used In Quest: A Boy's Dream
-- @pos -18 -8 124 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/nexus_cape.lua | 29 | 1354 | -----------------------------------------
-- ID: 11538
-- Item: Nexus Cape
-- Enchantment: "Teleport" (Party Leader)
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/teleports");
-----------------------------------------
-- OnItemCheck
-----------------------------... | gpl-3.0 |
shangjiyu/luci-with-extra | applications/luci-app-aria2/luasrc/controller/aria2.lua | 17 | 1090 | --[[
LuCI - Lua Configuration Interface - aria2 support
Copyright 2014-2015 nanpuyue <nanpuyue@gmail.com>
Modified by kuoruan <kuoruan@gmail.com>
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 |
droogmic/droogmic-domoticz-lua | packages/socket/mime.lua | 149 | 2487 | -----------------------------------------------------------------------------
-- MIME support for the Lua language.
-- Author: Diego Nehab
-- Conforming to RFCs 2045-2049
-----------------------------------------------------------------------------
----------------------------------------------------------------------... | mit |
chergert/libpeas | loaders/lua5.1/resources/peas-lua-internal.lua | 4 | 4552 | --
-- Copyright (C) 2015 - Garrett Regier
--
-- libpeas 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 2.1 of the License, or (at your option) any later version.
--
-- libpeas is d... | lgpl-2.1 |
TeamHypersomnia/Augmentations | hypersomnia/content/official/gfx/bulwark_shot_2.meta.lua | 8 | 2731 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 90,
light_colors = {
"255 0 0 255",
"255 252 252 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
generate_desaturation =... | agpl-3.0 |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/applications/luci-firewall/luasrc/model/cbi/firewall/zones.lua | 84 | 2233 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
loc... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Qufim_Island/npcs/Tsonga-Hoponga_WW.lua | 30 | 3060 | -----------------------------------
-- Area: Qufim Island
-- NPC: Tsonga-Hoponga, W.W.
-- Type: Outpost Conquest Guards
-- @pos -245.366 -20.344 299.502 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conq... | gpl-3.0 |
nasomi/darkstar | scripts/globals/pathfind.lua | 18 | 2553 | -- Util methods for pathfinding
pathfind = {};
PATHFLAG_NONE = 0
PATHFLAG_RUN = 1
PATHFLAG_WALLHACK = 2
PATHFLAG_REVERSE = 4
-- returns the point at the given index
function pathfind.get(points, index)
local pos = {};
if (index < 0) then
index = (#points + index - 2) / 3;
end
pos[1] = points[... | gpl-3.0 |
nicholas-leonard/nn | CosineEmbeddingCriterion.lua | 22 | 3690 | local CosineEmbeddingCriterion, parent = torch.class('nn.CosineEmbeddingCriterion', 'nn.Criterion')
function CosineEmbeddingCriterion:__init(margin)
parent.__init(self)
margin = margin or 0
self.margin = margin
self.gradInput = {torch.Tensor(), torch.Tensor()}
self.sizeAverage = true
end
function Cos... | bsd-3-clause |
irboy/000LOGIN000 | plugins/info.lua | 1 | 8329 | --Begin info.lua By @SoLiD
local Solid = 157059515
local function setrank(msg, user_id, value,chat_id)
local hash = nil
hash = 'rank:'..msg.to.id..':variables'
if hash then
redis:hset(hash, user_id, value)
return tdcli.sendMessage(chat_id, '', 0, '_set_ *Rank* _for_ *[ '..user_id..' ]* _To :_ *'..value.... | gpl-3.0 |
DevTeam-Co/maximus | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-3.0 |
ioiasff/pqrw | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
mahdi1378/FBI | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
silver-des/silverbot | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
Etehadmarg/margbot | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
m13790115/eset | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
mikelewis0/easyccg | training/train.lua | 2 | 6149 | require 'torch'
require 'nn'
require 'features'
require 'SGD'
local Train = torch.class('nn.Train')
-- read input files
function Train:loadDataset(path, features, windowBackward, windowForward, includeRareCategories)
file = io.open(path)
local lineNum = 1;
local size = 0;
for line in file:lines() do
if... | mit |
Hello23-Ygopro/ygopro-ds | expansions/script/c27002125.lua | 1 | 2272 | --BT2-110 Cooler, Blood of the Tyrant Clan
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,SPECIAL_TRAIT_FRIEZA_CLAN,CHARACTER_COOLER)
ds.AddPlayProcedure(c,COLOR_YELLOW,3,4)
--double strike
ds.EnableDoubleStrike(c)... | gpl-3.0 |
MatthewDwyer/botman | mudlet/profiles/newbot/custom/customIRC.lua | 1 | 1112 | --[[
Botman - A collection of scripts for managing 7 Days to Die servers
Copyright (C) 2019 Matthew Dwyer
This copyright applies to the Lua source code in this Mudlet profile.
Email smegzor@gmail.com
URL http://botman.nz
Source https://bitbucket.org/mhdwyer/botman
--]]
-- ... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Loillie.lua | 17 | 1608 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Loillie
-- @zone 80
-- @pos 78 -8 -23
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests");
... | gpl-3.0 |
nasomi/darkstar | scripts/globals/effects/perfect_defense.lua | 35 | 3155 | -----------------------------------
--
--
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
print(target:getMod(MOD_UDMGMAGIC));
print(target:getMod(MOD_UDMGPHYS));
effect:... | gpl-3.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c27001100.lua | 1 | 1248 | --BT1-086 Golden Frieza, Resurrected Terror
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,SPECIAL_TRAIT_FRIEZAS_ARMY,CHARACTER_FRIEZA,SPECIAL_TRAIT_FRIEZA_CLAN)
ds.AddPlayProcedure(c,COLOR_YELLOW,3,4)
--evolve
ds.... | gpl-3.0 |
appaquet/torch-android | src/3rdparty/nnx/SpatialReSampling.lua | 2 | 1789 | local SpatialReSampling, parent = torch.class('nn.SpatialReSampling', 'nn.Module')
local help_desc =
[[Applies a 2D re-sampling over an input image composed of
several input planes. The input tensor in forward(input) is
expected to be a 3D or 4D tensor ([batchSize x nInputPlane x width x height).
The number of outpu... | bsd-3-clause |
thesabbir/luci | applications/luci-app-asterisk/luasrc/asterisk.lua | 68 | 17804 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.asterisk", package.seeall)
require("luci.asterisk.cc_idd")
local _io = require("io")
local uci = require("luci.model.uci").cursor()
local sys = require("luci.sys")
local util = require("luci.uti... | apache-2.0 |
nasomi/darkstar | scripts/zones/Middle_Delkfutts_Tower/TextIDs.lua | 9 | 1147 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6542; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6547; -- Obtained: <item>.
GIL_OBTAINED = 6548; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6550; -- Obtained... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.