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
nasomi/darkstar
scripts/zones/Bhaflau_Thickets/npcs/Kamih_Mapokhalam.lua
19
1726
----------------------------------- -- Area: Bhaflau Thickets -- NPC: Kamih Mapokhalam -- 20 -30 597 z 52 ----------------------------------- package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Bhaflau_Thickets...
gpl-3.0
nasomi/darkstar
scripts/zones/Sacrarium/npcs/_0s8.lua
17
1703
----------------------------------- -- NPC: _0s8 (Wooden Gate) -- Area: Sacrarium -- Involved in Mission: Secrets of Worship -- @pos 45.500 -1.500 10.000 28 ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/missions"); ----------------------------------- -- ...
gpl-3.0
KlonZK/Zero-K
scripts/turrettorp.lua
16
2934
include "constants.lua" local base = piece 'base' local arm1 = piece 'arm1' local arm2 = piece 'arm2' local turret = piece 'turret' local firepoint = piece 'firepoint' local waterFire = false local smokePiece = {base} -- Signal definitions local SIG_AIM = 2 local function Bob(rot) while true do Turn(base, ...
gpl-2.0
KlonZK/Zero-K
LuaAI.lua
11
1231
-- $Id: LuaAI.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- LuaAI.lua -- -- List of LuaAIs supported by the mod. -- -- return { { -- to be recognised as a...
gpl-2.0
SeanNaren/deepspeech.torch
Loader.lua
2
3082
require 'nn' require 'torch' require 'lmdb' require 'xlua' require 'paths' require 'Mapper' local tds = require 'tds' torch.setdefaulttensortype('torch.FloatTensor') local indexer = torch.class('indexer') function indexer:__init(dirPath, batchSize) local dbSpect = lmdb.env { Path = dirPath .. '/spect', Name = '...
mit
tunneff/tef
app/tef/main.lua
1
8791
local debug=false if arg and #arg>1 then debug=true end --io.stdout:setvbuf('no') require('debugger')() require 'debugger.plugins.ffi' local ffi=require("ffi") local tef=require("tef") local dump=require("util.dump") local t2s=require("util.table_tostring") local lfs=require("lfs") local sodium=require("sodium") lo...
lgpl-3.0
thuehn/Minstrel-Blues
measurement/minstrel-measurement/LogNodeRef.lua
1
2602
local net = require ('Net') local ps = require ('posix.signal') --kill local lpc = require 'lpc' local misc = require ('misc') LogNodeRef = { addr = nil , port = nil , pid = nil , retries = nil } function LogNodeRef:new (o) local o = o or {} setmetatable (o,...
gpl-2.0
rigeirani/tb
plugins/all.lua
54
4746
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
undegroundflows/dot_six
lua/entities/gmod_subway_81-714.6/cl_init.lua
2
25794
include("shared.lua") -------------------------------------------------------------------------------- ENT.ClientProps = {} ENT.ButtonMap = {} -- Temporary panels (possibly temporary) ENT.ButtonMap["FrontPneumatic"] = { pos = Vector(468.0,-45.0,-46.5), ang = Angle(0,90,90), width = 1100, height = 100, scale = ...
gpl-2.0
DarkFaceMonster/wowoldhand
3.0/Shaman/Shaman.lua
1
54612
 Shaman_SaveData = nil; Shaman_Data = nil; local Shaman_Buttons = {}; Shaman_PlayerTalentInfoDatas = {}; local dynamicMicroID = 72; local playerClass; local Shaman_DPS = 1; -- 默认元素,1元素,2增强,3治疗 local Shaman_Reincarnation = false; local Shaman_Free = false; local Shaman_RaidFlag = 0; local Shaman_Old_Unit...
apache-2.0
ESMAILESMAIL/new_bot
plugins/info.lua
6
8119
--Begin info.lua By @SoLiD local Solid = 157059515 local function setrank(msg, user_id, value,chat_id) local hash = nil hash = 'rank:'..msg.to.id..':variables' if hash then redis:hset(hash, user_id, value) return tdcli.sendMessage(chat_id, '', 0, '_set_ *Rank* _for_ *[ '..user_id..' ]* _To :_ *'..value....
gpl-3.0
aedansilver/wowlikearcemuold
src/scripts/lua/Lua/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Netherspite.lua
30
1703
function Netherspite_Portal_PhaseA(Unit, event, miscunit, misc) print "Netherspite Portal PhaseA" Unit:SendAreaTriggerMessage("PORTAL PHASE") Unit:FullCastSpell(30400) Unit:FullCastSpell(30401) Unit:FullCastSpell(30402) end function Netherspite_Nether_Burn(Unit, event, miscunit, misc) print "Netherspite Nether B...
agpl-3.0
jnhwkim/dp
xplog.lua
7
3959
------------------------------------------------------------------------ --[[ XpLog ]]-- -- Interface, Composite of CollectionQueries ------------------------------------------------------------------------ local XpLog = torch.class("dp.XpLog") XpLog.isXpLog = true function XpLog:__init(...) local args, name = xlua...
bsd-3-clause
KlonZK/Zero-K
LuaUI/Widgets/gui_chili_proconsole2.lua
5
44245
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Chili Pro Console2", desc = "v2.004 Chili Chat Pro Console.", author = "CarRepairer", ...
gpl-2.0
KlonZK/Zero-K
LuaRules/Utilities/base64.lua
12
3111
-- $Id: api_base64.lua 3171 2008-11-06 09:06:29Z det $ -- Author: Alex Kloss -- Contact: http://www.it-rfc.de -- Date: 2006-2008 -- License: LGPL2 -- Public functions: -- * Spring.Utilities.Base64Encode(string data) -> string -- * Spring.Utilities.Base64Decode(string data) -> string -- bitshift functions (<<, >> eq...
gpl-2.0
annulen/premake
tests/actions/vstudio/vc200x/test_manifest_block.lua
7
1120
-- -- tests/actions/vstudio/vc200x/test_manifest_block.lua -- Validate generation of VCManifest elements Visual Studio 200x C/C++ projects. -- Copyright (c) 2009-2013 Jason Perkins and the Premake project -- local suite = test.declare("vs200x_manifest_block") local vc200x = premake.vstudio.vc200x -- -- ...
bsd-3-clause
KlonZK/Zero-K
LuaRules/Gadgets/exp_no_air_nuke.lua
17
1024
-- $Id: exp_no_air_nuke.lua 3171 2008-11-06 09:06:29Z det $ function gadget:GetInfo() return { name = "NoAirNuke", desc = "Disables the custom nuke effect, if the nuke is shoot in the air.", author = "jK", date = "Dec, 2007", license = "GNU GPL, v2 or later", layer = 0...
gpl-2.0
KlonZK/Zero-K
scripts/spiderriot.lua
16
4531
include "spider_walking.lua" include "constants.lua" -------------------------------------------------------------------------------- -- pieces -------------------------------------------------------------------------------- local base = piece 'base' local turret = piece 'turret' local barrel = piece 'barrel' local...
gpl-2.0
Kamshak/LibK
lua/libk/3rdparty/glib/garrysmod/servers/playermonitor.lua
1
6143
local self = {} GLib.PlayerMonitor = 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 player en...
mit
jkeywo/KFactorioMods
preloaded-turrets_0.1.2/data-updates.lua
1
2426
require("config") local _data_to_add = {} local _tech_to_add = {} local function add_ammo( ammo_type ) local _subgroup_data = { type = "item-subgroup", name = "preloaded-"..ammo_type.name, group = "combat", order = "f["..ammo_type.name.."]" } table.insert( _data_to_add, _subgroup_data...
mit
twoscomplement/tundra
scripts/tundra/tools/msvc-vscommon.lua
13
10620
-- msvc-vscommon.lua - utility code for all versions of Visual Studio module(..., package.seeall) local native = require "tundra.native" local os = require "os" -- Visual Studio tooling layout local vc_bin_map = { ["x86"] = { ["x86"] = "", ["x64"] = "x86_amd64", ["arm"] = "x86_arm", }, ["x64"] = {...
gpl-3.0
RezaBlack/RezaTest05
plugins/ingroup.lua
4
62600
do --check Member local function check_member_autorealm(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[tostri...
gpl-2.0
rockneurotiko/telegram-bot
plugins/banhammer.lua
22
5639
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0
complynx/nodemcu-IoT
examples/fragment.lua
55
19918
pwm.setup(0,500,50) pwm.setup(1,500,50) pwm.setup(2,500,50) pwm.start(0) pwm.start(1) pwm.start(2) function led(r,g,b) pwm.setduty(0,g) pwm.setduty(1,b) pwm.setduty(2,r) end wifi.sta.autoconnect(1) a=0 tmr.alarm( 1000,1,function() if a==0 then a=1 led(50,50,50) else a=0 led(0,0,0) end end) sv:on("receive", function(s,...
mit
hacker44-h44/original
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
bbbbbhhhhhhh/i4bot
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
KlonZK/Zero-K
LuaUI/Fonts/FreeSansBold_16.lua
26
33900
-- $Id: FreeSansBold_16.lua 3171 2008-11-06 09:06:29Z det $ local fontSpecs = { srcFile = [[FreeSansBold.ttf]], family = [[FreeSans]], style = [[Bold]], yStep = 17, height = 16, xTexSize = 512, yTexSize = 256, outlineRadius = 2, outlineWeight = 100, } local glyphs = {} glyphs[32] = { --'...
gpl-2.0
aimingoo/harpseal
lib/JSON.lua
4
34883
-- -*- 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...
apache-2.0
KlonZK/Zero-K
scripts/corbats.lua
4
5185
include 'constants.lua' -------------------------------------------------------------------- --pieces -------------------------------------------------------------------- local hull, turret1, turret2, turret3, radar = piece('hull', 'turret1', 'turret2', 'turret3', 'radar') local wake1, wake2, ground = piece('wake1', '...
gpl-2.0
sunyi00/codis
extern/redis-2.8.13/deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
mit
alexsilva/luazip
test.lua
1
2548
-- -- Created by IntelliJ IDEA. -- User: alex -- Date: 18/08/2015 -- Time: 17:12 -- To change this template use File | Settings | File Templates. -- local root_dir = getenv("ROOT_DIR") handle, msg = loadlib(getenv("LIBRARY_PATH")) if (not handle or handle == -1) then error(msg) end callfromlib(handle, 'lua_lzipop...
mit
ids1024/naev
dat/events/neutral/derelict.lua
11
12202
--[[ -- Derelict Event -- -- Creates a derelict ship that spawns random events. --]] lang = naev.lang() if lang == "es" then -- not translated atm else -- default english -- Text goes here. Please keep the section as organized as possible. --=== NEUTRAL EVENTS ===-- ntitle = "Empty derelict" ntex...
gpl-3.0
annulen/premake-dev-rgeary
tests/actions/vstudio/cs2005/projectsettings.lua
1
4055
-- -- tests/actions/vstudio/cs2005/projectsettings.lua -- Validate generation of root <PropertyGroup/> in Visual Studio 2005+ .csproj -- Copyright (c) 2009-2012 Jason Perkins and the Premake project -- T.vstudio_cs2005_projectsettings = { } local suite = T.vstudio_cs2005_projectsettings local cs2005 = prema...
bsd-3-clause
annulen/premake-dev-rgeary
tests/test_vs2002_sln.lua
14
1629
-- -- tests/test_vs2002_sln.lua -- Automated test suite for Visual Studio 2002 solution generation. -- Copyright (c) 2009 Jason Perkins and the Premake project -- T.vs2002_sln = { } local suite = T.vs2002_sln local sln2002 = premake.vstudio.sln2002 -- -- Configure a solution for testing -- local sln function su...
bsd-3-clause
KlonZK/Zero-K
units/armspy.lua
2
6056
unitDef = { unitname = [[armspy]], name = [[Infiltrator]], description = [[Spy, Anti-Heavy]], acceleration = 0.3, activateWhenBuilt = true, brakeRate = 0.3, buildCostEnergy = 280, buildCostMetal = 280, buildPic ...
gpl-2.0
fredericjoanis/actimania
extern/premake/actions/vstudio/vs2002_csproj_user.lua
19
1483
-- -- vs2002_csproj_user.lua -- Generate a Visual Studio 2002/2003 C# .user file. -- Copyright (c) 2009 Jason Perkins and the Premake project -- local cs2002 = premake.vstudio.cs2002 function cs2002.generate_user(prj) io.eol = "\r\n" _p('<VisualStudioProject>') _p(1,'<CSHARP>') _p(2,'<Build>') -- Visu...
mit
annulen/premake-dev-rgeary
src/actions/vstudio/vs2002_csproj_user.lua
19
1483
-- -- vs2002_csproj_user.lua -- Generate a Visual Studio 2002/2003 C# .user file. -- Copyright (c) 2009 Jason Perkins and the Premake project -- local cs2002 = premake.vstudio.cs2002 function cs2002.generate_user(prj) io.eol = "\r\n" _p('<VisualStudioProject>') _p(1,'<CSHARP>') _p(2,'<Build>') -- Visu...
bsd-3-clause
Kamshak/LibK
lua/libk/3rdparty/glib/rendering/irendercontext3d.lua
2
3464
local self = {} GLib.Rendering.IRenderContext3d = GLib.MakeConstructor (self) function self:ctor () self.GraphicsDevice = nil self.GraphicsView = nil self.RenderContext = nil -- Buffers self.VertexBuffer = nil self.IndexBuffer = nil -- Shaders self.VertexShader = nil self.PixelShader = nil self.Vert...
mit
KlonZK/Zero-K
units/tacnuke.lua
2
4243
unitDef = { unitname = [[tacnuke]], name = [[Eos]], description = [[Tactical Nuke]], buildCostEnergy = 600, buildCostMetal = 600, builder = false, buildingGroundDecalDecaySpeed = 30, buildi...
gpl-2.0
Kamshak/LibK
lua/libk/3rdparty/glib/garrysmod/net/layer2/channel.lua
2
2443
local self = {} GLib.Net.Layer2.Channel = GLib.MakeConstructor (self, GLib.Net.Layer2.Channel) function self:ctor (channelName, handler) self.UsermessageChannel = GLib.Net.Layer1.UsermessageChannel (channelName, handler) self.NetChannel = GLib.Net.Layer1.NetChannel (channelName, handler) self.SplitPacketCha...
mit
annulen/premake-dev-rgeary
tests/base/test_action.lua
59
1366
-- -- tests/base/test_action.lua -- Automated test suite for the action list. -- Copyright (c) 2009 Jason Perkins and the Premake project -- T.action = { } -- -- Setup/teardown -- local fake = { trigger = "fake", description = "Fake action used for testing", } function T.action.setup() premake.action.li...
bsd-3-clause
twoscomplement/tundra
scripts/tundra/decl.lua
28
2152
module(..., package.seeall) local nodegen = require "tundra.nodegen" local functions = {} local _decl_meta = {} _decl_meta.__index = _decl_meta local current = nil local function new_parser() local obj = { Functions = {}, Results = {}, DefaultTargets = {}, AlwaysTargets = {}, } local outer_en...
gpl-3.0
msoftware/AndroLua
interp.lua
9
1114
require 'socket' local c = socket.connect('localhost',3333) local log = io.open('log.txt','a') function readfile(file) local f,err = io.open(file) if not f then return nil,err end local contents = f:read '*a':gsub('\n','\001') f:close() return contents end function eval(line) c:send(line..'\n') local re...
mit
KlonZK/Zero-K
scripts/cormak.lua
3
10032
include 'constants.lua' local base = piece 'base' local pelvis = piece 'pelvis' local torso = piece 'torso' local emit = piece 'emit' local fire = piece 'fire' local Lleg = piece 'lleg' local Rleg = piece 'rleg' local lowerLleg = piece 'lowerlleg' local lowerRleg = piece 'lowerrleg' local Lfoot = piece 'lfoot...
gpl-2.0
zzzaidddddd/zzaiddd
data/plugins/newgroup.lua
2
36397
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY Memo Mushakil Aliraqi ▀▄ ▄▀ ▀▄ ▄▀ BY Memo (@ii02ii) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY Memo Aliraqi ▀▄ ▄▀ ▀▄ ▄▀ create : صنع مجموعه ▀▄ ▄▀ ▀▄▀...
gpl-2.0
RezaBlack/RezaTest05
plugins/welcome.lua
190
3526
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
KlonZK/Zero-K
effects/storm.lua
25
4672
-- stormback -- stormmuzzle return { ["stormback"] = { fire = { air = true, class = [[CSimpleParticleSystem]], count = 10, ground = true, water = true, properties = { airdrag = 0.6, co...
gpl-2.0
dani-sj/danymahan
antifuck.lua
22
4534
-- By Mohamed_devt { @amirmr33 } -- how to use inside telegram -- -- if you want to see fuck use this command /fuck lock -- if you want to disable the protection use this command /fuck unlock -- if you want to check the protection use this command /link ? -- a function that i make to cut the command and the / from t...
gpl-2.0
tunneff/tef
app/mod/util/table_tostring.lua
1
1122
local table_tostring local pfx_template = " " local function val_to_str ( v, pfx ) if "string" == type( v ) then v = string.gsub( v, "\n", "\\n" ) if string.match( string.gsub(v,"[^'\"]",""), '^"+$' ) then return "'" .. v .. "'" end return '"' .. string.gsub(v,'"', '\\"' ) .. '"' else re...
lgpl-3.0
Wiladams/REMOTE
tflremote/sharer.lua
1
5971
_G.TURBO_SSL = true -- SSL must be enabled for WebSocket support! local ffi = require("ffi") local turbo = require("turbo") local zlib = require("tflremote.zlib") --local colors = require("colors") local bmp = require("tflremote.bmpcodec") local DrawingContext = require("tflremote.DrawingContext") local MemoryStream ...
mit
parsaalemi/antispambot
plugins/linkpv.lua
1
31096
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
focusworld/biig
plugins/owners.lua
4
12670
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
focusworld/focus_asp
plugins/all.lua
1321
4661
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
dani-sj/danymahan
plugins/all.lua
1321
4661
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
alimashmamali/fff
plugins/all.lua
1321
4661
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
CSS98/csgroup
plugins/all.lua
1321
4661
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
finnoleary/love-edit
editor.lua
1
6753
-- convention: c stands for cursor, s stands for string, f for filename editor = {} function editor:insert(c, s) if c.column < lines[c.line]:len() then lines[c.line] = lines[c.line]:sub(1, c.column-1) .. s .. lines[c.line]:sub(c.column) c.column = c.column + s:len() else lines[c.line] = lines[c.li...
lgpl-2.1
rastin45/catybot
bot/seedbot.lua
1
8611
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
KlonZK/Zero-K
scripts/spherecloaker.lua
15
2991
local head = piece 'head' local hips = piece 'hips' local chest = piece 'chest' local rthigh = piece 'rthigh' local lthigh = piece 'lthigh' local lshin = piece 'lshin' local rshin = piece 'rshin' local rfoot = piece 'rfoot' local lfoot = piece 'lfoot' local disc = piece 'disc' local cloaker = piece 'cloaker' ...
gpl-2.0
parsaalemi/antispambot
plugins/Web_Shot.lua
110
1424
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
KlonZK/Zero-K
scripts/wolverine_mine.lua
4
1721
include "constants.lua" local base = piece ('base') local stalk = {} for i = 1, 4 do stalk[i] = piece ('stalk' .. i) end local petals = {} for i = 1, 3 do petals[i] = {} for j = 1, 4 do petals[i][j] = piece ('petal_' .. i .. j) end end local bomblets = {} for i = 1, 5 do bomblets[i] = {} bomblets[i].hinge =...
gpl-2.0
ArthurF5/tfs1.0
data/actions/scripts/other/bed_modification_kits.lua
2
1529
local BEDS = { [7904] = {{7811, 7812}, {7813, 7814}}, -- green kit [7905] = {{7819, 7820}, {7821, 7822}}, -- yellow kit [7906] = {{7815, 7816}, {7817, 7818}}, -- red kit [7907] = {{1754, 1755}, {1760, 1761}} -- removal kit } local function internalBedTransform(item, itemEx, toPosition, ids) local targetItem = It...
gpl-2.0
KlonZK/Zero-K
LuaUI/Widgets/snd_noises.lua
5
6420
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: snd_chatterbox.lua -- brief: annoys sounds -- author: Dave Rodgers -- -- Copyright (C) 2007. -- Licensed under the terms of the GNU GPL...
gpl-2.0
KlonZK/Zero-K
scripts/nanoaim.h.lua
15
2783
------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- -- -- Author: jK @ 2010 -- -- How to use: -- -- 1. Add to the start of your script: include "nanoaim.h.lua" -- 2. After you define your piec...
gpl-2.0
annulen/premake
src/tools/gcc.lua
1
6417
-- -- gcc.lua -- Provides GCC-specific configuration strings. -- Copyright (c) 2002-2014 Jason Perkins and the Premake project -- premake.tools.gcc = {} local gcc = premake.tools.gcc local project = premake.project local config = premake.config -- -- Returns list of C preprocessor flags for a configuration. -- ...
bsd-3-clause
KlonZK/Zero-K
lups/ParticleClasses/gimmick1.lua
15
4559
-- $Id: gimmick1.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local SantaHat = {} SantaHat.__index =...
gpl-2.0
KlonZK/Zero-K
LuaUI/Widgets/chili/simple examples/Widgets/gui_chiligui.lua
18
2737
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "chiliGUI", desc = "hot GUI Framework", author = "jK & quantum", date = "WIP", ...
gpl-2.0
m2q1n9/lua
tests/utf8.lua
6
5465
-- $Id: utf8.lua,v 1.11 2014/12/26 17:20:53 roberto Exp $ print "testing UTF-8 library" local utf8 = require'utf8' local function checkerror (msg, f, ...) local s, err = pcall(f, ...) assert(not s and string.find(err, msg)) end local function len (s) return #string.gsub(s, "[\x80-\xBF]", "") end local jus...
mit
zcsteele/turbo
spec/web_spec.lua
7
15833
--- Turbo.lua Unit test -- -- Copyright 2013 John Abrahamsen -- -- 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 appl...
apache-2.0
annulen/premake
tests/oven/test_filtering.lua
4
1776
-- -- tests/oven/test_filtering.lua -- Test the project object configuration accessor. -- Copyright (c) 2011-2014 Jason Perkins and the Premake project -- local suite = test.declare("oven_filtering") local oven = premake.oven local solution = premake.solution local sln, prj -- -- Setup -- function suite.setup(...
bsd-3-clause
shenzhe/redis-storage
deps/lua/src/jit/dump.lua
15
19539
---------------------------------------------------------------------------- -- LuaJIT compiler dump module. -- -- Copyright (C) 2005-2012 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -- -...
bsd-3-clause
tunneff/tef
app/mod/lzmq/llthreads/ex.lua
9
5950
-- -- Author: Alexey Melnichuk <mimir@newmail.ru> -- -- Copyright (C) 2013-2014 Alexey Melnichuk <mimir@newmail.ru> -- -- Licensed according to the included 'LICENCE' document -- -- This file is part of lua-lzqm library. -- --- Wraps the low-level threads object. -- -- @module llthreads2.ex -- -- Notes for lzmq.t...
lgpl-3.0
jnhwkim/dp
data/textsource.lua
4
4977
------------------------------------------------------------------------ --[[ TextSource ]]-- -- Creates a DataSource out of 1 to 3 strings or text files. -- Text files are assumed to be arranged one sentence per line, each -- line beginning with a space and ending with a space and a newline. -- Feel free to send a Pu...
bsd-3-clause
annulen/premake-dev-rgeary
tests/actions/vstudio/sln2005/projectplatforms.lua
2
2623
-- -- tests/actions/vstudio/sln2005/projectplatforms.lua -- Validate generation of Visual Studio 2005+ ProjectConfigurationPlatforms block. -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- T.vstudio_sln2005_projectplatforms = { } local suite = T.vstudio_sln2005_projectplatforms local sln2005 = pr...
bsd-3-clause
KlonZK/Zero-K
effects/annabelle.lua
25
4477
-- annabelle -- annabelle_smokejet return { ["annabelle"] = { boom = { air = true, class = [[CExpGenSpawner]], count = 1, ground = true, water = true, properties = { delay = [[0 i1]], ...
gpl-2.0
KlonZK/Zero-K
LuaRules/Configs/lups_projectile_fxs.lua
12
3125
local MergeTable = Spring.Utilities.MergeTable local fx = { flame_heat = { class = 'JitterParticles2', colormap = { {1,1,1,1},{1,1,1,1} }, count = 6, life = 24, delaySpread = 25, force = {-10,0,0}, --forceExp = 0.2, emitRotSprea...
gpl-2.0
mpeterv/sailor
test/dev-app/controllers/test.lua
1
5878
local session = require "sailor.session" local validation = require "valua" local form = require "sailor.form" local sailor = require "sailor" local test = {} function test.index(page) local stringVariable = 'this variable is being passed from a controller to a view!' local anotherVar = 2342 -- this one too! ...
mit
KlonZK/Zero-K
units/corpre.lua
4
6431
unitDef = { unitname = [[corpre]], name = [[Scorcher]], description = [[Anti-Swarm Heat Ray (weaker at range)]], bmcode = [[0]], buildCostEnergy = 220, buildCostMetal = 220, builder ...
gpl-2.0
omid1212/sss
plugins/invite.lua
63
1107
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) or is_gbanned(result.id) then -- Ignore bans and globall bans send_large_msg(chat, 'User is banned.') else ...
gpl-2.0
bbbbbhhhhhhh/i4bot
plugins/get.lua
613
1067
local function get_variables_hash(msg) if msg.to.type == 'chat' then return 'chat:'..msg.to.id..':variables' end if msg.to.type == 'user' then return 'user:'..msg.from.id..':variables' end end local function list_variables(msg) local hash = get_variables_hash(msg) if hash then local names =...
gpl-2.0
Wiladams/REMOTE
testy/test_websocket.lua
1
1562
package.path = "../?.lua;"..package.path; _G.TURBO_SSL = true -- SSL must be enabled for WebSocket support! local turbo = require "turbo" turbo.ioloop.instance():add_callback(function() turbo.websocket.WebSocketClient("ws://127.0.0.1:8080/ws", { on_headers = function(self, headers) -- Review h...
mit
tunneff/tef
deps/LuaJIT-2.0.4/src/jit/dump.lua
84
19509
---------------------------------------------------------------------------- -- LuaJIT compiler dump module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -- -...
lgpl-3.0
iamgreaser/seabase
pkg/base/obj/table.lua
1
2293
--[[ Copyright (C) 2013 Ben "GreaseMonkey" Russell & contributors This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpo...
gpl-2.0
eras/fysplane
machinegun.lua
1
1729
-- A generic machine gun which shoots all kinds of projectiles Class = require 'hump/class' require 'entities/vickers77' require 'entities/tinyshot' require 'entities/bigball' GUNS = { chaingun = { interval = 0.01, projectile = TinyShot, speed = 50000, damage = 5 }, bigball = { ...
mit
ld-test/lua-tinycdb
test.lua
4
1078
require("lunit") local cdb = require("cdb") local db_name = "test.cdb" local db = assert(cdb.make(db_name, db_name..".tmp")) db:add("one", "1") db:add("two", "2") db:add("three", "4") -- oops db:add("three", "3", "replace") db:add("three", "III") assert(db:finish()) module("querying a cdb", lunit.testcase, package.s...
mit
soumith/lzmq
examples/perf2/thr/remote_thr.lua
15
1894
local ZMQ_NAME = "lzmq" local argc = select("#", ...) local argv = {...} if (argc < 3) or (argc > 4)then print("usage: remote_thr <connect-to> <message-size> <message-count> [ffi]"); return 1 end local connect_to = argv [1] local message_size = assert(tonumber(argv [2])) local message_count = assert(tonumber...
mit
ali-iraqi/ali_iraqi
plugins/lock-bot.lua
2
2924
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ ANTI BOT : منع بوتات ▀▄ ▄▀ ▀▄▀...
gpl-3.0
annulen/premake-dev-rgeary
src/actions/vstudio/vs2005_solution.lua
1
6636
-- -- vs2005_solution.lua -- Generate a Visual Studio 2005-2012 solution. -- Copyright (c) 2009-2012 Jason Perkins and the Premake project -- premake.vstudio.sln2005 = { } local vstudio = premake.vstudio local sln2005 = premake.vstudio.sln2005 local solution = premake.solution local project = premake5.project -...
bsd-3-clause
robzed/LuaZ80
z80_regression_tests/tests_FDnn_opcodes.lua
1
46277
-- Z80 Regression Tests -- (c) Copyright 2015-2017 Rob Probin. -- -- 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. -...
gpl-2.0
alimashmamali/fff
plugins/domaintools.lua
359
1494
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function check(name) local api = "https://domainsearch.p.mashape.com/index.php?"...
gpl-2.0
annulen/premake
tests/oven/test_objdirs.lua
1
1992
--- -- tests/oven/test_objdirs.lua -- Test the per-configuration object directory assignments. -- Copyright (c) 2014 Jason Perkins and the Premake project --- local suite = test.declare("oven_objdirs") local oven = premake.oven local sln, prj --- -- Setup --- function suite.setup() end local function result(...
bsd-3-clause
virgo-agent-toolkit/luvit-statsd
misc.lua
1
1218
--[[ Copyright 2015 Rackspace 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 dis...
apache-2.0
Kamshak/LibK
lua/libk/shared/sh_thirdparty.lua
1
6083
include( "sh_util.lua" ) local function isolatedInclude( filePath ) KLogf( 5, " -> " .. filePath ) local path = virtualLua .. "/" .. filePath local alternativePath = virtualLua .. "/" .. virtualMain .. "/" .. filePath local result if _file.Exists( path, "LUA" ) then result = CompileFile( path ) elseif _file.E...
mit
dani-sj/mahdii
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
Black-Nine/anti-spbot
plugins/moderation.lua
42
30441
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
jzlhll/FilteredNamePlate
FilteredNamePlate.lua
1
24225
local _ local L = FNP_LOCALE_TEXT local GetNamePlateForUnit , GetNamePlates, UnitThreatSituation = C_NamePlate.GetNamePlateForUnit, C_NamePlate.GetNamePlates, UnitThreatSituation local UnitName, GetUnitName = UnitName, GetUnitName local UnitHealth, UnitHealthMax = UnitHealth, UnitHealthMax local string_find = stri...
gpl-2.0
complynx/nodemcu-IoT
lua_modules/ds18b20/ds18b20.lua
54
3437
-------------------------------------------------------------------------------- -- 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
KlonZK/Zero-K
units/armfus.lua
7
3352
unitDef = { unitname = [[armfus]], name = [[Fusion Reactor]], description = [[Produces Energy (35)]], activateWhenBuilt = true, buildCostEnergy = 1000, buildCostMetal = 1000, builder ...
gpl-2.0
bbbbbhhhhhhh/i4bot
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
ollpu/telegram-bot
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