repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
Samanstar/Learn
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
rigeirani/tele
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
kuoruan/lede-luci
protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_map.lua
32
2615
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Copyright 2013 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local peeraddr, ip6addr local tunlink, defaultroute, metric, ttl, mtu maptype = section:taboption("general", ListValue, "type"...
apache-2.0
RicherMans/audiodataload
tests/testhtkdataloader.lua
1
6126
require 'torch' require 'nn' require 'xlua' -- Add to cpath local info = debug.getinfo(1,'S') local script_path=info.source:sub(2):gsub("testhtkdataloader",'?') package.path = package.path .. ";".. script_path .. ";../".. script_path.. ";../../" ..script_path local modeltester = torch.TestSuite() -- Inits the dataloa...
mit
LinuxTeam98/Linux_TG
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
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/class/generator/actor/ValleyMoon.lua
1
3021
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
tdelc/EmptyEpsilon
scripts/tutorial_04_engineering.lua
2
10398
-- Name: Engineering -- Description: [Station Tutorial] --- ------------------- --- -Goes over controlling the power of each station and repairs. --- --- [Station Info] --- ------------------- ---Power Management: --- -The Engineering officer can route power to systems by selecting a system and moving its power slider...
gpl-2.0
rdmenezes/oolua
helper4.lua
8
3165
--sets options for the different os's function configure_for_os() configuration { "windows" } defines{ "PLATFORM_CHECKED", "WINDOWS_BUILD" } configuration { "vs*" } defines{ "WIN32" } flags { "No64BitChecks"} configuration{"vs*","Debug"} buildoptions {"/Gm","/Zi"} --[[ configuration { "vs20...
mit
Blackdutchie/Zero-K
LuaUI/Widgets/unit_gadget_icons.lua
6
4380
------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Gadget Icons", desc = "Shows icons from gadgets that cannot access the widget stuff ...
gpl-2.0
froggatt/openwrt-luci
contrib/luadoc/lua/luadoc/taglet/standard/tags.lua
93
5221
------------------------------------------------------------------------------- -- Handlers for several tags -- @release $Id: tags.lua,v 1.8 2007/09/05 12:39:09 tomas Exp $ ------------------------------------------------------------------------------- local luadoc = require "luadoc" local util = require "luadoc.util"...
apache-2.0
Knight-Team/KnightGuard-OLD-TG
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
peachoftree/reverseGaliga
reverseGaliga/globals.lua
1
1781
local globals = {} globals.bullets = {} globals.level = 1 globals.firePoints = {} globals.paths = {} globals.paths.allPoints = {} globals.mode = "path" function globals.fire(position, kind) if kind == "ship" then position[2] = position[2] - 10 else position[2] = position[2] + 30 end ...
mit
Blackdutchie/Zero-K
scripts/corvalk.lua
4
7162
local base = piece 'base' --New bits local lUpperCl1 = piece 'lUpperCl1' local rUpperCl1 = piece 'rUpperCl1' local lLowerCl1 = piece 'lLowerCl1' local rLowerCl1 = piece 'rLowerCl1' local lUpperCl2 = piece 'lUpperCl2' local rUpperCl2 = piece 'rUpperCl2' local lLowerCl2 = piece 'lLowerCl2' local rLowerCl2 = pi...
gpl-2.0
LuaDist2/lua-nucleo
lua-nucleo/ensure.lua
2
11414
-------------------------------------------------------------------------------- --- Tools to ensure correct code behaviour -- @module lua-nucleo.ensure -- This file is a part of lua-nucleo library -- @copyright lua-nucleo authors (see file `COPYRIGHT` for the license) --------------------------------------------------...
mit
electricpandafishstudios/Spoon
game/engines/te4-1.4.1/engine/ui/Dropdown.lua
1
3516
-- TE4 - T-Engine 4 -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later version....
gpl-3.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/class/uiset/Minimalist.lua
1
101854
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/general/objects/egos/charms.lua
1
1895
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
moteus/lzmq
examples/perf/remote_lat.lua
16
2160
-- 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...
mit
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/quests/wild-wild-east.lua
1
1058
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
LuaDist2/lua-nucleo
lua-nucleo/timed_queue.lua
3
2062
-------------------------------------------------------------------------------- --- Queue of objects sorted by time -- @module lua-nucleo.times_queue -- This file is a part of lua-nucleo library -- @copyright lua-nucleo authors (see file `COPYRIGHT` for the license) ----------------------------------------------------...
mit
hexahedronic/basewars
basewars_free/gamemode/client/cl_druglab.lua
2
1826
local grayTop = Color(128, 128, 128, 250) local grayBottom = Color(96, 96, 96, 250) surface.CreateFont("DrugLab.GUI", { font = "Roboto", size = 24, weight = 800, }) local function RequestCook( ent, drug ) net.Start( "BaseWars.DrugLab.Menu" ) net.WriteEntity( ent ) net.WriteS...
mit
kuoruan/lede-luci
modules/luci-mod-admin-mini/luasrc/controller/mini/index.lua
74
1261
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.mini.index", package.seeall) function index() local root = node() if not root.lock then root.target = alias("mini") root.index =...
apache-2.0
HandsomeCharming/RPG
Cocos2dx/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Animate3D.lua
6
1692
-------------------------------- -- @module Animate3D -- @extend ActionInterval -- @parent_module cc -------------------------------- -- @function [parent=#Animate3D] setSpeed -- @param self -- @param #float float -------------------------------- -- @function [parent=#Animate3D] setWeight -- @param self --...
gpl-2.0
Tristramg/osrm-backend
profiles/testbot.lua
69
3444
-- Testbot profile -- Moves at fixed, well-known speeds, practical for testing speed and travel times: -- Primary road: 36km/h = 36000m/3600s = 100m/10s -- Secondary road: 18km/h = 18000m/3600s = 100m/20s -- Tertiary road: 12km/h = 12000m/3600s = 100m/30s -- modes: -- 1: normal -- 2: route -- 3: river downstream ...
bsd-2-clause
aphenriques/integral
samples/core/regex/regex.lua
1
2084
-- -- regex.lua -- integral -- -- MIT License -- -- Copyright (c) 2013, 2014, 2020 André Pereira Henriques (aphenriques (at) outlook (dot) 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 ...
mit
vaughamhong/vlc
share/lua/playlist/bbc_co_uk.lua
112
1468
--[[ $Id$ Copyright © 2008 the VideoLAN team Authors: Dominique Leuenberger <dominique-vlc.suse@leuenberger.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 Licens...
gpl-2.0
kuoruan/lede-luci
applications/luci-app-clamav/luasrc/model/cbi/clamav.lua
100
6776
--[[ LuCI ClamAV module Copyright (C) 2015, Itus Networks, Inc. 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 Author: Marko Ratkaj <marko.ratkaj@sar...
apache-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/general/npcs/orc.lua
1
10658
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
HandsomeCharming/RPG
Cocos2dx/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ActionManagerEx.lua
6
1100
-------------------------------- -- @module ActionManagerEx -- @extend Ref -- @parent_module ccs -------------------------------- -- @overload self, char, char, cc.CallFunc -- @overload self, char, char -- @function [parent=#ActionManagerEx] playActionByName -- @param self -- @param #char char -- @p...
gpl-2.0
LinuxTeam98/Linux_TG
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/zones/arena/objects.lua
1
4713
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
teslamint/luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua
14
4221
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" m = Map("network", translate("Interfaces")) m.pageaction = false m:section(SimpleSection).template = "admin_network/iface_overvi...
apache-2.0
Blackdutchie/Zero-K
units/attackdrone.lua
2
3863
unitDef = { unitname = [[attackdrone]], name = [[Firefly]], description = [[Attack Drone]], acceleration = 0.3, airHoverFactor = 4, amphibious = true, brakeRate = 0.3, buildCostEnergy = 50, buildCostMetal = 50, builder ...
gpl-2.0
khavnu/VLCLIB
share/lua/playlist/metachannels.lua
92
2096
--[[ $Id$ Copyright © 2010 VideoLAN and AUTHORS Authors: Rémi Duraffort <ivoire at videolan dot org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at y...
gpl-2.0
vaughamhong/vlc
share/lua/playlist/metachannels.lua
92
2096
--[[ $Id$ Copyright © 2010 VideoLAN and AUTHORS Authors: Rémi Duraffort <ivoire at videolan dot org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at y...
gpl-2.0
Blackdutchie/Zero-K
units/corbhmth.lua
2
5796
unitDef = { unitname = [[corbhmth]], name = [[Behemoth]], description = [[Plasma Artillery Battery - Requires 50 Power]], acceleration = 0, activateWhenBuilt = true, brakeRate = 0, buildAngle ...
gpl-2.0
Blackdutchie/Zero-K
effects/paris.lua
12
4272
-- paris_glow -- paris -- paris_gflash -- paris_sphere return { ["paris_glow"] = { glow = { air = true, class = [[CSimpleParticleSystem]], count = 2, ground = true, water = true, properties = { airdrag ...
gpl-2.0
Blackdutchie/Zero-K
units/spiderassault.lua
5
5125
unitDef = { unitname = [[spiderassault]], name = [[Hermit]], description = [[All Terrain Assault Bot]], acceleration = 0.18, brakeRate = 0.22, buildCostEnergy = 160, buildCostMetal = 160, buildPic = [[spideras...
gpl-2.0
bayas/AutoRunner
Bin/Data/LuaScripts/16_Chat.lua
2
6838
-- Chat example -- This sample demonstrates: -- - Starting up a network server or connecting to it -- - Implementing simple chat functionality with network messages require "LuaScripts/Utilities/Sample" -- Identifier for the chat network messages local MSG_CHAT = 32 -- UDP port we will use local CHAT_SERVER_P...
mit
sleepingwit/premake-core
binmodules/luasocket/test/ftptest.lua
19
3735
local socket = require("socket") local ftp = require("socket.ftp") local url = require("socket.url") local ltn12 = require("ltn12") -- use dscl to create user "luasocket" with password "password" -- with home in /Users/diego/luasocket/test/ftp -- with group com.apple.access_ftp -- with shell set to /sbin/nologin -- se...
bsd-3-clause
moteus/lzmq
examples/zap.lua
15
1952
local zmq = require "lzmq" local zloop = require "lzmq.loop" local function recv_zap(sok) local msg, err = sok:recv_all() if not msg then return nil, err end local req = { version = msg[1]; -- Version number, must be "1.0" sequence = msg[2]; -- Sequence number of request domain = msg...
mit
Cat5TV/tps_skyblock
mods/skyblock/skyblock_levels/register_command.lua
1
2384
--[[ Skyblock for Minetest Copyright (c) 2015 cornernote, Brett O'Donnell <cornernote@gmail.com> Source Code: https://github.com/cornernote/minetest-skyblock License: GPLv3 ]]-- -- register register_privilege minetest.register_privilege('level', 'Can use /level') -- level minetest.register_chatcommand('level', { ...
lgpl-2.1
Blackdutchie/Zero-K
units/armaak.lua
2
6778
unitDef = { unitname = [[armaak]], name = [[Archangel]], description = [[Heavy Anti-Air Jumper]], acceleration = 0.18, brakeRate = 0.2, buildCostEnergy = 550, buildCostMetal = 550, buildPic = [[ARMAAK.png]], buildTime = 5...
gpl-2.0
moononournation/nodemcu-webide
bin/led-text.lua
2
1201
return function (connection, req, args) dofile('httpserver-header.lc')(connection, 200, 'html') local w, h, dataWidth, offset = 10, 6, 36, 0 -- timer id(0-6), interval in ms local tmrId, tmrMs = 4, 200 if req.method == 'POST' then local rd = req.getRequestData() if (rd['data'] ~= nil) then ...
gpl-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/talents/uber/dex.lua
1
9590
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
sleepingwit/premake-core
modules/vstudio/tests/vc2010/test_config_props.lua
8
9262
-- -- tests/actions/vstudio/vc2010/test_config_props.lua -- Validate generation of the configuration property group. -- Copyright (c) 2011-2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vstudio_vs2010_config_props") local vc2010 = p.vstudio.vc2010 local project = p.proj...
bsd-3-clause
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/general/grids/water.lua
1
11029
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/general/objects/gloves.lua
1
2442
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
samuelmaddock/zombie-escape
ZombieEscape/gamemode/cl_init.lua
1
1998
include('shared.lua') --[[--------------------------------------- HUD -----------------------------------------]] CVars.ZombieFOV = CreateClientConVar( "ze_zfov", 110, true, false ) CVars.Vignette = CreateClientConVar( "ze_vignette", 1, true, false ) -- Because vignettes make everything look nicer local VignetteMat...
mit
mahdibagheri/aqa-mp3
plugins/twitter_send.lua
627
1555
do local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local client = OAuth.new(consumer_key, consumer_secret, { RequestToken = "https://api.twitter.com/oauth/request_token", AuthorizeUser = {"https://api.twitter.com/oauth/autho...
gpl-2.0
froggatt/openwrt-luci
libs/sys/luasrc/sys/zoneinfo/tzoffset.lua
72
3904
--[[ LuCI - Autogenerated Zoneinfo Module 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.sys.zoneinfo.tzoffset" OFFSET = { gmt =...
apache-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/maps/towns/last-hope.lua
1
6492
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
musenshen/SandBoxLua
frameworks/cocos2d-x/external/lua/luajit/src/src/host/genminilua.lua
73
11943
---------------------------------------------------------------------------- -- Lua script to generate a customized, minified version of Lua. -- The resulting 'minilua' is used for the build process of LuaJIT. ---------------------------------------------------------------------------- -- Copyright (C) 2005-2013 Mike P...
mit
weinrank/wireshark
epan/wslua/dtd_gen.lua
38
8369
-- dtd_gen.lua -- -- a DTD generator for wireshark -- -- (c) 2006 Luis E. Garcia Ontanon <luis@ontanon.org> -- -- Wireshark - Network traffic analyzer -- By Gerald Combs <gerald@wireshark.org> -- Copyright 1998 Gerald Combs -- -- This program is free software; you can redistribute it and/or -- modify it under the terms...
gpl-2.0
yetsky/packages
net/luci-app-sqm/files/sqm-cbi.lua
4
8072
--[[ LuCI - Lua Configuration Interface Copyright 2014 Steven Barth <steven@midlink.org> Copyright 2014 Dave Taht <dave.taht@bufferbloat.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http:...
gpl-2.0
bayas/AutoRunner
Bin/Data/LuaScripts/24_Urho2DSprite.lua
1
6780
-- Urho2D sprite example. -- This sample demonstrates: -- - Creating a 2D scene with sprite -- - Displaying the scene using the Renderer subsystem -- - Handling keyboard to move and zoom 2D camera -- - Usage of Lua Closure to update scene require "LuaScripts/Utilities/Sample" local scene_ = nil local ...
mit
xAleXXX007x/Witcher-RolePlay
witcherrp/schema/items/weapons/sh_mace_nlif.lua
1
1356
ITEM.name = "Имперская стальная булава" ITEM.desc = "Булава с характерным чёрным окрасом." ITEM.class = "nut_mace_nilf" ITEM.weaponCategory = "primary" ITEM.price = 250 ITEM.category = "Оружие" ITEM.model = "models/morrowind/ebony/mace/w_ebony_mace.mdl" ITEM.width = 4 ITEM.height = 1 ITEM.iconCam = { pos = Vector(-1.0...
mit
Blackdutchie/Zero-K
scripts/cornecro.lua
11
4986
-- original bos animation by Chris Mackey -- converted to lua by psimyn include 'constants.lua' local base, pelvis, torso = piece('base', 'pelvis', 'torso') local shield = piece 'shield' local lathe = piece 'lathe' local emit = piece 'emit' local centerpoint = piece 'centerpoint' local rthigh, ruppercalf, rlowerca...
gpl-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/tilesets/5x5/windy_tunnel.lua
1
1087
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
electricpandafishstudios/Spoon
game/thirdparty/moonscript/compile.lua
5
13011
module("moonscript.compile", package.seeall) local util = require("moonscript.util") local data = require("moonscript.data") local dump = require("moonscript.dump") require("moonscript.compile.format") require("moonscript.compile.line") require("moonscript.compile.value") local ntype, Set = data.ntype, data.Set local c...
gpl-3.0
electricpandafishstudios/Spoon
game/engines/te4-1.4.1/engine/ui/VariableList.lua
1
6617
-- TE4 - T-Engine 4 -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later version....
gpl-3.0
musenshen/SandBoxLua
src/framework/cc/Registry.lua
23
1841
local Registry = class("Registry") Registry.classes_ = {} Registry.objects_ = {} function Registry.add(cls, name) assert(type(cls) == "table" and cls.__cname ~= nil, "Registry.add() - invalid class") if not name then name = cls.__cname end assert(Registry.classes_[name] == nil, string.format("Registry.ad...
mit
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/maps/vaults/auto/greater/demon-nest-3.lua
1
2546
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
mwharris1313/AutoSheet
img/sheet48.lua
4
13136
local options = { frames = { {x=0,y=0,width=48,height=48,}, -- frame 1 {x=48,y=0,width=48,height=48,}, -- frame 2 {x=96,y=0,width=48,height=48,}, -- frame 3 {x=144,y=0,width=48,height=48,}, -- frame 4 {x=192,y=0,width=48,height=48,}, -- frame 5 {x=240,y=0,width=48,height=48,}, -- frame 6 ...
apache-2.0
clofresh/Paradigm_Shift
camera.lua
1
17482
--[[ CAMERA -- Description: Supplies an interface for scrolling, scaling, and rotating a scene. -- Contributors: Osuf Oboys -- Version:3d, April 24, 2009 -- This product is released under the Lovely Public Community License v. 1.0. -- Provided that you do not alter this file and call your project a new version of CAMER...
bsd-3-clause
kuoruan/lede-luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/network.lua
53
2738
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("luci_statistics", translate("Network Plugin Configuration"), translate( "The network plugin provides network based communication between " .. "different collectd instances. Coll...
apache-2.0
3scale/apicast
spec/policy/find_service/host_based_finder_spec.lua
2
1950
local HostBasedFinder = require('apicast.policy.find_service.host_based_finder') local ConfigurationStore = require('apicast.configuration_store') local Configuration = require('apicast.configuration') describe('HostBasedFinder', function() describe('.find_service', function() it('returns the service in the conf...
apache-2.0
liamneit/Cornucopia
Cornucopia/Libs/Sushi-3.0/Classes/TipOwner.lua
1
1643
--[[ Copyright 2008-2015 João Cardoso Sushi is distributed under the terms of the GNU General Public License (or the Lesser GPL). This file is part of Sushi. Sushi 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, ...
gpl-3.0
3scale/apicast
gateway/src/resty/openssl/base.lua
2
1889
local ffi = require('ffi') ffi.cdef([[ typedef long time_t; // https://github.com/openssl/openssl/blob/4ace4ccda2934d2628c3d63d41e79abe041621a7/include/openssl/ossl_typ.h typedef struct x509_store_st X509_STORE; typedef struct x509_st X509; typedef struct X509_crl_st X509_CRL; typedef struct X509_name_st ...
apache-2.0
RockySeven3161/SeedBot
bot/seedbot.lua
1
8640
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
amirilk1414/i4bot
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
3scale/apicast
gateway/src/apicast/policy/soap/soap.lua
1
3327
--- SOAP Policy -- This policy adds support for a very small subset of SOAP. -- This policy basically expects a SOAPAction URI in the SOAPAction header or -- the content-type header. -- The SOAPAction header is used in v1.1 of the SOAP standard: -- https://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383528, whereas t...
apache-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/texts/tutorial/stats-tier/tier3.lua
1
1173
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
Blackdutchie/Zero-K
scripts/mahlazor.lua
6
5101
include "constants.lua" local base = piece 'base' local imma_chargin = piece 'imma_chargin' local mah_lazer = piece 'mah_lazer' local downbeam = piece 'downbeam' local shoop_da_woop = piece 'shoop_da_woop' local flashpoint = piece 'flashpoint' local beam1 = piece 'beam1' local on = false local awake = false; l...
gpl-2.0
saraedum/luci-packages-old
modules/admin-core/luasrc/controller/admin/servicectl.lua
9
1426
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- mo...
apache-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/talents/corruptions/rot.lua
1
14447
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
fusijie/ejoy2d
examples/ex01.lua
19
1027
local ej = require "ejoy2d" local fw = require "ejoy2d.framework" local pack = require "ejoy2d.simplepackage" pack.load { pattern = fw.WorkDir..[[examples/asset/?]], "sample", } local obj = ej.sprite("sample","cannon") local turret = obj.turret -- set position (-100,0) scale (0.5) obj:ps(-100,0,0.5) local obj2 = ...
mit
musenshen/SandBoxLua
src/cocos/extension/DeprecatedExtensionEnum.lua
40
1369
_G.kCCControlStepperPartMinus = cc.CONTROL_STEPPER_PART_MINUS _G.kCCControlStepperPartPlus = cc.CONTROL_STEPPER_PART_PLUS _G.kCCControlStepperPartNone = cc.CONTROL_STEPPER_PART_NONE _G.CCControlEventTouchDown = cc.CONTROL_EVENTTYPE_TOUCH_DOWN _G.CCControlEventTouchDragInside = cc.CONTROL_...
mit
khavnu/VLCLIB
share/lua/modules/simplexml.lua
103
3732
--[==========================================================================[ simplexml.lua: Lua simple xml parser wrapper --[==========================================================================[ Copyright (C) 2010 Antoine Cellerier $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> This progra...
gpl-2.0
vaughamhong/vlc
share/lua/modules/simplexml.lua
103
3732
--[==========================================================================[ simplexml.lua: Lua simple xml parser wrapper --[==========================================================================[ Copyright (C) 2010 Antoine Cellerier $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> This progra...
gpl-2.0
bayas/AutoRunner
Bin/Data/LuaScripts/18_CharacterDemo.lua
1
17162
-- Moving character example. -- This sample demonstrates: -- - Controlling a humanoid character through physics -- - Driving animations using the AnimationController component -- - Manual control of a bone scene node -- - Implementing 1st and 3rd person cameras, using raycasts to avoid the 3rd person ca...
mit
Blackdutchie/Zero-K
LuaRules/Configs/cai/accessory/no_stuck_in_factory.lua
13
3079
-- function widget:GetInfo() -- return { -- name = "UnitNoStuckInFactory", -- desc = "Always move unit away from factory's build yard & Remove an accidental build unit command from unit from factory. Prevent case of unit stuck in factory & to make sure unit can complete their move queue.", -- au...
gpl-2.0
nicoNaN/ludum-dare-33
lib/arc/navi.lua
1
19465
local draw = require(arc_path .. 'draw') local bool,calc,str,tab,misc = unpack(require(arc_path .. 'code')) local _,_,_choice = unpack(require(arc_path .. 'input')) -- shortcuts local lg = love.graphics local lt = love.timer -- a bloc is text of one color and with no line breaks. -- messages are played out in blocs ...
gpl-2.0
gwash/ion-3
etc/cfg_statusbar.lua
3
2978
-- -- Ion statusbar module configuration file -- -- Create a statusbar mod_statusbar.create{ -- First screen, bottom left corner screen=0, pos='bl', -- Set this to true if you want a full-width statusbar fullsize=false, -- Swallow systray windows systray=true, -- Template. Tokens %st...
lgpl-2.1
Facerafter/starcitizen-tools
extensions/Scribunto/engines/LuaCommon/lualib/mw.site.lua
6
2264
local site = {} function site.setupInterface( info ) -- Boilerplate site.setupInterface = nil local php = mw_interface mw_interface = nil site.siteName = info.siteName site.server = info.server site.scriptPath = info.scriptPath site.stylePath = info.stylePath site.currentVersion = info.currentVersion site.s...
gpl-3.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/talents/cunning/survival.lua
1
4381
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/general/traps/annoy.lua
1
2184
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
khavnu/VLCLIB
share/lua/playlist/pluzz.lua
105
3740
--[[ $Id$ Copyright © 2011 VideoLAN Authors: Ludovic Fauvet <etix at l0cal dot com> 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 l...
gpl-2.0
3scale/apicast
gateway/src/apicast/oauth/oidc.lua
2
6503
local JWT = require 'resty.jwt' local jwt_validators = require 'resty.jwt-validators' local lrucache = require 'resty.lrucache' local util = require 'apicast.util' local TemplateString = require 'apicast.template_string' local setmetatable = setmetatable local ngx_now = ngx.now local format = string.format local type...
apache-2.0
hexahedronic/basewars
basewars_free/entities/entities/bw_base_moneyprinter.lua
2
9219
--easylua.StartEntity("bw_base_moneyprinter") local fontName = "BaseWars.MoneyPrinter" ENT.Base = "bw_base_electronics" ENT.Model = "models/props_lab/reciever01a.mdl" ENT.Skin = 0 ENT.Capacity = 10000 ENT.Money = 0 ENT.MaxPaper = 2500 ENT.PrintInterval = 1.1 ENT.PrintAmount = 3 ENT.MaxLevel = 10 ENT.Upgra...
mit
3scale/apicast
benchmark/ips.lua
2
8544
local function to_i(str) return tonumber(str:gsub('[^%d]', ''), 10) end local NANOSECONDS_PER_SECOND = to_i('1 000 000 000') local NANOSECONDS_PER_100MS = to_i('100 000 000') local Timing = { } local ffi = require 'ffi' local tab_new = require "table.new" ffi.cdef [[ typedef int clockid_t; typedef long time_t; str...
apache-2.0
protomech/epgp-dkp-reloaded
libs/AceEvent-3.0/AceEvent-3.0.lua
50
4772
--- AceEvent-3.0 provides event registration and secure dispatching. -- All dispatching is done using **CallbackHandler-1.0**. AceEvent is a simple wrapper around -- CallbackHandler, and dispatches all game events or addon message to the registrees. -- -- **AceEvent-3.0** can be embeded into your addon, either explicit...
bsd-3-clause
isdriven/tsvloader
tsvloader.lua
1
4409
--[[ ---------------------- tsvloader ---------------------- Author: isdriven Licence: MIT ]]-- module("tsvloader", package.seeall) FETCHNG_TITLE = 1 FETCHNG_BODY = 2 FETCHNG_MULTI = 3 local mode = FETCHNG_TITLE local delimiter = "\t" local rows = {} local line = {} local titles = {} local column = 1 local ...
mit
lmangani/ntopng
scripts/lua/modules/dkjson.lua
17
25626
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.3* In the default configuration this module writes no global valu...
gpl-3.0
Blackdutchie/Zero-K
units/neebcomm.lua
8
2422
unitDef = { unitname = [[neebcomm]], name = [[Neeb Comm]], description = [[Ugly Turkey]], acceleration = 0.2, brakeRate = 0.205, buildCostEnergy = 1200, buildCostMetal = 1200, buildDistance = 120, builder = true, buildopt...
gpl-2.0
3scale/apicast
gateway/src/apicast/upstream.lua
1
4701
--- @classmod Upstream -- Abstracts how to forward traffic to upstream server. --- @usage --- local upstream = Upstream.new('http://example.com') --- upstream:rewrite_request() -- set Host header to 'example.com' --- -- store itself in `context` table for later use in balancer phase and call `ngx.exec`. --- upstream:ca...
apache-2.0
Maxsteam/HHHHLLLL
plugins/stats.lua
458
4098
-- Saves the number of messages from a user -- Can check the number of messages with !stats do local NUM_MSG_MAX = 5 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name....
gpl-2.0
saraedum/luci-packages-old
applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_mini.lua
141
1031
--[[ smap_devinfo - SIP Device Information (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 $Id$ ]]-- require("luci.i18n") re...
apache-2.0
froggatt/openwrt-luci
applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_mini.lua
141
1031
--[[ smap_devinfo - SIP Device Information (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 $Id$ ]]-- require("luci.i18n") re...
apache-2.0
ld-test/luasocket-unix
src/http.lua
121
12193
----------------------------------------------------------------------------- -- HTTP/1.1 client support for the Lua language. -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: http.lua,v 1.71 2007/10/13 23:55:20 diego Exp $ ----------------------------------------------------------------------------- -----...
mit