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 |
|---|---|---|---|---|---|
bmscoordinators/FFXI-Server | scripts/globals/spells/shock.lua | 9 | 1853 | -----------------------------------------
-- Spell: Shock
-- Deals lightning damage that lowers an enemy's mind and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
----------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Southern_San_dOria/npcs/Chanpau.lua | 14 | 2159 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Chanpau
-- Optional Involvement in Quest: A Squire's Test II
-- @zone 230
-- @pos -152 -2 55
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Chateau_dOraguille/npcs/Rahal.lua | 14 | 6335 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Rahal
-- Involved in Quests: The Holy Crest, Lure of the Wildcat (San d'Oria)
-- @pos -28 0.1 -6 233
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
-----------------------------------
requir... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Bastok_Markets/npcs/Ulrike.lua | 53 | 1816 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Ulrike
-- Type: Goldsmithing Synthesis Image Support
-- @pos -218.399 -7.824 -56.203 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/st... | gpl-3.0 |
lxbgit/luarocks | src/luarocks/add.lua | 18 | 4215 |
--- Module implementing the luarocks-admin "add" command.
-- Adds a rock or rockspec to a rocks server.
--module("luarocks.add", package.seeall)
local add = {}
package.loaded["luarocks.add"] = add
local cfg = require("luarocks.cfg")
local util = require("luarocks.util")
local dir = require("luarocks.dir")
local manif... | mit |
wingo/snabb | lib/ljsyscall/syscall/rump/c.lua | 24 | 18225 | -- define C functions for rump
-- TODO merge into NetBSD ones, generate
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, tab... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Davoi/npcs/Jar.lua | 14 | 1373 | -----------------------------------
-- Area: Davoi
-- NPC: Jar
-- Involved in Quest: Test my Mettle
-- Notes: Used to obtain Power Sandals
-- @pos 183, 0, -190 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/se... | gpl-3.0 |
jsenellart/OpenNMT | onmt/modules/PositionEmbedding.lua | 7 | 1814 | --[[ Returns a tensor of the size of the input, filled with indexes over a given dimension.
Needed for positional embeddings.
--]]
local PositionEmbedding, parent = torch.class('onmt.PositionEmbedding', 'nn.LookupTable')
--[[
Parameters:
* `dimension` - the dimension to be indexed.
* `nIndex` - maximum number of... | mit |
PraveerSINGH/nn | StochasticGradient.lua | 65 | 1921 | local StochasticGradient = torch.class('nn.StochasticGradient')
function StochasticGradient:__init(module, criterion)
self.learningRate = 0.01
self.learningRateDecay = 0
self.maxIteration = 25
self.shuffleIndices = true
self.module = module
self.criterion = criterion
self.verbose = true
end
funct... | bsd-3-clause |
suxinde2009/wesnoth | data/ai/micro_ais/micro_ai_unit_variables.lua | 33 | 3529 | -- This set of functions provides a consistent way of storing Micro AI
-- variables in units. They need to be stored inside a [micro_ai] tag in a
-- unit's [variables] tag together with an ai_id= key, so that they can be
-- removed when the Micro AI gets deleted. Otherwise subsequent Micro AIs used
-- in the same scena... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/AlTaieu/npcs/_0x3.lua | 14 | 1936 | -----------------------------------
-- Area: Al'Taieu
-- NPC: Rubious Crystal (East Tower)
-- @pos 683.718 -6.250 -222.167 33
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/AlTaieu/TextIDs");
require("scripts/zone... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/mobskills/cannonball.lua | 52 | 1042 | ---------------------------------------------
-- Cannonball
-- Family: Wamouracampa
-- Description: Damage varies with TP.
-- Type: Physical
-- Utsusemi/Blink absorb: One shadow
-- Range: 20
-- Notes: Uses defense instead of attack. Curled form only.
---------------------------------------------
require("scripts... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Cloister_of_Tremors/bcnms/sugar-coated_directive.lua | 30 | 1801 | ----------------------------------------
-- Area: Cloister of Tremors
-- BCNM: Sugar Coated Directive (ASA-4)
----------------------------------------
package.loaded["scripts/zones/Cloister_of_Tremors/TextIDs"] = nil;
----------------------------------------
require("scripts/globals/keyitems");
require("scripts/global... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Behemoths_Dominion/npcs/Field_Manual.lua | 29 | 1051 | -----------------------------------
-- Field Manual
-- Area: Behemoth's Dominion
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onTrigger Action
------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/dish_of_spaghetti_ortolana_+1.lua | 12 | 1556 | -----------------------------------------
-- ID: 5659
-- Item: Dish of Spafhetti Ortolana
-- Food Effect: 1 Hr, All Races
-----------------------------------------
-- Agility 2
-- Vitality 2
-- HP +30% Cap 75
-- StoreTP +6
-- Resist Blind +10
-----------------------------------------
require("scripts/globals/status");... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/diaga_ii.lua | 26 | 1930 | -----------------------------------------
-- Spell: Diaga II
-- Lowers an enemy's defense and gradually deals light elemental damage.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
------------------------------------... | gpl-3.0 |
psn240/Text2Image | modules/FixedGRU.lua | 3 | 2677 |
local FixedGRU = {}
function FixedGRU.rnn(nstep, avg, emb_dim)
if avg == nil then
avg = 0
end
if emb_dim == nil then
emb_dim = 256
end
local inputs = {}
for n = 1,nstep do
table.insert(inputs, nn.Identity()())
end
-- gates for update
local i2h_update = {}
local h2h_update = {}
-- gat... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Aht_Urhgan_Whitegate/npcs/Shahau.lua | 29 | 1735 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Shahau
-- Type: Alchemy Image Support
-- @pos -10.470 -6.25 -141.700 241
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/blackened_frog.lua | 12 | 1739 | -----------------------------------------
-- ID: 4536
-- Item: Blackened Frog
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Mind -2
-- Attack % 14
-- Attack Cap 75
-- Ranged ATT % 14
-- Ranged ATT Cap 75
-- Evasion +5
-----------------------------------------
... | gpl-3.0 |
telegramxmanbot/aaa | plugins/admin.lua | 381 | 7085 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/mages_ballad_iii.lua | 27 | 1160 | -----------------------------------------
-- Spell: Mage's Ballad III
-- Gradually restores target's MP.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/lik_kabob.lua | 12 | 1331 | -----------------------------------------
-- ID: 5647
-- Item: Lik Kabob
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- Dexterity 3
-- Mind -2
-- Accuracy +1
-- Attack 7
-----------------------------------------
require("scripts/globals/status");
---------------------------------------... | gpl-3.0 |
jefferycn/wxq | iPhone-4S/blood/core.lua | 1 | 10203 | SCREEN_RESOLUTION="640x960"
SCREEN_COLOR_BITS=32
count=1
round=1
saveStars=0
protecter=0
-- 0 default, 1 blood first, 2 force first
mode=0
REGION_SIZE=2
-- purple,red,yellow,blue,green
status={};
FUZZY_NUM=98
ENHANCE_FUZZY_NUM=60
BLOOD_BTN=0xE26554
BLOOD_BTN_X=130
BLOOD_BTN_Y=260
HARD_BTN=0xE86549
HARD_BTN_X=130
H... | mit |
jheusala/freeciv-extended | dependencies/tolua-5.1/src/bin/lua/feature.lua | 5 | 2083 | -- tolua: abstract feature class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $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,
-- enh... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Southern_San_dOria_[S]/npcs/Raustigne.lua | 29 | 1453 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Raustigne
-- @zone 80
-- @pos 4 -2 44
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests");
require("... | gpl-3.0 |
Xavyrr/Crestfallen3DS | game/intro.lua | 1 | 7338 | function gameStates.intro.load()
allowInput = true
love.graphics.setScreen('top')
intro = {}
intro.x = 100
intro.y = 25
intro.art = {
[0] = {
[1] = nil,
[2] = love.graphics.newImage('img/intro/intro_0+2.png')
},
[1] = {
[0] = love.graphics.newImage('img/intro/intro_1.png'),
... | mit |
bluMyst/ComputerCraft-Sandbox | ahto.lua | 1 | 13409 | -- vim: foldmethod=marker
-- TODOs {{{1
-- TODO: folding isn't totally finished yet
-- TODO: Allcaps dirs.FORWARD and etc since they're constants?
-- TODO: Should I also allcaps DIRS and D?
-- TODO: Gravel-clearing dig.
function tablePrint(tbl, indent) -- {{{1
-- Pretty-prints a table to the console.
-- This... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Crawlers_Nest/Zone.lua | 12 | 1676 | -----------------------------------
--
-- Zone: Crawlers_Nest (197)
--
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Crawlers_Nest/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/zone")... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Apollyon/npcs/Armoury_Crate.lua | 21 | 4337 | -----------------------------------
-- Area: Apollyon
-- NPC: Armoury Crate
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zones/Apollyon/TextIDs");... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/sprig_of_cibol.lua | 12 | 1196 | -----------------------------------------
-- ID: 5234
-- Item: sprig_of_cibol
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/mobskills/metatron_torment.lua | 33 | 1055 | ---------------------------------------------
-- Metatron Torment
--
-- Description: Lowers target's defense. Bravura/Abaddon Killer: Temporarily lowers damage taken from enemies.
-- Type: Physical
-- Range: Melee
---------------------------------------------
require("scripts/globals/settings");
require("scripts/... | gpl-3.0 |
pakozm/april-ann | packages/imaging/binarization_filter/package.lua | 3 | 1100 | package{ name = "binarization_filter",
version = "1.0",
depends = { "Image" },
keywords = { "image", "binarization filter" },
description = "Filter of images represented as matrix using datasets",
-- targets como en ant
target{
name = "init",
mkdir{ dir = "build" },
mkdir{ dir = "inclu... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/RaKaznar_Turris/Zone.lua | 32 | 1269 | -----------------------------------
--
-- Zone: Ra’Kanzar Turris (277)
--
-----------------------------------
package.loaded["scripts/zones/RaKaznar_Turris/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/RaKaznar_Turris/TextIDs");
----------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/pot_of_san_dorian_tea.lua | 12 | 1196 | -----------------------------------------
-- ID: 4494
-- Item: pot_of_san_dorian_tea
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Vitality -2
-- Charisma 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItem... | gpl-3.0 |
deepak78/luci | applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua | 80 | 10048 | --[[
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
ht... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Dynamis-Tavnazia/npcs/qm1.lua | 14 | 2493 | -----------------------------------
-- Area: Dynamis-Tavnazia
-- NPC: ???
-- @pos
-----------------------------------
package.loaded["scripts/zones/Dynamis-Tavnazia/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Tavnazia/TextIDs");
----------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/marinara_pizza.lua | 12 | 1607 | -----------------------------------------
-- ID: 5743
-- Item: marinara_pizza
-- Food Effect: 3hours, All Races
-----------------------------------------
-- Health Points 20
-- Attack +20% (cap 50 @ 250 base attack)
-- Accuracy +10% (54)
-- Undead Killer
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/bird_egg.lua | 12 | 1179 | -----------------------------------------
-- ID: 4570
-- Item: Bird Egg
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health 6
-- Magic 6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/bluemagic/yawn.lua | 26 | 1571 | -----------------------------------------
-- 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 seconds
-- M... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/West_Ronfaure/npcs/Stone_Monument.lua | 14 | 1291 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos -183.734 -12.678 -395.722 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("script... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/denizanasi.lua | 12 | 1325 | -----------------------------------------
-- ID: 5447
-- Item: Denizanasi
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 1
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Lower_Jeuno/npcs/Kurou-Morou.lua | 25 | 5570 | -----------------------------------
-- Area: Lower Jeuno
-- Starts and Finishes Quest: Your Crystal Ball & Never to return
-- @pos -4 -6 -28 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Beaucedine_Glacier/npcs/Mirror_Pond.lua | 9 | 1512 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Mirror Pond
-- Involved In Quest: Love And Ice
-- @zone 223
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scri... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Meriphataud_Mountains/npcs/Daruru_WW.lua | 14 | 3356 | -----------------------------------
-- 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 |
bmscoordinators/FFXI-Server | scripts/zones/Buburimu_Peninsula/npcs/Cavernous_Maw.lua | 58 | 1890 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Cavernous Maw
-- @pos -334 -24 52
-- Teleports Players to Abyssea - Attohwa
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/setting... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Quicksand_Caves/npcs/_5s5.lua | 14 | 1275 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -779 0 -454 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/TextID... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/lucky_egg.lua | 12 | 1254 | -----------------------------------------
-- ID: 4600
-- Item: lucky_egg
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 14
-- Magic 14
-- Evasion 10
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChe... | gpl-3.0 |
pakozm/april-ann | packages/ann/ann/test/test-dae.lua | 3 | 4783 | mathcore.set_use_cuda_default(util.is_cuda_available())
--
local bunch_size = tonumber(arg[1]) or 256
local semilla = 1234
local weights_random = random(semilla)
local inf = -2.4
local sup = 2.4
local shuffle_random = random(5678)
local weight_decay = 0.0001
local max_e... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/crepe_caprice.lua | 12 | 1576 | -----------------------------------------
-- ID: 5776
-- Item: Crepe Caprice
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- HP +5% (cap20)
-- MP Healing 3
-- Magic Accuracy +21% (cap 40)
-- Magic Defense +2
-----------------------------------------
require("scripts/globals/status");
--... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/abilities/equanimity.lua | 26 | 1140 | -----------------------------------
-- Ability: Equanimity
-- Your next black magic spell will generate less enmity.
-- Obtained: Scholar Level 75
-- Recast Time: Stratagem Charge
-- Duration: 1 black magic spell or 60 seconds, whichever occurs first
--
-- Level |Charges |Recharge Time per Charge
-- ----- -------- ... | gpl-3.0 |
victorholt/Urho3D | bin/Data/LuaScripts/45_InverseKinematics.lua | 9 | 9545 | -- Ribbon trail demo.
-- This sample demonstrates how to use both trail types of RibbonTrail component.
require "LuaScripts/Utilities/Sample"
local jackAnimCtrl_
local cameraRotateNode_
local floorNode_
local leftFoot_
local rightFoot_
local leftEffector_
local rightEffector_
local solver_
local floorPitch_ = 0.0
loc... | mit |
bmscoordinators/FFXI-Server | scripts/globals/items/slice_of_juicy_mutton.lua | 12 | 1390 | -----------------------------------------
-- ID: 4335
-- Item: slice_of_juicy_mutton
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Strength 3
-- Intelligence -1
-- Attack % 27
-- Attack Cap 35
-----------------------------------------
require("scripts/globals/status");
---------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Upper_Jeuno/npcs/Osker.lua | 17 | 3016 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Osker
-- Involved in Quest: Chocobo's Wounds
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
requi... | gpl-3.0 |
aclindsa/moneygo | internal/handlers/reports/monthly_net_worth.lua | 1 | 1976 | function account_series_map(accounts, tabulation)
map = {}
for i=1,100 do -- we're not messing with accounts more than 100 levels deep
all_handled = true
for id, acct in pairs(accounts) do
if not map[id] then
all_handled = false
if not acct.parent the... | mit |
colesbury/nn | DistanceRatioCriterion.lua | 6 | 4199 | --[[
Probabilistic Criterion for Triplet Siamese Model for learning embedding.
Ref: https://arxiv.org/pdf/1610.00243.pdf
loss = -log( exp(-X) / ( exp(-X) + exp(-Y) ) )
where
X : Distance between similar samples
Y : Distance between dissimilar samples
The loss could be break down to following log ... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/zones/Temenos/mobs/Proto-Ultima.lua | 23 | 1651 | -----------------------------------
-- Area: Temenos
-- MOB: Proto-Ultima
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/limbus");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:SetMagicC... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/RuLude_Gardens/npcs/Dabih_Jajalioh.lua | 17 | 1403 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Dabih Jajalioh
-- Standard Merchant NPC
-- Additional script for pereodical
-- goods needed.
-- Partitially implemented.
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
bedros/lsyncd | tests/churn-direct.lua | 13 | 1094 | #!/usr/bin/lua
-- a heavy duty test.
-- makes thousends of random changes to the source tree
require("posix")
dofile("tests/testlib.lua")
cwriteln("****************************************************************")
cwriteln(" Testing default.direct with random data activity ")
cwriteln("*******************************... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Halvung/mobs/Wheel_Wamoura.lua | 30 | 1540 | -----------------------------------
-- Area: Halvung
-- MOB: Wheel Wamoura
-----------------------------------
require("scripts/globals/status");
-- TODO: Damage resistances in streched and curled stances. Halting movement during stance change.
-----------------------------------
-- OnMobSpawn Action
---------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Western_Adoulin/npcs/Zaoso.lua | 14 | 1585 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Zaoso
-- Type: Standard NPC and Quest NPC
-- Involved with Quest: 'A Certain Substitute Patrolman'
-- @zone 256
-- @pos -94 3 -11
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/quests");
-------... | gpl-3.0 |
diamondo25/Vana | scripts/npcs/nihal_taxi.lua | 2 | 1593 | --[[
Copyright (C) 2008-2016 Vana Development Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
mralivictor/gpgu | plugins/filterworld.lua | 33 | 4293 | local function save_filter(msg, name, value)
local hash = nil
if msg.to.type == 'chat' then
hash = 'chat:'..msg.to.id..':filters'
end
if msg.to.type == 'user' then
return 'فقط در گروه ممکن است'
end
if hash then
redis:hset(hash, name, value)
return "انجام شد"
end
end
local function get_fil... | gpl-2.0 |
Trebek/ComputerCraft | MusiCraft/MusiCraft_v0.1.2_Slave.lua | 1 | 1190 | --[[INFO]]--
-- Name: MusiCraft Module
-- Version: 0.1.2
-- Date: 16/08/2013
-- Author: Alex Crawford
-- Notes: This program needs to be installed on each Note Block control computer.
term.clear()
term.setCursorPos(1, 1)
modem = peripheral.wrap("top") -- Replace "top" with the location of the wireless modem on the c... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Metalworks/npcs/Romualdo.lua | 33 | 1377 | -----------------------------------
-- Area: Metalworks
-- NPC: Romualdo
-- Involved in Quest: Stamp Hunt
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Metalworks/TextIDs");
-... | gpl-3.0 |
sajadaltaiee/telebot | lang/arabic_lang.lua | 28 | 23302 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/effects/super_buff.lua | 34 | 1106 | -----------------------------------
--
-- EFFECT_SUPER_BUFF
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
local power = effect:getPower();
target... | gpl-3.0 |
abbasgh12345/extreme | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
Reza02100/iranmoltafet | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
telenymous/botoftelenymous | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
hacker44-h44/h44botv2 | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
bigboyq/proxmark3 | client/scripts/parameters.lua | 27 | 1267 |
-- The getopt-functionality is loaded from pm3/getopt.lua
-- Have a look there for further details
getopt = require('getopt')
usage = "script run parameters.lua -a 1 -blala -c -de"
author = "Martin Holst Swende"
desc =[[
This is an example script to demonstrate handle parameters in scripts.
For more info, check the ... | gpl-2.0 |
cheney247689848/Cloud-edge | Assets/ToLua/Lua/protobuf/decoder.lua | 15 | 11691 | --
--------------------------------------------------------------------------------
-- FILE: decoder.lua
-- DESCRIPTION: protoc-gen-lua
-- Google's Protocol Buffers project, ported to lua.
-- https://code.google.com/p/protoc-gen-lua/
--
-- Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com
-- ... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Port_Windurst/npcs/Pichichi.lua | 17 | 2793 | -----------------------------------
-- Area: Port Windurst
-- NPC: Pichichi
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/zones/Port_Windurst/T... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Aht_Urhgan_Whitegate/npcs/Tateeya.lua | 17 | 2704 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Tateeya
-- Automaton Attachment Unlocks
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require("sc... | gpl-3.0 |
diamondo25/Vana | scripts/npcs/s4tornado.lua | 2 | 1148 | --[[
Copyright (C) 2008-2016 Vana Development Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
ThomasWitte/dynasmgb | dynasm/dasm_x86.lua | 59 | 58755 | ------------------------------------------------------------------------------
-- DynASM x86/x64 module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local x64 = x64
-- Module i... | gpl-3.0 |
diamondo25/Vana | scripts/npcs/glpqstatue3.lua | 2 | 1311 | --[[
Copyright (C) 2008-2016 Vana Development Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Qufim_Island/npcs/Trodden_Snow.lua | 14 | 5383 | -----------------------------------
-- Area: Qufim Island
-- NPC: Trodden Snow
-- Mission: ASA - THAT_WHICH_CURDLES_BLOOD
-- Mission: ASA - SUGAR_COATED_DIRECTIVE
-- @zone 126
-- @pos -19 -17 104
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
----------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/blade_retsu.lua | 19 | 2071 | -----------------------------------
-- Blade Retsu
-- Katana weapon skill
-- Skill Level: 30
-- Delivers a two-hit attack. Paralyzes enemy. Duration of paralysis varies with TP.
-- Proc rate of Paralyze seems to be based on your level in comparison to the targets level. The higher level you are compared to your target,... | gpl-3.0 |
r4dikal/Bd | libs/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-3.0 |
Sxcret/FrenchRP | gamemode/modules/fadmin/fadmin/playeractions/freeze/cl_init.lua | 10 | 1858 | FAdmin.StartHooks["Freeze"] = function()
FAdmin.Messages.RegisterNotification{
name = "freeze",
hasTarget = true,
message = {"instigator", " froze ", "targets", " ", "extraInfo.1"},
readExtraInfo = function()
local time = net.ReadUInt(16)
return {time == 0 an... | mit |
jetspam20/jetspam | plugins/lock-fosh.lua | 1 | 2285 | local function pre_process(msg)
local chkfosh = redis:hget('settings:fosh',msg.chat_id_)
if not chkfosh then
redis:hset('settings:fosh',msg.chat_id_,'off')
end
end
local function run(msg, matches)
--Commands --دستورات فعال و غیرفعال کردن فحش
if matches[1]:lower() == 'unlock' then
if matches[2]:lower() == 'fo... | gpl-3.0 |
ld-test/luabins | test/test.lua | 4 | 20119 | -- ----------------------------------------------------------------------------
-- test.lua
-- Luabins test suite
-- See copyright notice in luabins.h
-- ----------------------------------------------------------------------------
package.cpath = "./?.so;"..package.cpath
local randomseed = 1235134892
--local randomse... | mit |
ralphtheninja/cjdns | contrib/lua/cjdns/config.lua | 34 | 1851 | -- Cjdns admin module for Lua
-- Written by Philip Horger
common = require 'cjdns/common'
ConfigFile = {}
ConfigFile.__index = ConfigFile
common.ConfigFile = ConfigFile
function ConfigFile.new(path, no_init)
local values = {
path = path,
text = "",
contents = {},
}
setmeta... | gpl-3.0 |
syj2010syj/w3x2lni | script/gui/new/template/tree.lua | 3 | 2302 | local gui = require 'yue.gui'
local ev = require 'gui.event'
local ca = require 'gui.new.common_attribute'
local function tree_icon(view)
local canvas1 = gui.Canvas.createformainscreen{width=24, height=24}
local painter = canvas1:getpainter()
painter:setfillcolor('#CCC')
painter:beginpath()
painter... | gpl-3.0 |
oregamikiller/cocos2dPod | cocos/scripting/lua-bindings/auto/api/CSLoader.lua | 8 | 2996 |
--------------------------------
-- @module CSLoader
-- @parent_module cc
--------------------------------
--
-- @function [parent=#CSLoader] createNodeFromJson
-- @param self
-- @param #string filename
-- @return Node#Node ret (return value: cc.Node)
--------------------------------
--
-- @function [pare... | mit |
MinetestForFun/minetest-minetestforfun-server | mods/lavatemple/dagger.lua | 10 | 2087 | -- Based on compass mod by Echo
local function tick()
minetest.after(1, tick)
local players = minetest.get_connected_players()
for i,player in ipairs(players) do
local target = lavatemple.mapgen_data.pos;
if not target then return end
local pos = player:getpos()
local dir = player:get_look_yaw()
local an... | unlicense |
hery/nn | NarrowTable.lua | 38 | 1151 | local NarrowTable, parent = torch.class('nn.NarrowTable', 'nn.Module')
function NarrowTable:__init(offset, length)
parent.__init(self)
self.offset = offset
self.length = length or 1
if not offset then
error('nn.NarrowTable(offset, length)')
end
self.output = {}
self.gradInput = {}
end
f... | bsd-3-clause |
Midiman/Verde | libs/hump/vector-light.lua | 53 | 3560 | --[[
Copyright (c) 2012-2013 Matthias Richter
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 use, copy, modify, merge, publish, dis... | mit |
dev-osrose/osIROSE-new | scripts/mobs/ai/twilight_flame.lua | 2 | 4544 | registerNpc(786, {
walk_speed = 0,
run_speed = 0,
scale = 90,
r_weapon = 0,
l_weapon = 0,
level = 15,
hp = 75,
attack = 10,
hit = 10,
def = 999,
res = 999,
avoid ... | apache-2.0 |
kusk356/fucktion | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
dev-osrose/osIROSE-new | scripts/mobs/ai/pastor_of_the_abyss.lua | 2 | 1075 | registerNpc(640, {
walk_speed = 300,
run_speed = 770,
scale = 150,
r_weapon = 1076,
l_weapon = 0,
level = 134,
hp = 31,
attack = 585,
hit = 296,
def = 350,
res = 522,
avoi... | apache-2.0 |
alikingambav/archer3 | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
liuluheng/lua | book/select.lua | 1 | 2060 | function receive (connection)
connection:settimeout(0) -- do not block
local s, status, partial = connection:receive(2^10)
if status == "timeout" then
coroutine.yield(connection)
end
return s or partial, status
end
function download (host, file)
local c = assert(socket.connect(host, 80)... | mit |
lapayx/tsdemuxer | xupnpd/src/plugins/xupnpd_gametrailers.lua | 6 | 3760 | -- Copyright (C) 2012-2013 Anton Burdinuk
-- clark15b@gmail.com
-- https://tsdemuxer.googlecode.com/svn/trunk/xupnpd
cfg.gametrailers_video_count=100
gametrailers_feeds=
{
['trailers'] = 'http://www.gametrailers.com/videos-trailers/feed',
['reviews'] = 'http://www.gametrailers.com/reviews/feed'... | mit |
dev-osrose/osIROSE-new | scripts/mobs/ai/guardian_tree.lua | 2 | 1073 | registerNpc(208, {
walk_speed = 240,
run_speed = 800,
scale = 340,
r_weapon = 1075,
l_weapon = 0,
level = 57,
hp = 172,
attack = 313,
hit = 185,
def = 216,
res = 153,
avoi... | apache-2.0 |
MinetestForFun/minetest-minetestforfun-server | mods/notice/init.lua | 9 | 1068 |
minetest.register_privilege("notice", "Able to show notices to players.")
minetest.register_chatcommand("notice", {
params = "<player> <text>",
privs = { notice=true, },
description = "Show a notice to a player.",
func = function(name, params)
local target, text = params:match("(%S+)%s+(.+)")
if not (target a... | unlicense |
pperichon/domoticz | dzVents/runtime/Utils.lua | 1 | 1548 | local self = {
LOG_ERROR = 1,
LOG_FORCE = 0.5,
LOG_MODULE_EXEC_INFO = 2,
LOG_INFO = 3,
LOG_DEBUG = 4,
}
function self.fileExists(name)
local f = io.open(name, "r")
if f ~= nil then
io.close(f)
return true
else
return false
end
end
function self.osExecute(cmd)
if (_G.TESTMODE) then return end
os.execu... | gpl-3.0 |
mrbangi/bangii | plugins/get.lua | 613 | 1067 | local function get_variables_hash(msg)
if msg.to.type == 'chat' then
return 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' then
return 'user:'..msg.from.id..':variables'
end
end
local function list_variables(msg)
local hash = get_variables_hash(msg)
if hash then
local names =... | gpl-2.0 |
shahin20nice/nic | tg/tdcli.lua | 102 | 88571 | --[[
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be use... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.