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
rpetit3/darkstar
scripts/globals/items/windurst_salad.lua
18
1453
----------------------------------------- -- ID: 4555 -- Item: windurst_salad -- Food Effect: 180Min, All Races ----------------------------------------- -- Magic 20 -- Agility 5 -- Vitality -1 -- Ranged ACC % 8 -- Ranged ACC Cap 10 ----------------------------------------- require("scripts/globals/status"); --------...
gpl-3.0
rpetit3/darkstar
scripts/zones/Garlaige_Citadel/npcs/Grounds_Tome.lua
26
1103
----------------------------------- -- Area: Garlaige Citidel -- NPC: Grounds Tome ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/groundsofvalor"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc...
gpl-3.0
spudgy/IntWars
BinWars/Scripts/Heroes/Corki.lua
4
1196
function CastSpell(self,spellIndex,x,y) if spellIndex == 0 then m = CMissile('PhosphorusBomb') m.toX = x m.toY = y m.fromX = self.x; m.fromY = self.y; m.channelTime = 0.25; m.visible = 1.0; SendMissile(self,m) --SendSpell(self,'Spell1',5,0) elseif...
gpl-3.0
rpetit3/darkstar
scripts/globals/items/pot_of_san_dorian_tea.lua
18
1188
----------------------------------------- -- 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
kidaa/luacheck
install.lua
3
3993
#!/usr/bin/env lua local dirsep = package.config:sub(1, 1) local is_windows = dirsep == "\\" package.path = "src" .. dirsep .. "?.lua" local has_luacheck, luacheck = pcall(require, "luacheck.init") assert(has_luacheck, "couldn't find luacheck module") local has_argparse, argparse = pcall(require, "luacheck.argparse") a...
mit
nokizorque/ucd
guieditor/client/getters.lua
2
14459
--[[-------------------------------------------------- GUI Editor client getters.lua creates getters for all the gui functions that we need by wrapping the setters --]]-------------------------------------------------- --[[-------------------------------------------------- colour --]]--------------------------...
mit
rpetit3/darkstar
scripts/zones/Valkurm_Dunes/npcs/Field_Manual.lua
29
1045
----------------------------------- -- Area: Valkurm Dunes -- NPC: Field Manual ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/fieldsofvalor"); ----------------------------------- -- onTrigger Action --------------------------...
gpl-3.0
actboy168/jass2lua
src/parser/relabel.lua
3
9939
-- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $ -- imported functions and modules local tonumber, type, print, error = tonumber, type, print, error local pcall = pcall local setmetatable = setmetatable local tinsert, concat = table.insert, table.concat local rep = string.rep local m = require"lpeglabel" -- 'm...
mit
martinrotter/textilosaurus
src/libtextosaurus/3rd-party/scintilla-lt/lexlua/boo.lua
2
2313
-- Copyright 2006-2019 Mitchell mitchell.att.foicica.com. See License.txt. -- Boo LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local lex = lexer.new('boo') -- Whitespace. lex:add_rule('whitespace', token(lexer.WHITESPACE, le...
gpl-3.0
ddouglascarr/rooset
lfframework/framework/env/encode/mime/base64.lua
3
1253
local alphabet = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "...
mit
lexa/awesome
spec/wibox/test_utils.lua
6
3100
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2014 Uli Schlachter --------------------------------------------------------------------------- local object = require("gears.object") local wbase = require("wibox.widget.base") local lbase = require("wi...
gpl-2.0
sys4-fr/server-minetestforfun
mods/report/init.lua
9
2950
report = {} function report.send(sender, message) -- Send to online moderators / admins -- Get comma separated list of online moderators and admins local mods = {} for _, player in pairs(minetest.get_connected_players()) do local name = player:get_player_name() if minetest.check_player_privs(name, {kick = true...
unlicense
vfedoroff/prosody-modules
mod_server_status/mod_server_status.lua
32
4748
-- (C) 2011, Marco Cirillo (LW.Org) -- Display server stats in readable XML or JSON format module:depends("http") local base_path = module:get_option_string("server_status_basepath", "/server-status/") local show_hosts = module:get_option_array("server_status_show_hosts", nil) local show_comps = module:get_option_arr...
mit
rpetit3/darkstar
scripts/zones/Lower_Jeuno/npcs/Taza.lua
13
1801
----------------------------------- -- Area: Lower Jeuno -- NPC: Taza -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; require("scripts/zones/Lower_Jeuno/TextIDs"); ----------------------------------- -- onTrade Ac...
gpl-3.0
schidler/ionic-luci
modules/luci-base/luasrc/model/firewall.lua
67
10658
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local type, pairs, ipairs, table, luci, math = type, pairs, ipairs, table, luci, math local tpl = require "luci.template.parser" local utl = require "luci.util" local uci = require "luci.model.uci" module "lu...
apache-2.0
martinrotter/textilosaurus
src/libtextosaurus/3rd-party/scintilla-lt/lexlua/themes/curses.lua
2
2266
-- Copyright 2007-2019 Mitchell mitchell.att.foicica.com. See License.txt. -- Curses theme for Lua lexers. -- Contributions by Ana Balan. local property = require('lexer').property -- Normal colors. property['color.black'] = '#000000' property['color.red'] = '#800000' property['color.green'] = '#008000' property['col...
gpl-3.0
sys4-fr/server-minetestforfun
mods/treasurer/init.lua
9
13176
--[==[ Treasurer - A mod for Minetest version 0.2.0 ]==] --[=[ TABLE OF CONTENTS part 1: Initialization part 2: Treasure API part 3: Treasure spawning mod handling part 4: Internal functions ]=] --[=[ part 1: Initialization ]=] -- This creates the main table; all functions of this mod are stored in this ta...
unlicense
rpetit3/darkstar
scripts/zones/Windurst_Woods/npcs/Kopua-Mobua_AMAN.lua
62
1375
----------------------------------- -- Area: Windurst Woods -- NPC: Kopua-Mobua A.M.A.N. -- Type: Mentor Recruiter -- @pos -23.134 1.749 -67.284 241 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------...
gpl-3.0
jdwang001/vstruct
cursor.lua
6
2433
-- cursor - a wrapper for strings that makes them look like files -- exports: seek read write -- read only supports numeric amounts -- Copyright (c) 2011 Ben "ToxicFrog" Kelly; see COPYING local cursor = {} -- like fseek -- seeking past the end of the string is permitted -- reads will return EOF, writes will fill in...
mit
nokizorque/ucd
guieditor/client/resolution_preview.lua
2
10732
--[[-------------------------------------------------- GUI Editor client resolution_preview.lua allows gui created within the editor to be 'previewed' in an on-screen view port at a chosen resolution --]]-------------------------------------------------- resolutionPreview = { resX = gScreen.x, resY = gScreen....
mit
d4rkboy/....
plugins/isup.lua
741
3095
do local socket = require("socket") local cronned = load_from_file('data/isup.lua') local function save_cron(msg, url, delete) local origin = get_receiver(msg) if not cronned[origin] then cronned[origin] = {} end if not delete then table.insert(cronned[origin], url) else for k,v in pairs(cronned[...
gpl-2.0
lovetoys/lovetoys
spec/eventManager_spec.lua
1
4022
local lovetoys = require('') lovetoys.initialize() describe('Eventmanager', function() local Listener, TestEvent local listener, eventManager, testEvent setup( function() -- Test Listener Listener = lovetoys.class('Listener') Listener.number = 0 function Listener:test(e...
mit
dvdvideo1234/GearAssemblyTool
lua/weapons/gmod_tool/stools/gearassembly.lua
1
52769
---------------- Localizing Libraries ---------------- local type = type local pairs = pairs local Angle = Angle local print = print local Color = Color local ipairs = ipairs local Vector = Vector local IsVali...
agpl-3.0
rpetit3/darkstar
scripts/globals/items/buttered_nebimonite.lua
18
1386
----------------------------------------- -- ID: 4267 -- Item: Buttered Nebimonite -- Food Effect: 60Min, All Races ----------------------------------------- -- Dexterity 1 -- Vitality 2 -- defense % 25 -- defense Cap 75 ----------------------------------------- require("scripts/globals/status"); --------------------...
gpl-3.0
streetturtle/awesome-wm-widgets
pomodoroarc-widget/pomodoroarc.lua
1
4590
------------------------------------------------- -- Pomodoro Arc Widget for Awesome Window Manager -- Modelled after Pavel Makhov's work -- @author Raphaël Fournier-S'niehotta -- @copyright 2018 Raphaël Fournier-S'niehotta ------------------------------------------------- local awful = require("awful") local beautif...
mit
rpetit3/darkstar
scripts/zones/Port_Bastok/npcs/Flying_Axe_IM.lua
13
5581
----------------------------------- -- Area: Port Bastok -- NPC: Flying Axe, I.M. -- X Grant Signet -- X Recharge Emperor Band, Empress Band, or Chariot Band -- X Accepts traded Crystals to fill up the Rank bar to open new Missions. -- X Sells items in exchange for Conquest Points -- X Start Supply Run Missions and o...
gpl-3.0
ddouglascarr/rooset
lfframework/framework/env/parse/decimal.lua
3
2310
local digit_set = { ["0"] = true, ["1"] = true, ["2"] = true, ["3"] = true, ["4"] = true, ["5"] = true, ["6"] = true, ["7"] = true, ["8"] = true, ["9"] = true } function parse.decimal(str, dest_type, options) local str = parse._pre_fold(str) local dest_type = dest_type or atom.number local options = options ...
mit
rpetit3/darkstar
scripts/zones/Port_San_dOria/npcs/Dabbio.lua
13
1051
----------------------------------- -- Area: Port San d'Oria -- NPC: Dabbio -- Type: Standard NPC -- @zone: 232 -- @pos -7.819 -15 -106.990 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; -------------...
gpl-3.0
MaritzaFSilva/tcc-fisioterapia
01 Documentação/Diagramas/dbdoc_plugin.lua
1
9259
-- -- CakeSchema Export -- Based on DoctrinExport (http://code.google.com/p/mysql-workbench-doctrine-plugin/) -- -- Testing -- catalog= grtV.getGlobal("/wb/doc/physicalModels/0/catalog") -- CakeSchema:writeToClipboard(catalog) -- -- standard module/plugin functions -- -- this function is called first by MySQL Workben...
mit
rpetit3/darkstar
scripts/zones/Upper_Jeuno/npcs/Brutus.lua
26
8211
----------------------------------- -- Area: Upper Jeuno -- NPC: Brutus -- Starts Quest: Chocobo's Wounds, Save My Son, Path of the Beastmaster, Wings of gold, Scattered into Shadow, Chocobo on the Loose! -- @pos -55 8 95 244 ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;...
gpl-3.0
rpetit3/darkstar
scripts/zones/Qulun_Dome/mobs/Za_Dha_Adamantking.lua
14
1283
----------------------------------- -- Area: Qulun Dome -- NM: Za Dha Adamantking ----------------------------------- require("scripts/globals/titles"); require("scripts/zones/Qulun_Dome/TextIDs"); ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob)...
gpl-3.0
MinetestForFun/server-minetestforfun-creative
mods/plantlife_modpack/woodsoils/generating.lua
9
4536
-- generating of forest soils local RaDiuS = { -- WE1 NS1 WE2 NS2 WE3 NS3 {-1,-2, -2,-2, -2,-3}, { 0,-2, -3,-1, -3,-2}, { 1,-2, -3, 0, -4,-1}, {-2,-1, -3, 1, -4, 0}, {-1,-1, -2, 2, -4, 1}, { 0,-1, -1, 3, -3, 2}, { 1,-1, 0, 3, -2, 3}, { 2,-1, 1, 3, -1, 4}, {-2, 0, 2, 2, 0, 4}, {-1...
unlicense
Marnador/OpenRA-Marn-TS-Edition
mods/cnc/maps/gdi05a/gdi05a.lua
12
6995
RepairThreshold = { Easy = 0.3, Normal = 0.6, Hard = 0.9 } ActorRemovals = { Easy = { Actor167, Actor168, Actor190, Actor191, Actor193, Actor194, Actor196, Actor198, Actor200 }, Normal = { Actor167, Actor194, Actor196, Actor197 }, Hard = { }, } GdiTanks = { "mtnk", "mtnk" } GdiApc = { "apc" } GdiInfantry = { "e1",...
gpl-3.0
schidler/ionic-luci
protocols/luci-proto-ipv6/luasrc/model/network/proto_6x4.lua
63
1066
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local netmod = luci.model.network local _, p for _, p in ipairs({"6in4", "6to4", "6rd"}) do local proto = netmod:register_protocol(p) function proto.get_i18n(self) if p == "6in4" then return luci.i18n....
apache-2.0
rpetit3/darkstar
scripts/zones/South_Gustaberg/MobIDs.lua
31
1234
----------------------------------- -- Area: South Gustaberg -- Comments: -- posX, posY, posZ --(Taken from 'mob_spawn_points' table) ----------------------------------- -- Leaping Lizzy Leaping_Lizzy=17215888; Leaping_Lizzy_PH={ [17215864] = '1', -- -228.159, 18.045, -411.726 [17215863] = '1', -- -260.662, 22.4...
gpl-3.0
rpetit3/darkstar
scripts/zones/QuBia_Arena/bcnms/heir_to_the_light.lua
30
1916
----------------------------------- -- Name: Mission 9-2 SANDO ----------------------------------- package.loaded["scripts/zones/Qubia_arena/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/missions"); require("scripts/zones/QuBia_Arena/TextIDs"); --...
gpl-3.0
esguk811/DarkRP
gamemode/modules/police/sv_interface.lua
8
10640
DarkRP.lockdown = DarkRP.stub{ name = "lockdown", description = "Start a lockdown.", parameters = { { name = "ply", description = "The player who initiated the lockdown.", type = "Player", optional = false } }, returns = { { ...
mit
sys4-fr/server-minetestforfun
mods/interact/config.lua
9
5057
interact = {} -- Which screens to show and in which order. interact.form_order = { "languageselect", "welcome", "visit", "rules", "quiz" } --The first screen-- --The text at the top. interact.s1_header = { en = "Hello, welcome to this server!", fr = "Bonjour et bienvenue sur ce serveur!" } --Lines one and two....
unlicense
matinbot/telerobot
plugins/bot_on_off.lua
292
1641
-- Checks if bot was disabled on specific chat local function is_channel_disabled( receiver ) if not _config.disabled_channels then return false end if _config.disabled_channels[receiver] == nil then return false end return _config.disabled_channels[receiver] end local function enable_channel(receiver) if...
gpl-2.0
rpetit3/darkstar
scripts/zones/Palborough_Mines/npcs/_3z9.lua
13
1591
----------------------------------- -- Area: Palborough Mines -- NPC: Refiner Lever -- Involved In Mission: Journey Abroad -- @zone 143 -- @pos 180 -32 167 ----------------------------------- package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/s...
gpl-3.0
rpetit3/darkstar
scripts/zones/Metalworks/npcs/High_Bear.lua
12
1886
----------------------------------- -- Area: Metalworks -- NPC: High Bear -- Type: Quest Giver -- @zone: 237 -- @pos 25.231 -14.999 4.552 ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/keyitems"); require("scripts/globals/titles"); ---------------------------------...
gpl-3.0
mwchase/log4l
tests/testFile.lua
1
1910
local GLOBAL_OS_DATE = os.date local GLOBAL_IO_OPEN = io.open local mock = { date = nil, handle = {} } io.open = function (file, mode) if (not string.find(file, "^__TEST*")) then return GLOBAL_IO_OPEN(file, mode) end mock.handle[file] = {} mock.handle[file].lines = {} mock.handle[file].mode = mode return {...
mit
rpetit3/darkstar
scripts/globals/groundsofvalor.lua
11
26957
------------------------------------------------- -- Largely based on the existing fieldsofvalor.lua -- -- Info from: -- http://www.bg-wiki.com/bg/Grounds_Tome -- http://wiki.ffxiclopedia.org/wiki/Grounds_Tome -- ------------------------------------------------- require("scripts/globals/settings"); require("script...
gpl-3.0
githubmereza/sargarme.lua
plugins/src.lua
1
1051
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
vseledkin/april-ann
packages/ann/ann/test/test-convolution.lua
3
1520
kx=17 ky=17 h=10 -- a matrix of ROWSxCOLUMNSx3 m = ImageIO.read(string.get_path(arg[0]) .. "photo.png"):matrix():transpose(1,3) m2 = m:contiguous():rewrap(m:size()) input = matrix(2, m2:size()) input:select(1,1):copy(m2) input:select(1,2):copy(m2) thenet,w,_ = ann.components.stack(): -- converts a flatten image to a m...
gpl-3.0
rpetit3/darkstar
scripts/zones/Bastok_Mines/npcs/Parraggoh.lua
12
2445
----------------------------------- -- Area: Bastok Mines -- NPC: Parraggoh -- Finishes Quest: Beauty and the Galka ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"); ...
gpl-3.0
aradml/-
plugins/arabic_lock.lua
234
1405
antiarabic = {}-- An empty table for solving multiple kicking problem do local function run(msg, matches) if is_momod(msg) then -- Ignore mods,owner,admins return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['lock_arabic'] then if data[tostring(msg.to.id)...
gpl-2.0
root4r08/RoOt3r08
plugins/arabic_lock.lua
234
1405
antiarabic = {}-- An empty table for solving multiple kicking problem do local function run(msg, matches) if is_momod(msg) then -- Ignore mods,owner,admins return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['lock_arabic'] then if data[tostring(msg.to.id)...
gpl-2.0
rpetit3/darkstar
scripts/zones/Lower_Jeuno/npcs/Morefie.lua
13
1128
----------------------------------- -- Area: Lower Jeuno -- NPC: Morefie -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; require("scripts/zones/Lower_Jeuno/TextIDs"); ----------------------------------- -- onTrade...
gpl-3.0
dmccuskey/dmc-objects
examples/Corona-Physics-ManyCrates/dmc_corona_boot.lua
47
15406
--====================================================================-- -- dmc_corona_boot.lua -- -- utility to read in configuration file for dmc-corona-library -- -- Documentation: --====================================================================-- --[[ The MIT License (MIT) Copyright (C) 2013-2015 David Mc...
mit
Endika/Algorithm-Implementations
Partial_Selection_Sort/Lua/Yonaba/partial_selection_sort_test.lua
26
1029
-- Tests for partial_selection_sort.lua local PSS = require 'partial_selection_sort' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then p...
mit
dmccuskey/dmc-objects
examples/Corona-Physics-ManyCrates/dmc_corona/lib/dmc_lua/lua_class.lua
34
14185
--====================================================================-- -- dmc_lua/lua_class.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2015 David McCuskey Permission is hereby granted, fr...
mit
renchunxiao/luajson
lua/json/decode/state.lua
7
4261
--[[ Licensed according to the included 'LICENSE' document Author: Thomas Harning Jr <harningt@gmail.com> ]] local setmetatable = setmetatable local jsonutil = require("json.util") local assert = assert local type = type local next = next local unpack = unpack local _ENV = nil local state_ops = {} local state_mt =...
mit
rpetit3/darkstar
scripts/zones/Norg/npcs/Ranemaud.lua
13
3814
----------------------------------- -- Area: Norg -- NPC: Ranemaud -- Involved in Quest: Forge Your Destiny, The Sacred Katana -- @pos 15 0 23 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("sc...
gpl-3.0
dkogan/notion
contrib/statusd/statusd_xmmsip.lua
3
10613
-- Authors: Hendrik Iben <hiben@tzi.de> -- License: GPL, version 2 -- Last Changed: 2006-03-23 -- -- statusd_xmmsip.lua v20060323 -- -- Interface to the XMMS InfoPipe-Plugin -- Inspired by the high cpu attention statusd_xmms.lua + python demand... -- ( no offense, just observation... :-) -- (using statusd_xmms while ...
lgpl-2.1
rpetit3/darkstar
scripts/zones/Cape_Teriggan/npcs/Sarmistha_IM.lua
13
3309
----------------------------------- -- Area: Cape Teriggan -- NPC: Sarmistha, I.M. -- Type: Outpost Conquest Guards -- @pos -185 7 -63 113 ----------------------------------- package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); require("...
gpl-3.0
root4r08/RoOt3r08
plugins/linkpv.lua
2
1094
--[[ # #ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ #:(( # For More Information ....! # Developer : reza < @Yagop > # our channel: @Ntflight # Version: 1.1 #:)) #ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ # ]] do functi...
gpl-2.0
dwmw2/luci
modules/luci-base/luasrc/sgi/cgi.lua
81
1688
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. exectime = os.clock() module("luci.sgi.cgi", package.seeall) local ltn12 = require("luci.ltn12") require("nixio.util") require("luci.http") require("luci.sys") require("luci.dispatcher") -- Limited source to av...
apache-2.0
rpetit3/darkstar
scripts/zones/Metalworks/npcs/Udine_AMAN.lua
33
1311
----------------------------------- -- Area: Metalworks -- NPC: Udine A.M.A.N -- Type: Mentor Recruiter ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Metalworks/TextIDs"); ----------------------------------- --...
gpl-3.0
msva/verse
plugins/legacy.lua
1
2263
local verse = require "verse"; local uuid = require "util.uuid".generate; local xmlns_auth = "jabber:iq:auth"; function verse.plugins.legacy(stream) function handle_auth_form(result) local query = result:get_child("query", xmlns_auth); if result.attr.type ~= "result" or not query then local type, cond, text =...
mit
rpetit3/darkstar
scripts/zones/Upper_Jeuno/npcs/Sibila-Mobla.lua
13
1362
----------------------------------- -- Area: Upper Jeuno -- NPC: Sibila-Mobla -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Upper_Jeuno/TextIDs"); require("scripts/globals/quests"); -------...
gpl-3.0
rpetit3/darkstar
scripts/globals/items/margherita_pizza_+1.lua
18
1279
----------------------------------------- -- ID: 5696 -- Item: margherita_pizza_+1 -- Food Effect: 4hours, All Races ----------------------------------------- -- Attack 20 -- Health Points 40 --**no information on item on wiki, so just based properties off lq version ----------------------------------------- require(...
gpl-3.0
ManStache/PokeBotBad
action/textbox.lua
6
2213
local Textbox = {} local Input = require "util.input" local Memory = require "util.memory" local Menu = require "util.menu" local Data = require "data.data" local alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ *():;[]ab-?!mf/.," -- local alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ *():;[]ポモ-?!♂♀/.," local nidoName = ...
mit
mrbangi/yagop
plugins/pokedex.lua
626
1668
do local images_enabled = true; local function get_sprite(path) local url = "http://pokeapi.co/"..path print(url) local b,c = http.request(url) local data = json:decode(b) local image = data.image return image end local function callback(extra) send_msg(extra.receiver, extra.text, ok_cb, false) end lo...
gpl-2.0
crazym/lsyncd
tests/churn-rsync.lua
4
1143
#!/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.rsync with random data activity' ) cwriteln( '********...
gpl-2.0
renchunxiao/luajson
lua/json/encode/others.lua
9
1577
--[[ Licensed according to the included 'LICENSE' document Author: Thomas Harning Jr <harningt@gmail.com> ]] local tostring = tostring local assert = assert local jsonutil = require("json.util") local type = type local _ENV = nil -- Shortcut that works local encodeBoolean = tostring local defaultOptions = { allo...
mit
rpetit3/darkstar
scripts/zones/Spire_of_Dem/npcs/Radiant_Aureole.lua
13
1034
----------------------------------- -- Area: Spire of Dem -- NPC: Radiant Aureole -- @pos 0.044 -119.249 -360.028 19 ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; ---------------------------------...
gpl-3.0
MinetestForFun/server-minetestforfun-creative
mods/diplazer/pchest.lua
1
5339
minetest.register_craft({ output = "diplazer:pchest", recipe = { {"default:stick","default:stick","default:stick"}, {"default:stick","default:chest_locked", "default:diamond"}, {"default:stick","default:stick","default:stick"}, } }) local function diplazer_setpchest(pos,user) local meta = minetest...
unlicense
SnakeSVx/sbep
lua/weapons/gmod_tool/stools/sbep_door.lua
2
4798
TOOL.Category = "SBEP" TOOL.Tab = "Spacebuild" TOOL.Tab = "Spacebuild" TOOL.Name = "#Door" TOOL.Command = nil TOOL.ConfigName = "" local DoorToolModels = list.Get( "SBEP_DoorToolModels" ) if CLIENT then language.Add( "Tool.sbep_door.name" , "SBEP Door Tool" ) language.Add( "Tool.sbep_door.desc" , "Cr...
apache-2.0
rpetit3/darkstar
scripts/zones/Southern_San_dOria/npcs/Guilboire.lua
13
1425
----------------------------------- -- Area: Southern San d'Oria -- NPC: Guilboire -- General Info NPC ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"...
gpl-3.0
Bobbyjoness/To-Do-App-Client
libs/hump/gamestate.lua
11
3391
--[[ Copyright (c) 2010-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
rpetit3/darkstar
scripts/globals/items/red_curry_bun.lua
18
2193
----------------------------------------- -- ID: 5759 -- Item: red_curry_bun -- Food Effect: 30 Min, All Races ----------------------------------------- -- Health 25 -- Strength 7 -- Agility 1 -- Intelligence -2 -- Attack % 23 -- Attack Cap 150 (cap 150) -- Ranged Atk % 23 (cap 150) -- Demon Killer 4 -- HP recovered wh...
gpl-3.0
chrizel/Yzis
tests/scripts/test_vim_pattern.lua
2
20328
-- Autogenerated test script from test_vim_pattern.vim-- do not modify by hand require('luaunit') require('utils') require('vimregexp') TestVimRegexp = {} --class function TestVimRegexp:test01() --****** assertEquals(VimRegexp([[a*b]]):match('aaab'), true ) assertEquals(VimRegexp([[a*b]]):match('ab'), true ) ...
gpl-2.0
vlapsley/outback
mods/plantlife/nature_classic/global_function.lua
10
2479
-- helper functions local function process_blossom_queue_item() local pos = nature.blossomqueue[1][1] local node = nature.blossomqueue[1][2] local replace = nature.blossomqueue[1][3] if (nature.blossomqueue[1][3] == nature.blossom_node and not nature:is_near_water(pos)) then table.remove(nature.blossomqueue, 1)...
lgpl-2.1
legoktm/wesnoth
data/ai/lua/retreat.lua
29
8281
--[=[ Functions to support the retreat of injured units ]=] local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local BC = wesnoth.require "ai/lua/battle_calcs.lua" local LS = wesnoth.require "lua/location_set.lua" local retreat_functions = {} function retreat_functions.min_h...
gpl-2.0
rpetit3/darkstar
scripts/globals/items/dish_of_spaghetti_marinara.lua
18
1460
----------------------------------------- -- ID: 5719 -- Item: dish_of_spaghetti_marinara -- Food Effect: 30Min, All Races ----------------------------------------- -- HP % 15 (cap 120) -- Vitality 2 -- Defense 5 -- Store TP 7 ----------------------------------------- require("scripts/globals/status"); --------------...
gpl-3.0
martinrotter/textilosaurus
src/libtextosaurus/3rd-party/scintilla-lt/lexlua/lua.lua
2
5893
-- Copyright 2006-2019 Mitchell mitchell.att.foicica.com. See License.txt. -- Lua LPeg lexer. -- Original written by Peter Odding, 2007/04/04. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local lex = lexer.new('lua') -- Whitespace. lex:...
gpl-3.0
ktopouzi/CppSharp
build/scripts/Provision.lua
2
2638
require "Utils" function download_ninja() local system = ""; if os.is("windows") then system = "win" elseif os.is("macosx") then system = "mac" elseif os.is("linux") then system = "linux" else error("Error downloading Ninja for unknown system") end local url = "https://github.com/ninja-build/ninja/rele...
mit
rpetit3/darkstar
scripts/globals/items/dish_of_hydra_kofte.lua
18
1873
----------------------------------------- -- ID: 5602 -- Item: dish_of_hydra_kofte -- Food Effect: 180Min, All Races ----------------------------------------- -- Strength 7 -- Intelligence -3 -- Attack % 20 -- Attack Cap 150 -- Defense % 25 -- Defense Cap 70 -- Ranged ATT % 20 -- Ranged ATT Cap 150 -- Poison Resist 5 -...
gpl-3.0
rpetit3/darkstar
scripts/globals/spells/armys_paeon_vi.lua
27
1360
----------------------------------------- -- Spell: Army's Paeon VI -- Gradually restores target's HP. ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,ta...
gpl-3.0
sys4-fr/server-minetestforfun
mods/_misc/commands.lua
8
6047
minetest.register_privilege("physics", { description = "Allows player to set their gravity, jump height and movement speed"}) -- Infotool code by PilzAdam: minetest.register_craftitem(":default:infotool", { description = "Infotool", inventory_image = "default_infotool.png", wield_image = "default_infot...
unlicense
i32ropie/telegram-bot
plugins/channels.lua
300
1680
-- Checks if bot was disabled on specific chat local function is_channel_disabled( receiver ) if not _config.disabled_channels then return false end if _config.disabled_channels[receiver] == nil then return false end return _config.disabled_channels[receiver] end local function enable_channel(receiver) if...
gpl-2.0
rpetit3/darkstar
scripts/zones/Port_Bastok/npcs/Bartolomeo.lua
13
1563
----------------------------------- -- Area: Port Bastok -- NPC: Bartolomeo -- Standard Info NPC -- Involved in Quest: Welcome to Bastok ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("script...
gpl-3.0
slaubenberger/learn2love
demo004/libraries/LoveFrames/init.lua
2
8569
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2013 Kenny Shields -- --]]------------------------------------------------ local path = ... -- central library table loveframes = {} -- library info loveframes.author = "Kenny Shields" loveframes.versio...
gpl-2.0
vlapsley/outback
mods/biomes/init.lua
1
1846
--[[ Outback Biomes --]] biomes = {} biomes.path = minetest.get_modpath("biomes") minetest.clear_registered_biomes() -- Underground if outback.deep_underground then dofile(biomes.path.."/deep_underground.lua") end if outback.underground then dofile(biomes.path.."/underground.lua") end -- Coast/Ocean if outback....
lgpl-2.1
spacebuild/spacebuild
lua/entities/generator_energy_hydro/init.lua
5
2894
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") util.PrecacheSound("Airboat_engine_idle") util.PrecacheSound("Airboat_engine_stop") include('shared.lua') local Energy_Increment = 100 --60 function ENT:Initialize() self.BaseClass.Initialize(self) self.Active = 0 self.damaged = 0 self.thinkcount...
apache-2.0
lukego/snabbswitch
lib/ljsyscall/syscall/util.lua
15
9655
-- generic utils not specific to any OS -- these are generally equivalent to things that are in man(1) or man(3) -- these can be made more modular as number increases local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, as...
apache-2.0
rpetit3/darkstar
scripts/zones/Abyssea-Grauberg/npcs/qm18.lua
17
1400
----------------------------------- -- Zone: Abyssea-Grauberg -- NPC: ??? -- Spawns: Amphitrite ----------------------------------- require("scripts/globals/status"); require("scripts/globals/keyitems"); ----------------------------------- -- onTrigger Action ----------------------------------- function onTrigger(p...
gpl-3.0
gligneul/FastLua
benchmarks/heapsort.lua
1
1113
local random, floor = math.random, math.floor floor = math.ifloor or floor function heapsort(n, ra) local j, i, rra local l = floor(n/2) + 1 -- local l = (n//2) + 1 local ir = n; while 1 do if l > 1 then l = l - 1 rra = ra[l] else rra...
mit
SnakeSVx/sbep
lua/entities/sbep_elev_housing/init.lua
2
12189
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( "shared.lua" ) local LMT = {} LMT.S = { [ "B" ] = { model = "models/smallbridge/elevators_small/sbselevb.mdl" , ZUD = 65.1 , ZDD = 65.1 , AT = {0,1,0,0} } , [ "BE" ] = { model = "models/smallbridge/elevators_small/sbselevbe.mdl" , ZUD =...
apache-2.0
tinchoss/Python_Android
lua/luasocket/etc/tftp.lua
59
4718
----------------------------------------------------------------------------- -- TFTP support for the Lua language -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: tftp.lua,v 1.16 2005/11/22 08:33:29 diego Exp $ ----------------------------------------------------------------------------- -----------------...
apache-2.0
andmatand/kitty-jump-around
main.lua
1
10419
Object = require('util.oo') require('util.anim') require('util.box') require('util.graphics') require('class.animation') require('class.camera') require('class.kitty') require('class.skin') require('class.sprite') require('class.virtualgamepad') require('system.disco-platform') require('system.star') require('system.or...
mit
rpetit3/darkstar
scripts/zones/Xarcabard/npcs/Perennial_Snow.lua
51
1649
----------------------------------- -- Area: Xarcabard -- NPC: Perennial Snow -- Involved in Quests: The Circle of Time -- @pos 339 0 -379 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("sc...
gpl-3.0
rpetit3/darkstar
scripts/zones/RuLude_Gardens/npcs/Nomad_Moogle.lua
25
6265
----------------------------------- -- Area: Ru'Lude Gardens -- NPC: Nomad Moogle -- Type: Adventurer's Assistant -- @pos 10.012 1.453 121.883 243 ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); ...
gpl-3.0
disslove7777/Mj.Dl-Bot
plugins/help.lua
337
5009
do function pairsByKeys(t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
vseledkin/april-ann
tools/LM/ngram-ppl-calc.lua
3
5828
-- calcula la perplejidad de un conjunto de test opt = cmdOpt{ program_name = string.basename(arg[0]), argument_description = "", main_description = "Ngram PPL computed with April toolkit", { index_name="multi_class", description = "Compute a multi class with given number of classes", long = "multi-...
gpl-3.0
rpetit3/darkstar
scripts/globals/items/bowl_of_stamina_soup.lua
18
1540
----------------------------------------- -- ID: 4337 -- Item: bowl_of_stamina_soup -- Food Effect: 4Hrs, All Races ----------------------------------------- -- HP % 10 -- Dexterity 4 -- Vitality 6 -- Mind -3 -- HP Recovered While Healing 10 ----------------------------------------- require("scripts/globals/status"); ...
gpl-3.0
fegimanam/mer
plugins/id.lua
30
5808
--[[ Print user identification/informations by replying their post or by providing their username or print_name. !id <text> is the least reliable because it will scan trough all of members and print all member with <text> in their print_name. chat_info can be displayed on group, send it into PM, or save as file then...
gpl-2.0
rpetit3/darkstar
scripts/globals/items/akamochi+1.lua
35
2066
----------------------------------------- -- ID: 6261 -- Item: akamochi+1 -- Food Effect: 60 Min, All Races ----------------------------------------- -- HP + 30 (Pet & Master) -- Vitality + 4 (Pet & Master) -- Attack + 17% Cap: 54 (Pet & Master) Pet Cap: 81 -- Accuracy + 11% Cap: 54 (Pet & Master) Pet Cap: 81 ---------...
gpl-3.0
rpetit3/darkstar
scripts/globals/items/tavnazian_salad.lua
18
1675
----------------------------------------- -- ID: 4279 -- Item: tavnazian_salad -- Food Effect: 180Min, All Races ----------------------------------------- -- Health 20 -- Magic 20 -- Dexterity 4 -- Agility 4 -- Vitality 6 -- Charisma 4 -- Defense % 25 -- Defense Cap 150 ----------------------------------------- requir...
gpl-3.0