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
jeffchao/hedgewars-accessible
Hedgewars.app/Contents/Resources/hedgewars/Data/Maps/TrophyRace/map.lua
2
4024
-- Hedgewars - Roperace for 2+ Players loadfile(GetDataPath() .. "Scripts/Locale.lua")() -- store number of hedgehogs local numhhs = 0 -- store hedgehog gears local hhs = {} -- store best time per team local clantimes = {} -- store best times local times = {} -- in milisseconds local maxtime = 99000 -- define st...
gpl-2.0
jthomasbarry/aafmt
archive/book_chapters_LaTeX_original/pgf_3.0.1.tds/tex/generic/pgf/graphdrawing/lua/pgf/gd/lib/Storage.lua
3
3268
-- 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
RebootRevival/FFXI_Test
scripts/zones/Port_San_dOria/npcs/Deguerendars.lua
17
2163
----------------------------------- -- Area: Port San d'Oria -- NPC: Deguerendars -- Only sells when San d'Oria contrls Tavnazian Archipelago -- Only available to those with CoP Ch. 4.1 or higher ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; -------------------------...
gpl-3.0
majidhp888/Hack
plugins/moderation.lua
336
9979
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 local username = v.username data[tostring(m...
gpl-2.0
ashang/koreader
frontend/ui/wikipedia.lua
1
2406
local JSON = require("json") local DEBUG = require("dbg") --[[ -- Query wikipedia using Wikimedia Web API. -- http://en.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&exintro=&explaintext=&redirects=&titles=hello --]] local Wikipedia = { wiki_server = "http://%s.wikipedia.org", wiki_path = "/w/a...
agpl-3.0
tommo/mock
mock/physics/2D/PhysicsShape.lua
1
7685
module 'mock' -------------------------------------------------------------------- CLASS: PhysicsShape ( mock.Component ) :MODEL{ -- Field 'edit' :action('editShape') :meta{ icon='edit', style='tool'}; Field 'active' :boolean(); Field 'tag' :string(); Field 'loc' :type('vec2') :getset('Loc')...
mit
petoju/awesome
tests/examples/wibox/container/arcchart/bg.lua
5
1062
--DOC_HIDE_ALL --DOC_GEN_IMAGE local parent = ... local wibox = require( "wibox" ) local beautiful = require( "beautiful" ) local l = wibox.layout.fixed.horizontal() l.spacing = 10 parent:add(l) for _, v in ipairs {"", "#00ff00", "#0000ff"} do l:add(wibox.widget { { text = v~=...
gpl-2.0
petoju/awesome
lib/naughty/widget/title.lua
3
2581
---------------------------------------------------------------------------- --- A notification title. -- -- This widget is a specialized `wibox.widget.textbox` with the following extra -- features: -- -- * Honor the `beautiful` notification variables. -- * React to the `naughty.notification` object title changes. -- -...
gpl-2.0
openwrt-es/openwrt-luci
modules/luci-mod-admin-mini/luasrc/controller/mini/index.lua
74
1261
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.mini.index", package.seeall) function index() local root = node() if not root.lock then root.target = alias("mini") root.index =...
apache-2.0
majidhp888/Hack
plugins/id.lua
355
2795
local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name..' ' end if user.lastname then text = text..user.last_name end return text end local function returnids(cb_extra, success, resu...
gpl-2.0
RebootRevival/FFXI_Test
scripts/zones/Arrapago_Reef/mobs/Zareehkl_the_Jubilant.lua
23
1703
----------------------------------- -- Area: Arrapago Reef -- NPC: Zareehkl the Jubilant ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onMobInitialize Action ----------------------------------- function onMobInitialize(mob) end; ------------------...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Norg/npcs/Chiyo.lua
3
1298
----------------------------------- -- Area: Norg -- NPC: Chiyo -- Type: Tenshodo Merchant -- !pos 5.801 0.020 -18.739 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/shop");...
gpl-3.0
RebootRevival/FFXI_Test
scripts/globals/items/angler_stewpot.lua
12
1879
----------------------------------------- -- ID: 5611 -- Item: Angler's Stewpot -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% (cap 200) -- MP +10 -- HP Recoverd while healing 5 -- MP Recovered while healing 1 -- Accuracy +15% Cap 15 -- Ranged Accuracy 15% Ca...
gpl-3.0
openwrt-es/openwrt-luci
protocols/luci-proto-qmi/luasrc/model/cbi/admin_network/proto_qmi.lua
17
1270
-- Copyright 2016 David Thornley <david.thornley@touchstargroup.com> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local device, apn, pincode, username, password local auth, ipv6 device = section:taboption("general", Value, "device", translate("Modem device")) device.rmempty ...
apache-2.0
SinisterRectus/Discordia
libs/voice/VoiceSocket.lua
1
4238
local uv = require('uv') local class = require('class') local timer = require('timer') local enums = require('enums') local WebSocket = require('client/WebSocket') local logLevel = enums.logLevel local format = string.format local setInterval, clearInterval = timer.setInterval, timer.clearInterval local wrap = corout...
mit
RebootRevival/FFXI_Test
scripts/zones/Northern_San_dOria/npcs/Mevaloud.lua
17
1452
----------------------------------- -- Area: Northern San d'Oria -- NPC: Mevaloud -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Northern_San_dOria/TextIDs"); require("scripts/globals/...
gpl-3.0
rafradek/wire
lua/entities/gmod_wire_expression2/core/number.lua
9
17049
-- these upvalues (locals in an enclosing scope) are faster to access than globals. local delta = wire_expression2_delta local math = math local random = math.random local pi = math.pi local exp = math.exp local log = math.log local log10 = math.log10 local sqrt = math.sqrt local floor = math.floor ...
apache-2.0
petoju/awesome
lib/awful/client/focus.lua
3
7160
--------------------------------------------------------------------------- --- Keep track of the focused clients. -- -- @author Julien Danjou &lt;julien@danjou.info&gt; -- @copyright 2008 Julien Danjou -- @submodule client --------------------------------------------------------------------------- local grect = requir...
gpl-2.0
RebootRevival/FFXI_Test
scripts/zones/RoMaeve/npcs/Qu_Hau_Spring.lua
3
2537
----------------------------------- -- Qu_Hau_Spring -- Area: Ro'Maeve ----------------------------------- package.loaded["scripts/zones/RoMaeve/TextIDs"] = nil; ----------------------------------- require("scripts/zones/RoMaeve/TextIDs"); require("scripts/globals/quests"); require("scripts/globals/keyitems"); ------...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Metalworks/npcs/Romero.lua
3
1798
----------------------------------- -- Area: Metalworks -- NPC: Romero -- Type: Smithing Synthesis Image Support -- !pos -106.336 2.000 26.117 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); requir...
gpl-3.0
openwrt-es/openwrt-luci
applications/luci-app-simple-adblock/luasrc/model/cbi/simpleadblock.lua
9
2652
m = Map("simple-adblock", translate("Simple AdBlock Settings")) s = m:section(NamedSection, "config", "simple-adblock") -- General options e = s:option(Flag, "enabled", translate("Start Simple Adblock service")) e.rmempty = false function e.write(self, section, value) if value ~= "1" then luci.sys.init.stop("simpl...
apache-2.0
rafradek/wire
lua/wire/client/wire_filebrowser.lua
10
18931
// A file browser panel, used by the sound browser. // Can be used for any file type, recommend for huge file numbers. // Made by Grocel. local PANEL = {} AccessorFunc( PANEL, "m_strRootName", "RootName" ) // name of the root Root AccessorFunc( PANEL, "m_strRootPath", "RootPath" ) // path of the root Root Acces...
apache-2.0
RebootRevival/FFXI_Test
scripts/zones/Port_Jeuno/npcs/Purequane.lua
3
1367
----------------------------------- -- Area: Port Jeuno -- NPC: Purequane -- @zone 246 -- !pos -76 8 54 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("s...
gpl-3.0
rudolfmleziva/AdministratorTeritorial
cocos2d/cocos/scripting/lua-bindings/auto/api/LayerColor.lua
10
1484
-------------------------------- -- @module LayerColor -- @extend Layer,BlendProtocol -- @parent_module cc -------------------------------- -- change width and height in Points<br> -- since v0.8 -- @function [parent=#LayerColor] changeWidthAndHeight -- @param self -- @param #float w -- @param #float h ----...
gpl-3.0
hmandal/loadcaffe
loadcaffe.lua
3
1277
local ffi = require 'ffi' local C = loadcaffe.C loadcaffe.load = function(prototxt_name, binary_name, backend) local backend = backend or 'nn' local handle = ffi.new('void*[1]') -- loads caffe model in memory and keeps handle to it in ffi local old_val = handle[1] C.loadBinary(handle, prototxt_name, binary...
bsd-2-clause
RebootRevival/FFXI_Test
scripts/zones/Aht_Urhgan_Whitegate/npcs/Dkhaaya.lua
3
2519
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Dkhaaya -- Type: Standard NPC -- !pos -73.212 -1 -5.842 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); requi...
gpl-3.0
zzh442856860/skynet
test/testredis2.lua
82
1043
local skynet = require "skynet" local redis = require "redis" local db function add1(key, count) local t = {} for i = 1, count do t[2*i -1] = "key" ..i t[2*i] = "value" .. i end db:hmset(key, table.unpack(t)) end function add2(key, count) local t = {} for i = 1, count do ...
mit
abbasgh12345/extremenew2
plugins/location.lua
93
1704
-- Implement a command !loc [area] which uses -- the static map API to get a location image -- Not sure if this is the proper way -- Intent: get_latlong is in time.lua, we need it here -- loadfile "time.lua" -- Globals -- If you have a google api key for the geocoding/timezone api do local api_key = nil local base_...
gpl-2.0
ciufciuf57/nodemcu-firmware
lua_examples/yet-another-dht22.lua
65
2195
------------------------------------------------------------------------------ -- DHT11/22 query module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> -- -- Example: -- print("DHT11", dofile("dht22.lua").read(4)) -- print("DHT22", dofile("dht22.lua").read(4, true)) -- NB: ...
mit
padrinoo1/telegeek
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
liwenzhong/Atlas
lib/histogram.lua
40
5165
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. 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 dis...
gpl-2.0
gowadbd/DevDroid
plugins/ar-plugins.lua
7
6398
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
luochen1990/smart-bot
src/st_30_swarm.lua
1
30051
------------------------------ swarm server state ------------------------------ mkTaskInfo = function(opts) -- not used yet local t = { ["type"] = opts.type, workArea = opts.workArea, beginPos = opts.beginPos, estCost = opts.estCost, requiredTools = opts.requiredTools, command = opts.command, state = "...
mit
dannybloe/domoticz
dzVents/runtime/integration-tests/domoticzTestTools.lua
6
18311
package.path = package.path .. ";../?.lua;../device-adapters/?.lua;./data/?.lua;../../../scripts/dzVents/generated_scripts/?.lua;" .. "../../../scripts/lua/?.lua" local _ = require 'lodash' local File = require('File') local http = require("socket.http") local ltn12 = require("ltn12") local jsonParser = require('...
gpl-3.0
jpmac26/PGE-Project
Engine/_resources/script/maincore_level.lua
1
1602
-- We need to reference all placed objects with lua or the garbage collector will hit it local __refs = {} __refs.players = {} __refs.npcs = {} -- Debug stuff local deb_i = 0 local function temp_count(t) local i = 0 for _,__ in pairs(t) do i = i + 1 end return i end -- Debug stuff end function onLoop() if(Settin...
gpl-3.0
RebootRevival/FFXI_Test
scripts/globals/abilities/pets/chimera_ripper.lua
4
1216
--------------------------------------------------- -- Chimera Ripper --------------------------------------------------- require("scripts/globals/status") require("scripts/globals/settings") require("scripts/globals/automatonweaponskills") --------------------------------------------------- function onMobSkillCheck...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Cape_Teriggan/npcs/Voranbo-Natanbo_WW.lua
3
3326
----------------------------------- -- Area: Cape Teriggan -- NPC: Voranbo-Natanbo, W.W. -- Type: Outpost Conquest Guards -- !pos -185 7 -63 113 ----------------------------------- package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); req...
gpl-3.0
wgallios/.ubuntu
awesome/rc.lua
1
23915
-- Standard awesome library local gears = require("gears") awful = require("awful") awful.rules = require("awful.rules") require("awful.autofocus") -- Widget and layout library wibox = require("wibox") -- Theme handling library beautiful = require("beautiful") -- Notification library naughty = require("naughty") local ...
mit
SinisterRectus/Discordia
libs/iterables/ArrayIterable.lua
1
1996
--[=[ @c ArrayIterable x Iterable @mt mem @d Iterable class that contains objects in a constant, ordered fashion, although the order may change if the internal array is modified. Some versions may use a map function to shape the objects before they are accessed. ]=] local Iterable = require('iterables/Iterable') loca...
mit
bmichalo/MoonGen
rfc2544/benchmarks/backtoback.lua
9
13123
package.path = package.path .. "rfc2544/?.lua" local standalone = false if master == nil then standalone = true master = "dummy" end local dpdk = require "dpdk" local memory = require "memory" local device = require "device" local ts = require "timestamping" local filter ...
mit
RebootRevival/FFXI_Test
scripts/globals/effects/aftermath_lv1.lua
30
1130
----------------------------------- -- -- EFFECT_AFTERMATH_LV1 -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) local power = effect:getPower(); if (effe...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Port_San_dOria/npcs/Rugiette.lua
3
2400
----------------------------------- -- Area: Port San d'Oria -- NPC: Rugiette -- Involved in Quests: Riding on the Clouds, Lure of the Wildcat (San d'Oria) -- !pos 71 -9 -73 232 ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
iovisor/bcc
src/lua/bpf/cdef.lua
4
9392
--[[ Copyright 2016 Marek Vavrusa <mvavrusa@cloudflare.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
apache-2.0
RebootRevival/FFXI_Test
scripts/globals/abilities/pets/attachments/heat_seeker.lua
4
2220
----------------------------------- -- Attachment: Heat Seeker ----------------------------------- require("scripts/globals/status") ----------------------------------- -- onUseAbility ----------------------------------- function onEquip(pet) pet:addListener("ENGAGE", "AUTO_HEAT_SEEKER_ENGAGE", function(pet, tar...
gpl-3.0
RebootRevival/FFXI_Test
scripts/globals/items/wild_cookie.lua
12
1346
----------------------------------------- -- ID: 4577 -- Item: wild_cookie -- Food Effect: 5Min, All Races ----------------------------------------- -- Aquan killer +12 -- Silence resistance +12 -- MP recovered while healing +5 ----------------------------------------- require("scripts/globals/status"); -------------...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Balgas_Dais/mobs/Maat.lua
14
1549
----------------------------------- -- Area: Balga Dais -- MOB: Maat -- Genkai 5 Fight ----------------------------------- package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Balgas_Dais/TextIDs"); ----------------------------------- -- onMobSpawn Act...
gpl-3.0
blackzw/openwrt_sdk_dev1
staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/usr/lib/lua/luci/webapi/UserSettings.lua
1
2769
module("luci.webapi.UserSettings", package.seeall) local common = require('luci.webapi.Util') --[[ Get User Settings Parameters Return value: [{ "DeviceName":"iphone5s", "DeviceIP":"192.168.17", "DeviceMac":"f8:1e:df:e4:ed:8b", "DeviceType":"1", "InternetRight":"0", "StorageRight":"0" },¡­] ]] functi...
gpl-2.0
RebootRevival/FFXI_Test
scripts/globals/items/high_breath_mantle.lua
43
1427
----------------------------------------- -- ID: 15487 -- Item: High Breath Mantle -- Item Effect: HP+38 / Enmity+5 ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -------------------------------...
gpl-3.0
lzyzsd/ABTestingGateway
lib/abtesting/error/errcode.lua
22
1583
local modulename = 'abtestingErrorInfo' local _M = {} _M._VERSION = '0.0.1' _M.info = { -- index code desc -- SUCCESS ["SUCCESS"] = { 200, 'success '}, -- System Level ERROR ['REDIS_ERROR'] = { 40101, 'redis error for '}, ['POLICY_DB_ERROR'] = { 40102, 'policy in db error '...
mit
RebootRevival/FFXI_Test
scripts/zones/Temenos/mobs/Telchines_Bard.lua
28
1126
----------------------------------- -- Area: Temenos N T -- NPC: Telchines_Bard ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); -----------------------------...
gpl-3.0
blackzw/openwrt_sdk_dev1
staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/usr/lib/lua/luci/model/cbi/admin_network/iface_add.lua
1
3153
--[[ LuCI - Lua Configuration Interface Copyright 2009-2010 Jo-Philipp Wich <xm@subsignal.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: ifa...
gpl-2.0
padrinoo1/telegeek
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
Goodzilam/Goodzila-bot_v1.5
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
RebootRevival/FFXI_Test
scripts/globals/abilities/curing_waltz_iv.lua
4
2582
----------------------------------- -- Ability: Curing Waltz IV -- Heals HP to target player. -- Obtained: Dancer Level 70 -- TP Required: 65% -- Recast Time: 00:17 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/msg"); --------------...
gpl-3.0
CCAAHH/telegram-bot-supergroups
plugins/twitter_send.lua
627
1555
do local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local client = OAuth.new(consumer_key, consumer_secret, { RequestToken = "https://api.twitter.com/oauth/request_token", AuthorizeUser = {"https://api.twitter.com/oauth/autho...
gpl-2.0
AmirPGA/pgahide
plugins/twitter_send.lua
627
1555
do local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local client = OAuth.new(consumer_key, consumer_secret, { RequestToken = "https://api.twitter.com/oauth/request_token", AuthorizeUser = {"https://api.twitter.com/oauth/autho...
gpl-2.0
RebootRevival/FFXI_Test
scripts/zones/Bastok_Mines/npcs/Gumbah.lua
17
2154
----------------------------------- -- Area: Bastok Mines -- NPC: Gumbah -- Finishes Quest: Blade of Darkness ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); req...
gpl-3.0
RebootRevival/FFXI_Test
scripts/globals/items/plate_of_dulcet_panettones.lua
12
1385
----------------------------------------- -- ID: 5979 -- Item: Plate of Dulcet Panettones -- Food Effect: 240 Min, All Races ----------------------------------------- -- MP % 6 Cap 105 -- Intelligence +8 -- MP Healing +4 ----------------------------------------- require("scripts/globals/status"); --------------------...
gpl-3.0
iRonJ/Crepe
train/scroll.lua
5
3639
--[[ The schollable UI By Xiang Zhang @ New York University --]] local Scroll = torch.class("Scroll") -- Initialize a scroll interface -- width: (optional) the pixel width of the scollable area. Default is 800. -- title: (optional) title for the window function Scroll:__init(width,title) require("qtuiloader") r...
bsd-3-clause
imashkan/firesbss
plugins/id.lua
50
4275
local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name..' ' end if user.lastname then text = text..user.last_name end return text end local function returnids(cb_extra, success, result) local re...
gpl-2.0
openwrt-es/openwrt-luci
applications/luci-app-dnscrypt-proxy/luasrc/controller/dnscrypt-proxy.lua
5
2121
-- Copyright 2017-2019 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 module("luci.controller.dnscrypt-proxy", package.seeall) local util = require("luci.util") local i18n = require("luci.i18n") local templ = require("luci.template") function index() if not...
apache-2.0
RebootRevival/FFXI_Test
scripts/zones/Inner_Horutoto_Ruins/Zone.lua
12
4654
----------------------------------- -- -- Zone: Inner_Horutoto_Ruins (192) -- ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Inner_Horutoto_Ruins/TextIDs"); require("scripts/globals/status"); require("scr...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Mhaura/npcs/Tya_Padolih.lua
3
1472
----------------------------------- -- 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
RebootRevival/FFXI_Test
scripts/zones/Bastok_Mines/npcs/Gelzerio.lua
17
1737
----------------------------------- -- Area: Bastok Mines -- NPC: Galzerio -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scripts/zones/Bastok_Mines/TextIDs"); ----------------------------------- -- on...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Castle_Oztroja/mobs/Yagudo_Interrogator.lua
3
1028
----------------------------------- -- Area: Castle Oztroja (151) -- MOB: Yagudo_Interrogator ----------------------------------- require("scripts/zones/Castle_Oztroja/MobIDs"); ----------------------------------- -- onMobDeath ----------------------------------- function onMobDeath(mob, player, isKiller) end; ---...
gpl-3.0
RebootRevival/FFXI_Test
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
RebootRevival/FFXI_Test
scripts/zones/GM_Home/npcs/Trader.lua
32
1090
----------------------------------- -- Area: GM Home -- NPC: Trader -- Type: Debug NPC for testing trades. ----------------------------------- package.loaded["scripts/zones/GM_Home/TextIDs"] = nil; ----------------------------------- require("scripts/zones/GM_Home/TextIDs"); ----------------------------------- -- on...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/South_Gustaberg/TextIDs.lua
3
1264
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6402; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6408; -- Obtained: <item>. GIL_OBTAINED = 6409; -- Obtained <number> gil. KEYITEM_OBTAINED = 6411; -- Obtained...
gpl-3.0
chen0031/sysdig
userspace/sysdig/chisels/topprocs_errors.lua
12
1631
--[[ Copyright (C) 2013-2014 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without e...
gpl-2.0
Majid110/MasafAutomation
utf8.lua
1
26263
-- $Id: utf8.lua 179 2009-04-03 18:10:03Z pasta $ -- -- Provides UTF-8 aware string functions implemented in pure lua: -- * utf8len(s) -- * utf8sub(s, i, j) -- * utf8reverse(s) -- * utf8char(unicode) -- * utf8unicode(s, i, j) -- * utf8gensub(s, sub_len) -- * utf8find(str, regex, init, plain) -- * utf8match(str, regex, ...
mit
RebootRevival/FFXI_Test
scripts/zones/Abyssea-Tahrongi/npcs/qm15.lua
3
1566
----------------------------------- -- Zone: Abyssea-Tahrongi -- NPC: ??? -- Spawns Lacovie -- !pos ? ? ? 45 ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/status"); ----------------------------------- -- onTrigger Action ----------------------------------- function...
gpl-3.0
Cyco12/PotatoBot
deps/discordia/class.lua
3
4654
local max = math.max local insert, sort = table.insert, table.sort local lower, upper = string.lower, string.upper local f, padright = string.format, string.padright local printf = printf -- luacheck: ignore printf local meta = {} local classes = {} function meta:__call(...) local obj = setmetatable({}, self) obj:_...
apache-2.0
rafradek/wire
lua/entities/gmod_wire_expression2/core/compat.lua
9
3207
-- Functions in this file are retained purely for backwards-compatibility. They should not be used in new code and might be removed at any time. e2function string number:teamName() local str = team.GetName(this) if not str then return "" end return str end e2function number number:teamScore() return team.GetScore...
apache-2.0
hfjgjfg/jjjn
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
tommo/mock
mock/gfx/asset/MultiTexture.lua
1
3259
module 'mock' -------------------------------------------------------------------- CLASS: MultiTextureInstance ( TextureInstanceBase ) :MODEL{} function MultiTextureInstance:__init() self.moaiTexture = MOAIMultiTexture.new() self.subTextures = {} self.defaultSize = { 32, 32 } self.dirty = true end function Mul...
mit
RebootRevival/FFXI_Test
scripts/zones/Attohwa_Chasm/mobs/Alastor_Antlion.lua
3
1897
----------------------------------- -- Area: Attohwa Chasm -- NPC: Alastor Antlion ----------------------------------- mixins = {require("scripts/mixins/families/antlion_ambush_noaggro")} require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); -----------------------------...
gpl-3.0
RebootRevival/FFXI_Test
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
jpmac26/PGE-Project
Content/configs/SMBX/script/npcs/vinehead.lua
1
2481
class 'vinehead' function vinehead:round(num) if num >= 0 then return math.floor(num+.5) else return math.ceil(num-.5) end end function vinehead:spawnVine() local spawnID=0 if(self.npc_obj.id==226)then spawnID = 213 elseif(self.npc_obj.id==225)then spawnID = 214 ...
gpl-3.0
tommo/mock
mock/ai/FSMController.lua
1
6588
module 'mock' -------------------------------------------------------------------- local stateCollectorMT local setmetatable=setmetatable local insert, remove = table.insert, table.remove local rawget,rawset=rawget,rawset local pairs=pairs stateCollectorMT = { __index = function( t, k ) local __state = t.__state ...
mit
ashang/koreader
plugins/evernote.koplugin/clip.lua
5
8903
local DocumentRegistry = require("document/documentregistry") local DocSettings = require("docsettings") local DEBUG = require("dbg") local md5 = require("MD5") -- lfs local MyClipping = { my_clippings = "/mnt/us/documents/My Clippings.txt", history_dir = "./history", } function MyClipping:new(o) o = o or...
agpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Temenos/bcnms/temenos_western_tower.lua
35
1096
----------------------------------- -- Area: Temenos -- Name: ----------------------------------- -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) SetServerVariable("[Temenos_W_Tower]UniqueID",GenerateLimbusKey()); HideArmouryCrates(GetInstanceRegion(1298),...
gpl-3.0
Cyco12/PotatoBot
deps/coro-spawn.lua
6
2158
--[[lit-meta name = "creationix/coro-spawn" version = "2.0.0" dependencies = { "creationix/coro-channel@2.0.0" } homepage = "https://github.com/luvit/lit/blob/master/deps/coro-spawn.lua" description = "An coro style interface to child processes." tags = {"coro", "spawn", "child", "process"} license ...
apache-2.0
pecio/PetHealth-Broker
Common/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua
2
59595
--- AceConfigDialog-3.0 generates AceGUI-3.0 based windows based on option tables. -- @class file -- @name AceConfigDialog-3.0 -- @release $Id: AceConfigDialog-3.0.lua 1163 2017-08-14 14:04:39Z nevcairiel $ local LibStub = LibStub local gui = LibStub("AceGUI-3.0") local reg = LibStub("AceConfigRegistry-3.0") ...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Labyrinth_of_Onzozo/mobs/Goblin_Shepherd.lua
3
1216
----------------------------------- -- Area: Labyrinth of Onzozo -- MOB: Goblin Shepherd -- Note: Place holder Soulstealer Skullnix ----------------------------------- require("scripts/globals/groundsofvalor"); require("scripts/zones/Labyrinth_of_Onzozo/MobIDs"); ----------------------------------- -- onMobDeath ---...
gpl-3.0
RebootRevival/FFXI_Test
scripts/zones/Southern_San_dOria/npcs/Esmallegue.lua
3
1528
----------------------------------- -- Area: Southern San d'Oria -- NPC: Esmallegue -- General Info NPC -- @zone 230 -- !pos 0 2 -83 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria/Tex...
gpl-3.0
rafradek/wire
lua/entities/gmod_wire_relay.lua
10
4490
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Relay" ENT.WireDebugName = "Relay" ENT.Author = "tad2020" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSI...
apache-2.0
koppa/wireshark
test/lua/pcre_sets.lua
35
6911
-- See Copyright Notice in the file lrexlib.h local luatest = require "luatest" local N = luatest.NT local function norm(a) return a==nil and N or a end local function fill (n, m) local t = {} for i = n, m, -1 do table.insert (t, i) end return t end local function set_named_subpatterns (lib, flg) return { ...
gpl-2.0
JunichiWatanuki/wireshark
test/lua/pcre_sets.lua
35
6911
-- See Copyright Notice in the file lrexlib.h local luatest = require "luatest" local N = luatest.NT local function norm(a) return a==nil and N or a end local function fill (n, m) local t = {} for i = n, m, -1 do table.insert (t, i) end return t end local function set_named_subpatterns (lib, flg) return { ...
gpl-2.0
TheRikyHUN/fooniks
resources/admin/client/gui/admin_report.lua
2
4590
--[[********************************** * * Multi Theft Auto - Admin Panel * * gui\admin_report.lua * * Original File by lil_Toady * **************************************]] aReportForm = nil function aReport ( player ) if ( aReportForm == nil ) then local x, y = guiGetScreenSize() aReportForm = g...
gpl-3.0
RebootRevival/FFXI_Test
scripts/globals/items/bibiki_slug.lua
12
1424
----------------------------------------- -- ID: 5122 -- Item: Bibiki Slug -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity -5 -- Vitality 4 -- defense % 16 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- --...
gpl-3.0
ahm3d97/Th3_BOOS
plugins/map.lua
2
1855
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY Th3_BOOS ▀▄ ▄▀ ▀▄ ▄▀ BY Th3_BOOS (@Th3_BOOS) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY Th3_BOOS ▀▄ ▄▀ ▀▄ ▄▀ map : طقس ▀▄ ▄▀ ▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄...
gpl-2.0
RebootRevival/FFXI_Test
scripts/zones/North_Gustaberg/npcs/Cavernous_Maw_2.lua
3
1882
----------------------------------- -- Area: North Gustaberg -- NPC: Cavernous Maw -- !pos -78 -0.5 600 106 -- Teleports Players to Abyssea - Grauberg ----------------------------------- package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/setting...
gpl-3.0
mahdib9/mahk
bot/xamarin.lua
3
13667
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/utilsLUA") VERSION = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then ret...
gpl-2.0
RebootRevival/FFXI_Test
scripts/globals/mobskills/chains_of_rage.lua
1
1302
--------------------------------------------- -- Chains of Rage -- --------------------------------------------- package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil; --------------------------------------------- require("scripts/zones/Empyreal_Paradox/TextIDs"); require("scripts/globals/monstertpmoves"); req...
gpl-3.0
jthomasbarry/aafmt
archive/book_chapters_LaTeX_original/pgf_3.0.1.tds/tex/generic/pgf/graphdrawing/lua/pgf/gd/layered/NodeRankingGansnerKNV1993.lua
3
3598
-- Copyright 2011 by Jannis Pohlmann -- -- This file may be distributed and/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/p...
gpl-2.0
RebootRevival/FFXI_Test
scripts/zones/Aht_Urhgan_Whitegate/npcs/Yafaaf.lua
3
1094
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Yafaaf -- Type: Standard Merchant -- !pos 76.889 -7 -140.379 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); requ...
gpl-3.0
tommo/mock
mock/common/EntityGUID.lua
1
1808
module 'mock' local generateGUID = MOAIEnvironment.generateGUID -------------------------------------------------------------------- local function affirmGUID( entity ) if not entity.__guid then entity.__guid = generateGUID() end for com in pairs( entity.components ) do if not com.__guid then com.__guid = ...
mit
kengonakajima/lua-msgpack-native
test.lua
1
13387
-- Load our native module local mp = require("./msgpack") local io = require("io") local string = require("string") local table = require("table") local math = require("math") math.randomseed(1) function display(m,x) local _t = type(x) io.stdout:write(string.format("\n%s: %s ",m,_t)) if _t == "table" then print...
apache-2.0
ys1045097987/Face-Experiments
train.lua
1
7931
--convery grey to color --subtract mean before enter the network require 'nn' require 'image' require 'torchx' local ffi = require 'ffi' require 'optim' require 'sys' require 'cudnn' require 'cunn' require 'paths' local image = require 'image' local trainer = {} local casia = {} --casia.root_folder = '/data/yann/Webfac...
apache-2.0
PolyCement/swallow-squad
engine/colliders.lua
1
4651
local Object = require "lib.classic" local vector = require "lib.hump.vector" -- polygonal colliders -- they're components now btw -- this is an edge local Segment = Object:extend() function Segment:new(a, b) self.a = a self.b = b self.direction = b - a self.normal = self.direction:perpendicular():no...
mit