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
Percona-QA/toku-qa
tokudb/software/fast-updates/sysbench-0.5/sysbench/tests/db/select_random_points.lua
10
3964
-- This test is designed for testing MariaDB's key_cache_segments for MyISAM, -- and should work with other storage engines as well. -- -- For details about key_cache_segments please refer to: -- http://kb.askmonty.org/v/segmented-key-cache -- function prepare() local query local i set_vars() db_connect()...
gpl-2.0
wingo/snabb
lib/ljsyscall/syscall/openbsd/fcntl.lua
24
1202
-- OpenBSD fcntl -- TODO incomplete, lots missing 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, table, string local funct...
apache-2.0
bmscoordinators/FFXI-Server
scripts/globals/weaponskills/glory_slash.lua
19
1581
----------------------------------- -- Glory Slash -- Sword weapon skill -- Skill Level: NA -- Only avaliable during Campaign Battle while weilding Lex Talionis. -- Delivers and area attack that deals triple damage. Damage varies with TP. Additional effect Stun. -- Will stack with Sneak Attack. -- Aligned with the Flam...
gpl-3.0
MRAHS/SBSS_Plus
plugins/dic.lua
31
1662
--[[ -- Translate text using Google Translate. -- http://translate.google.com/translate_a/single?client=t&ie=UTF-8&oe=UTF-8&hl=en&dt=t&tl=en&sl=auto&text=hello --]] do function translate(source_lang, target_lang, text) local path = "http://translate.google.com/translate_a/single" -- URL query parameters local pa...
gpl-2.0
colesbury/nn
Linear.lua
3
3693
local Linear, parent = torch.class('nn.Linear', 'nn.Module') function Linear:__init(inputSize, outputSize, bias) parent.__init(self) local bias = ((bias == nil) and true) or bias self.weight = torch.Tensor(outputSize, inputSize) self.gradWeight = torch.Tensor(outputSize, inputSize) if bias then se...
bsd-3-clause
rbazaud/vlc
share/lua/playlist/mpora.lua
97
2565
--[[ $Id$ Copyright © 2009 the VideoLAN team Authors: Konstantin Pavlov (thresh@videolan.org) 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 opt...
gpl-2.0
pakozm/april-ann
packages/autodiff/ann/package.lua
3
1212
package{ name = "autodiff.ann", version = "1.0", depends = { "util", "matrix", "autodiff", "ann", "ann.loss" }, keywords = { }, description = "", -- targets como en ant target{ name = "init", mkdir{ dir = "build" }, mkdir{ dir = "include" }, }, target{ name = "clean", d...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Southern_San_dOria/npcs/Ullasa.lua
17
1699
----------------------------------- -- Area: Southern San d'Oria -- NPC: Ullasa -- General Info NPC ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria/TextIDs"); require("scripts/globals/s...
gpl-3.0
emoon/wrui
bin/win32/scripts/tundra/syntax/glob.lua
22
3353
-- glob.lua - Glob syntax elements for declarative tundra.lua usage module(..., package.seeall) local util = require "tundra.util" local path = require "tundra.path" local decl = require "tundra.decl" local dirwalk = require "tundra.dirwalk" local ignored_dirs = util.make_lookup_table { ".git", ".svn", "CVS" } loca...
mit
bmscoordinators/FFXI-Server
scripts/zones/Cloister_of_Tides/bcnms/trial-size_trial_by_water.lua
29
2207
----------------------------------- -- Area: Cloister of Tides -- BCNM: Trial by Water ----------------------------------- package.loaded["scripts/zones/Cloister_of_Tides/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/shop"); require("scripts/globals/q...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/globals/weaponskills/kings_justice.lua
19
1810
----------------------------------- -- Kings Justice -- Great Axe weapon skill -- Skill Level: N/A -- Delivers a threefold attack. Damage varies with TP. Conqueror: Aftermath effect varies with TP. -- Available only after completing the Unlocking a Myth (Warrior) quest. -- Aligned with the Breeze Gorget, Thunder Gorget...
gpl-3.0
amrit110/deepLearThesis
torch/mnist_loc.lua
1
4238
require 'nn' require 'optim' --require 'dataset-mnist' -- Parameters n_training = 1000 --n_testing = 1000 batch_size = 50 --classes = {'1','2','3','4','5','6','7','8','9','10'} geometry = {26,26} --mask_geo = {12,12} epochs = 1 -- Define model (convnet) net = nn.Sequential() net:add(nn.SpatialConvolutionMM(1,32,3,3,...
mit
bmscoordinators/FFXI-Server
scripts/zones/Port_Jeuno/npcs/Horst.lua
29
3441
----------------------------------- -- Area: Port Jeuno -- NPC: Horst -- Type: Abyssea Warp NPC -- @pos -54.379 0.001 -10.061 246 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_Jeuno/TextIDs"); ------------...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Giddeus/npcs/Laa_Mozi.lua
14
2157
----------------------------------- -- Area: Giddeus -- NPC: Laa Mozi -- Involved in Mission 1-3 -- @pos -22 0 148 145 ----------------------------------- package.loaded["scripts/zones/Giddeus/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/missions")...
gpl-3.0
wingo/snabb
src/core/app.lua
4
18237
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) local packet = require("core.packet") local lib = require("core.lib") local link = require("core.link") local config = require("core.config") local timer = require("core.timer") local shm ...
apache-2.0
5620g/38196040
plugins/anti_flood.lua
281
2422
local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 5 local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, function (data, success, result) if success ~= 1 then local text = 'I can\'t k...
gpl-2.0
5620g/38196040
plugins/anti-flood2.lua
281
2422
local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 5 local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, function (data, success, result) if success ~= 1 then local text = 'I can\'t k...
gpl-2.0
bmscoordinators/FFXI-Server
scripts/globals/abilities/evokers_roll.lua
19
2756
----------------------------------- -- Ability: Evoker's Roll -- Gradually restores MP for party members within area of effect -- Optimal Job: Summoner -- Lucky Number: 5 -- Unlucky Number: 9 -- Level: 40 -- -- Die Roll |No SMN |With SMN -- -------- ------- ----------- -- 1 |+1 |+2 -- 2 ...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Sacrificial_Chamber/npcs/_4j4.lua
14
1440
----------------------------------- -- Area: Sacrificial Chamber -- NPC: Mahogany Door -- @pos 300 30 -324 163 ------------------------------------- package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil; ------------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/missio...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/globals/items/serving_of_bavarois_+1.lua
12
1282
----------------------------------------- -- ID: 5730 -- Item: Serving of Bavarois +1 -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- HP 25 -- Intelligence 4 -- hHP +4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -...
gpl-3.0
deepak78/luci
libs/lucid-rpc/luasrc/lucid/rpc.lua
52
1197
--[[ LuCI - Lua Development Framework 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 re...
apache-2.0
bmscoordinators/FFXI-Server
scripts/globals/items/crepe_forestiere.lua
12
1467
----------------------------------------- -- ID: 5774 -- Item: crepe_forestiere -- Food Effect: 30Min, All Races ----------------------------------------- -- Mind 2 -- MP % 10 (cap 35) -- Magic Accuracy +15 -- Magic Def. Bonus +6 ----------------------------------------- require("scripts/globals/status"); -----------...
gpl-3.0
alivilteram/mustafa1p
plugins/help.lua
1
1632
do function run(msg, matches) return [[ ⚪️/Open | Close file :- منع ملفات ⚪️/Open | Close image :- منع صور ⚪️/Open | Close audio :- منع صوت ⚪️/Open | Close sticker :- منع ملصق ⚪️/Open | Close link :- منع روابط ⚪️/Open | Close chat :- قفل الدردشة ➖➖➖➖➖➖➖➖ ⚪️/Promote :- رفع ادمن ⚪️/demote :- انزل ادمن 💭/spromote : u...
gpl-3.0
diamondo25/Vana
scripts/npcs/gachapon18.lua
2
7204
--[[ 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/Bastok_Mines/npcs/Rodellieux.lua
17
1433
----------------------------------- -- 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("scripts/zones...
gpl-3.0
wingo/snabb
lib/ljsyscall/examples/epoll.lua
23
3206
-- simple epoll-based socket example. Serves up http responses, but is of course not a proper server -- you can test performance with ab -n 100000 -c 100 http://localhost:8000/ although ab may be the limiting factor local S if arg[1] == "rump" then S = require "syscall.rump.init".init{"net", "net.net", "net.local", ...
apache-2.0
raedwulf/awesome
luadoc/screen.lua
3
1198
--- awesome screen API -- @author Julien Danjou &lt;julien@danjou.info&gt; -- @copyright 2008-2009 Julien Danjou module("screen") --- Screen is a table where indexes are screen number. You can use screen[1] -- to get access to the first screen, etc. Each screen has a set of properties. -- @field geometry The screen co...
gpl-2.0
diamondo25/Vana
scripts/npcs/subway_out.lua
2
1030
--[[ 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
draexx/config
conky/clock_rings_maia.lua
1
4513
settings_table = { { name='time', arg='%I', max=12, bg_colour=0xffffff, bg_alpha=0.1, fg_colour=0xffffff, fg_alpha=0.2, x=160, y=155, radius=50, thickness=5, start_angle=0, end_angle=360 }, { name='time', arg='%M', max=59, bg_colour=0xffffff, bg_alpha=0.1, fg_colour=0x336699, fg...
gpl-3.0
rbazaud/vlc
share/lua/modules/simplexml.lua
103
3732
--[==========================================================================[ simplexml.lua: Lua simple xml parser wrapper --[==========================================================================[ Copyright (C) 2010 Antoine Cellerier $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> This progra...
gpl-2.0
bmscoordinators/FFXI-Server
scripts/zones/Selbina/npcs/Vuntar.lua
14
3323
----------------------------------- -- Area: Selbina -- NPC: Vuntar -- Starts and Finishes Quest: Cargo (R) -- @pos 7 -2 -15 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); require("scripts/glo...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Port_Bastok/npcs/Numa.lua
17
1786
----------------------------------- -- Area: Port Bastok -- NPC: Numa -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; require("scripts/zones/Port_Bastok/TextIDs"); ------------...
gpl-3.0
kerb9729/ESOPublicAddons
Alchemist/localization/fr.lua
3
2539
local mkstr = ZO_CreateStringId local SI = Alchemist.SI -- output texts mkstr(SI.NO_DISCOVERIES_AVAILABLE, "Aucune découverte disponible.") mkstr(SI.COMBINATIONS_AVAILABLE, "%d combinaisons disponibles") mkstr(SI.COMBINE_THE_FOLLOWING, "Combinez ceci:") mkstr(SI.TO_GET_THE_FOLLOWING_DIS...
bsd-3-clause
bmscoordinators/FFXI-Server
scripts/commands/animatenpc.lua
1
1040
--------------------------------------------------------------------------------------------------- -- func: animatenpc -- desc: Changes the animation of the given npc. (For testing purposes.) --------------------------------------------------------------------------------------------------- require("scripts/globals/s...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/globals/weaponskills/double_thrust.lua
26
1348
----------------------------------- -- Double Thrust -- Polearm weapon skill -- Skill Level: 5 -- Delivers a two-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Light Gorget. -- Aligned with the Light Belt. -- Element: None -- Modifiers: STR:30% -- 100%TP 200%TP 300%TP -- 1...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Jugner_Forest/mobs/Sappy_Sycamore.lua
14
1383
---------------------------------- -- Area: Jugner_Forest -- NM: Sappy Sycamore ----------------------------------- ----------------------------------- -- onMobInitialize ----------------------------------- function onMobInitialize(mob) mob:setMobMod(MOBMOD_ADD_EFFECT,mob:getShortID()); mob:addMod(MOD_SLEEP...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/globals/items/chunk_of_orobon_meat.lua
12
1600
----------------------------------------- -- ID: 5563 -- Item: Chunk of Orobon Meat -- Effect: 5 Minutes, food effect, Galka Only ----------------------------------------- -- HP 10 -- MP -10 -- Strength +6 -- Intelligence -8 -- Demon Killer 10 ----------------------------------------- require("scripts/globals/status")...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Southern_San_dOria_[S]/npcs/Thierride.lua
14
3302
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Thierride -- @zone 80 -- @pos -124 -2 14 ----------------------------------- require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); require("scripts/globals/quests"); ----------------------------------- -- Item 1019 = Lufet Salt -- Had to u...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Mhaura/npcs/Tya_Padolih.lua
14
1479
----------------------------------- -- Area: Mhaura -- NPC: Tya Padolih -- Standard Merchant NPC -- @pos -48 -4 30 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/zones/Mhaura/TextIDs");...
gpl-3.0
bmscoordinators/FFXI-Server
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
bmscoordinators/FFXI-Server
scripts/zones/Port_Windurst/npcs/Kumama.lua
17
1712
----------------------------------- -- Area: Port Windurst -- NPC: Kumama -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; require("scripts/zones/Port_Windurst/TextIDs"); ----...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Port_Bastok/npcs/Grin.lua
14
1039
----------------------------------- -- Area: Port Bastok -- NPC: Grin -- Type: Quest Giver -- @zone 236 -- @pos -56.533 1.392 -29.432 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; -------------------------...
gpl-3.0
blackops97/KING_TELE
plugins/hello.lua
1
2550
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD HUSSIEN ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJADHUSSIEN (@TH3_Evil) ▀▄ ▄▀ ▀▄ ▄ JUST WRITED BY SAJJAD HUSSIEN ▀▄ ▄▀ ▀▄ ▄▀ wolcom : ترحيب ▀▄ ▄▀ ▀▄...
gpl-2.0
pastukhov/fishy-wifi
wegrow/talk.lua
1
1121
-- talk.lua: exchange data with server over MQTT talk={} local function prtbl(t) for k, v in pairs(t) do print(k, v) end end -- DEBUG local function recall() if not file.open(w.datafile, "r") then return nil end _, t = pcall(loadstring("return {" .. (file.read() or "") .. "}")) file.close() return t end local f...
agpl-3.0
wingo/snabb
lib/ljsyscall/syscall/openbsd/ffi.lua
18
6838
-- This are the types for OpenBSD 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, table, string local abi = require "syscal...
apache-2.0
bmscoordinators/FFXI-Server
scripts/zones/Yuhtunga_Jungle/npcs/Harvesting_Point.lua
17
1103
----------------------------------- -- Area: Yuhtunga Jungle -- NPC: Harvesting Point ----------------------------------- package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil; ------------------------------------- require("scripts/globals/harvesting"); require("scripts/zones/Yuhtunga_Jungle/TextIDs"); ---...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Metalworks/npcs/Lorena.lua
3
2680
----------------------------------- -- Area: Metalworks -- NPC: Lorena -- Type: Blacksmithing Guildworker's Union Representative -- @zone 237 -- @pos -104.990 1 30.995 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; require("scripts/zones/Metalworks/TextIDs"); require("...
gpl-3.0
cheney247689848/Cloud-edge
Assets/ToLua/Lua/cjson/util.lua
170
6837
local json = require "cjson" -- Various common routines used by the Lua CJSON package -- -- Mark Pulford <mark@kyne.com.au> -- Determine with a Lua table can be treated as an array. -- Explicitly returns "not an array" for very sparse arrays. -- Returns: -- -1 Not an array -- 0 Empty table -- >0 Highest index ...
mit
bmscoordinators/FFXI-Server
scripts/globals/items/nopales_salad.lua
12
1358
----------------------------------------- -- ID: 5701 -- Item: nopales_salad -- Food Effect: 3Hrs, All Races ----------------------------------------- -- Strength 1 -- Agility 6 -- Ranged Accuracy +20 -- Ranged Attack +10 ----------------------------------------- require("scripts/globals/status"); -------------------...
gpl-3.0
TannerRogalsky/GGJ2017
map/symmetricalize.lua
2
2503
local CONSTANTS = require('map.constants') local N, S, E, W = unpack(CONSTANTS.DIRECTIONS) local DX = CONSTANTS.DX local DY = CONSTANTS.DY local OPPOSITE = CONSTANTS.OPPOSITE local possible_orientations = { horizontal = true, vertical = true, both = true } local swaps = { horizontal = { ...
mit
jsenellart/OpenNMT
onmt/modules/SentenceNLLCriterion.lua
4
21578
--[[ Define SentenceNLLCriterion. Implements Sentence-level log-likelihood as described in Collobert et al., Natural Language Processing (almost) from Scratch, JMLR 12(2011). This class tries to be both nn.Criterion and nn.Module at the same time. (Criterion with learnable parameters that are required for ru...
mit
bmscoordinators/FFXI-Server
scripts/globals/items/crayfish.lua
12
1445
----------------------------------------- -- ID: 4472 -- Item: crayfish -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity -3 -- Vitality 1 -- defense +10% (unknown cap) ----------------------------------------- require("scripts/globals/status"); ---------------------------------...
gpl-3.0
nsimplex/wicker
kernel_extensions/dst_abstraction/replicas.lua
6
1601
local Lambda = wickerrequire "paradigms.functional" if IsWorldgen() then init = Lambda.Nil return _M end --- local AddReplicatableComponent local get_replica if IsDST() then local get_repcmps_table = memoize_0ary(function() local Reflection = wickerrequire "game.reflection" require "entityscript" require "...
gpl-2.0
bmscoordinators/FFXI-Server
scripts/zones/Northern_San_dOria/npcs/Cauzeriste.lua
14
1241
----------------------------------- -- Area: Northern San d'Oria -- NPC: Cauzeriste -- Guild Merchant NPC: Woodworking Guild -- @pos -175.946 3.999 280.301 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/glo...
gpl-3.0
BooM-amour/FUCKER
bot/seedbot.lua
1
10224
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 = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return...
gpl-2.0
bmscoordinators/FFXI-Server
scripts/globals/weaponskills/dark_harvest.lua
23
1248
----------------------------------- -- Dark Harvest -- Scythe weapon skill -- Skill Level: 30 -- Delivers a dark elemental attack. Damage varies with TP. -- Aligned with the Aqua Gorget. -- Aligned with the Aqua Belt. -- Element: Dark -- Modifiers: STR:20% ; INT:20% -- 100%TP 200%TP 300%TP -- 1.00 2.00 ...
gpl-3.0
orocos/rFSM
rfsm_proto.lua
2
6171
-- rfsm remote control interaction protocol -- -- (C) 2010-2013 Markus Klotzbuecher <markus.klotzbuecher@mech.kuleuven.be> -- (C) 2014-2020 Markus Klotzbuecher <mk@mkio.de> -- -- SPDX-License-Identifier: BSD-3-Clause -- local socket = require("socket") local json = require("json") local rfsm = require("rfsm") local rf...
lgpl-3.0
TannerRogalsky/GGJ2017
powerups/powerup.lua
1
2445
local Powerup = class('Powerup', Base) local DefenseCharacter = require('player.defense_character') local powerup_shader = g.newShader('shaders/powerup.glsl') Powerup.static.powerup_shader = powerup_shader function Powerup:initialize(x, y, time_to_trigger) Base.initialize(self) assert(is_num(x)) assert(is_num(...
mit
bmscoordinators/FFXI-Server
scripts/globals/abilities/elemental_siphon.lua
26
2807
----------------------------------- -- Ability: Elemental Siphon -- Drains MP from your summoned spirit. -- Obtained: Summoner level 50 -- Recast Time: 5:00 -- Duration: Instant ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/pets"); r...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/globals/abilities/curing_waltz_v.lua
6
2528
----------------------------------- -- Ability: Curing Waltz V -- Restores target's HP -- Obtained: Dancer Level 87 -- TP Required: 80% -- Recast Time: 00:23 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------- -- onAbilityChec...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Bastok_Mines/npcs/Davyad.lua
14
1191
----------------------------------- -- Area: Bastok Mines -- NPC: Davyad -- Involved in Mission: Bastok 3-2 -- @zone 234 -- @pos 83 0 30 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scri...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/globals/items/kohlrouladen_+1.lua
12
1822
----------------------------------------- -- ID: 5761 -- Item: kohlrouladen -- Food Effect: 4hr, All Races ----------------------------------------- -- Strength 4 -- Agility 4 -- Intelligence -4 -- RACC +10% (cap 65) -- RATT +16% (cap 70) -- Enmity -5 -- Subtle Blow +6 ----------------------------------------- require...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/East_Sarutabaruta/npcs/Sama_Gohjima.lua
14
1498
----------------------------------- -- Area: East Sarutabaruta -- NPC: Sama Gohjima -- Involved in Mission: The Horutoto Ruins Experiment (optional) -- @pos 377 -13 98 116 ----------------------------------- package.loaded["scripts/zones/East_Sarutabaruta/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
suxinde2009/wesnoth
data/ai/micro_ais/cas/ca_swarm_move.lua
4
2496
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local ca_swarm_move = {} function ca_swarm_move:evaluation(cfg) local units = wesnoth.get_units { side = wesnoth.current.side } for _,unit in ipairs(units) do if (unit.moves > 0) then return cfg.ca_score end ...
gpl-2.0
bmscoordinators/FFXI-Server
scripts/globals/items/fulm-long_salmon_sub.lua
12
1486
----------------------------------------- -- ID: 4266 -- Item: fulm-long_salmon_sub -- Food Effect: 60Min, All Races ----------------------------------------- -- DEX +2 -- VIT +1 -- AGI +1 -- INT +2 -- MND -2 -- Ranged Accuracy +3 ----------------------------------------- require("scripts/globals/status"); ----------...
gpl-3.0
gmorishere/plzplzplz
plugins/stats.lua
236
3989
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
Samanj5/creed-SPAM
plugins/stats.lua
236
3989
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
bmscoordinators/FFXI-Server
scripts/zones/Dangruf_Wadi/Zone.lua
12
2892
----------------------------------- -- -- Zone: Dangruf_Wadi (191) -- ----------------------------------- package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/globals/status"); require(...
gpl-3.0
yarrrthegame/publicconfig
missions/drone_1.lua
1
4225
t = {} local yc = require( "yarrrconfig" ) function attack( drone, mission_id ) local ship_data = yc.ship_of_mission_by_id( mission_id ) local drone_data = objects[ drone:id() ] local diff = yc.coordinate_difference( ship_data.coordinate, drone_data.coordinate ) drone:set_velocity( yc.coordinate_from( yc.coo...
mit
wingo/snabb
src/apps/lwaftr/generator.lua
2
12022
module(..., package.seeall) -- This module implements two clases: `from_inet` and `from_b4`. -- -- `from_inet` class emulates IPv4 traffic coming from the internet to then -- lwAFTR. It requires at least a starting IPv4 address and a PSID length -- value. On each iteration, destination port is incremented, so packets ...
apache-2.0
bmscoordinators/FFXI-Server
scripts/zones/Bastok_Markets/npcs/Biggorf.lua
17
1180
----------------------------------- -- Area: Bastok Markets -- NPC: Biggorf -- Standard Info NPC -- Involved in Quest: The Bare Bones ----------------------------------- require("scripts/globals/quests"); package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; require("scripts/zones/Bastok_Markets/TextIDs"); ---...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Nyzul_Isle/mobs/Alexander.lua
12
3126
----------------------------------- -- Area: Nyzul Isle (Nashmeira's Plea) -- MOB: Alexander ----------------------------------- require("scripts/zones/Nyzul_Isle/IDs"); require("scripts/globals/status"); ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/globals/abilities/eagle_eye_shot.lua
26
2067
----------------------------------- -- Ability: Eagle Eye Shot -- Delivers a powerful and accurate ranged attack. -- Obtained: Ranger Level 1 -- Recast Time: 1:00:00 -- Duration: Instant ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Norg/npcs/Washu.lua
9
3754
----------------------------------- -- Area: Norg -- NPC: Washu -- Involved in Quest: Yomi Okuri -- Starts and finishes Quest: Stop Your Whining -- @pos 49 -6 15 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyi...
gpl-3.0
EvandroLG/pegasus.lua
src/pegasus/handler.lua
1
3481
local Request = require 'pegasus.request' local Response = require 'pegasus.response' local mimetypes = require 'mimetypes' local lfs = require 'lfs' local function ternary(condition, t, f) if condition then return t else return f end end local Handler = {} Handler.__index = Handler function Handler:new(callback, ...
mit
bmscoordinators/FFXI-Server
scripts/zones/Windurst_Woods/npcs/Lih_Pituu.lua
53
1893
----------------------------------- -- Area: Windurst Woods -- NPC: Lih Pituu -- Type: Bonecraft Adv. Image Support -- @pos -5.471 -6.25 -141.211 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Windurst_W...
gpl-3.0
wingo/snabb
src/program/packetblaster/replay/replay.lua
14
1568
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local config = require("core.config") local basic_apps = require("apps.basic.basic_apps") local main = require("core.main") local PcapReader = require("apps.pcap.pcap").PcapReader local lib = re...
apache-2.0
XtBot/xt
plugins/Bye.lua
9
2319
do local function run(msg, matches, callback, extra) local data = load_data(_config.moderation.data) local rules = data[tostring(msg.to.id)]['rules'] local about = data[tostring(msg.to.id)]['description'] local hash = 'group:'..msg.to.id local group_bye = redis:hget(hash,'bye') if matches[1] == 'delbye' and not matche...
gpl-2.0
Xeio/KuralakRefiled
KuralakRefiled.lua
1
15821
require "Window" ----------------------------------------------------------------------------------------------- -- KuralakRefiled Module Definition ----------------------------------------------------------------------------------------------- local KuralakRefiled = {} --------------------------------------------...
bsd-2-clause
accorp/lua-5.1-stuff
prosody/mod_plain.lua
1
1105
--[[ plain_from = <jid> plain_listen = { [<port>] = <jid>, [<port>] = {<jid>, <jid>}, } ]] module:set_global() local from = module:get_option("plain_from", "plain") local listen = module:get_option("plain_listen", {}) local function send(msg, to, ...) if not to then return end prosody.core_post_stanza(...
unlicense
NetEase/openlua
src/analyse.lua
2
15047
--[[±¾³ÌÐò·ÖÎöLua5.0ËùÓеIJúÉúʽ£¬ÕÒ³öÒýÆðÖ±½ÓÓë¼ä½Ó×óµÝ¹éµÄ·ÇÖÕ½á·û--]] require("common.lua") require("set.lua") require("list.lua") require("prototype.lua") --[[---------------------------------------------------------- -- helper functions ----------------------------------------------------------]]-- -- ...
mit
bmscoordinators/FFXI-Server
scripts/zones/Port_Windurst/npcs/Tokaka.lua
17
3001
----------------------------------- -- Area: Port Windurst -- NPC: Tokaka -- Starts & Finishes Repeatable Quest: Something Fishy ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/global...
gpl-3.0
deepak78/luci
applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
11
1310
--[[ 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
NetEase/openlua
src/slr.lua
2
221625
require("common.lua") require("set.lua") require("list.lua") require("prototype.lua") -- ÔËËã·ûÓÅÏȼ¶±í local precedence = {} precedence["or"] = 1 precedence["and"] = 2 precedence["<"] = 3 precedence[">"] = 3 precedence["<="] = 3 precedence[">="] = 3 precedence["~="] = 3 precedence["=="] = 3 precedence[".."] = 4 prece...
mit
bmscoordinators/FFXI-Server
scripts/zones/Outer_Horutoto_Ruins/npcs/_5eg.lua
17
3739
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: Ancient Magical Gizmo #3 (G out of E, F, G, H, I, J) -- Involved In Mission: The Heart of the Matter ----------------------------------- package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- re...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Windurst_Waters/npcs/Ness_Rugetomal.lua
17
1713
----------------------------------- -- 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
bmscoordinators/FFXI-Server
scripts/zones/Port_Jeuno/npcs/Leyla.lua
17
1514
----------------------------------- -- Area: Port Jeuno -- NPC: Leyla -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; require("scripts/zones/Port_Jeuno/TextIDs"); ----------------------------------- -- onTrade Acti...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/globals/weaponskills/one_inch_punch.lua
25
1590
----------------------------------- -- One Inch Punch -- Hand-to-Hand weapon skill -- Skill level: 75 -- Delivers an attack that ignores target's defense. Amount ignored varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Shadow Gorget. -- Aligned with the Shadow Belt. -- Element: None -- Modifiers: VI...
gpl-3.0
abaez/awesome-common
pomodoro.lua
1
2867
--- a pomodoro for awesome. -- @author [Alejandro Baez](https://twitter.com/a_baez) -- @copyright 2015 -- @license MIT (see LICENSE) -- @module pomodoro local wibox = require("wibox") local awful = require("awful") local naughty = require("naughty") --local timer = require("timer") local pomodoro = {} p = pomodoro -...
mit
psn240/Text2Image
data/donkey_folder_txt_coco.lua
2
3989
require 'image' dir = require 'pl.dir' trainLoader = {} local alphabet = "abcdefghijklmnopqrstuvwxyz0123456789-,;.!?:'\"/\\|_@#$%^&*~`+-=<>()[]{} " local dict = {} for i = 1,#alphabet do dict[alphabet:sub(i,i)] = i end ivocab = {} for k,v in pairs(dict) do ivocab[v] = k end alphabet_size = #alphabet function d...
mit
deepak78/luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua
78
1934
--[[ Luci configuration model for statistics - collectd email plugin configuration (c) 2008 Freifunk Leipzig / 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...
apache-2.0
firedtoad/skynet
lualib/snax/hotfix.lua
20
2420
local si = require "snax.interface" local function envid(f) local i = 1 while true do local name, value = debug.getupvalue(f, i) if name == nil then return end if name == "_ENV" then return debug.upvalueid(f, i) end i = i + 1 end end local function collect_uv(f , uv, env) local i = 1 while true...
mit
diamondo25/Vana
scripts/instances/kftToLudiTrip.lua
2
1142
--[[ 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
cypherkey/AvorionMission
sector/factionwar/temporarydefender.lua
1
3682
package.path = package.path .. ";data/scripts/lib/?.lua" package.path = package.path .. ";data/scripts/sector/factionwar/?.lua" require ("stringutility") require ("randomext") require("factionwarutility") local hitsReceived = {} local enemiesHaveBeenPresent = false function initialize() Entity():registerCallbac...
gpl-3.0
tuxun/smw-funwiki
extensions/Scribunto/engines/LuaCommon/lualib/ustring/lower.lua
14
16535
-- This file is automatically generated by make-tables.php return { ["A"] = "a", ["B"] = "b", ["C"] = "c", ["D"] = "d", ["E"] = "e", ["F"] = "f", ["G"] = "g", ["H"] = "h", ["I"] = "i", ["J"] = "j", ["K"] = "k", ["L"] = "l", ["M"] = "m", ["N"] = "n", ["O"] = "o", ["P"] = "p", ["Q"] = "q", ["R"] = "r", ...
gpl-2.0
colesbury/nn
BCECriterion.lua
10
1737
local THNN = require 'nn.THNN' local BCECriterion, parent = torch.class('nn.BCECriterion', 'nn.Criterion') function BCECriterion:__init(weights, sizeAverage) parent.__init(self) if sizeAverage ~= nil then self.sizeAverage = sizeAverage else self.sizeAverage = true end if weights ~= nil then ...
bsd-3-clause
cheney247689848/Cloud-edge
Luajit64/jit/p.lua
55
9135
---------------------------------------------------------------------------- -- LuaJIT profiler. -- -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -- -- This modul...
mit
diamondo25/Vana
scripts/npcs/mike.lua
2
2338
--[[ 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/globals/items/icefish.lua
12
1322
----------------------------------------- -- ID: 4470 -- Item: icefish -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 3 -- Mind -5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----------...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Bastok_Markets/npcs/Balthilda.lua
14
1716
----------------------------------- -- Area: Bastok Markets -- NPC: Balthilda -- Type: Merchant -- @zone 235 -- @pos -300 -10 -161 -- -- NPC not found in 'npc_list' -- -- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/18/2011 -- -- Updated Aug-09-2013 by Zerahn, based on bgwiki and game...
gpl-3.0