repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
DipColor/joon12
plugins/inpm.lua
1114
3008
do local 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
XxMTxX/XxMTxX
plugins/inpm.lua
1114
3008
do local 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
annulen/premake
src/_premake_init.lua
1
17832
-- -- _premake_init.lua -- -- Prepares the runtime environment for the add-ons and user project scripts. -- -- Copyright (c) 2012-2014 Jason Perkins and the Premake project -- local api = premake.api local DOC_URL = "See https://bitbucket.org/premake/premake-dev/wiki/" --------------------------------------------...
bsd-3-clause
lawnight/skynet
lualib/skynet/coroutine.lua
24
3131
-- You should use this module (skynet.coroutine) instead of origin lua coroutine in skynet framework local coroutine = coroutine -- origin lua coroutine module local coroutine_resume = coroutine.resume local coroutine_yield = coroutine.yield local coroutine_status = coroutine.status local coroutine_running = coroutine...
mit
robzed/LuaZ80
third_party/middleclass.lua
15
5301
-- middleclass.lua - v2.0 (2011-09) -- Copyright (c) 2011 Enrique García Cota -- 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,...
gpl-2.0
mbattersby/LiteMount
Options.lua
1
23460
--[[---------------------------------------------------------------------------- LiteMount/Options.lua User-settable options. Theses are queried by different places. Copyright 2011-2021 Mike Battersby ----------------------------------------------------------------------------]]-- local _, LM = ... local S...
gpl-2.0
KlonZK/Zero-K
units/armestor.lua
3
3594
unitDef = { unitname = [[armestor]], name = [[Energy Transmission Pylon]], description = [[Extends overdrive grid]], activateWhenBuilt = true, buildCostEnergy = 200, buildCostMetal = 200, builder ...
gpl-2.0
KlonZK/Zero-K
LuaRules/Gadgets/unit_script.lua
4
24595
-- Author: Tobi Vollebregt --[[ Please, think twice before editing this file. Compared to most gadgets, there are some complex things going on. A good understanding of Lua's coroutines is required to make nontrivial modifications to this file. In other words, HERE BE DRAGONS =) Known issues: - {Query,AimFrom,Aim,Fi...
gpl-2.0
ms2008/lor
lib/lor/lib/application.lua
2
4261
local pairs = pairs local type = type local xpcall = xpcall local setmetatable = setmetatable local Router = require("lor.lib.router.router") local Request = require("lor.lib.request") local Response = require("lor.lib.response") local View = require("lor.lib.view") local supported_http_methods = require("lor.lib.meth...
mit
KlonZK/Zero-K
LuaUI/Widgets/unit_icons.lua
5
9458
------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Unit Icons", desc = "v0.033 Shows icons above units", author = "CarRepairer a...
gpl-2.0
pxmail/ejabberd-16.09
deps/luerl/examples/benchmark/suites/tclone.lua
5
6508
-------------------------------------------------------------------------------- -- tclone.lua: tclone benchmark -------------------------------------------------------------------------------- local type, pairs, assert, error, unpack, next, newproxy = type, pairs, assert, error, unpack, next, newproxy local math...
gpl-2.0
KlonZK/Zero-K
LuaUI/Widgets/gui_chili_display_keys.lua
8
8743
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Display Keys", desc = "Displays the current key combination.", author = "GoogleFrog", date ...
gpl-2.0
blowekamp/SimpleITK
ExpandTemplateGenerator/json.lua
4
15406
----------------------------------------------------------------------------- -- JSON4Lua: JSON encoding / decoding support for the Lua language. -- json Module. -- Author: Craig Mason-Jones -- Homepage: http://json.luaforge.net/ -- Version: 0.9.40 -- This module is released under the MIT License (MIT). -- Please see L...
apache-2.0
KlonZK/Zero-K
gamedata/modularcomms/weapons/gaussrifle.lua
12
1428
local name = "commweapon_gaussrifle" local weaponDef = { name = [[Gauss Rifle]], alphaDecay = 0.12, areaOfEffect = 16, avoidfeature = false, bouncerebound = 0.15, bounceslip = 1, cegTag = [[gauss_tag_l]], craterBoost ...
gpl-2.0
ids1024/naev
dat/ai/soromid.lua
2
2355
include("dat/ai/tpl/generic.lua") include("dat/ai/personality/patrol.lua") -- Settings mem.armour_run = 40 mem.armour_return = 70 mem.aggressive = true function create () -- Not too many credits. ai.setcredits( rnd.rnd(ai.pilot():ship():price()/300, ai.pilot():ship():price()/70) ) -- Get refuel chance ...
gpl-3.0
annulen/premake-dev-rgeary
src/actions/example/_example.lua
1
3660
-- Define a namespace for my new action. The second line defines an alias that I -- can use in this file, saving myself some typing. It will not be visible outside -- of this file (though I can always define it again). premake.example = { } local example = premake.example local clean = premake.actions.clean -- Th...
bsd-3-clause
KlonZK/Zero-K
units/chicken_listener_b.lua
8
2868
unitDef = { unitname = [[chicken_listener_b]], name = [[Listener (burrowed)]], description = [[Burrowing Mobile Seismic Detector]], acceleration = 0.16, activateWhenBuilt = false, brakeRate = 0.205, buildCostEnergy = 0, buildCostMetal = 0, ...
gpl-2.0
robooo/lualines
src/lualines/methods.lua
1
2638
-- FIND function based on SINGLE PATTERN local function single_parse (s_key, filepath) local final_parse = {} for line in io.lines(filepath) do if string.match(line, s_key) ~= nil then final_parse[#final_parse + 1] = line:gsub("^%s*", "") end end return final_parse end -- FIND function based on MORE PATT...
mit
annulen/premake
tests/config/test_links.lua
1
4186
-- -- tests/config/test_links.lua -- Test the list of linked objects retrieval function. -- Copyright (c) 2012-2013 Jason Perkins and the Premake project -- local suite = test.declare("config_links") local config = premake.config -- -- Setup and teardown -- local sln, prj function suite.setup() _ACTION = "te...
bsd-3-clause
annulen/premake-dev-rgeary
tests/test_vs2003_sln.lua
14
1617
-- -- tests/test_vs2003_sln.lua -- Automated test suite for Visual Studio 2003 solution generation. -- Copyright (c) 2009 Jason Perkins and the Premake project -- T.vs2003_sln = { } local suite = T.vs2003_sln local sln2003 = premake.vstudio.sln2003 -- -- Configure a solution for testing -- local sln function su...
bsd-3-clause
ESMAILESMAIL/new_bot
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-3.0
Kamshak/LibK
lua/libk/3rdparty/glib/servers/playermonitorproxy.lua
2
3394
local self = {} GLib.PlayerMonitorProxy = GLib.MakeConstructor (self, GLib.IPlayerMonitor) --[[ Events: LocalPlayerConnected (Player ply, userId) Fired when the local client's player entity has been created. PlayerConnected (Player ply, userId, isLocalPlayer) Fired when a player has connected and has a play...
mit
KlonZK/Zero-K
units/subarty.lua
3
5764
unitDef = { unitname = [[subarty]], name = [[Serpent]], description = [[Sniper Submarine]], acceleration = 0.1, activateWhenBuilt = true, brakeRate = 0.3, buildCostEnergy = 1000, buildCostMetal = 1000, builder ...
gpl-2.0
KlonZK/Zero-K
LuaUI/Widgets/chili/Controls/image.lua
17
2906
--//============================================================================= Image = Button:Inherit{ classname= "image", defaultWidth = 64, defaultHeight = 64, padding = {0,0,0,0}, color = {1,1,1,1}, file = nil, file2 = nil, flip = true; flip2 = true; keepAspect = true; OnClick = {}...
gpl-2.0
KlonZK/Zero-K
LuaRules/Gadgets/weapon_single_hit.lua
4
2727
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if not gadgetHandler:IsSyncedCode() then return end -------------------------------------------------------------------------------- ------------------------...
gpl-2.0
emadni/uzzbot
plugins/wiki.lua
735
4364
-- 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
brimworks/luv
tests/test-prepare-check-idle-async.lua
12
1201
return require('lib/tap')(function (test) test("simple prepare", function (print, p, expect, uv) local prepare = uv.new_prepare() uv.prepare_start(prepare, expect(function () p("prepare", prepare) uv.prepare_stop(prepare) uv.close(prepare, expect(function () end)) end)) end) ...
apache-2.0
soumith/lzmq
examples/utils.lua
16
1150
local zmq = require "lzmq" io.stdout:setvbuf"no" function printf(...) return print(string.format(...)) end function print_msg(title, data, err, ...) print(title) if data then -- data if type(data) == 'table' then for _, msg in ipairs(data) do printf("[%.4d] %s", #msg, msg) en...
mit
caricatura/Healbot
HealBot_Data/HealBot_Data.lua
1
353278
HealBot_lastVerSkinUpdate="9.0.2.0" HealBot_lastVerUpdate="9.0.2.0" HealBot_Default_Textures={ [1]= {name="HealBot 01", file=[[Interface\Addons\HealBot\Images\bar1.tga]]}, [2]= {name="Waves", file=[[Interface\Addons\HealBot\Images\bar2.tga]]}, [3]= {name="HealBot 03", file=[[Interface\Addons\HealBot\Images...
gpl-2.0
caricatura/Healbot
HealBot_en/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua
7
13472
----------------------------------------------------------------------- -- 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 = 43 -- Bump on changes if not LibStub then error(DBICON10 .. " r...
gpl-2.0
zzzaidddddd/zzaiddd
plugins/ar-azan.lua
1
3890
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ (@zzaiddd) : المطور ▀▄ ▄▀ ▀▄ ▄▀ (@zzzaiddd) : قناة ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄▀▀▄▄...
gpl-2.0
bbbbbhhhhhhh/i4bot
plugins/weather.lua
274
1531
do local BASE_URL = "http://api.openweathermap.org/data/2.5/weather" local function get_weather(location) print("Finding weather in ", location) location = string.gsub(location," ","+") local url = BASE_URL url = url..'?q='..location url = url..'&units=metric' url = url..'&appid=bd82977b86bf27fb59a04b61b6...
gpl-2.0
KlonZK/Zero-K
LuaRules/Gadgets/unit_mex_overdrive.lua
3
55513
-- $Id: unit_mex_overdrive.lua 4550 2009-05-05 18:07:29Z licho $ ------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- if not (gadgetHandler:IsSyncedCode()) then return end --------------------------...
gpl-2.0
soumith/lzmq
test/test_req_relaxed.lua
16
3251
--- -- Test ZMQ_REQ_RELAXED mode and reconnect socket -- This test requires [lua-llthreads2](https://github.com/moteus/lua-llthreads2) library local zmq = require "lzmq" local ztimer = require "lzmq.timer" local zthreads = require "lzmq.threads" local zassert = zmq.assert local ENDPOINT = "tcp://127.0.0.1:55...
mit
Jaminator77/metahud-revived
Modules/MetaHud/Libs/LibRangeCheck-2.0/LibRangeCheck-2.0.lua
1
34031
--[[ Name: LibRangeCheck-2.0 Revision: $Revision: 113 $ Author(s): mitch0 Website: http://www.wowace.com/projects/librangecheck-2-0/ Description: A range checking library based on interact distances and spell ranges Dependencies: LibStub License: Public Domain ]] --- LibRangeCheck-2.0 provides an easy way to...
gpl-3.0
ld-test/iwi
spec/all_spec.lua
3
6082
describe('iwi', function () local iwi, latitude, longitude teardown(function () iwi, latitude, longitude, latitude_1, longitude_1 = nil, nil, nil, nil, nil end) setup(function () iwi, latitude, longitude, latitude_1, longitude_1 = require('iwi'), 0.0, 0.0, 0.0, 0.0 end) it('should be a table',...
lgpl-3.0
KlonZK/Zero-K
scripts/spherepole.lua
15
3953
include "constants.lua" -- pieces local head = piece "head" local hips = piece "hips" local chest = piece "chest" -- left arm local lshoulder = piece "lshoulder" local lforearm = piece "lforearm" local halberd = piece "halberd" local blade = piece "blade" -- right arm local rshoulder = piece "rshoulder" local rfore...
gpl-2.0
KlonZK/Zero-K
lups/ParticleClasses/ShieldJitter.lua
14
5140
-- $Id: ShieldJitter.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local ShieldJitter = {} ShieldJitt...
gpl-2.0
XxMTxX/XxMTxX
plugins/anti_spam.lua
21
5248
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id == our_id then return msg end -- Save...
gpl-2.0
ids1024/naev
dat/factions/spawn/zalek.lua
1
3767
include("dat/factions/spawn/common.lua") include("dat/factions/spawn/mercenary_helper.lua") -- @brief Spawns a small patrol fleet. function spawn_patrol () local pilots = {} local r = rnd.rnd() if r < pbm then pilots = spawnLtMerc("Za'lek") elseif r < 0.5 then scom.addPilot( pilots, "Za...
gpl-3.0
erlio/vernemq
apps/vmq_diversity/priv/auth/mongodb.lua
3
3273
-- 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 to in writing, software -- distributed ...
apache-2.0
jkeywo/KFactorioMods
k-nineworlds_0.0.0/systems/linked-control.lua
1
3548
local M = {} -- private functions local function compare_link_data( dataA, dataB ) return (dataA.name == dataB.name and dataA.postion == dataB.postion and dataA.surface == dataB.surface ) end local function make_link_data( entity ) return { name = entity.name, postion = entity....
mit
brimworks/luv
examples/timers.lua
10
1256
local p = require('lib/utils').prettyPrint local uv = require('luv') local function set_timeout(timeout, callback) local timer = uv.new_timer() local function ontimeout() p("ontimeout", timer) uv.timer_stop(timer) uv.close(timer) callback(timer) end uv.timer_start(timer, timeout, 0, ontimeout) ...
apache-2.0
jkeywo/KFactorioMods
k-core_0.1.0/stdlib/data/data.lua
11
2357
--- Data module -- @module Data require 'stdlib/core' require 'stdlib/string' require 'stdlib/table' Data = {} --- Selects all data values where the key matches the selector pattern. -- The selector pattern is divided into groups. The pattern should have a colon character `:` to denote the selection for each group. ...
mit
alimashmamali/fff
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
tunneff/tef
deps/lzmq/examples/perf/remote_thr.lua
16
1770
-- Copyright (c) 2010 Aleksey Yeschenko <aleksey@yeschenko.com> -- -- 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, c...
lgpl-3.0
KlonZK/Zero-K
LuaRules/Gadgets/unit_cloak_shield.lua
2
25648
-- $Id: unit_cloak_shield.lua 3605 2008-12-31 08:50:31Z google frog $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: unit_cloak_shield.lua -- brief: adds a cloak-shield command to units ...
gpl-2.0
vvw/waifu2x
web.lua
23
6744
_G.TURBO_SSL = true local turbo = require 'turbo' local uuid = require 'uuid' local ffi = require 'ffi' local md5 = require 'md5' require 'pl' require './lib/portable' require './lib/LeakyReLU' local cmd = torch.CmdLine() cmd:text() cmd:text("waifu2x-api") cmd:text("Options:") cmd:option("-port", 8812, 'listen port') ...
mit
KlonZK/Zero-K
scripts/armmerl.lua
7
4429
include 'constants.lua' local base, bay, gantry, clamp1, clamp2, missile, smoke, strobe = piece("base", "bay", "gantry", "clamp1", "clamp2", "missile", "smoke", "strobe") local tracks1, tracks2, tracks3, tracks4 = piece("tracks1", "tracks2", "tracks3", "tracks4") local wheels = { piece("wheels1", "wheels2", "wheels3"...
gpl-2.0
saadmzed/kenam-bot
plugins/mute-time.lua
1
1301
local function pre_process(msg) local hash = 'mute_time:'..msg.chat_id_ if redis:get(hash) and gp_type(msg.chat_id_) == 'channel' and not is_mod(msg) then tdcli.deleteMessages(msg.chat_id_, {[0] = tonumber(msg.id_)}) end end local function run(msg, matches) if matches[1]:lower() == 'mt' and is_mod(msg) t...
gpl-3.0
undegroundflows/dot_six
lua/metrostroi/systems/sys_yar_27a.lua
1
1951
-------------------------------------------------------------------------------- -- ßùèê ñ ðåëå (ßÐ-27) -------------------------------------------------------------------------------- Metrostroi.DefineSystem("YAR_27A") function TRAIN_SYSTEM:Initialize() -- Ðåëå äâåðåé (ÐÄ) self.Train:LoadSystem("RD","Relay","REV-82...
gpl-2.0
KlonZK/Zero-K
effects/gundam_fx.lua
25
6000
-- kampfertail -- lildirt -- vernier -- whitetail -- gawtail return { ["kampfertail"] = { pop2 = { air = true, class = [[heatcloud]], count = 1, ground = true, water = true, properties = { heat ...
gpl-2.0
KlonZK/Zero-K
effects/zombie.lua
24
1480
return { ["zombie"] = { light = { air = true, class = [[CSimpleGroundFlash]], count = 1, ground = true, water = true, properties = { colormap = [[0 0.75 0 0.33 0 0 0 0.01]], size ...
gpl-2.0
Kamshak/LibK
lua/libk/3rdparty/glib/net/layer5/connectionchannel.lua
2
8197
local self = {} GLib.Net.Layer5.ConnectionChannel = GLib.MakeConstructor (self, GLib.Net.Layer5.Channel) --[[ Events: ConnectionActivityStateChanged (Connection connection, hasUndispatchedPackets) Fired when a connection's undispatched packet count decreases to 0 or increases to 1. ConnectionCreated (Connectio...
mit
KlonZK/Zero-K
units/hoverskirm.lua
7
4165
unitDef = { unitname = [[hoverskirm]], name = [[Trisula]], description = [[Light Assault/Battle Hovercraft]], acceleration = 0.03, brakeRate = 0.043, buildCostEnergy = 180, buildCostMetal = 180, builder = false, buildPic ...
gpl-2.0
jimjag/ponymail
site/api/notifications.lua
3
2620
--[[ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use ...
apache-2.0
soumith/lzmq
script/getsockopt.lua
11
1633
local api = require "lzmq.ffi.api" local printf = function(...) print(string.format(...)) end local function rfit(str, n) if #str >= n then return str end return str .. (' '):rep(n-#str) end local options = {} local max_len = 0 for opt in pairs(api.SOCKET_OPTIONS) do options[#options + 1] = opt if #opt > max...
mit
hacker44-h44/original
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
5620j/ss
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
mrmakan/botstart
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-3.0
Kamshak/LibK
lua/libk/3rdparty/glib/math/complex.lua
2
5011
local self = {} GLib.Complex = GLib.MakeConstructor (self) function GLib.Complex.Add (r1, i1, r2, i2) return r1 + r2, i1 + i1 end function GLib.Complex.Conjugate (r, i) return r, -i end function GLib.Complex.FromPolar (r, theta) return r * math.cos (theta), r * math.sin (theta) end function GLib.Complex....
mit
rockneurotiko/telegram-bot
plugins/steam.lua
645
2117
-- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI do local BASE_URL = 'http://store.steampowered.com/api/appdetails/' local DESC_LENTH = 200 local function unescape(str) str = string.gsub( str, '&lt;', '<' ) str = string.gsub( str, '&gt;', '>' ) str = string.gsub( str, '&quot;', '"' ) str...
gpl-2.0
KlonZK/Zero-K
LuaUI/Widgets/gui_point_tracker.lua
6
7780
-- $Id$ local versionNumber = "v2.3" function widget:GetInfo() return { name = "Point Tracker", desc = versionNumber .. " Tracks recently placed map points.", author = "Evil4Zerggin", date = "29 December 2008", license = "GNU LGPL, v2.1 or later", layer = 0, enable...
gpl-2.0
byanahmed/emeebot
libs/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-2.0
ESMAILESMAIL/new_bot
libs/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-3.0
shaunstanislaus/stronglink
deps/cmark/wrappers/wrapper.lua
9
4833
#!/usr/bin/env luajit local ffi = require("ffi") cmark = ffi.load("libcmark") ffi.cdef[[ char *cmark_markdown_to_html(const char *text, int len, int options); typedef enum { /* Error status */ CMARK_NODE_NONE, /* Block */ CMARK_NODE_DOCUMENT, CMARK_NODE_BLOCK_QUOTE, CMARK_NODE_LIST, CMARK_NODE_ITEM, CMARK_...
mit
annulen/premake-dev-rgeary
tests/config/test_linkinfo.lua
1
2351
-- -- tests/config/test_linkinfo.lua -- Test the config object's link target accessor. -- Copyright (c) 2012 Jason Perkins and the Premake project -- T.config_linkinfo = { } local suite = T.config_linkinfo local project = premake5.project local config = premake5.config -- -- Setup and teardown -- local sln, p...
bsd-3-clause
finnbar/ld39
blend_testing/main.lua
1
1444
requires = {"generate", "useful"} for _,j in pairs(requires) do require(j) end hide = true pointlight = love.graphics.newImage("pointlight.png") -- 16x16 pointlight:setFilter("nearest") function love.load() love.graphics.setDefaultFilter("nearest", "nearest") math.randomseed(os.time()) maze = makemaz...
mit
thuehn/Minstrel-Blues
measurement/minstrel-measurement/ControlNodeRef.lua
1
33282
local posix = require ('posix') -- sleep require ('rpc') local lpc = require ('lpc') local misc = require ('misc') local pprint = require ('pprint') local config = require ('Config') -- find_node local net = require ('Net') local ps = require ('posix.signal') --kill require ('NetIfRef') require ('MeasurementOption') ...
gpl-2.0
byanahmed/emeebot
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
To0fan/toofan
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
zzzaidddddd/zzaiddd
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
Wiladams/REMOTE
testy/CPUStripChart.lua
1
4228
package.path = "../?.lua;"..package.path; --[[ This application will display the CPU utilization Percentage, The data and calculation is the same as what you would see running the 'top' command from a command line. --]] local ffi = require("ffi") local colors = require("colors") local stat = require("stat") loca...
mit
code4a/SimplifyReader
library_youku/src/main/res/raw/aes.lua
130
3338
---------------------- bit utils bit={data32={}} for i=1,32 do bit.data32[i]=2^(32-i) end function bit.d2b(arg) local tr={} for i=1,32 do if arg >= bit.data32[i] then tr[i]=1 arg=arg-bit.data32[i] else tr[i]=0 end end return tr end --bit:d2b f...
apache-2.0
KlonZK/Zero-K
units/napalmmissile.lua
2
4259
unitDef = { unitname = [[napalmmissile]], name = [[Inferno]], description = [[Napalm Missile]], buildCostEnergy = 500, buildCostMetal = 500, builder = false, buildingGroundDecalDecaySpeed = 3...
gpl-2.0
KlonZK/Zero-K
LuaUI/Widgets/cmd_keep_target.lua
4
3068
--[[ remaining issues: - some things that should keep or remove target don't: building things, cloaking?, ... setting target when attacking would fix part of this - doesn't work with queues, needs synched - empty area commands trigger can trigger set/remove, but shouldnt. (because this runs in CommandNotify(), where th...
gpl-2.0
AdamGagorik/darkstar
scripts/zones/Castle_Zvahl_Keep/Zone.lua
19
3875
----------------------------------- -- -- Zone: Castle_Zvahl_Keep (162) -- ----------------------------------- package.loaded["scripts/zones/Castle_Zvahl_Keep/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Castle_Zvahl_Keep/TextIDs"); -----------------...
gpl-3.0
tahashakiba/xx
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
mohammad25253/seed238
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
AdamGagorik/darkstar
scripts/zones/Port_Jeuno/npcs/Leyla.lua
13
1496
----------------------------------- -- Area: Port Jeuno -- NPC: Leyla -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; require("scripts/zones/Port_Jeuno/TextIDs"); ----------------------------------- -- onTrade Acti...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Dragons_Aery/mobs/Fafnir.lua
7
1452
----------------------------------- -- Area: Dragons Aery -- HNM: Fafnir ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/titles"); require("scripts/globals/status"); ----------------------------------- -- onMobInitialize ----------------------------------- function ...
gpl-3.0
chfg007/skynet
lualib/http/httpc.lua
42
2906
local socket = require "http.sockethelper" local url = require "http.url" local internal = require "http.internal" local string = string local table = table local httpc = {} local function request(fd, method, host, url, recvheader, header, content) local read = socket.readfunc(fd) local write = socket.writefunc(fd)...
mit
AdamGagorik/darkstar
scripts/zones/Southern_San_dOria/npcs/Alaune.lua
13
1495
----------------------------------- -- Area: Southern San d`Oria -- NPC: Alaune -- Type: Tutorial NPC -- @zone: 230 -- @pos -90 1 -56 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); requ...
gpl-3.0
r1k/vlc
share/lua/playlist/break.lua
11
1988
--[[ $Id$ Copyright © 2007 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distribut...
gpl-2.0
mynameiscraziu/karizma
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
hadirahimi1380/-AhRiMaN-
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
AdamGagorik/darkstar
scripts/zones/Windurst_Waters/npcs/Ohbiru-Dohbiru.lua
28
12066
----------------------------------- -- Area: Windurst Waters -- NPC: Ohbiru-Dohbiru -- Involved in quest: Food For Thought, Say It with Flowers -- Starts and finishes quest: Toraimarai Turmoil ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; require("scripts/globa...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Temenos/mobs/Thunder_Elemental.lua
7
1786
----------------------------------- -- Area: Temenos E T -- NPC: Thunder_Elemental ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ---------------------------...
gpl-3.0
fiallo1313veeee/y
plugins/stats.lua
866
4001
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
sini370/jellytg
plugins/stats.lua
866
4001
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
botgro/groupanir
plugins/stats.lua
866
4001
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
khoshhalbot/khoshhal
plugins/stats.lua
866
4001
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
aryangh/XYZ
plugins/stats.lua
866
4001
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
agpl-3.0
diarmuidcwc/LuaDissectors
proglink.lua
1
5385
--dofile(CUSTOM_DISSECTORS.."\\common.lua") -- trivial protocol example -- declare our protocol proglink_proto = Proto("proglinkp","ProgLink Protocol") function proglink_proto.dissector(buffer,pinfo,tree) pinfo.cols.protocol = "proglink" local prog_top_subtree = tree:add(proglink_proto,buffer(),"Proglink ...
gpl-2.0
AdamGagorik/darkstar
scripts/zones/Port_Windurst/npcs/Pygmalion.lua
13
1048
----------------------------------- -- Area: Port Windurst -- NPC: Pygmalion -- Type: Standard NPC -- @zone: 240 -- @pos 228.710 -7 93.314 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------...
gpl-3.0
hadirahimi1380/-AhRiMaN-
bot/bot.lua
1
7076
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 = '0.14.6' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then r...
gpl-2.0
AdamGagorik/darkstar
scripts/globals/spells/bluemagic/soporific.lua
27
1377
----------------------------------------- -- Spell: Soporific -- Puts all enemies within range to sleep -- Spell cost: 38 MP -- Monster Type: Plantoids -- Spell Type: Magical (Dark) -- Blue Magic Points: 4 -- Stat Bonus: HP-5, MP+5 -- Level: 24 -- Casting Time: 3 seconds -- Recast Time: 90 seconds -- Duration: 90 secon...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/spells/jubaku_ichi.lua
27
1733
----------------------------------------- -- Spell: Jubaku: Ichi -- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and INT. -- taken from paralyze ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); -------------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Mount_Zhayolm/Zone.lua
11
1794
----------------------------------- -- -- Zone: Mount_Zhayolm (61) -- ----------------------------------- package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Mount_Zhayolm/TextIDs"); ------------------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/items/dish_of_spaghetti_arrabbiata_+1.lua
18
1754
----------------------------------------- -- ID: 5212 -- Item: dish_of_spaghetti_arrabbiata_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Health % 15 -- Health Cap 150 -- Strength 5 -- Vitality 2 -- Intelligence -7 -- Attack % 22 -- Attack Cap 120 -- Store TP 5 -----------------------...
gpl-3.0