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
Anarchid/Zero-K
units/planefighter.lua
2
6109
return { planefighter = { unitname = [[planefighter]], name = [[Swift]], description = [[Multi-role Fighter]], brakerate = 0.4, buildCostMetal = 150, buildPic = [[planefighter.png]], canFly = true, canGuard ...
gpl-2.0
chukong/sdkbox-facebook-sample-v2
samples/Lua/TestLua/Resources/luaScript/ActionsTest/ActionsTest.lua
7
37512
local size = CCDirector:sharedDirector():getWinSize() local function initWithLayer(layer) grossini = CCSprite:create(s_pPathGrossini) tamara = CCSprite:create(s_pPathSister1) kathia = CCSprite:create(s_pPathSister2) layer:addChild(grossini, 1) layer:addChild(tamara, 2) layer:addChild(kathia, 3) grossini:s...
mit
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/units/unused/armkam.lua
1
1969
return { armkam = { acceleration = 0.15399999916553, brakerate = 3.75, buildcostenergy = 2226, buildcostmetal = 125, buildpic = "ARMKAM.DDS", buildtime = 5046, canfly = true, canmove = true, category = "ALL WEAPON NOTSUB VTOL NOTHOVER", collide = false, cruisealt = 60, description = "Light Guns...
gpl-2.0
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/units/unused/corgol.lua
1
3077
return { corgol = { acceleration = 0.02419999986887, brakerate = 0.049499999731779, buildcostenergy = 19892, buildcostmetal = 1567, buildpic = "CORGOL.DDS", buildtime = 26125, canmove = true, category = "ALL TANK MOBILE WEAPON NOTSUB NOTSHIP NOTAIR NOTHOVER SURFACE", collisionvolumeoffsets = "0 -15 -...
gpl-2.0
LORgames/premake-core
modules/vstudio/tests/vc2010/test_extension_targets.lua
11
2464
-- -- tests/actions/vstudio/vc2010/test_extension_targets.lua -- Check the import extension targets block of a VS 2010 project. -- Copyright (c) 2014 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vs2010_extension_targets") local vc2010 = p.vstudio.vc2010 local project = p.p...
bsd-3-clause
LORgames/premake-core
binmodules/luasocket/test/testclnt.lua
20
22799
local socket = require"socket" host = host or "localhost" port = port or "8383" function printf(...) io.stderr:write(string.format(...)) end function pass(...) printf(...) io.stderr:write("\n") end function fail(...) io.stderr:write("ERROR: ") printf(...) io.stderr:write("!\n") os.exit()...
bsd-3-clause
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/units/tld/armlab/armlab.lua
1
2784
return { armlab = { acceleration = 0, brakerate = 0, buildangle = 1024, buildcostenergy = 800, buildcostmetal = 0, buildtime = 8000, builder = true, workertime = 100, buildinggrounddecaldecayspeed = 30, buildinggrounddecalsizex = 7, buildinggrounddecalsizey = 7, buildinggrounddecaltype = "armla...
gpl-2.0
Anarchid/Zero-K
units/cloakarty.lua
4
3472
return { cloakarty = { unitname = [[cloakarty]], name = [[Sling]], description = [[Light Artillery Bot]], acceleration = 0.75, brakeRate = 4.5, buildCostMetal = 100, buildPic = [[cloakarty.png]], canGuard ...
gpl-2.0
Bew78LesellB/awesome
lib/menubar/icon_theme.lua
7
8711
--------------------------------------------------------------------------- --- (Deprecated) class module for icon lookup for menubar -- -- @author Kazunobu Kuriyama -- @copyright 2015 Kazunobu Kuriyama -- @classmod menubar.icon_theme --------------------------------------------------------------------------- -- This ...
gpl-2.0
MrPolicy/HodTG
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
OmarReaI/RealBot
plugins/commands.lua
4
36971
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY OmarReal ▀▄ ▄▀ ▀▄ ▄▀ BY OmarReal (Omar_Real7) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY OmarReal ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄▀▀...
gpl-2.0
tectronics/ibus-cloud-pinyin
lua/engine_sogou.lua
6
3129
--[[---------------------------------------------------------------------------- ibus-cloud-pinyin - cloud pinyin client for ibus Sogou Web Pinyin Client Script Copyright (C) 2010 WU Jun <quark@lihdd.net> This file is part of ibus-cloud-pinyin. ibus-cloud-pinyin is free software: you can redistribute it and/or ...
gpl-3.0
poculeka/IntWars
BinWars/Scripts/AI/Turret.lua
3
3316
DEBUG_MINION_STATE_TABLE = { "AI_IDLE", "AI_SOFTATTACK", "AI_HARDATTACK", "AI_ATTACKMOVESTATE", "AI_STANDING", "AI_MOVE", "AI_GUARD", "AI_ATTACK", "AI_RETREAT", "AI_HARDIDLE", "AI_HARDIDLE_ATTACKING", "AI_TAUNTED", "AI_ATTACKMOVE_ATTACKING", "AI_FEARED", "AI_CHARM...
gpl-3.0
Sannis/tarantool
test/wal_off/itr_lt_gt.test.lua
6
1034
-- test for https://github.com/tarantool/tarantool/issues/769 s = box.schema.create_space('test') i = s:create_index('primary', { type = 'TREE', parts = {1, 'num', 2, 'num'} }) s:insert{0, 0} s:insert{2, 0} for i=1,10000 do s:insert{1, i} end test_itrs = {'EQ', 'REQ', 'GT', 'LT', 'GE', 'LE'} test_res = {} too_longs = ...
bsd-2-clause
lxl1140989/dmsdk
feeds/luci/modules/base/luasrc/i18n.lua
77
3182
--[[ LuCI - Internationalisation Description: A very minimalistic but yet effective internationalisation module FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You ...
gpl-2.0
Em30-tm-lua/team
plugins/plugins.lua
13
4732
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
childhood/mongrel2
examples/bbs/engine.lua
96
1958
local print = print local pcall = pcall local coroutine = coroutine local ui = require 'ui' local db = require 'db' module 'engine' local STATE = {} function run(conn, engine) while true do -- Get a message from the Mongrel2 server local good, request = pcall(conn.recv_json, conn) if goo...
bsd-3-clause
LORgames/premake-core
tests/base/test_tree.lua
16
4592
-- -- tests/base/test_tree.lua -- Automated test suite source code tree handling. -- Copyright (c) 2009-2012 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("base_tree") local tree = p.tree -- -- Setup/teardown -- local tr function suite.setup() tr = tree.new() end l...
bsd-3-clause
Anarchid/Zero-K
units/planescout.lua
3
2277
return { planescout = { unitname = [[planescout]], name = [[Owl]], description = [[Area Jammer, Radar/Sonar Plane]], brakerate = 0.4, buildCostMetal = 340, builder = false, buildPic = [[planescout.png]], canFly = true, ...
gpl-2.0
UB12/lion
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
Anarchid/Zero-K
effects/gundam_bigbulletimpact.lua
25
6249
-- bigbulletimpact return { ["bigbulletimpact"] = { dirta = { air = true, class = [[CSimpleParticleSystem]], count = 1, properties = { airdrag = 0.7, alwaysvisible = true, colormap = [[0.1 0.1 0.1 1...
gpl-2.0
Mutos/SoC-Test-001
dat/missions/shark/sh02_tapping.lua
4
12027
--[[ This is the third mission of the Shark's teeth campaign. The player has to take illegal holophone recordings in his ship. Stages : 0) Way to Sirius world 1) Way to Darkshed TODO: I didn't test the case when the player tries to do the mission with a freighter, and the case when the player's c...
gpl-3.0
b1v1r/ironbee
lua/ironbee/waggle/actionrule.lua
2
1964
#!/usr/bin/lua --[[-------------------------------------------------------------------------- -- Licensed to Qualys, Inc. (QUALYS) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- QUALYS licenses this fi...
apache-2.0
poculeka/IntWars
BinWars/Scripts/Heroes/Ezreal.lua
3
3326
function CastSpell(self,spellIndex,x,y) if spellIndex == 0 then spell = CSpellWork(self,spellIndex,x,y) --EzrealMysticShot spell.iUpdatePos = 1 --spell.setFacing = true --4F spell.cooldown = 0 spell.manaCost = 0 sp...
gpl-3.0
lxl1140989/dmsdk
feeds/packages/net/prosody/files/prosody.cfg.lua
147
7257
-- Prosody Example Configuration File -- -- Information on configuring Prosody can be found on our -- website at http://prosody.im/doc/configure -- -- Tip: You can check that the syntax of this file is correct -- when you have finished by running: luac -p prosody.cfg.lua -- If there are any errors, it will let you know...
gpl-2.0
hacklex/OpenRA
mods/ra/maps/survival02/survival02.lua
6
13221
FrenchSquad = { "2tnk", "2tnk", "mcv" } TimerTicks = DateTime.Minutes(10) AttackTicks = DateTime.Seconds(52) AttackAtFrame = DateTime.Seconds(18) AttackAtFrameIncrement = DateTime.Seconds(18) Producing = true SpawningInfantry = true ProduceAtFrame = DateTime.Seconds(12) ProduceAtFrameIncrement = DateTime.Seconds(12) S...
gpl-3.0
lxl1140989/dmsdk
feeds/routing/luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/interfaces.lua
20
2085
--[[ Copyright (C) 2011 Pau Escrich <pau@dabax.net> 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. Th...
gpl-2.0
Sasu98/Nerd-Gaming-Public
resources/NGPhone/apps/music_client.lua
2
4000
defaultMusic = { { "Hip Hop Radio", "http://mp3uplink.duplexfx.com:8054/listen.pls" }, { "A horse with no name", "http://netanimations.net/A-Horse-With-No-Name.mp3" }, { "I'm from Holland", "http://users.telenet.be/melissaris/holland.mp3" }, { "Eminem", "http://1cd.palco.fm/1/c/3/b/beltrao-eminem-the-re...
mit
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/units/unused/corcs.lua
1
2861
return { corcs = { acceleration = 0.10000000149012, brakerate = 0.10000000149012, buildcostenergy = 2375, buildcostmetal = 260, builddistance = 160, builder = true, buildpic = "CORCS.DDS", buildtime = 5537, canmove = true, category = "ALL NOTLAND MOBILE NOTSUB SHIP NOWEAPON NOTAIR NOTHOVER SURFACE"...
gpl-2.0
flavorzyb/cocos2d-x
scripting/lua/script/CCBReaderLoad.lua
14
5978
ccb = ccb or {} function CCBReaderLoad(strFilePath,proxy,bSetOwner,strOwnerName) if nil == proxy then return end local ccbReader = proxy:createCCBReader() local node = proxy:readCCBFromFile(strFilePath,ccbReader,bSetOwner) local owner = ccbReader:getOwner() local rootName = "...
gpl-2.0
Anarchid/Zero-K
LuaUI/Widgets/chili_old/Controls/trackbar.lua
6
3364
--//============================================================================= Trackbar = Control:Inherit{ classname = "trackbar", value = 50, min = 0, max = 100, step = 1, useValueTooltip = nil, defaultWidth = 90, defaultHeight = 20, hitpadding = {0, 0, 0, 0}, noF...
gpl-2.0
BarnamehNevisan/ss
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
Whit3Tig3R/bestspammbot2
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
hfjgjfg/sy
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
BarnamehNevisan/ss
plugins/inrealm.lua
2
25084
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
Sasu98/Nerd-Gaming-Public
resources/NGTurf/client.lua
2
2585
local isRender = false local renderData = nil local removeIfNotText = 0 addEvent ( "NGTurfs:onClientEnterTurfArea", true ) addEventHandler ( "NGTurfs:onClientEnterTurfArea", root, function ( info ) renderData = info if ( not render ) then addEventHandler ( "onClientRender", root, onClientRender ) render = true ...
mit
dsohler/xtend_modpack
xfurniture/furniture/window_stuff.lua
1
3120
local _register = _xtend.mods.xfurniture.register local _p2r = _xtend.mods.xfurniture.pattern_to_recipe local _apply_indent = _xtend.mods.xfurniture.apply_indent for node in pairs(_xtend.mods.xfurniture.nodes) do ---------------------------------------------------------------------------- _register({ ...
gpl-3.0
jerizm/kong
kong/core/resolver.lua
3
8929
local singletons = require "kong.singletons" local url = require "socket.url" local cache = require "kong.tools.database_cache" local constants = require "kong.constants" local responses = require "kong.tools.responses" local table_insert = table.insert local table_sort = table.sort local ipairs = ipairs local type = ...
apache-2.0
LanceJenkinZA/prosody-modules
mod_storage_xmlarchive/mod_storage_xmlarchive.lua
11
7035
-- mod_storage_xmlarchive -- Copyright (C) 2015 Kim Alvefur -- -- This file is MIT/X11 licensed. -- -- luacheck: ignore unused self local dm = require "core.storagemanager".olddm; local hmac_sha256 = require"util.hashes".hmac_sha256; local st = require"util.stanza"; local dt = require"util.datetime"; local new_stream ...
mit
DarkJaguar91/DJUI
src/darkjaguarui.lua
1
3252
-- -- Created by -- User: Brandon -- Date: 2015-04-04 -- Time: 10:17 PM -- local NAME, VERSION = 'DJUI', 0.01 local DJUI = LibStub:NewLibrary(NAME, VERSION) if not DJUI then return -- already loaded and no upgrade necessary end DJUI.name = NAME DJUI.version = VERSION DJUI.__index = DJUI --region Load Functi...
apache-2.0
lxl1140989/dmsdk
feeds/luci/applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua
36
1043
--[[ LuCI hd-idle (c) 2008 Yanira <forum-2008@email.de> 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$ ]]-- require("nixio.fs") m = Map...
gpl-2.0
Anarchid/Zero-K
LuaUI/Widgets/gfx_night.lua
6
18963
-- $Id: gfx_night.lua 3171 2008-11-06 09:06:29Z det $ local versionNumber = "v1.5.12" -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Night", desc ...
gpl-2.0
makefu/nodemcu-firmware
lua_modules/bh1750/bh1750.lua
89
1372
-- *************************************************************************** -- BH1750 module for ESP8266 with nodeMCU -- BH1750 compatible tested 2015-1-22 -- -- Written by xiaohu -- -- MIT license, http://opensource.org/licenses/MIT -- *************************************************************************** loca...
mit
TheMarex/delightful
delightful/widgets/weather.lua
1
53387
local p=print ------------------------------------------------------------------------------- -- -- Weather widget for Awesome 3.4 -- Copyright (C) 2011 Tuomas Jormola <tj@solitudo.net> -- -- Licensed under the terms of GNU General Public License Version 2.0. -- -- Description: -- -- Displays current weather conditions...
gpl-2.0
Anarchid/Zero-K
LuaRules/Gadgets/unit_structure_typemap.lua
8
2973
function gadget:GetInfo() return { name = "Structure Typemap", desc = "Sets structures to have unpathable terrain under them.", author = "GoogleFrog", date = "2 December 2018", license = "GNU LGPL, v2.1 or later", layer = 0, enabled = false } end if not (gadgetHandler:IsSyncedCode()) then ...
gpl-2.0
empireryan/vrepQuad
quadServer.lua
2
6862
CLIENT_EXECUTABLE = '/Users/empire/Documents/MATLAB/vrepMatlab/quadClient.m' if (sim_call_type==sim_childscriptcall_initialization) then -- Server-side Init------------------------------------------------------------------------- -- Add a banner: black={0,0,0,0,0,0,0,0,0,0,0,0} purple={0,0,0,0,0,0,0,0,0,1,0,1} ...
gpl-2.0
hacklex/OpenRA
mods/d2k/maps/atreides-02b/atreides02b.lua
5
3387
HarkonnenBase = { HConyard, HOutpost, HBarracks } HarkonnenReinforcements = { } HarkonnenReinforcements["Easy"] = { { "light_inf", "trike" }, { "light_inf", "trike" }, { "light_inf", "light_inf", "light_inf", "trike", "trike" } } HarkonnenReinforcements["Normal"] = { { "light_inf", "trike" }, { "light_inf", "tr...
gpl-3.0
wesnoth/wesnoth
data/campaigns/World_Conquest/lua/map/scenarios/WC_II_2p_scenario5.lua
11
1034
world_conquest_tek_scenario_res(2, 6, 50) local generators = { wct_map_generator("classic", "6a", 71, 19, 10, 16660, 8, 8, 7), wct_map_generator("maritime", "6b", 71, 19, 10, 16660, 8, 8, 7), wct_map_generator("industrial", "6c", 71, 19, 10, 18742, 7, 8, 7), wct_map_generator("feudal", "6d", 71, 19, 10, 16660, 8, 8...
gpl-2.0
Anarchid/Zero-K
LuaRules/Gadgets/unit_capture.lua
6
26113
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Capture", desc = "Handles Yuri Style Capture System", author = "Google Frog", date = "3...
gpl-2.0
nnesse/b2l-tools
lgi/samples/console.lua
6
11383
#! /usr/bin/env lua -- Lua console implemented using Gtk widgets. local lgi = require 'lgi' local Gio = lgi.Gio local Gtk = lgi.require('Gtk', '3.0') local Gdk = lgi.require('Gdk', '3.0') local Pango = lgi.Pango local GtkSource = lgi.GtkSource -- Creates new console instance. local function Console() -- Define co...
gpl-2.0
Mutos/SoC-Test-001
dat/missions/shark/sh01_corvette.lua
4
5664
--[[ This is the second mission of the Shark's teeth campaign. The player has to take part to a fake battle. Stages : 0) Way to Toaxis 1) Battle 2) Going to Darkshed --]] include "numstring.lua" lang = naev.lang() if lang == "es" then else -- default english title = {} text = {} ...
gpl-3.0
PichotM/DarkRP
gamemode/modules/money/sv_interface.lua
13
1964
DarkRP.PLAYER.addMoney = DarkRP.stub{ name = "addMoney", description = "Give money to a player.", parameters = { { name = "amount", description = "The amount of money to give to the player. A negative amount means you're substracting money.", type = "number", ...
mit
wesnoth/wesnoth
utils/emmylua/wesnoth/units.lua
4
8152
---@meta ---Defines a weapon possessed by a unit ---@class unit_weapon ---@field read_only boolean ---@field description tstring ---@field name string ---@field type string ---@field icon string ---@field range integer ---@field number integer ---@field movement_used integer ---@field attack_weight number ---@field de...
gpl-2.0
lxl1140989/dmsdk
feeds/luci/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua
59
3798
--[[ LuCI - Lua Configuration Interface Copyright 2011 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 ]]-- local ma...
gpl-2.0
delram/yago
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
Bew78LesellB/awesome
tests/test-client-shape.lua
6
1079
-- Test that client shapes work local runner = require("_runner") local spawn = require("awful.spawn") local surface = require("gears.surface") runner.run_steps{ function(count) if count == 1 then local a = spawn("xeyes") assert(type(a) == "number", a) end if #clien...
gpl-2.0
Anarchid/Zero-K
lups/ParticleClasses/UnitCloaker.lua
6
8780
-- $Id: UnitCloaker.lua 3871 2009-01-28 00:09:23Z jk $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local UnitCloaker = {} UnitCloaker._...
gpl-2.0
Anarchid/Zero-K
units/jumpbomb.lua
4
3348
return { jumpbomb = { unitname = [[jumpbomb]], name = [[Skuttle]], description = [[Cloaked Jumping Anti-Heavy Bomb]], acceleration = 0.54, brakeRate = 3.24, buildCostMetal = 550, builder = false, buildPic ...
gpl-2.0
PichotM/DarkRP
gamemode/modules/base/sv_gamemode_functions.lua
2
30162
local entMeta = FindMetaTable("Entity") -- Maintains entities that are to be removed after disconnect local queuedForRemoval = {} --[[--------------------------------------------------------------------------- DarkRP hooks ---------------------------------------------------------------------------]] function GM:Initi...
mit
LuaDist2/ldoc
tests/usage/usage.lua
7
1797
--[[-------- A simple module with examples. Even without markdown formatting, blank lines are respected. @module usage ]] local usage = {} local helper --- a local helper function. -- @local function helper () end ---------- -- A simple vector class. -- -- Supports arithmetic operations. -- @usage -- v = Vector.n...
mit
PichotM/DarkRP
entities/entities/darkrp_tip_jar/shared.lua
1
2019
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "Tip Jar" ENT.Author = "FPtje" ENT.Spawnable = false function ENT:initVars() self.model = "models/props_lab/jar01a.mdl" self.damage = 100 self.callOnRemoveId = "tipjar_activedonation_" .. self:EntIndex() .. "_" self.activeDonations = {} ...
mit
LanceJenkinZA/prosody-modules
mod_post_msg/mod_post_msg.lua
32
2623
module:depends"http" local jid_split = require "util.jid".split; local jid_prep = require "util.jid".prep; local msg = require "util.stanza".message; local test_password = require "core.usermanager".test_password; local b64_decode = require "util.encodings".base64.decode; local formdecode = require "net.http".formdeco...
mit
nimaghorbani/dozdi2
plugins/boobs.lua
731
1601
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/luaui/widgets/cmd_context_build.lua
1
4659
local unitlist={--- Human friendly list. Automatically converted to unitdef IDs on init -- BA {'armmex','armuwmex', 'cormex','coruwmex'},-- test that it is allright when unit can't really be built {'armmakr','armfmkr'}, {'cormakr','corfmkr'}, {'armeyes','armsonar'}, {'coreyes','corsonar'}, --{'armdrag','armfdrag'}, ...
gpl-2.0
lxl1140989/dmsdk
feeds/luci/applications/luci-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua
76
2144
--[[ Luci diag - Diagnostics controller module (c) 2009 Daniel Dickinson 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 ]]-- module("luci.cont...
gpl-2.0
avr-aics-riken/hpcpfGUI
lib/envconf.lua
1
1451
function readJSON(filename) local json = require('dkjson') local fp = io.open(filename,'r'); local jst = nil if (fp) then --print("DEBUG: successfully opened", filename) filestr = fp:read("*all") jst = json.decode (filestr, 1, nil) else print('JSON file open failed!!', filename) end return...
bsd-2-clause
NUTIEisBADYT/NUTIEisBADYTS-PD2-Modpack
Full Speed Swarm/lua/groupaistatebesiege.lua
1
2180
local key = ModPath .. ' ' .. RequiredScript if _G[key] then return else _G[key] = true end local full_force = true local fs_groupaistatebesiege_spawningroup = GroupAIStateBesiege._spawn_in_group function GroupAIStateBesiege:_spawn_in_group(spawn_group, spawn_group_type, grp_objective, ai_task) if grp_objective.type ...
mit
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/units/unused/armpb.lua
1
3071
return { armpb = { acceleration = 0, brakerate = 0, buildcostenergy = 12896, buildcostmetal = 638, buildinggrounddecaldecayspeed = 30, buildinggrounddecalsizex = 5, buildinggrounddecalsizey = 5, buildinggrounddecaltype = "armpb_aoplane.dds", buildpic = "ARMPB.DDS", buildtime = 14961, category = "...
gpl-2.0
catwell/fakeredis
fakeredis.test.lua
1
28231
-- WARNING: setting this to true will erase your local Redis DB. local TEST_REDIS_LUA = false local unpack = table.unpack or unpack local cwtest = require "cwtest" local T = cwtest.new() local R if TEST_REDIS_LUA then local redis = require "redis" R = redis.connect("127.0.0.1", 6379) else local fakeredi...
mit
wesnoth/wesnoth
data/campaigns/Secrets_of_the_Ancients/utils/zombie_recruit_dialog.lua
6
4416
local T = wml.tag local W = wml.fire local _ = wesnoth.textdomain 'wesnoth-sota' -- After preshow, this variable will hold the unit_types being shown in the listbox. local listedZombies = {} -- These two variables will be passed back to the WML engine. local recruitedType local recruitCost local zombies = wml.array_a...
gpl-2.0
bugobliterator/ardupilot
libraries/AP_Scripting/examples/SN-GCJA5-particle-sensor.lua
3
6043
--[[ This script reads a SN-GCJA5 panasonic particle sensor on i2c reading will be saved to data flash logs, CSV file and streamed as named value floats Development of this script was sponsored by Cubepilot the code is heavily based on the SparkFun arduino library https://github.com/sparkfun/Spark...
gpl-3.0
samtaylorblack/black
tg/tdcli.lua
102
88571
--[[ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be use...
gpl-3.0
wesnoth/wesnoth
data/campaigns/World_Conquest/lua/map/postgeneration/4A_Thermal.lua
7
4185
-- Thermal function world_conquest_tek_map_repaint_4a() world_conquest_tek_map_rebuild("Uu,Uu^Tf,Uh,Uu^Tf,Uu,Uu^Tf,Uh,Ql,Ql,Ql", 3) world_conquest_tek_map_decoration_4a() world_conquest_tek_map_dirt("Gg^Tf,Gg^Tf,Gs^Tf") end function world_conquest_tek_map_decoration_4a() set_terrain { "Gs^Fmf", f.terrain("Gs^Ft...
gpl-2.0
LanceJenkinZA/prosody-modules
mod_auth_ccert/mod_auth_ccert.lua
32
2651
-- Copyright (C) 2013 Kim Alvefur -- -- This file is MIT/X11 licensed. local jid_compare = require "util.jid".compare; local jid_split = require "util.jid".prepped_split; local new_sasl = require "util.sasl".new; local now = os.time; local log = module._log; local subject_alternative_name = "2.5.29.17"; local id_on_x...
mit
jerizm/kong
kong/core/reports.lua
1
3515
local meta = require "kong.meta" local cjson = require "cjson" local cache = require "kong.tools.database_cache" local utils = require "kong.tools.utils" local pl_utils = require "pl.utils" local pl_stringx = require "pl.stringx" local resty_lock = require "resty.lock" local singletons = require "kong.singletons" local...
apache-2.0
ivendrov/nn
test.lua
5
170339
-- you can easily test specific units like this: -- th -lnn -e "nn.test{'LookupTable'}" -- th -lnn -e "nn.test{'LookupTable', 'Add'}" local mytester = torch.Tester() local jac local sjac local precision = 1e-5 local expprecision = 1e-4 local nntest = {} local function equal(t1, t2, msg) if (torch.type(t1) == "ta...
bsd-3-clause
devFRIND/DEVFRINDNOW
bot/utils.lua
473
24167
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
Bew78LesellB/awesome
lib/awful/tag.lua
1
46490
--------------------------------------------------------------------------- --- Useful functions for tag manipulation. -- -- @author Julien Danjou &lt;julien@danjou.info&gt; -- @copyright 2008 Julien Danjou -- @module tag --------------------------------------------------------------------------- -- Grab environment w...
gpl-2.0
ggcrunchy/Old-Love2D-Demo
Scripts/Class/Container/OrderlessArray.lua
1
2980
-- See TacoShell Copyright Notice in main folder of distribution -- Standard library imports -- local assert = assert local insert = table.insert local max = math.max local pairs = pairs local remove = table.remove -- Imports -- local Type = class.Type local Weak = table_ex.Weak -- Unique member keys -- local _cache...
mit
Anarchid/Zero-K
LuaUI/Widgets/dbg_startbox_editor.lua
6
3204
function widget:GetInfo() return { name = "Startbox Editor", desc = "Map development tool for drawing startboxes. Consult the ZK mediawiki at Startbox_API for usage and tips", author = "git blame", date = "git log", license = "PD", layer = math.huge, enabled = false, } end --[[ tl;dr LMB to draw (ei...
gpl-2.0
Anarchid/Zero-K
units/shiptorpraider.lua
2
3989
return { shiptorpraider = { unitname = [[shiptorpraider]], name = [[Hunter]], description = [[Torpedo Raider Ship (Anti-Sub)]], acceleration = 0.288, activateWhenBuilt = true, brakeRate = 0.516, buildCostMetal = 100, builder = false, ...
gpl-2.0
DiamondLovesYou/skia-sys
tools/lua/paths_agg.lua
92
1207
clips = 0 draws = 0 clipPaths = 0 drawPaths = 0 swClipPaths = 0 swDrawPaths = 0 skpsTotal = 0 skpsWithPath = 0 skpsWithSWPath = 0 dofile("/tmp/lua-output") io.write("Number of clips: ", clips, "\n"); io.write("Number of draws: ", draws, "\n"); io.write("Number of clipped paths: ", clipPaths, "\n"); io.write("Number...
bsd-3-clause
123099/Third-Person
MGE/assets/mge/scripts/levels/Level2.lua
1
9840
objects = {} objects[1] = creategameobject("pillar (2)", true, -0.33, 0, 12.2, 0, 0, 0, 1, 1, 1, 1, "pillar.obj", "pillar") addbehaviour(objects[1], "rigidbody", 0, false, true, true, true, true, true, true) addbehaviour(objects[1], "meshcollider", true) objects[2] = creategameobject("Broken cable", true, -7.176, 1.1...
gpl-3.0
iamgreaser/iceball
pkg/base/lang_en.lua
4
2121
--[[ This file is part of Ice Lua Components. Ice Lua Components is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
gpl-3.0
Mutos/SoC-Test-001
dat/missions/pirate/hitman.lua
5
4501
--[[ Pirate Hitman Corrupt Merchant wants you to destroy competition Author: nloewen --]] -- Localization, choosing a language if naev is translated for non-english-speaking locales. lang = naev.lang() if lang == "es" then else -- Default to English -- Bar information bar_desc = "You see a shifty lo...
gpl-3.0
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/units/unused/coralab.lua
1
2923
return { coralab = { acceleration = 0, brakerate = 0, buildangle = 1024, buildcostenergy = 15232, buildcostmetal = 2681, builder = true, buildinggrounddecaldecayspeed = 30, buildinggrounddecalsizex = 8, buildinggrounddecalsizey = 7, buildinggrounddecaltype = "coralab_aoplane.dds", buildpic = "COR...
gpl-2.0
lxl1140989/dmsdk
feeds/luci/libs/httpclient/luasrc/httpclient/receiver.lua
93
6049
--[[ LuCI - Lua Development Framework Copyright 2009 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- requ...
gpl-2.0
flavorzyb/cocos2d-x
samples/Lua/TestLua/Resources/luaScript/PerformanceTest/PerformanceSpriteTest.lua
9
16025
local kMaxNodes = 50000 local kBasicZOrder = 10 local kNodesIncrease = 250 local TEST_COUNT = 7 local s = CCDirector:sharedDirector():getWinSize() ----------------------------------- -- For test functions ----------------------------------- local function performanceActions(sprite) sprite:setPosition(CCPointMake(ma...
gpl-2.0
Sannis/tarantool
test/big/tree_variants.test.lua
7
3051
space = box.schema.space.create('tweedledum') i0 = space:create_index('primary', { type = 'tree', parts = {1, 'num'}, unique = true }) i1 = space:create_index('i1', { type = 'tree', parts = {2, 'num'}, unique = false }) i2 = space:create_index('i2', { type = 'tree', parts = {3, 'num'}, unique = false }) i3 = space:crea...
bsd-2-clause
LanceJenkinZA/prosody-modules
mod_s2s_auth_fingerprint/mod_s2s_auth_fingerprint.lua
31
1380
-- Copyright (C) 2013-2014 Kim Alvefur -- This file is MIT/X11 licensed. module:set_global(); local digest_algo = module:get_option_string(module:get_name().."_digest", "sha1"); local fingerprints = {}; local function hashprep(h) return tostring(h):gsub(":",""):lower(); end local function hashfmt(h) return h:gsu...
mit
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/lups/particleclasses/spheredistortion.lua
1
6595
-- $Id: SphereDistortion.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local SphereDistortion = {} Sp...
gpl-2.0
LightenPan/skynet-yule
yule/simpleweb.lua
1
2541
local skynet = require "skynet" local socket = require "socket" local snax = require "snax" local httpd = require "http.httpd" local sockethelper = require "http.sockethelper" local urllib = require "http.url" local table = table local string = string local mode = ... if mode == "agent" then local function response(...
mit
PichotM/DarkRP
gamemode/modules/fadmin/fadmin/cl_interface/cl_scoreboardServer.lua
5
10825
FAdmin.ScoreBoard.Server.Information = {} -- Compatibility for autoreload FAdmin.ScoreBoard.Server.ActionButtons = {} -- Refresh server buttons when reloading gamemode local function MakeServerOptions() local _, YPos, Width = 20, FAdmin.ScoreBoard.Y + 120 + FAdmin.ScoreBoard.Height / 5 + 20, (FAdmin.ScoreBoard.Wid...
mit
lxl1140989/dmsdk
feeds/luci/applications/luci-watchcat/luasrc/model/cbi/watchcat/watchcat.lua
30
2105
--[[ LuCI - Lua Configuration Interface Copyright 2012 Christian Gagneraud <chris@techworks.ie> 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$ ]]...
gpl-2.0
fegimanam/crd
plugins/webshot.lua
919
1473
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
punisherbot/ma
plugins/webshot.lua
919
1473
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
taha560/ir
plugins/webshot.lua
919
1473
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
mohammad25253/newplugins
plugins/webshot.lua
919
1473
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
fegimanam/crd
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
MrPolicy/HodTG
plugins/SmartKickme.lua
1
1075
local function run(msg, matches) if matches[1] == 'kickme' then local hash = 'kick:'..msg.to.id..':'..msg.from.id redis:set(hash, "waite") return 'Dear member ('..msg.from.username ..')\n youve submitted request his dismissal from the band \n If you agree with this question is yes submit\nWrite\n Yes\n or\n...
gpl-2.0