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
RebootRevival/FFXI_Test
scripts/zones/Southern_San_dOria/npcs/Vaquelage.lua
3
1533
----------------------------------- -- Area: Southern San dOria -- NPC: Vaquelage -- Type: Item Deliverer NPC -- !pos 17.396 1.699 -29.357 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOr...
gpl-3.0
onpon4/naev
dat/missions/sirius/achack/achack01.lua
1
6361
--[[ <?xml version='1.0' encoding='utf8'?> <mission name="Sirian Bounty"> <flags> <unique /> </flags> <avail> <priority>19</priority> <planet>The Wringer</planet> <chance>50</chance> <location>Bar</location> </avail> <notes> <campaign>Academy Hack</campaign> </notes> </mission> --]] --[[ -- This is th...
gpl-3.0
mamaddeveloper/tel
bot/seedbot.lua
1
8491
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
apwiede/nodemcu-firmware-2.0
lua_modules/ds18b20/ds18b20.lua
18
3492
-------------------------------------------------------------------------------- -- DS18B20 one wire module for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Vowstar <vowstar@nodemcu.com> -- 2015/02/14 sza2 <sza2trash@gmail.com> Fix for negative values ---------------------------------------...
mit
RebootRevival/FFXI_Test
scripts/zones/Spire_of_Holla/bcnms/ancient_flames_beckon.lua
29
4222
----------------------------------- -- Area: Spire_of_Holla -- Name: ancient_flames_backon -- KSNM30 ----------------------------------- package.loaded["scripts/zones/Spire_of_Holla/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/quests"); require("scrip...
gpl-3.0
RebootRevival/FFXI_Test
scripts/globals/spells/bluemagic/sudden_lunge.lua
3
2102
----------------------------------------- -- Spell: Sudden Lunge -- Damage varies with TP. Additional effect: "Stun." -- Spell cost: 18 MP -- Monster Type: Vermin -- Spell Type: Physical (Slashing) -- Blue Magic Points: 4 -- Stat Bonus: HP-5 MP-5 DEX+1 AGI+1 -- Level: 95 -- Casting Time: 0.5 seconds -- Recast Time: 15 ...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Aht_Urhgan_Whitegate/npcs/_1e9.lua
3
1153
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: _1e9 (Gate: The Pit) -- !pos 80 -1.949 -107.94 -- Used to enter "The Colosseum" zone. ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zo...
gpl-3.0
sjmGithub/csi280LearningExperience
share/lua/playlist/france2.lua
113
2115
--[[ $Id$ Copyright © 2008 the VideoLAN team Authors: Antoine Cellerier <dionoea at videolan dot 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 ...
gpl-2.0
RebootRevival/FFXI_Test
scripts/zones/Upper_Jeuno/npcs/Mejuone.lua
17
1150
----------------------------------- -- Area: Upper Jeuno -- NPC: Mejuone -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; require("scripts/zones/Upper_Jeuno/TextIDs"); ----------------------------------- -- onTrade...
gpl-3.0
sajadaltaie/sejobot
plugins/plugins.lua
2
5891
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
RebootRevival/FFXI_Test
scripts/globals/items/serving_of_karni_yarik.lua
12
1645
----------------------------------------- -- ID: 5588 -- Item: serving_of_karni_yarik -- Food Effect: 30Min, All Races ----------------------------------------- -- Agility 3 -- Vitality -1 -- Attack % 20 (cap 65) -- Ranged Attack % 20 (cap 65) -- Evasion +6 ----------------------------------------- require("scripts/gl...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Western_Adoulin/npcs/Barenngo.lua
3
1458
----------------------------------- -- Area: Western Adoulin -- NPC: Barenngo -- Type: Standard NPC and Quest NPC -- Involved with Quests: 'Dont Ever Leaf Me' -- @zone 256 -- !pos -101 3 14 256 ----------------------------------- require("scripts/globals/quests"); ----------------------------------- -- onTrade A...
gpl-3.0
petoju/awesome
tests/examples/awful/titlebar/default.lua
3
2026
--DOC_GEN_IMAGE --DOC_HIDE --DOC_NO_USAGE local place = require("awful.placement") --DOC_HIDE local awful = { titlebar = require("awful.titlebar"), --DOC_HIDE button = require("awful.button"), --DOC_HIDE } --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local gears = {table = requir...
gpl-2.0
CCAAHH/telegram-bot-supergroups
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
RebootRevival/FFXI_Test
scripts/zones/Southern_San_dOria_[S]/npcs/Moogle.lua
3
1190
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Moogle -- @zone 80 -- !pos <many> ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); require("scripts/globals/moghouse") -----------...
gpl-3.0
rudolfmleziva/AdministratorTeritorial
cocos2d/cocos/scripting/lua-bindings/auto/api/Grid3D.lua
10
1361
-------------------------------- -- @module Grid3D -- @extend GridBase -- @parent_module cc -------------------------------- -- -- @function [parent=#Grid3D] getNeedDepthTestForBlit -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- -- @function [parent=#Grid3...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Windurst_Waters/npcs/Otete.lua
17
1423
----------------------------------- -- Area: Windurst_Waters -- NPC: Otete -- Only sells when Windurst controlls Li'Telor Region -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Windurst_Waters/...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Cloister_of_Flames/mobs/Ifrit_Prime.lua
23
1783
----------------------------------------------------- -- Area: Cloister of Flames -- MOB: Ifrit Prime -- Involved in Quest: Trial by Fire -- Involved in Mission: ASA-4 Sugar Coated Directive ----------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems");...
gpl-3.0
onpon4/naev
dat/missions/flf/dvk/flf_dvk06.lua
1
11911
--[[ <?xml version='1.0' encoding='utf8'?> <mission name="Assault on Haleb"> <flags> <unique /> </flags> <avail> <priority>10</priority> <chance>30</chance> <done>Alliance of Inconvenience</done> <location>Bar</location> <faction>FLF</faction> <cond>faction.playerStanding("FLF") &gt;= 80</cond> </avai...
gpl-3.0
hfjgjfg/jjjn
plugins/lyrics.lua
695
2113
do local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs' local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5' local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect' local function getInfo(query) print('Getting info of ' .. query) local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY ...
gpl-2.0
RebootRevival/FFXI_Test
scripts/zones/Lower_Delkfutts_Tower/npcs/_544.lua
3
1684
----------------------------------- -- Area: Lower Delkfutt's Tower -- NPC: Cermet Door -- Notes: Door opens when you trade Delkfutt Key to it -- !pos 345 0.1 20 184 ----------------------------------- package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil; ----------------------------------- require("...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/PsoXja/npcs/Treasure_Chest.lua
17
3465
----------------------------------- -- Area: Pso'Xja -- NPC: Treasure Chest -- @zone 9 ----------------------------------- package.loaded["scripts/zones/PsoXja/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/globals/treasu...
gpl-3.0
mzguanglin/LuCI
modules/niu/luasrc/model/cbi/niu/traffic/qos1.lua
49
3073
--[[ 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
RebootRevival/FFXI_Test
scripts/globals/items/slice_of_cockatrice_meat.lua
12
1357
----------------------------------------- -- ID: 4435 -- Item: slice_of_cockatrice_meat -- Food Effect: 5Min, Galka only ----------------------------------------- -- Strength 4 -- Intelligence -6 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- ...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Temenos/npcs/Matter_Diffusion_Module.lua
3
6347
----------------------------------- -- Area: temenos -- NPC: Matter diffusion module -- !pos ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/globals/keyitems"); require("scripts/zones/Tem...
gpl-3.0
RebootRevival/FFXI_Test
scripts/globals/abilities/pets/eraser.lua
1
1759
--------------------------------------------- -- Eraser --------------------------------------------- require("scripts/globals/automatonweaponskills") require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/msg"); --------------------------------------------------- function onMo...
gpl-3.0
RebootRevival/FFXI_Test
scripts/globals/spells/sleepga.lua
1
1635
----------------------------------------- -- Spell: Sleep I ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,spell)...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Tahrongi_Canyon/npcs/qm2.lua
3
2577
----------------------------------- -- Area: Tahrongi Canyon -- NPC: qm2 (???) -- Note: Used to spawn Yara Ma Yha Who -- !pos 271 0.001 -334 117 ----------------------------------- package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil; ------------------------------------- require("scripts/globals/settings...
gpl-3.0
TheRikyHUN/fooniks
resources/phoenix_Base/base-client.lua
2
6286
loginWindow = nil; loginBtn = nil; usrName = nil; passWord = nil; remember = nil; userRight = false; passRight = false; nameVal = ""; passVal = ""; isChecked = false; wantRemember = false; sx, sy = guiGetScreenSize( ); local sVersion = "0.0"; local sRev = "0"; local txtColor = tocolor( 255, 255, 2...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Lower_Jeuno/npcs/Gurdern.lua
17
1379
----------------------------------- -- Area: Lower Jeuno -- NPC: Gurdern -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Lower_Jeuno/TextIDs"); require("scripts/globals/quests"); ------------...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Western_Adoulin/npcs/Preterig.lua
3
1183
----------------------------------- -- Area: Western Adoulin -- NPC: Preterig -- Type: Shop NPC -- @zone 256 -- !pos 6 0 -53 256 ----------------------------------- package.loaded["scripts/zones/Western_Adoulin/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/z...
gpl-3.0
tommo/mock
mock/tools/TMXTool.lua
2
4632
local function trynumber(v) return tonumber(v) or v end local function copyNode(s,x) local attr=x.attributes if attr then for k,v in pairs(attr) do s[k]=trynumber(v) end end end local function parseTileSet(node) local set={} copyNode(set,node) local image=node.children['image'][1] assert(image, 'not su...
mit
RebootRevival/FFXI_Test
scripts/globals/items/wedge_of_chalaimbille.lua
12
1214
----------------------------------------- -- ID: 5684 -- Item: wedge_of_chalaimbille -- Food Effect: 30Min, All Races ----------------------------------------- -- Health % 6 (cap 40) ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -...
gpl-3.0
jthomasbarry/aafmt
archive/book_chapters_LaTeX_original/pgf_3.0.1.tds/tex/generic/pgf/graphdrawing/lua/pgf/gd/bindings/BindingToPGF.lua
2
7474
-- Copyright 2012 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd...
gpl-2.0
ashang/koreader
frontend/ui/downloadmgr.lua
5
1146
local PathChooser = require("ui/widget/pathchooser") local UIManager = require("ui/uimanager") local Screen = require("device").screen local util = require("ffi/util") local _ = require("gettext") local DownloadMgr = { title = _("Long press to choose download directory"), onConfirm = function() end, } functio...
agpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Hall_of_Transference/npcs/_0e8.lua
3
1703
----------------------------------- -- Area: Hall of Transference -- NPC: Large Apparatus (Right) - Mea -- !pos 290.253 -81.849 -42.381 14 ----------------------------------- package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Hall_of_Transfere...
gpl-3.0
patrikrm13/patriks
plugins/all.lua
88
4791
do data = load_data(_config.moderation.data) 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_print...
gpl-2.0
jthomasbarry/aafmt
archive/book_chapters_LaTeX_original/pgf_3.0.1.tds/tex/generic/pgf/graphdrawing/lua/pgf/gd/doc/ogdf/energybased/FastMultipoleEmbedder.lua
3
2038
-- Copyright 2013 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd...
gpl-2.0
RebootRevival/FFXI_Test
scripts/zones/Upper_Jeuno/npcs/Collet.lua
3
2370
----------------------------------- -- Area: Upper Jeuno -- NPC: Collet -- Involved in Quests: A Clock Most Delicate, Save the Clock Tower -- @zone 244 -- !pos -44 0 107 ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/g...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/The_Eldieme_Necropolis/npcs/Treasure_Chest.lua
17
3277
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Treasure Chest -- @zone 195 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/treasure")...
gpl-3.0
tabacof/adversarial
lbfgsb/lbfgsb.lua
1
2671
local lbfgsb = {} local ffi = require 'ffi' function lbfgsb.init(n_param, m_hist, bounds, lb, ub, print_level) lbfgsb.lib = ffi.load("./lbfgsb/liblbfgsb.so") ffi.cdef [[ void setulb_(int *n, int *m,double *x,double *l,double *u,int *nbd, double *f, double *g,double *factr,double *pgtol,double *wa,int *iwa, ...
gpl-3.0
Afforess/Factorio-Stdlib
stdlib/utils/iter.lua
1
2193
--- Iterator library. -- @module Utils.Iter local Iter = {} local pairs = pairs local ipairs = ipairs Iter.pairs = pairs Iter.ipairs = ipairs function Iter.spairs(t, order) -- collect the keys local keys = {} for k in pairs(t) do keys[#keys + 1] = k end -- if order function given, sort b...
isc
abbasgh12345/extreme11
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
AmirPGA/pgahide
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
m13790115/ssss
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
shiprabehera/kong
spec/03-plugins/27-request-termination/02-access_spec.lua
2
5174
local helpers = require "spec.helpers" local cjson = require "cjson" describe("Plugin: request-termination (access)", function() local client, admin_client setup(function() helpers.run_migrations() local api1 = assert(helpers.dao.apis:insert { name = "api-1", hosts = { "api1.request-terminati...
apache-2.0
shiprabehera/kong
kong/plugins/response-transformer/migrations/postgres.lua
5
1582
return { { name = "2016-05-04-160000_resp_trans_schema_changes", up = function(_, _, factory) local plugins, err = factory.plugins:find_all {name = "response-transformer"} if err then return err end for _, plugin in ipairs(plugins) do for _, action in ipairs {"remove"...
apache-2.0
TechAtNYU/wiki
extensions/Scribunto/engines/LuaCommon/lualib/luabit/hex.lua
10
1830
--[[--------------- Hex v0.4 ------------------- Hex conversion lib for lua. How to use: hex.to_hex(n) -- convert a number to a hex string hex.to_dec(hex) -- convert a hex string(prefix with '0x' or '0X') to number Part of LuaBit(http://luaforge.net/projects/bit/). Under the MIT license. copyright(c...
gpl-2.0
johannes-mueller/ardour
scripts/bounce_replace.lua
1
2985
ardour { ["type"] = "EditorAction", name = "Bounce+Replace Regions", license = "MIT", author = "Ardour Team", description = [[Bounce selected regions with processing and replace region]] } function factory (params) return function () -- there is currently no direct way to find the track -- corresponding ...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/Bagnon/common/core/settings.lua
1
3673
--[[ settings.lua Methods for initializing and sharing settings between characters --]] local ADDON, Addon = ... local SETS = ADDON .. '_Sets' local CURRENT_VERSION = GetAddOnMetadata(ADDON, 'Version') local L = LibStub('AceLocale-3.0'):GetLocale(ADDON) local function SetDefaults(target, defaults) defaults.__inde...
mit
RockySeven3161/MonsterBot
plugins/owners.lua
284
12473
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
gastrodia/awesome
spec/wibox/layout/align_spec.lua
1
8040
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2014 Uli Schlachter --------------------------------------------------------------------------- local align = require("wibox.layout.align") local utils = require("wibox.test_utils") describe("wibox.layo...
gpl-2.0
Ali-2h/ali
plugins/add_bot.lua
189
1492
--[[ Bot can join into a group by replying a message contain an invite link or by typing !add [invite link]. URL.parse cannot parsing complicated message. So, this plugin only works for single [invite link] in a post. [invite link] may be preceeded but must not followed by another characters. --]] do local function...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/premade-filter/localization/itIT.lua
1
3561
local _, L = ...; if GetLocale() ~= "itIT" then return end --Translation missing -- L["Actions"] = "" --Translation missing -- L["Alive"] = "" --Translation missing -- L["Any"] = "" --Translation missing -- L["Are you sure you want to delete filter set?"] = "" --Translation missing -- L["At least one word"] ...
mit
liruqi/bigfoot
Interface/AddOns/DBM-SiegeOfOrgrimmarV2/localization.tw.lua
1
17051
if GetLocale() ~= "zhTW" then return end local L --------------- -- Immerseus -- --------------- L= DBM:GetModLocalization(852) L:SetWarningLocalization({ }) L:SetOptionLocalization({ SoundWOP = "語音警告:重要技能", SoundPZD = "語音警告:當$spell:143579疊加超過三層時提示注意停手", InfoFrame = "資訊框:顯示擊殺和淨化的軟泥怪數量", dr = "減傷提...
mit
mario0582/devenserver
data/talkactions/scripts/playercheck.lua
2
3242
function getItemsInContainer(cont, sep) local text = "" local tsep = "" local count = "" for i=1, sep do tsep = tsep.."-" end tsep = tsep..">" for i=0, Container(cont.uid):getSize() - 1 do local item = pushThing(Container(cont.uid):getItem(i)) if not Container(item.uid) then if item.type > 1 then co...
gpl-2.0
DoubangoTelecom/sipml5
asterisk/etc/extensions.lua
317
5827
CONSOLE = "Console/dsp" -- Console interface for demo --CONSOLE = "DAHDI/1" --CONSOLE = "Phone/phone0" IAXINFO = "guest" -- IAXtel username/password --IAXINFO = "myuser:mypass" TRUNK = "DAHDI/G2" TRUNKMSD = 1 -- TRUNK = "IAX2/user:pass@provider" -- -- Extensions are expected to be defined in a global table ...
bsd-3-clause
ingran/balzac
package/libs/libpop3-lua/files/pop3/charset.lua
1
1079
--- -- @module pop3.charset -- @local -- This is internal module to convert text from on charset to another local function pass_thrue(str) return str end local setmeta = setmetatable local assert = assert local function make_iconv(to,from) end local meta = {__index = function(self, to) to = to:lower() ...
gpl-2.0
stackmachine/dots
main.lua
1
1398
local ground = {} local balls = {} local world = nil function love.load() love.graphics.setFont(love.graphics.newFont(50)) love.physics.setMeter(64) world = love.physics.newWorld(0, 9.81*64, true) --let's create the ground ground.body = love.physics.newBody(world, 650/2, 650-50/2) ground.shape = love.phy...
mit
ingran/balzac
custom_feeds/teltonika_luci/modules/niu/luasrc/controller/niu/traffic.lua
49
1218
--[[ 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...
gpl-2.0
johannes-mueller/ardour
scripts/_vca_slave_assign.lua
2
2366
ardour { ["type"] = "Snippet", name = "VCA Slave Examples", license = "MIT", author = "Ardour Team", } function factory () return function () -- find possible masters & slave, allow selection in dropdown menu local targets = {} local sources = {} local have_masters = false local have_slaves = false f...
gpl-2.0
alijoooon/Psycho
bot/utils.lua
473
24167
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/BigFoot/AceLibs/Ace3/AceGUI-3.0/widgets/AceGUIContainer-DropDownGroup.lua
12
4672
--[[----------------------------------------------------------------------------- DropdownGroup Container Container controlled by a dropdown on the top. -------------------------------------------------------------------------------]] local Type, Version = "DropdownGroup", 21 local AceGUI = LibStub and LibStub("Ac...
mit
shiprabehera/kong
kong/plugins/key-auth/api.lua
6
1734
local crud = require "kong.api.crud_helpers" return { ["/consumers/:username_or_id/key-auth/"] = { before = function(self, dao_factory, helpers) crud.find_consumer_by_username_or_id(self, dao_factory, helpers) self.params.consumer_id = self.consumer.id end, GET = function(self, dao_factory) ...
apache-2.0
Zuck3rFr3i/Horrizon-Reloadet
Horrizon/modules/login/login_client.lua
1
1293
local width, height = 600, 400 local x, y = (sx/2) - (width/2), (sy/2) - (height/2) addEvent("system:sendlogdataa", true) addEventHandler("system:sendlogdataa", root, function(username, password) if string.len(username) >= 4 then if string.len(password) >= 6 then local hashedpw = hash("sha512", password) tr...
gpl-3.0
tjclement/esp-common
webServer.lua
1
1256
local sendHttpResponse = require("sendHttpResponse") -- Small footprint webserver to serve files from flash local function webServer(connection, request) local match = request:match("GET / ") -- Default to index.html if no file specified if match then match = "index.html" else match = ...
mit
johnneijzen/John-Computer-Craft-Program-2017
Turtle Programs/BridgeNoWalls2017.lua
1
3952
--[[ Version 0.02 5/10/2017 Changelog 0.01 - Think this Program As FASTER VERSION OF Bridge 2017 0.02 - Fix Small Bugs --]] -- Locals Variables -- Area local width = 0 local widthCount = 0 local length = 0 local lengthCount = 0 -- items local noFuelNeeded = 0 -- Check if turtle is using no fuel config local item...
mit
DrZomgwtfbbq/Alewrap2Player
util/alewrap/GameScreen.lua
3
5027
--[[ Copyright 2014 Google Inc. 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 i...
gpl-2.0
shiprabehera/kong
spec/03-plugins/16-response-transformer/01-header_transformer_spec.lua
5
12512
local header_transformer = require "kong.plugins.response-transformer.header_transformer" local CONTENT_LENGTH = "content-length" describe("Plugin: response-transformer", function() describe("execute_headers()", function() describe("remove", function() local conf = { remove = { headers = ...
apache-2.0
telegold/telespam
plugins/ingroup.lua
202
31524
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostring(msg.to.id)] = { ...
gpl-2.0
LORDMEHDI/TeleTard
plugins/ingroup.lua
202
31524
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostring(msg.to.id)] = { ...
gpl-2.0
mario0582/devenserver
data/npc/scripts/tapete izac.lua
2
2378
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) ...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/BigFoot/AceLibs/LibDBIcon-1.0/LibDBIcon-1.0.lua
1
11064
----------------------------------------------------------------------- -- LibDBIcon-1.0 -- -- Allows addons to easily create a lightweight minimap icon as an alternative to heavier LDB displays. -- local DBICON10 = "LibDBIcon-1.0" local DBICON10_MINOR = 36 -- Bump on changes if not LibStub then error(DBICON...
mit
br-lemes/stuff
smartlan/socket/tp.lua
146
3608
----------------------------------------------------------------------------- -- Unified SMTP/FTP subsystem -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: tp.lua,v 1.22 2006/03/14 09:04:15 diego Exp $ ----------------------------------------------------------------------------- --------------------------...
mit
Unknown8765/SpeedBot
plugins/time.lua
771
2865
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
andreaskoepf/faster-rcnn
create-imagenet-traindata.lua
2
4481
-- specify the base path of the ILSVRC2015 dataset: ILSVRC2015_BASE_DIR = '/data/imagenet/ILSVRC2015/' require 'lfs' require 'LuaXML' -- if missing use luarocks install LuaXML require 'utilities' require 'Rect' local ground_truth = {} local class_names = {} local class_index = {} function import_file(anno_bas...
mit
MocoNinja/LinuxConfs
Archlabs/.config/awesome/vicious/contrib/rss.lua
18
1741
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2009, olcc -- -- This is now a standalone RSS reader for awesome: -- * http://github.com/olcc/aware --------------------------------------------------- -- {{{ Grab environment local pairs = pairs local io...
gpl-3.0
henkboom/pax-britannica
scripts/easy_enemy_production.lua
5
2312
local SCRIPTED_ACTIONS = { { 'fighter', 'fighter', 'fighter', 'fighter', 'bomber' }, { 'fighter', 'fighter', 'fighter', 'bomber' }, { 'fighter', 'fighter', 'bomber' }, { 'fighter', 'fighter', 'fighter', 'frigate' } } local action_ind...
mit
Unknown8765/SpeedBot
plugins/rae.lua
616
1312
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
alijoooon/Psycho
plugins/welcome.lua
5
3684
local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '' c...
gpl-2.0
nurv/lirec
scenarios/MyFriend/MyPleo/tags/version-1.05/workspace/viPleoShivaModule/Resources/Scripts/MyPleoAI_Function_updateAttachmentEstimate.lua
2
1403
-------------------------------------------------------------------------------- -- Function......... : updateAttachmentEstimate -- Author........... : Paulo F. Gomes -- Description...... : Updates the attachment estimate calculating a weighted -- sum of all needs. -----------------------------...
gpl-3.0
jessemillar/the-staff-of-lewis
lib/hump/class.lua
9
3066
--[[ 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
hanfang/scikit-ribo
tools/samtools-1.2/misc/r2plot.lua
28
2877
#!/usr/bin/env luajit function string:split(sep, n) local a, start = {}, 1; sep = sep or "%s+"; repeat local b, e = self:find(sep, start); if b == nil then table.insert(a, self:sub(start)); break end a[#a+1] = self:sub(start, b - 1); start = e...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/Bagnon/components/sortButton.lua
1
2021
--[[ sortButton.lua Sorting options button --]] local ADDON, Addon = ... local L = LibStub('AceLocale-3.0'):GetLocale(ADDON) local SortButton = Addon:NewClass('SortButton', 'CheckButton') local SIZE = 20 local NORMAL_TEXTURE_SIZE = 64 * (SIZE/36) local FIRST_FLAG, LAST_FLAG = LE_BAG_FILTER_FLAG_IGNORE_CLEANUP, NUM...
mit
nurv/lirec
scenarios/MyFriend/MyPleo/tags/version-1.05/workspace/viPleoShivaModule/Resources/Scripts/MyPleoAI_Game_State_WalkToTarget_onEnter.lua
2
1073
-------------------------------------------------------------------------------- -- State............ : WalkToTarget -- Author........... : Tiago Paiva -- Description...... : (unsure if it is being used) -------------------------------------------------------------------------------- -------------------------------...
gpl-3.0
liruqi/bigfoot
Interface/AddOns/DBM-Scenario-MoP/Landfall/Landfall.lua
1
1723
local mod = DBM:NewMod("Landfall", "DBM-Scenario-MoP")--Alliance : 590, Horde : 595 local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 2 $"):sub(12, -3)) mod:SetZone() mod:RegisterCombat("scenario", 1103, 1102) mod:RegisterEventsInCombat( "SPELL_CAST_START", "UNIT_DIED" ) mod.onlyNormal ...
mit
pouya-joker/Telecat
plugins/cpu.lua
244
1893
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' you...
gpl-2.0
Electrovirus/Griffin
lang/english_lang.lua
1
19295
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
Beagle/wesnoth
data/ai/micro_ais/cas/ca_messenger_f_next_waypoint.lua
25
2603
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua" return function(cfg) -- Calculate next waypoint and rating for all messengers -- Return next messenger to move and waypoint toward which it shoul...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/DBM-Core/DBM-Core.lua
1
454185
-- ********************************************************* -- ** Deadly Boss Mods - Core ** -- ** http://www.deadlybossmods.com ** -- ** https://www.patreon.com/deadlybossmods ** -- ********************************************************* -- -- Th...
mit
Telewild/telewild
plugins/wiki.lua
20
4376
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
masoudre11/RaHabot
plugins/moderation.lua
5
7280
-- Moderation for Liberbot groups. -- The bot must be made an admin. -- Put this near the top, after blacklist. -- If you want to enable antisquig, put that at the top, before blacklist. local triggers = { '^/modhelp[@'..bot.username..']*$', '^/modlist[@'..bot.username..']*$', '^/modcast[@'..bot.username..']*'...
gpl-2.0
dromozoa/dromozoa-commons
test/test_xml.lua
3
1078
-- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-commons. -- -- dromozoa-commons is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License...
gpl-3.0
bb010g/otouto
otouto/plugins/urbandictionary.lua
1
1954
--[[ urbandictionary.lua Returns the top Urban Dictionary entry for a given query. Copyright 2016 topkecleon <drew@otou.to> This code is licensed under the GNU AGPLv3. See /LICENSE for details. ]]-- local HTTP = require('socket.http') local URL = require('socket.url') local JSON = require('dkjson') lo...
agpl-3.0
dromozoa/dromozoa-commons
dromozoa/commons/queue.lua
2
1804
-- Copyright (C) 2015,2017 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-commons. -- -- dromozoa-commons is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the Li...
gpl-3.0
MkNiz/Love2Crawl
maps/map001.lua
1
29471
return { version = "1.1", luaversion = "5.1", tiledversion = "0.14.2", orientation = "orthogonal", renderorder = "right-down", width = 30, height = 30, tilewidth = 16, tileheight = 16, nextobjectid = 50, properties = { ["mapID"] = "001", ["mapName"] = "PUSTULE PALACE B1F", ["viewset"] ...
mit
liruqi/bigfoot
Interface/AddOns/WorldQuestTracker/libs/DF/normal_bar.lua
1
21799
local DF = _G ["DetailsFramework"] if (not DF or not DetailsFrameworkCanLoad) then return end local _ local _rawset = rawset --> lua locals local _rawget = rawget --> lua locals local _setmetatable = setmetatable --> lua locals local _unpack = unpack --> lua locals local _type = type --> lua locals loca...
mit
Ali-2h/ali
bot/utils.lua
646
23489
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
shiprabehera/kong
kong/tools/ip.lua
5
1207
local ip = require "resty.mediador.ip" local px = require "resty.mediador.proxy" local function trust_all() return true end local function trust_none() return false end local _M = { valid = ip.valid } function _M.init(config) local ips = config.trusted_ips local count = #ips local trusted_ips = {} local...
apache-2.0
Yonaba/Algorithm-Implementations
Boyer_Moore_Horspool/Lua/Yonaba/bmh_test.lua
27
1111
-- Tests for bmh.lua local bmh = require 'bmh' 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 pass = pass + 1 end local status = ok and 'PA...
mit