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 |
|---|---|---|---|---|---|
larber/domoticz | scripts/dzVents/runtime/device-adapters/kwh_device.lua | 5 | 1123 | return {
baseType = 'device',
name = 'kWh device adapter',
matches = function (device, adapterManager)
local res = (device.deviceSubType == 'kWh')
if (not res) then
adapterManager.addDummyMethod(device, 'updateElectricity')
end
return res
end,
process = function (device, data, domoticz, utils, adapt... | gpl-3.0 |
facebokiii/Uproject | plugins/media.lua | 376 | 1679 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
teleblue/telele | plugins/gps.lua | 14 | 4662 | local function run(msg, matches)
local lat = matches[2]
local lon = matches[3]
local receiver = get_receiver(msg)
if matches[1] == "loc" then
send_location(receiver, lat, lon, ok_cb, false)
elseif matches[1] == "map" then
local zooms = {10, 16}
local urls = {}
for i = 1, #zooms do
local zoom = zooms[i]
... | gpl-2.0 |
amirb8/TELEHONES- | plugins/ingroup.lua | 371 | 44212 | 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[tostr... | gpl-2.0 |
DevMoataz/Maestro | plugins/newgroup.lua | 2 | 36187 | --[[
_ _ _ _____ _____ ____ ____
/ \ / \ / \ | ____|___|_ _| /_\ \ / __ \ Đєⱴ 💀: @MaEsTrO_0
/ / \/ / \ / _ \ | _| / __| | | | |_\_/| | | | Đєⱴ 💀: @devmaestr0
/ / \ \/ \ \ / ___ \| |___\__ \ | | | | \ \| |__| | Đєⱴ ฿๏ͳ💀: @iqMaestroBot
/_/ \/ ... | gpl-2.0 |
Scentus/PonyPlayerModels | pony_player_models/lua/ppm/preset.lua | 2 | 2568 |
PPM.bannedVars = {"m_bodyt0"}
-- NOTABLE LIMITATION: WILL REMOVE SPACES FROM STRINGS TYPE ITEMS BEFORE SAVING AND WILL REFUSE TO LOAD THEM PROPERLY
-- (THIS IS A LIMITATION OF THE ORIGINAL FORMAT FROM A PRIOR AUTHOR AND MAY BE FIXED LATER WITH A WORKAROUND IF IT EVER BECOMES NEEDED)
function PPM.PonyDataToString( pon... | gpl-3.0 |
stephank/luci | libs/web/luasrc/http/protocol/mime.lua | 88 | 2933 | --[[
HTTP protocol implementation for LuCI - mime handling
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.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://www.... | apache-2.0 |
jsphweid/finale-macros | lua/time-sigs-score-big.lua | 2 | 1049 | function plugindef()
finaleplugin.Author = "Joseph Weidinger"
finaleplugin.Version = "1.0"
finaleplugin.Date = "July 02, 2015"
finaleplugin.RequireSelection = false
finaleplugin.CategoryTags = "make big time signatures in score"
return "Time Signatures - Score - Make Big", "Time Signatures - Sco... | mit |
artynet/luci | modules/luci-base/luasrc/tools/status.lua | 1 | 6237 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.tools.status", package.seeall)
local uci = require "luci.model.uci".cursor()
local ipc = require "luci.ip"
local function dhcp_leases_common(family)
local rv = { }
local nfs = require "nixio.fs"... | apache-2.0 |
UnluckyNinja/PathOfBuilding | Data/2_6/Skills/other.lua | 1 | 22167 | -- This file is automatically generated, do not edit!
-- Path of Building
--
-- Other active skills
-- Skill data (c) Grinding Gear Games
--
local skills, mod, flag, skill = ...
skills["Melee"] = {
name = "Default Attack",
hidden = true,
color = 4,
description = "Strike your foes down with a powerful blow.",
skil... | mit |
Wiladams/LJIT2perfmon | testy/showeventinfo.lua | 1 | 19887 | package.path = package.path..";".."../?.lua"
local ffi = require("ffi")
local bit = require("bit")
local band = bit.band
local bor = bit.bor
local pfm = require("pfmlib")
local common = require("test_common");
local fun = require("fun")();
local S = require("syscall");
common.appendDict(_G, common)
common.appendDict... | mit |
akh00/kong | spec/02-integration/05-proxy/10-server_tokens_spec.lua | 4 | 7331 | local helpers = require "spec.helpers"
local constants = require "kong.constants"
local default_server_header = _KONG._NAME .. "/" .. _KONG._VERSION
local function start(config)
return function()
helpers.dao.apis:insert {
name = "api-1",
upstream_url = "http://localhost:9999/headers-inspect",
... | apache-2.0 |
UnluckyNinja/PathOfBuilding | Classes/ImportTab.lua | 1 | 32862 | -- Path of Building
--
-- Module: Import Tab
-- Import/Export tab for the current build.
--
local launch, main = ...
local ipairs = ipairs
local t_insert = table.insert
local ImportTabClass = common.NewClass("ImportTab", "ControlHost", "Control", function(self, build)
self.ControlHost()
self.Control()
self.build ... | mit |
djkamran021/BY | plugins/msg-checks.lua | 8 | 13951 | --Begin msg_checks.lua By @SoLiD
local TIME_CHECK = 2
local function pre_process(msg)
local data = load_data(_config.moderation.data)
local chat = msg.to.id
local user = msg.from.id
local is_channel = msg.to.type == "channel"
local is_chat = msg.to.type == "chat"
local auto_leave = 'auto_leave_bot'
local hash = "gp_la... | gpl-3.0 |
spoconnor/ElixirMessagingServer | EclipseWorkspace/LuaClient/runtime/win32/http.lua | 45 | 12330 | -----------------------------------------------------------------------------
-- HTTP/1.1 client support for the Lua language.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
---------------------------------------------------------------------... | mit |
magx2/nsn-money-changer | gnuplot/share/lua/gnuplot-tikz.lua | 1 | 77068 | --[[
This is the execution script for the `Lua generic terminal' driver.
This script provides an interface to the PGF/TikZ package for LaTeX.
Copyright 2008 Peter Hedwig <peter@affenbande.org>
Permission to use, copy, and distribute this software and its
documentation for any purpose wit... | apache-2.0 |
UnluckyNinja/PathOfBuilding | Data/3_0/Bases/body.lua | 1 | 29096 | -- This file is automatically generated, do not edit!
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Plate Vest"] = {
type = "Body Armour",
subType = "Armour",
tags = { default = true, armour = true, body_armour = true, str_armour = true, },
armour = { ArmourBase = 19, MovementPenalty = 3, ... | mit |
Scentus/PonyPlayerModels | pony_player_models/lua/ppm/pony_player.lua | 2 | 13963 |
/////////////////////////////////////////////////////////////////SHARED
local BODYGROUP_BODY = 1
local BODYGROUP_HORN = 2
local BODYGROUP_WING = 3
local BODYGROUP_MANE = 4
local BODYGROUP_MANE_LOW = 5
local BODYGROUP_TAIL = 6
local BODYGROUP_CMARK = 7
local BODYGROUP_EYELASH = 8
local EYES_COUNT = 10
local MARK_C... | gpl-3.0 |
gragumilo/BolScripts | TristanaMechanics.lua | 5 | 24701 | --[[
_____ _____ __ .__
/ \_______ / _ \________/ |_|__| ____ __ __ ____ ____
/ \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \
/ Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> )
\____|__ /__| \___... | gpl-2.0 |
spoconnor/ElixirMessagingServer | EclipseWorkspace/LuaClient/runtime/win32/extern.lua | 48 | 2506 | function clone(object)
local lookup_table = {}
local function _copy(object)
if type(object) ~= "table" then
return object
elseif lookup_table[object] then
return lookup_table[object]
end
local new_table = {}
lookup_table[object] = new_table
... | mit |
Daniex0r/project-roleplay-rp | resources/system-real/c_cigar.lua | 1 | 3691 | local l_cigar = { }
local r_cigar = { }
local deagle = { }
local isLocalPlayerSmokingBool = false
function setSmoking(player, state, hand)
setElementData(player,"smoking",state, false)
if not (hand) or (hand == 0) then
setElementData(player, "smoking:hand", 0, false)
else
setElementData(player, "smoking:hand", 1... | gpl-2.0 |
minism/love-analog | main.lua | 1 | 3413 | require 'math'
require 'os'
require 'leaf'
twoPI = math.pi * 2
scrw, scrh = love.graphics.getWidth(), love.graphics.getHeight()
-- Namespace imports
console = leaf.console
time = leaf.time
Object = leaf.Object
Rect = leaf.Rect
List = leaf.List
Queue = leaf.Queue
SceneNode = leaf.SceneNode
... | bsd-2-clause |
doyousketch2/theTemplate | states/game.lua | 1 | 4870 | --~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local track = ''
local bgmDir = 'data/music/'
local songs = fil .getDirectoryItems( bgmDir )
local enemy = require 'libs.enemy'
local e = {} -- list of enemies
local eMax = 200 -- max amount of enemies on screen at once
local player = { segments = ... | gpl-3.0 |
mrgodem/kaiser | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
ozhanf/xy- | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
dxmgame/dxm-cocos-demo | src/lua-fantasy-warrior-3d/src/custom/api/lua_cocos2dx_custom_api.lua | 9 | 2277 | --------------------------------
-- @module cc
--------------------------------------------------------
-- the cc ShadowSprite
-- @field [parent=#cc] ShadowSprite#ShadowSprite ShadowSprite preloaded module
--------------------------------------------------------
-- the cc Effect3D
-- @field [parent=#cc] Effect3D#Eff... | mit |
akh00/kong | kong/api/crud_helpers.lua | 1 | 7961 | local cjson = require "cjson"
local utils = require "kong.tools.utils"
local responses = require "kong.tools.responses"
local app_helpers = require "lapis.application"
local decode_base64 = ngx.decode_base64
local encode_base64 = ngx.encode_base64
local encode_args = ngx.encode_args
local tonu... | apache-2.0 |
mneudert/caribou | modules/tools/recentchanges.lua | 1 | 1974 | local fs = require 'fs'
local os = require 'os'
local path = require 'path'
local table = require 'table'
local Layout = require 'layout'
local orderedPairs = require 'utils/orderedPairs'
-----------------------------------------------------------------------------
-- Renders page with recently changed lemmas.
--
-- ... | mit |
dmccuskey/dmc-wamp | examples/dmc-wamp-rpc-callee/dmc_corona/lib/dmc_lua/lib/bit/numberlua.lua | 115 | 13399 | --[[
LUA MODULE
bit.numberlua - Bitwise operations implemented in pure Lua as numbers,
with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces.
SYNOPSIS
local bit = require 'bit.numberlua'
print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff
-- Interface providing strong Lua 5.2 '... | mit |
dmccuskey/dmc-wamp | dmc_corona/lib/dmc_lua/lib/bit/numberlua.lua | 115 | 13399 | --[[
LUA MODULE
bit.numberlua - Bitwise operations implemented in pure Lua as numbers,
with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces.
SYNOPSIS
local bit = require 'bit.numberlua'
print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff
-- Interface providing strong Lua 5.2 '... | mit |
Sponk/NeoEditor | SDK/LuaApi/ThemedButton.lua | 1 | 1349 | dofile("Button.lua")
--- The ThemedButton class
-- The ThemedButton class contains primitives to display and configure
-- UI based buttons. You can specify a callback that will be called when the button is pressed.
-- This version of a button is themable, i.e. it loads sprites and displays them
-- instead of using pla... | gpl-2.0 |
nimaghorbani/telenima2 | plugins/linkpv.lua | 1 | 31162 | 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 |
helkarakse/TickProfilerDisplay | src/startup/marketStartup.lua | 2 | 1478 | --[[
MacroStartup Version 1.1 Beta
Do not modify, copy or distribute without permission of author
Helkarakse, 20130614
Changelog:
- 1.1 - Changed the startup code to pull latest copy from github instead of private server, 20131202
]]--
-- File array of github links
local fileArray = {
{link = "https... | gpl-2.0 |
RicoP/vlcfork | share/lua/sd/jamendo.lua | 58 | 6732 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
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 So... | gpl-2.0 |
gitTerebi/OpenRA | mods/cnc/maps/gdi05a/gdi05a.lua | 19 | 6681 | RepairThreshold = { Easy = 0.3, Normal = 0.6, Hard = 0.9 }
ActorRemovals =
{
Easy = { Actor167, Actor168, Actor190, Actor191, Actor193, Actor194, Actor196, Actor198, Actor200 },
Normal = { Actor167, Actor194, Actor196, Actor197 },
Hard = { },
}
GdiTanks = { "mtnk", "mtnk" }
GdiApc = { "apc" }
GdiInfantry = { "e1",... | gpl-3.0 |
pins-ocs/OCP-tests | test-gtocX_2burn_pars/data/gtocX_2burn_pars_Data.lua | 1 | 4709 | --[[
/*-----------------------------------------------------------------------*\
| file: gtocX_2burn_pars_Data.lua |
| |
| version: 1.0 date 28/3/2020 |
| ... | gpl-2.0 |
wiox/archive | gmod-defibrillator-master/lua/weapons/weapon_ttt_defib.lua | 2 | 6252 | if SERVER then
resource.AddFile("materials/vgui/ttt/icon_rg_defibrillator.png")
end
local STATE_NONE, STATE_PROGRESS, STATE_ERROR = 0, 1, 2
local color_red = Color(255, 0, 0)
SWEP.Base = "weapon_tttbase"
SWEP.HoldType = "slam"
SWEP.ViewModel = Model("models/weapons/v_c4.mdl")
SWEP.WorldModel = Model("models/weapon... | unlicense |
pchote/OpenRA | mods/d2k/maps/atreides-02b/atreides02b.lua | 2 | 2641 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you 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 vers... | gpl-3.0 |
pchote/OpenRA | mods/d2k/maps/ordos-03a/ordos03a-AI.lua | 4 | 1862 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you 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 vers... | gpl-3.0 |
ahmedcharles/Mudlet | src/mudlet-lua/lua/geyser/GeyserTests.lua | 22 | 5965 | --------------------------------------
-- --
-- The Geyser Layout Manager by guy --
-- --
--------------------------------------
-- TESTS FOR GEYSER --
--- Test labels. Creates 101 Labels of varying hue and transparency.
function Geyser.testLabels()
... | gpl-2.0 |
artynet/luci | applications/luci-app-mwan3/luasrc/model/cbi/mwan/notify.lua | 7 | 1813 | -- Copyright 2014 Aedan Renner <chipdankly@gmail.com>
-- Copyright 2018 Florian Eckert <fe@dev.tdt.de>
-- Licensed to the public under the GNU General Public License v2.
local fs = require "nixio.fs"
local ut = require "luci.util"
local script = "/etc/mwan3.user"
local m, f, t
m = SimpleForm("luci", translate("MWAN ... | apache-2.0 |
timbeaudet/build_automation | build/make_project.lua | 1 | 4560 | --
-- Premake5 script for creating a Visual Studio, XCode or CodeLite workspace for the TEMPLATE_PROJECT_NAME project.
-- Requires Premake5 from: http://industriousone.com/
--
-- Available on github: https://www.github.com/timbeaudet/build_automation/ under the unliscense agreement.
----------------------------------... | unlicense |
stephank/luci | applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua | 80 | 1397 | --[[
Luci configuration model for statistics - collectd ping plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.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 ... | apache-2.0 |
delram/crii | plugins/banhammer.lua | 106 | 11894 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
djkamran021/BY | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-3.0 |
artynet/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/cpu.lua | 3 | 1336 | -- 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("CPU Plugin Configuration"),
translate("The cpu plugin collects basic statistics about the processor usage."))
-- collectd_cpu config section
s = m:sect... | apache-2.0 |
aqasaeed/mamad | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
SatoshiNXSimudrone/sl4a-damon-clone | lua/luasocket/etc/forward.lua | 61 | 2077 | -- load our favourite library
local dispatch = require("dispatch")
local handler = dispatch.newhandler()
-- make sure the user knows how to invoke us
if table.getn(arg) < 1 then
print("Usage")
print(" lua forward.lua <iport:ohost:oport> ...")
os.exit(1)
end
-- function to move data from one socket to t... | apache-2.0 |
stephank/luci | protocols/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua | 7 | 3622 | --[[
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... | apache-2.0 |
Daniex0r/project-roleplay-rp | resources/system-aut/s_pasy.lua | 1 | 1433 | function toggleWindowa(source)
local thePlayer = source
local theVehicle = getPedOccupiedVehicle(thePlayer)
if theVehicle then
if hasVehicleWindows(theVehicle) then
if (getVehicleOccupant(theVehicle) == thePlayer) or (getVehicleOccupant(theVehicle, 1) == thePlayer) then
if not (isVehicleWindowUp(theVehicle... | gpl-2.0 |
dmccuskey/dmc-wamp | examples/dmc-wamp-publish/main.lua | 1 | 2429 | --====================================================================--
-- WAMP Basic Publish
--
-- Basic Publish test for the WAMP library
--
-- Sample code is MIT licensed, the same license which covers Lua itself
-- http://en.wikipedia.org/wiki/MIT_License
-- Copyright (C) 2014-2015 David McCuskey. All Rights Reser... | mit |
dani-sj/danibot | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
ondravondra/vlc | share/lua/sd/icecast.lua | 82 | 2757 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 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
... | gpl-2.0 |
akh00/kong | spec/03-plugins/27-request-termination/02-access_spec.lua | 2 | 5144 | local helpers = require "spec.helpers"
local cjson = require "cjson"
describe("Plugin: request-termination (access)", function()
local client, admin_client
setup(function()
local api1 = assert(helpers.dao.apis:insert {
name = "api-1",
hosts = { "api1.request-termination.com" },
upstream_url ... | apache-2.0 |
artynet/luci | libs/luci-lib-px5g/lua/px5g/util.lua | 170 | 1148 | --[[
* px5g - Embedded x509 key and certificate generator based on PolarSSL
*
* Copyright (C) 2009 Steven Barth <steven@midlink.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License, version 2.1 as published by the Free ... | apache-2.0 |
akh00/kong | spec/03-plugins/26-oauth2/03-access_spec.lua | 1 | 85246 | local cjson = require "cjson"
local helpers = require "spec.helpers"
local utils = require "kong.tools.utils"
local function provision_code(host, extra_headers, client_id)
local request_client = helpers.proxy_ssl_client()
local res = assert(request_client:send {
method = "POST",
path = "/oauth2/authorize",... | apache-2.0 |
Daniex0r/project-roleplay-rp | resources/system-policji/c_sirens.lua | 1 | 2853 | local sounds = { }
-- Bind Keys required
function bindKeys(res)
bindKey("n", "down", toggleSirens)
for key, value in ipairs(getElementsByType("vehicle")) do
if isElementStreamedIn(value) then
if getElementData(value, "lspd:siren") then
sounds[value] = playSound3D("siren.wav", 0, 0, 0, true)
attachElem... | gpl-2.0 |
UnluckyNinja/PathOfBuilding | Data/3_0/EnchantmentBoots.lua | 3 | 3230 | -- Item data (c) Grinding Gear Games
return {
["CRUEL"] = {
"Adds 16 to 24 Fire Damage if you've Killed Recently",
"Adds 16 to 24 Cold Damage if you've been Hit Recently",
"Adds 1 to 56 Lightning Damage if you haven't Killed Recently",
"Adds 44 to 64 Chaos Damage if you've taken a Critical Strike Recently",
... | mit |
urzq/SpaceFighter | src/cocos2d/plugin/luabindings/auto/api/AgentManager.lua | 146 | 1798 |
--------------------------------
-- @module AgentManager
-- @parent_module plugin
--------------------------------
--
-- @function [parent=#AgentManager] getSocialPlugin
-- @param self
-- @return plugin::ProtocolSocial#plugin::ProtocolSocial ret (return value: cc.plugin::ProtocolSocial)
-------------------... | mit |
zhs007/sanguo | sanguo/cocos2d/plugin/luabindings/auto/api/AgentManager.lua | 146 | 1798 |
--------------------------------
-- @module AgentManager
-- @parent_module plugin
--------------------------------
--
-- @function [parent=#AgentManager] getSocialPlugin
-- @param self
-- @return plugin::ProtocolSocial#plugin::ProtocolSocial ret (return value: cc.plugin::ProtocolSocial)
-------------------... | mit |
akh00/kong | spec/03-plugins/07-loggly/01-log_spec.lua | 3 | 4995 | local helpers = require "spec.helpers"
local cjson = require "cjson"
local UDP_PORT = 20000
describe("Plugin: loggly (log)", function()
local client
setup(function()
local api1 = assert(helpers.dao.apis:insert {
name = "api-1",
hosts = { "logging.com" },
upstream_url = "http://mockbin.com"
... | apache-2.0 |
UnluckyNinja/PathOfBuilding | Classes/CheckBoxControl.lua | 1 | 2127 | -- Path of Building
--
-- Class: Check Box Control
-- Basic check box control.
--
local launch, main = ...
local CheckBoxClass = common.NewClass("CheckBoxControl", "Control", "TooltipHost", function(self, anchor, x, y, size, label, changeFunc, tooltipText)
self.Control(anchor, x, y, size, size)
self.TooltipHost(tool... | mit |
ondravondra/vlc | share/lua/playlist/france2.lua | 113 | 2115 | --[[
$Id$
Copyright © 2008 the VideoLAN team
Authors: Antoine Cellerier <dionoea 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 ... | gpl-2.0 |
LucentW/s-uzzbot | plugins/help.lua | 4 | 5209 | do
function pairsByKeys(t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
end
end
return ... | gpl-2.0 |
mrfoxirani/teleseed-2 | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
marshmellow42/proxmark3 | client/scripts/lf_bulk_program.lua | 5 | 4681 | --
-- lf_bulk_program.lua - A tool to clone a large number of tags at once.
-- Updated 2017-04-18
--
-- The getopt-functionality is loaded from pm3/client/lualibs/getopt.lua
-- Have a look there for further details
getopt = require('getopt')
bit32 = require('bit32')
usage = [[ script run lf_bulk_program.lua -f facilit... | gpl-2.0 |
artynet/luci | modules/luci-base/luasrc/sgi/uhttpd.lua | 79 | 1956 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require "nixio.util"
require "luci.http"
require "luci.sys"
require "luci.dispatcher"
require "luci.ltn12"
function handle_request(env)
exectime = os.clock()
local renv = {
CONTENT_LENGTH = env.CONTENT_LEN... | apache-2.0 |
dmccuskey/dmc-wamp | examples/dmc-wamp-publish/dmc_corona/dmc_sockets/async_tcp.lua | 14 | 12640 | --====================================================================--
-- dmc_sockets/async_tcp.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2014-2015 David McCuskey
Permission is hereby gr... | mit |
changeway/packages | net/prosody/files/prosody.cfg.lua | 65 | 9428 | -- Prosody Example Configuration File
--
-- Information on configuring Prosody can be found on our
-- website at https://prosody.im/doc/configure
--
-- Tip: You can check that the syntax of this file is correct
-- when you have finished by running this command:
-- prosodyctl check config
-- If there are any errors,... | gpl-2.0 |
nimaghorbani/telenima2 | plugins/bankickp.lua | 1 | 10514 | 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 |
LucentW/s-uzzbot | plugins/pokedex.lua | 3 | 1803 | do
local images_enabled = true;
local function get_sprite(path)
local url = "http://pokeapi.co/"..path
print(url)
local b,c = http.request(url)
local data = json:decode(b)
local image = data.image
return image
end
local function callback(extra)
send_msg(extra.receiver, extra.text,... | gpl-2.0 |
BlubBlab/rom-bot | classes/inventoryitem.lua | 1 | 3230 | include("item.lua");
CInventoryItem = class(CItem,
function( self, slotnumber )
self.Location = "inventory"
self.Available = false; -- If slot is in unrented bag then = false
self.SlotNumber = slotnumber
self.BagId = 0
if self.SlotNumber ~= 0 and self.SlotNumber ~= nil then
self:update()
... | mit |
VurtualRuler98/kswep2 | lua/entities/sent_kgrent_law.lua | 1 | 1682 | ENT.Type = "Anim"
ENT.Base = "sent_kgren_base"
ENT.PrintName = "Grenade"
ENT.Author = "VurtualRuler98"
ENT.Contact = "steam"
ENT.Purpose = "Getting more ammo!"
ENT.Instructions = "Spawn. Use. Reload."
ENT.Category = "Vurtual's base"
ENT.DetFragMagnitude="150"
ENT.DetFragRadius="768"
ENT.Spawnable = false
ENT.Ad... | apache-2.0 |
emadni/telelord-bot | plugins/anti_spam.lua | 102 | 3744 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
stephank/luci | contrib/luadoc/lua/luadoc/lp.lua | 175 | 4389 | ----------------------------------------------------------------------------
-- Lua Pages Template Preprocessor.
--
-- @release $Id: lp.lua,v 1.7 2007/04/18 14:28:39 tomas Exp $
----------------------------------------------------------------------------
local assert, error, getfenv, loadstring, setfenv = assert, erro... | apache-2.0 |
dmccuskey/dmc-wamp | dmc_corona/lib/dmc_lua/lua_error.lua | 46 | 3628 | --====================================================================--
-- lua_error.lua
--
-- Documentation:
-- * http://github.com/dmccuskey/lua-error
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2014-2015 David McCuskey. All Rights Reserved.
P... | mit |
dxmgame/dxm-cocos-demo | src/lua-fantasy-warrior-3d/Resources/src/cocos/cocos2d/extern.lua | 39 | 2506 |
function clone(object)
local lookup_table = {}
local function _copy(object)
if type(object) ~= "table" then
return object
elseif lookup_table[object] then
return lookup_table[object]
end
local new_table = {}
lookup_table[object] = new_table
... | mit |
UnluckyNinja/PathOfBuilding | Classes/ItemDBControl.lua | 1 | 7831 | -- Path of Building
--
-- Class: Item DB
-- Item DB control.
--
local launch, main = ...
local pairs = pairs
local ipairs = ipairs
local t_insert = table.insert
local m_max = math.max
local ItemDBClass = common.NewClass("ItemDB", "ListControl", function(self, anchor, x, y, width, height, itemsTab, db)
self.ListContr... | mit |
mymedia2/it_cat_butler | plugins/configure.lua | 8 | 3170 | local config = require 'config'
local u = require 'utilities'
local api = require 'methods'
local plugin = {}
local function cache_chat_title(chat_id, title)
print('caching title...')
local key = 'chat:'..chat_id..':title'
db:set(key, title)
db:expire(key, config.bot_settings.cache_time.chat_titles)
... | gpl-2.0 |
soheil22222222/ub | plugins/inSuper.lua | 1 | 75851 | --Begin supergrpup.lua
--Check members #Add supergroup
local function check_member_super(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
if success == 0 then
send_large_msg(receiver, "Promote me to admin first!")
end
for k,v in pairs(result... | gpl-2.0 |
moltafet35/ssssis | plugins/steam.lua | 645 | 2117 | -- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI
do
local BASE_URL = 'http://store.steampowered.com/api/appdetails/'
local DESC_LENTH = 200
local function unescape(str)
str = string.gsub( str, '<', '<' )
str = string.gsub( str, '>', '>' )
str = string.gsub( str, '"', '"' )
str... | gpl-2.0 |
Whit3Tig3R/SpammBot | plugins/steam.lua | 645 | 2117 | -- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI
do
local BASE_URL = 'http://store.steampowered.com/api/appdetails/'
local DESC_LENTH = 200
local function unescape(str)
str = string.gsub( str, '<', '<' )
str = string.gsub( str, '>', '>' )
str = string.gsub( str, '"', '"' )
str... | gpl-2.0 |
aqasaeed/mamad | plugins/steam.lua | 645 | 2117 | -- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI
do
local BASE_URL = 'http://store.steampowered.com/api/appdetails/'
local DESC_LENTH = 200
local function unescape(str)
str = string.gsub( str, '<', '<' )
str = string.gsub( str, '>', '>' )
str = string.gsub( str, '"', '"' )
str... | gpl-2.0 |
Perkovec/starwars-names-lua | src/names.lua | 3 | 1034 | return {
"4-LOM",
"Aayla Secura",
"Admiral Thrawn",
"Ahsoka Tano",
"Anakin Solo",
"Asajj Ventress",
"Aurra Sing",
"Senator Bail Organa",
"Barriss Offee",
"Bastila Shan",
"Ben Skywalker",
"Bib Fortuna",
"Biggs Darklighter",
"Boba Fett",
"Bossk",
"Brakiss",
... | mit |
c4augustus/Urho3D | bin/Data/LuaScripts/06_SkeletalAnimation.lua | 17 | 10180 | -- Skeletal animation example.
-- This sample demonstrates:
-- - Populating a 3D scene with skeletally animated AnimatedModel components
-- - Moving the animated models and advancing their animation using a script object
-- - Enabling a cascaded shadow map on a directional light, which allows high-quali... | mit |
Bpalkmim/NatDProver | Test/Logic/NaturalDeductionLogic.lua | 2 | 22919 | -------------------------------------------------------------------------------
-- Natural Deduction Logic Module
--
-- This module defines the logic of proving utilizing Natural Deduction.
--
-- @authors: bpalkmim
--
-------------------------------------------------------------------------------
require "Logic/NatDGr... | gpl-2.0 |
facebokiii/Uproject | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
stephank/luci | modules/admin-full/luasrc/model/cbi/admin_network/iface_add.lua | 6 | 3337 | --[[
LuCI - Lua Configuration Interface
Copyright 2009-2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]... | apache-2.0 |
SatoshiNXSimudrone/sl4a-damon-clone | lua/luasocket/src/url.lua | 148 | 10529 | -----------------------------------------------------------------------------
-- URI parsing, composition and relative URL resolution
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: url.lua,v 1.38 2006/04/03 04:45:42 diego Exp $
-----------------------------------------------------------------------------
... | apache-2.0 |
MeGa-TeAm/megabot | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
ioiasff/hiu | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
devlaith/DEVLAITH | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
fegimanam/ssd | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
aqasaeed/spartav1 | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
aqasaeed/mamad | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
artynet/luci | modules/luci-base/luasrc/ccache.lua | 81 | 1651 | -- 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 io = require "io"
local fs = require "nixio.fs"
local util = require "luci.util"
local nixio = require "nixio"
local debug = require "debug"
local string... | apache-2.0 |
Nostrademous/Dota2-WebAI | abilities/hero/antimage/antimage_blink.lua | 1 | 1496 | local VectorHelper = require(GetScriptDirectory().."/dev/helper/vector_helper")
local Action = require(GetScriptDirectory().."/actions/basic_actions/action_use_ability_on_location")
local AntimageBlink = {}
AntimageBlink.Name = heroData.antimage.SKILL_1
function AntimageBlink:Ability()
return GetBot():GetAbilityB... | mit |
lbchao/SimplifyReader | library_youku/src/main/res/raw/aes.lua | 130 | 3338 |
---------------------- bit utils
bit={data32={}}
for i=1,32 do
bit.data32[i]=2^(32-i)
end
function bit.d2b(arg)
local tr={}
for i=1,32 do
if arg >= bit.data32[i] then
tr[i]=1
arg=arg-bit.data32[i]
else
tr[i]=0
end
end
return tr
end --bit:d2b
f... | apache-2.0 |
yanyongshan/SimplifyReader | library_youku/src/main/res/raw/aes.lua | 130 | 3338 |
---------------------- bit utils
bit={data32={}}
for i=1,32 do
bit.data32[i]=2^(32-i)
end
function bit.d2b(arg)
local tr={}
for i=1,32 do
if arg >= bit.data32[i] then
tr[i]=1
arg=arg-bit.data32[i]
else
tr[i]=0
end
end
return tr
end --bit:d2b
f... | apache-2.0 |
tudelft/chdkptp | lua/extras/simplemulticam.lua | 6 | 3361 | --[[
Copyright (C) 2013 <reyalp (at) gmail dot com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT A... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.