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 |
|---|---|---|---|---|---|
steveyen/moxilua | protocol_memcached/server_binary_proxy.lua | 1 | 6266 | -- Need a noreply version of client_binary api.
-- Also, need to handle opaque's right.
--
memcached_server_binary_proxy = {}
memcached_server.binary.proxy = memcached_server_binary_proxy
local msbp = memcached_server_binary_proxy
local mpb = memcached_protocol_binary
local pack = mpb.pack
local SUCCESS = mpb.respo... | apache-2.0 |
zjohn4/PD2-lua-src | lib/managers/dialogs/xbox360selectuserdialog.lua | 1 | 1161 | core:module( "SystemMenuManager" )
require "lib/managers/dialogs/SelectUserDialog"
Xbox360SelectUserDialog = Xbox360SelectUserDialog or class( SelectUserDialog )
function Xbox360SelectUserDialog:init( manager, data )
SelectUserDialog.init( self, manager, data )
local count = self._data.count
if( count and ( coun... | gpl-2.0 |
tobiaswaldvogel/luci | applications/luci-app-shairplay/luasrc/model/cbi/shairplay.lua | 78 | 1789 | -- Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("shairplay", "Shairplay", translate("Shairplay is a simple AirPlay server implementation, here you can configure the settings."))
s = m:section(TypedSection, "shairplay", "")
s.addremove = true... | apache-2.0 |
tonibm19/cuberite | Server/Plugins/APIDump/Hooks/OnEntityAddEffect.lua | 36 | 1593 | return
{
HOOK_ENTITY_ADD_EFFECT =
{
CalledWhen = "An entity effect is about to get added to an entity.",
DefaultFnName = "OnEntityAddEffect", -- also used as pagename
Desc = [[
This hook is called whenever an entity effect is about to be added to an entity. The plugin may
disallow the addition by returni... | apache-2.0 |
hackpascal/luci | applications/luci-app-dump1090/luasrc/model/cbi/dump1090.lua | 30 | 7206 | -- Copyright 2014-2015 Álvaro Fernández Rojas <noltari@gmail.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("dump1090", "dump1090", translate("dump1090 is a Mode S decoder specifically designed for RTLSDR devices, here you can configure the settings."))
s = m:section(TypedSection, "dump1090", ""... | apache-2.0 |
hackpascal/luci | applications/luci-app-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widget.lua | 68 | 1039 | -- Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
local dsp = require "luci.dispatcher"
local utl = require "luci.util"
local widget = uci:get("freifunk-widgets", arg[1], "template")
local title = uci:get("f... | apache-2.0 |
Invertika/data | scripts/maps/ow-p0020-p0001-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
alikingambav/archer | plugins/plugins.lua | 13 | 6588 | 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 |
pagodabox/tag | lib/store/manager.lua | 2 | 1033 | -- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*-
-- vim: ts=4 sw=4 ft=lua noet
----------------------------------------------------------------------
-- @author Daniel Barney <daniel@pagodabox.com>
-- @copyright 2015, Pagoda Box, Inc.
-- @doc
--
-- @end
-- Created : 21 May 2015 by Daniel Barne... | mit |
mahdikord/mahdib99 | plugins/chat.lua | 28 | 1195 | local function run(msg)
if msg.text == "hi" then
return "Hello bb"
end
if msg.text == "Hi" then
return "Hello honey"
end
if msg.text == "Hello" then
return "Hi bb"
end
if msg.text == "hello" then
return "Hi honey"
end
if msg.text == "Salam" then
return "Salam aleykom"
end
if msg.text == "salam" then
return "و علی... | gpl-2.0 |
BloodyKnight/nginx-openresty-windows | lua-5.1.5/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-2-clause |
pmarkus/backpack | libs/CallbackHandler-1.0/CallbackHandler-1.0.lua | 35 | 8804 | --[[ $Id: CallbackHandler-1.0.lua 1131 2015-06-04 07:29:24Z nevcairiel $ ]]
local MAJOR, MINOR = "CallbackHandler-1.0", 6
local CallbackHandler = LibStub:NewLibrary(MAJOR, MINOR)
if not CallbackHandler then return end -- No upgrade needed
local meta = {__index = function(tbl, key) tbl[key] = {} return tbl[key] end}
... | gpl-3.0 |
zjohn4/PD2-lua-src | core/lib/utils/dev/tools/material_editor/corematerialeditorremote.lua | 1 | 1203 | CoreMaterialEditorRemote = CoreMaterialEditorRemote or class()
CoreMaterialEditorRemote.PORT = 11332
CoreMaterialEditorRemote.TEMP_PATH = "core/temp/"
function CoreMaterialEditorRemote:init()
Network:bind(self.PORT, self)
end
function CoreMaterialEditorRemote:reload_shader_libs()
Application:update_filesystem_inde... | gpl-2.0 |
Disslove77777/pppp | plugins/help.lua | 27 | 4675 | 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 iter
end... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0005-n0001-o0000.lua | 1 | 1398 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
zjohn4/PD2-lua-src | core/lib/utils/dev/editor/ews_classes/selectunitbynamemodal.lua | 1 | 1227 | SelectUnitByNameModal = SelectUnitByNameModal or class( UnitByName )
function SelectUnitByNameModal:init( name, unit_filter_function, ... )
UnitByName.init( self, name, unit_filter_function, ... )
self:show_modal()
end
function SelectUnitByNameModal:_build_buttons( panel, sizer )
local select_btn = EWS:Button( pan... | gpl-2.0 |
smikail/projecthas | plugins/linkpv.lua | 7 | 31047 | 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 |
noahchense/nodemcu-firmware | lua_examples/email/read_email_imap.lua | 82 | 4543 | ---
-- Working Example: https://www.youtube.com/watch?v=PDxTR_KJLhc
-- @author Miguel (AllAboutEE.com)
-- @description This example will read the first email in your inbox using IMAP and
-- display it through serial. The email server must provided unecrypted access. The code
-- was tested with an AOL and Time Warner c... | mit |
tickbh/tdengine_cocos2dx_demo | tdengine_ddz/src/global/clone/equip.lua | 1 | 2535 | -- equip.lua
-- Created by wugd
-- 装备对象类
-- 创建类模板
EQUIP_TDCLS = tdcls(DBASE_TDCLS, RID_TDCLS, PROPERTY_TDCLS, ATTRIB_TDCLS)
EQUIP_TDCLS.name = "EQUIP_TDCLS"
-- 构造函数
function EQUIP_TDCLS:create(value)
assert(type(value) == "table", "equip::create para not corret")
assert(is_int(value["class_id"]))
--装备和装扮... | apache-2.0 |
BloodyKnight/nginx-openresty-windows | LuaJIT-2.1-20150622/dynasm/dasm_mips.lua | 120 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | bsd-2-clause |
Invertika/data | scripts/maps/ow-p0006-n0008-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
chuenlungwang/skynet | test/testsocket.lua | 80 | 1078 | local skynet = require "skynet"
local socket = require "socket"
local mode , id = ...
local function echo(id)
socket.start(id)
while true do
local str = socket.read(id)
if str then
socket.write(id, str)
else
socket.close(id)
return
end
end
end
if mode == "agent" then
id = tonumber(id)
skynet.... | mit |
Invertika/data | scripts/maps/ow-p0021-p0025-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
mendsley/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 |
Invertika/data | scripts/maps/ow-p0010-n0004-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
mahdikord/mahdib99 | plugins/Member_Manager.lua | 24 | 11556 | 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 |
chandra1087/vpn989group | config.lua | 1 | 4588 | return {
bot_api_key = "393911888:AAHFVEH0LTA05sQLY6j9fWwKZ2DlTu7CaEM", --Please add your bot api key here!
cmd = '^[/!#]',
allowed_updates = {"message", "edited_message", "callback_query"},
db = 2, --default redis db: 0
superadmins = {141960232, 362663511},
log = {
chat = -1001089188566, --Your log chat, where... | gpl-2.0 |
TheSuperAlaa/TheSuperBot | 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 |
alikingambav/archer | 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 |
teleofis/OpenWRT | feeds/luci/applications/luci-app-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua | 68 | 3603 | -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ast = require("luci.asterisk")
local function find_outgoing_contexts(uci)
local c = { }
local h = { }
uci:foreach("asterisk", "dialplan",
function(s)
if not h[s['.name']] then
c[#c+1] = { s['... | gpl-2.0 |
mendsley/premake-core | modules/gmake2/gmake2_utility.lua | 1 | 8926 | --
-- gmake2_utility.lua
-- Generate a C/C++ project makefile.
-- (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project
--
local p = premake
local gmake2 = p.modules.gmake2
gmake2.utility = {}
local utility = gmake2.utility
local project = p.project
local config = p.config
lo... | bsd-3-clause |
GoogleFrog/Zero-K | units/armpb.lua | 2 | 5770 | unitDef = {
unitname = [[armpb]],
name = [[Gauss]],
description = [[Gauss Turret, 20 health/s when closed]],
buildCostEnergy = 400,
buildCostMetal = 400,
builder = false,
buildingGroundDecalD... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0004-p0024-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0025-p0015-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
tobiaswaldvogel/luci | modules/luci-base/luasrc/controller/admin/index.lua | 3 | 4832 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.admin.index", package.seeall)
function action_logout()
local dsp = require "luci.dispatcher"
local utl = require "luci.util"
local sid = dsp.context.authsession
if sid then
utl.ub... | apache-2.0 |
MeteoricGames/pioneer | data/factions/01_nonalignedworlds.lua | 1 | 1041 | -- Copyright © 2013-14 Meteoric Games Ltd
local f = Faction:new('Non Aligned Worlds')
:description_short('Non-Aligned is the descriptor to all the setlled words not part of one of the major colonial states.')
:description('Non-Aligned worlds are those that are not part of any of the colonial states, generally settle... | gpl-3.0 |
dvdvideo1234/wire | lua/entities/gmod_wire_target_finder.lua | 2 | 13396 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Target Finder"
ENT.WireDebugName = "Target Finder"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self.... | apache-2.0 |
xDShot/csgo_knives_sweps | lua/weapons/csgo_butterfly_damascus.lua | 1 | 2443 | if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then
SWEP.Spawnable = false
print( "csgo_butterfly_damascus failed to initialize: csgo_baseknife.lua not found. Did you install the main part?" )
return
end
local TTT = ( GAMEMODE_NAME == "terrortown" or cvars.Bool("csgo_knives_force_ttt", false) )
DEFIN... | mit |
masa0x80/dotfiles | .config/nvim/lua/config/neo-tree.lua | 1 | 2679 | local status_ok, p = pcall(require, "neo-tree")
if not status_ok then
return
end
p.setup({
use_default_mappings = false,
popup_border_style = "rounded",
default_component_configs = {
git_status = {
symbols = {
-- Change type
added = "", -- or "✚", but this is redundant info if you use git_status_color... | mit |
zjohn4/PD2-lua-src | lib/units/enemies/cop/logics/coplogicsniper.lua | 1 | 14712 | -----------------------------------------------------------------------------
-- ************* SNIPER LOGIC *******************
-----------------------------------------------------------------------------
local tmp_vec1 = Vector3()
CopLogicSniper = class( CopLogicBase )
CopLogicSniper.damage_clbk = CopLogicIdle.dam... | gpl-2.0 |
bestofkeeperbot/yourkeeperbot | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0020-n0019-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
seanstermonstr/test | Code/Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/List.lua | 12 | 16426 | --- Python-style list class.
--
-- **Please Note**: methods that change the list will return the list.
-- This is to allow for method chaining, but please note that `ls = ls:sort()`
-- does not mean that a new copy of the list is made. In-place (mutable) methods
-- are marked as returning 'the list' in this documentati... | bsd-3-clause |
GoogleFrog/Zero-K | LuaUI/i18nlib/spec/i18n_plural_spec.lua | 21 | 6372 | require 'spec.fixPackagePath'
local plural = require 'i18n.plural'
describe('i18n.plural', function()
before(plural.reset)
it("exists", function()
assert_equal('table', type(plural))
end)
describe('plural.get', function()
local function test_get(title, locales, plural_forms)
locales = type(lo... | gpl-2.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/camera_smoothcam.lua | 11 | 1846 | local versionNumber = "0.5"
function widget:GetInfo()
return {
name = "SmoothCam",
desc = "[v" .. string.format("%s", versionNumber ) .. "] Moves camera smoothly",
author = "very_bad_soldier",
date = "August, 8, 2010",
license = "GNU GPL, v2 or later",
layer = 0,
handler = true... | gpl-2.0 |
TheSuperAlaa/TheSuperBot | plugins/banhammer.lua | 1 | 14491 | --[[
_____ _ _ _ _____ Dev @lIMyIl
|_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il
| |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a
| |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22
|_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI
CH > @lTSHAKEl_CH
--]]
l... | gpl-2.0 |
JTriggerFish/protoplug | ProtoplugFiles/include/dsp/cookbook filters.lua | 2 | 3901 | -- Cookbook Filters Module
-- Based on Worp Filter.lua implementation by Ico Doornekamp. (https://github.com/zevv/worp)
-- Based on the Cookbook formulae by Robert Bristow-Johnson <rbj@audioimagination.com>
-- osar.fr
--[[
example usage :
local f = Filter {
type = "lp" -- filter type, see below
f = 440; -- freq... | mit |
anoidgit/Simple-RNN | dep/aSeqSigmoid.lua | 1 | 1599 | --[[
The GNU GENERAL PUBLIC LICENSE Version 3
Copyright (c) 2016 Hongfei Xu
This scripts implement a standard sigmoid activation function,
It forward the sequence from head to tail,
and backward in reverse order.
Designed for Recurrent Neural Networks
Version 0.1.0
]]
local aSeqSigmoid = torch.class('nn.aS... | gpl-3.0 |
dvdvideo1234/wire | lua/entities/gmod_wire_egp/lib/egplib/umsgsystem.lua | 18 | 1133 | --------------------------------------------------------
-- Custom umsg System
--------------------------------------------------------
local EGP = EGP
local CurSender
local LastErrorTime = 0
--[[ Transmit Sizes:
Angle = 12
Bool = 1
Char = 1
Entity = 2
Float = 4
Long = 4
Short = 2
String = string length
Vecto... | apache-2.0 |
dvdvideo1234/wire | lua/wire/client/wiremenus.lua | 18 | 1365 | local Categories = {
"Favourites",
"Chips, Gates",
"Visuals",
"Detection",
"Input, Output",
"Vehicle Control",
"Physics",
"Other",
"Memory",
"Advanced",
"Tools",
"Options",
}
hook.Add( "AddToolMenuCategories", "WireCategories", function()
for i=1,#Categories do
local Category = Categories[i]
spawnmenu... | apache-2.0 |
Invertika/data | scripts/maps/iw-castle-cedric-shop02-o00-o00-o00.lua | 1 | 2355 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
eladhoffer/DeepDream.torch | deepdream.lua | 1 | 3189 | require 'nn'
require 'cunn'
require 'cudnn'
require 'image'
local cuda = false
torch.setdefaulttensortype('torch.FloatTensor')
--net = torch.load('./GoogLeNet.t7')
net = torch.load('./OverFeatModel.t7'):float()
--net:training()
local Normalization = {mean = 118.380948/255, std = 61.896913/255}
function reduceNet(f... | mit |
chuenlungwang/skynet | lualib/http/httpd.lua | 101 | 3708 | local internal = require "http.internal"
local table = table
local string = string
local type = type
local httpd = {}
local http_status_msg = {
[100] = "Continue",
[101] = "Switching Protocols",
[200] = "OK",
[201] = "Created",
[202] = "Accepted",
[203] = "Non-Authoritative Information",
[204] = "No Content",... | mit |
mobinantispam/012 | 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 |
smikail/projecthas | 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 |
Meoo/premake-core | tests/actions/vstudio/sln2005/test_platforms.lua | 3 | 31418 | --
-- tests/actions/vstudio/sln2005/test_platforms.lua
-- Test the Visual Studio 2005-2010 platform mapping blocks.
-- Copyright (c) 2009-2014 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_sln2005_platforms")
local sln2005 = premake.vstudio.sln2005
--
-- Setup
--
local sln
functi... | bsd-3-clause |
Dual-Boxing/MultiBoxMaster | MultiBoxMaster/libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua | 24 | 5432 | --[[-----------------------------------------------------------------------------
ColorPicker Widget
-------------------------------------------------------------------------------]]
local Type, Version = "ColorPicker", 22
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(... | mit |
daviddwk/TreySimulator3 | luaEntities/animatedTeleporter.lua | 1 | 1214 | function create(x, y, destinationX, destinationY, texture, removeScreenLag)
entity = getNewEntity("baseLuaEntity")
sizeMultiplier = getGlobalValue("sizeMultiplier")
setEntityLabel(entity, "animatedTeleporter")
setEntityX(entity, x * sizeMultiplier)
setEntityY(entity, y * sizeMultiplier - getAnimatio... | bsd-3-clause |
chandra1087/vpn989group | plugins/antispam.lua | 4 | 15633 | local config = require 'config'
local u = require 'utilities'
local api = require 'methods'
local plugin = {}
local function is_whitelisted(chat_id, text)
local set = ('chat:%d:whitelist'):format(chat_id)
local links = db:smembers(set)
if links and next(links) then
for i=1, #links do
i... | gpl-2.0 |
teleofis/OpenWRT | feeds/luci/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua | 48 | 11450 | -- 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.
-- Data init --
local fs = require "nixio.fs"
local sys = require "luci.sys"
local uci = require "luci.model.uci".cursor()
if not uci:get("network", "wan") ... | gpl-2.0 |
MeteoricGames/pioneer | data/modules/DonateToCranks/DonateToCranks.lua | 1 | 2342 | -- Copyright © 2008-2014 Pioneer Developers. See AUTHORS.txt for details
-- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
local Engine = import("Engine")
local Lang = import("Lang")
local Game = import("Game")
local Comms = import("Comms")
local Event = import("Event")
local Serializer = import("Seria... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0006-n0024-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0005-p0009-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
teleofis/OpenWRT | feeds/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_status/processes.lua | 75 | 1236 | -- 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.
f = SimpleForm("processes", translate("Processes"), translate("This list gives an overview over currently running system processes and their status."))
f.reset... | gpl-2.0 |
moteus/lua-sendmail | lua/sendmail.lua | 1 | 20124 | -- sendmail.lua v0.1.6-dev (2021-07)
-- Copyright (c) 2013-2021 Alexey Melnichuk
--
-- 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... | mit |
GoogleFrog/Zero-K | units/trem.lua | 5 | 6415 | unitDef = {
unitname = [[trem]],
name = [[Tremor]],
description = [[Heavy Saturation Artillery Tank]],
acceleration = 0.05952,
brakeRate = 0.124,
buildCostEnergy = 1500,
buildCostMetal = 1500,
builder = false... | gpl-2.0 |
zjohn4/PD2-lua-src | core/lib/managers/coredofmanager.lua | 1 | 16443 | -- DOFManager handles the Depth Of Field, overrides the current environment settings
core:module("CoreDOFManager")
DOFManager = DOFManager or class()
function DOFManager:init()
self._queued_effects = {}
self._sorted_effect_list = {}
self._last_id = 0
self._current_effect = nil
self._enabled = true
self._var_... | gpl-2.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/snd_noises.lua | 5 | 6420 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: snd_chatterbox.lua
-- brief: annoys sounds
-- author: Dave Rodgers
--
-- Copyright (C) 2007.
-- Licensed under the terms of the GNU GPL... | gpl-2.0 |
teleofis/OpenWRT | feeds/luci/modules/luci-base/luasrc/sys/zoneinfo/tzoffset.lua | 11 | 4099 | -- Licensed to the public under the Apache License 2.0.
module "luci.sys.zoneinfo.tzoffset"
OFFSET = {
gmt = 0, -- GMT
eat = 10800, -- EAT
cet = 3600, -- CET
wat = 3600, -- WAT
cat = 7200, -- CAT
eet = 7200, -- EET
wet = 0, -- WET
sast = 7200, -- SAST
hst = -36000, -- HS... | gpl-2.0 |
splay-project/splay | src/osx-installer/PKG_PAYLOAD/SPLAY/lualibs/splay/restricted_socket.lua | 2 | 16238 | --[[
Splay ### v1.3 ###
Copyright 2006-2011
http://www.splay-project.org
]]
--[[
This file is part of Splay.
Splay 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 L... | gpl-3.0 |
mendsley/premake-core | modules/d/tools/gdc.lua | 3 | 6475 | --
-- d/tools/gdc.lua
-- Provides GDC-specific configuration strings.
-- Copyright (c) 2013-2015 Andrew Gough, Manu Evans, and the Premake project
--
local p = premake
p.tools.gdc = { }
local gdc = p.tools.gdc
local project = p.project
local config = p.config
local d = p.modules.d
--
-- Set default tools
--... | bsd-3-clause |
remakeelectric/luci | build/luadoc/luadoc/init.lua | 172 | 1333 | -------------------------------------------------------------------------------
-- LuaDoc main function.
-- @release $Id: init.lua,v 1.4 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
local require = require
local util = require "luadoc.util"
log... | apache-2.0 |
prasoc/BetterUI | Modules/GuildStore/Module.lua | 2 | 6345 | local _
local LAM = LibStub:GetLibrary("LibAddonMenu-2.0")
local function Init(mId, moduleName)
local panelData = Init_ModulePanel(moduleName, "Guild Store Improvement Settings")
local optionsTable = {
{
type = "header",
name = "|c0066FF[Enhanced Guild Store]|r Behaviour Settings",
width = "full",
},
... | mit |
MRAHS/iron-bot | plugins/admin.lua | 230 | 6382 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0016-n0019-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0009-p0010-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
remakeelectric/luci | applications/luci-app-pagekitec/luasrc/model/cbi/pagekitec.lua | 10 | 1106 | m = Map("pagekitec", translate("PageKite"),
translate([[
<p/>Note: you need a working PageKite account, or at least, your own running front end for this form to work.
Visit <a href="https://pagekite.net/home/">your account</a> to set up a name for your
router and get a secret key for the connection.
<p/><em>Note: t... | apache-2.0 |
Mizugola/ObEngine | engine/Lib/Toolkit/Functions/workspace.lua | 5 | 6705 | local Color = require("Lib/StdLib/ConsoleColor");
local Route = require("Lib/Toolkit/Route");
local Style = require("Lib/Toolkit/Stylesheet");
local Functions = {};
function getWorkspaceList()
local parser = Vili.ViliParser.new();
parser:parseFile("Workspace/Workspaces.vili");
local allWorkspaces = {};
... | mit |
PaulosV/ntopng | scripts/lua/host_top_peers_protocols.lua | 10 | 2411 | --
-- (C) 2014-15-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('application/json')
interface.select(ifname)
host_info = url2hostinfo(_GET)
flows = interface.getFlowPeers(host_info["host"],host_info["vlan... | gpl-3.0 |
dvdvideo1234/wire | lua/wire/gates/string.lua | 2 | 10023 | --[[
String gates ! :P
]]
local MAX_LEN = 64*1024 -- max string length of 64k
GateActions("String")
GateActions["string_ceq"] = {
name = "Equal",
inputs = { "A" , "B" },
inputtypes = { "STRING" , "STRING" },
output = function(gate, A, B)
if A == B then return 1 else return 0 end
end,
label = function(Out,... | apache-2.0 |
bjtaylor1/Project-OSRM-Old | luas/winter.lua | 1 | 7207 | -- Begin of globals
require("lib/access")
barrier_whitelist = { ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["no"] = true, ["entrance"] = true}
access_tag_whitelist = { ["yes"] = true, ["motorcar"] = true, ["motor_vehicle"] = true, ["vehicle"] = tru... | bsd-2-clause |
dvdvideo1234/wire | lua/wire/client/hlzasm/hc_expression.lua | 8 | 35608 | --------------------------------------------------------------------------------
-- HCOMP / HL-ZASM compiler
--
-- Dynamic and constant expression generator
--------------------------------------------------------------------------------
------------------------------------------------------------------------------... | apache-2.0 |
Invertika/data | scripts/maps/ow-p0020-n0022-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0010-n0012-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
stephen322/prosody-modules | mod_throttle_presence/mod_throttle_presence.lua | 31 | 1709 | local filters = require "util.filters";
local st = require "util.stanza";
module:depends("csi");
local function presence_filter(stanza, session)
if stanza._flush then
stanza._flush = nil;
return stanza;
end
local buffer = session.presence_buffer;
local from = stanza.attr.from;
if stanza.name ~= "presence" or... | mit |
zjohn4/PD2-lua-src | lib/units/weapons/weaponlaser.lua | 1 | 7188 | WeaponLaser = WeaponLaser or class( WeaponGadgetBase )
function WeaponLaser:init( unit )
WeaponLaser.super.init( self, unit )
self._on_event = "gadget_laser_aim_on"
self._off_event = "gadget_laser_aim_off"
local obj = self._unit:get_object( Idstring( "a_laser" ) )
self._laser_obj = obj
self._max_distance =... | gpl-2.0 |
zjohn4/PD2-lua-src | lib/network/extensions/player/huskplayerinventory.lua | 1 | 7610 | HuskPlayerInventory = HuskPlayerInventory or class( PlayerInventory )
HuskPlayerInventory._index_to_weapon_list = {
Idstring( "units/payday2/weapons/wpn_npc_c45/wpn_npc_c45" ),
Idstring( "units/payday2/weapons/wpn_npc_beretta92/wpn_npc_beretta92" ),
Idstring( "units/payday2/weapons/wpn_npc_raging_bull/wpn_npc_r... | gpl-2.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/gfx_commands_fx.lua | 6 | 15738 | function widget:GetInfo()
return {
name = "Commands FX",
desc = "Adds glow-pulses wherever commands are queued. Including mapmarks.",
author = "Floris",
date = "14.04.2014",
license = "GNU GPL, v2 or later",
layer = 2,
enabled = true,
}
end
----... | gpl-2.0 |
mendsley/premake-core | modules/vstudio/tests/vc2010/test_nmake_props.lua | 7 | 4179 | --
-- tests/actions/vstudio/vc2010/test_nmake_props.lua
-- Check makefile project generation.
-- Copyright (c) 2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vs2010_nmake_props")
local vc2010 = p.vstudio.vc2010
--
-- Setup
--
local wks, prj
function suite.setup()
... | bsd-3-clause |
Invertika/data | scripts/maps/ow-p0009-p0009-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/iw-nelaro-shop2-o00-o00-o00.lua | 1 | 2942 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
AlphaStaxLLC/rackspace-monitoring-agent | hostinfo/nginx_config.lua | 2 | 9277 | --[[
Copyright 2015 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | apache-2.0 |
remakeelectric/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-pbx.lua | 68 | 1923 | -- 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.
cbimap = Map("asterisk", "asterisk", "")
module = cbimap:section(TypedSection, "module", "Modules", "")
module.anonymous = true
pbx_ael = module:option(ListV... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0008-n0012-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
splay-project/splay | tools/scripts/planetlab_utils/splay_pl_pack/splayd_planetlab/splayd/jobd.lua | 1 | 6326 | --[[
Splay ### v1.3 ###
Copyright 2006-2011
http://www.splay-project.org
]]
--[[
This file is part of Splay.
Splay 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 L... | gpl-3.0 |
Meoo/premake-core | tests/actions/vstudio/cs2005/test_platform_groups.lua | 3 | 1881 | --
-- tests/actions/vstudio/cs2005/test_platform_groups.lua
-- Check creation of per-platform property groups in VS2005+ C# projects.
-- Copyright (c) 2009-2013 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_cs2005_platform_groups")
local cs2005 = premake.vstudio.cs2005
--
-- Setup
--
... | bsd-3-clause |
GoogleFrog/Zero-K | scripts/corrl.lua | 1 | 5378 | local base = piece 'base'
local turret = piece 'turret'
local lever = piece 'lever'
local pod = piece 'pod'
local l_poddoor = piece 'l_poddoor'
local r_poddoor = piece 'r_poddoor'
local base2 = piece 'base2'
local door = piece 'door'
local doorpist = piece 'doorpist'
local arm = piece 'arm'
local hand = piece ... | gpl-2.0 |
MeteoricGames/pioneer | data/ui/StationView/EquipmentTableWidgets.lua | 1 | 12735 | -- Copyright © 2008-2014 Pioneer Developers. See AUTHORS.txt for details
-- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
local Engine = import("Engine")
local Lang = import("Lang")
local Game = import("Game")
local EquipDef = import("EquipDef")
local Comms = import("Comms")
local utils = import("util... | gpl-3.0 |
stephen322/prosody-modules | mod_auth_sql/mod_auth_sql.lua | 32 | 3498 | -- Simple SQL Authentication module for Prosody IM
-- Copyright (C) 2011 Tomasz Sterna <tomek@xiaoka.com>
-- Copyright (C) 2011 Waqas Hussain <waqas20@gmail.com>
--
local log = require "util.logger".init("auth_sql");
local new_sasl = require "util.sasl".new;
local DBI = require "DBI"
local connection;
local params = ... | mit |
nightcj/mmo | lualib/http/httpc.lua | 13 | 3184 | local socket = require "http.sockethelper"
local url = require "http.url"
local internal = require "http.internal"
local dns = require "dns"
local string = string
local table = table
local httpc = {}
local function request(fd, method, host, url, recvheader, header, content)
local read = socket.readfunc(fd)
local wr... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.