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 |
|---|---|---|---|---|---|
Dual-Boxing/MultiBoxMaster | MultiBoxMaster/libs/AceAddon-3.0/AceAddon-3.0.lua | 66 | 25788 | --- **AceAddon-3.0** provides a template for creating addon objects.
-- It'll provide you with a set of callback functions that allow you to simplify the loading
-- process of your addon.\\
-- Callbacks provided are:\\
-- * **OnInitialize**, which is called directly after the addon is fully loaded.
-- * **OnEnable** wh... | mit |
pmarkus/backpack | libs/AceAddon-3.0/AceAddon-3.0.lua | 66 | 25788 | --- **AceAddon-3.0** provides a template for creating addon objects.
-- It'll provide you with a set of callback functions that allow you to simplify the loading
-- process of your addon.\\
-- Callbacks provided are:\\
-- * **OnInitialize**, which is called directly after the addon is fully loaded.
-- * **OnEnable** wh... | gpl-3.0 |
USABOT6/usabot | 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 |
GoogleFrog/Zero-K | gamedata/modularcomms/clonedefs.lua | 3 | 8260 | -- just some comm cloning stuff (to avoid having to maintain multiple unitdefs)
local statsByLevel = {
mainstats = {
[2] = {
collisionvolumescales = [[50 59 50]],
},
[3] = {
collisionvolumescales = [[55 65 55]],
explodeas = "estor_building",
selfdestructas = "estor_building",
footprintx = 3,
... | gpl-2.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/gfx_lups_manager.lua | 13 | 13038 | -- $Id: gfx_lups_manager.lua 4440 2009-04-19 15:36:53Z licho $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- author: jK
--
-- Copyright (C) 2007,2008.
-- Licensed under the terms of the GNU GPL,... | gpl-2.0 |
omidgolmohammadi/freeze_bot_2 | bot/bot.lua | 1 | 8271 | 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")
require("./bot/permissions")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:... | gpl-2.0 |
tickbh/tdengine_cocos2dx_demo | tdengine_ddz/src/cocos/framework/extends/MenuEx.lua | 57 | 1228 | --[[
Copyright (c) 2011-2014 chukong-inc.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, copy, modify, merge, publish, dis... | apache-2.0 |
dvdvideo1234/wire | lua/wire/gates/logic.lua | 18 | 2870 | --[[
Logic Gates
]]
GateActions("Logic")
GateActions["not"] = {
name = "Not (Invert)",
inputs = { "A" },
output = function(gate, A)
if (A > 0) then return 0 end
return 1
end,
label = function(Out, A)
return "not "..A.." = "..Out
end
}
GateActions["and"] = {
name = "And (All)",
inputs = { "A", "B", "C... | apache-2.0 |
Invertika/data | scripts/maps/ow-p0020-p0019-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-p0009-n0020-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
smikail/projecthas | plugins/ingroup.lua | 527 | 44020 | 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 |
dvdvideo1234/wire | lua/entities/gmod_wire_egp/cl_init.lua | 2 | 2082 | include('shared.lua')
ENT.gmod_wire_egp = true
function ENT:Initialize()
self.GPU = GPULib.WireGPU( self )
self.GPU.texture_filtering = TEXFILTER.ANISOTROPIC
self.RenderTable = {}
self:EGP_Update( EGP.HomeScreen )
end
function ENT:EGP_Update( Table )
self.NeedsUpdate = true
self.NextUpdate = Table
end
functi... | apache-2.0 |
MRAHS/iron-bot | plugins/SUDO.lua | 36 | 1917 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' yo... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0003-n0003-o0000.lua | 1 | 1395 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
dvdvideo1234/wire | lua/entities/gmod_wire_radio.lua | 3 | 5275 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Radio"
ENT.WireDebugName = "Radio"
if CLIENT then return end -- No more client
local MODEL = Model( "models/props_lab/binderblue.mdl" )
local Channel = {
__index = {
register = function(self, ent, channel)
local olddata = ent.Cha... | apache-2.0 |
dkogan/sysdig | userspace/sysdig/chisels/topfiles_errors.lua | 1 | 1131 | --[[
Copyright (C) 2013-2014 Draios inc.
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 ANY WARRANTY; without... | gpl-2.0 |
TeleMidia/dietncl | dietncl/filter/prenorm1.lua | 1 | 2059 | --[[ filter.prenorm1 -- First pre-normalization step.
Copyright (C) 2013-2017 PUC-Rio/Laboratorio TeleMidia
This file is part of DietNCL.
DietNCL 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 versi... | gpl-2.0 |
GoogleFrog/Zero-K | LuaRules/Gadgets/dbg_ceg_spawner.lua | 11 | 1958 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
locou/Zona-Pellucida | lua/items/passives/vector_shot.lua | 1 | 1791 | local vector_shot = {}
local game = Game()
local VectorShot = {
ID = Isaac.GetItemIdByName( "Vector Shot" ),
}
table.insert(locou.Items.Passives, VectorShot)
local shots = {}
local shot = false
function vector_shot:UpdateTears()
local ply = game:GetPlayer(0)
if(ply:HasCollectible(VectorShot.ID)) then
loca... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0011-n0006-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
splay-project/splay | daemon/src/lua/modules/splay/base.lua | 4 | 1290 | --[[
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 |
TeleMidia/dietncl | tests/test-filter-prenorm3.lua | 1 | 2653 | --[[ Copyright (C) 2013-2017 PUC-Rio/Laboratorio TeleMidia
This file is part of DietNCL.
DietNCL 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 ver... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0002-n0010-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
jcai1/WowCoding | weakauras/the-rng-index/wa.d.actions.start.custom.lua | 1 | 1535 | local total = 0
local function processSpell(desc, link)
if not desc then return end
desc = strlower(desc)
if strfind(desc, "sometimes") or strfind(desc, "a %S*%s?chance") or strfind(desc, "occasionally") then
print("+1:", link)
total = total + 1
end
end
local spells = {}
local usedSpel... | mit |
GoogleFrog/Zero-K | LuaUI/Widgets/gui_ally_cursors.lua | 17 | 7682 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- Copyright (C) 2007.
-- Licensed under the terms of the GNU GPL, v2 or later.
--
----------------------------------------------------------------------... | gpl-2.0 |
dvdvideo1234/wire | lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua | 3 | 13956 | --------------------------------------------------------
-- e2function Helper functions
--------------------------------------------------------
local EGP = EGP
----------------------------
-- Table IsEmpty
----------------------------
function EGP:Table_IsEmpty( tbl ) return next(tbl) == nil end
-------------------... | apache-2.0 |
dvdvideo1234/wire | lua/wire/client/cl_wire_map_interface.lua | 17 | 2510 | -- The client part of the wire map interface.
-- It's for the clientside wire ports adding and removing, also for the rendering stuff.
-- It's in in this folder, because point entities are serverside only.
-- Removing wire stuff and other changes that were done.
local OverRiddenEnts = {}
local function RemoveWire(Enti... | apache-2.0 |
mendsley/premake-core | modules/vstudio/tests/vc200x/test_resource_compiler.lua | 16 | 1315 | --
-- tests/actions/vstudio/vc200x/test_resource_compiler.lua
-- Validate generation the VCResourceCompilerTool element in Visual Studio 200x C/C++ projects.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vs200x_resource_compiler")
local vc200x = p.... | bsd-3-clause |
Invertika/data | scripts/maps/ow-p0016-n0023-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | scripts/armspy.lua | 11 | 4109 | include "constants.lua"
local base = piece 'base'
local turret = piece 'turret'
local barrel = piece 'barrel'
local flare = piece 'flare'
local lfrontleg = piece 'lfrontleg'
local lfrontleg1 = piece 'lfrontleg_1'
local rfrontleg = piece 'rfrontleg'
local rfrontleg1 = piece 'rfrontleg_1'
local laftleg = piec... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0015-n0003-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
bestofkeeperbot/yourkeeperbot | plugins/vote.lua | 615 | 2128 | do
local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0023-p0011-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-n0004-n0004-o0000.lua | 1 | 2092 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
PaulosV/ntopng | scripts/lua/login.lua | 7 | 2555 | --
-- (C) 2013-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
-- io.write ("Session:".._SESSION["session"].."\n")
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
in... | gpl-3.0 |
stephen322/prosody-modules | mod_strict_https/mod_strict_https.lua | 32 | 1328 | -- HTTP Strict Transport Security
-- https://tools.ietf.org/html/rfc6797
module:set_global();
local http_server = require "net.http.server";
local hsts_header = module:get_option_string("hsts_header", "max-age=31556952"); -- This means "Don't even try to access without HTTPS for a year"
local _old_send_response;
lo... | mit |
Invertika/data | scripts/maps/ow-o0000-n0012-o0000.lua | 1 | 1403 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
stephen322/prosody-modules | mod_pubsub_twitter/mod_pubsub_twitter.lua | 32 | 4206 | -- Publishes Twitter search results over pubsub
--
-- Config:
-- Component "pubsub.example.com" "pubsub"
-- modules_enabled = {
-- "pubsub_twitter";
-- }
-- twitter_searches = { -- node -> query
-- prosody = "prosody xmpp";
-- }
-- twitter_pull_interval = 20 -- minutes
--
local pubsub = module:depends"pubsub";
lo... | mit |
Invertika/data | scripts/maps/ow-n0019-p0024-o0000.lua | 1 | 1403 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | LuaRules/Gadgets/CustomUnitShaders/UnitMaterials/Shaders/default.lua | 5 | 5096 | return {
vertex = [[
//#define use_normalmapping
//#define flip_normalmap
//#define use_shadows
%%VERTEX_GLOBAL_NAMESPACE%%
uniform mat4 camera; //ViewMatrix (gl_ModelViewMatrix is ModelMatrix!)
//uniform mat4 cameraInv;
uniform vec3 cameraPos;
uniform vec3 sunPos;
uniform vec3 sunDiffuse;... | gpl-2.0 |
stephen322/prosody-modules | mod_incidents_handling/incidents_handling/mod_incidents_handling.lua | 32 | 13288 | -- This plugin implements XEP-268 (Incidents Handling)
-- (C) 2012-2013, Marco Cirillo (LW.Org)
-- Note: Only part of the IODEF specifications are supported.
module:depends("adhoc")
local datamanager = require "util.datamanager"
local dataforms_new = require "util.dataforms".new
local st = require "util.stanza"
loca... | mit |
Invertika/data | scripts/maps/ow-n0016-p0007-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
remakeelectric/luci | libs/luci-lib-nixio/docsrc/CHANGELOG.lua | 68 | 1043 | --- Changes and improvements.
module "nixio.CHANGELOG"
--- Service Release.
-- <ul>
-- <li>Added getifaddrs() function.</li>
-- <li>Added getsockopt(), setsockopt(), getsockname() and getpeername()
-- directly to TLS-socket objects unifying the socket interface.</li>
-- <li>Added support for CyaSSL as cryptographical ... | apache-2.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/dbg_forceGC_spring97.lua | 8 | 1924 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "GC at >300MB",
desc = "Workaround for abnormal memory usage while rejoining game in Spring 97.... | gpl-2.0 |
stephen322/prosody-modules | mod_statistics/top.lua | 32 | 6810 | module("prosodytop", package.seeall);
local array = require "util.array";
local it = require "util.iterators";
local curses = require "curses";
local stats = require "stats".stats;
local time = require "socket".gettime;
local sessions_idle_after = 60;
local stanza_names = {"message", "presence", "iq"};
local top = {... | mit |
splay-project/splay | src/osx-installer/PKG_PAYLOAD/SPLAY/lualibs/mime.lua | 118 | 2433 | -----------------------------------------------------------------------------
-- MIME support for the Lua language.
-- Author: Diego Nehab
-- Conforming to RFCs 2045-2049
-- RCS ID: $Id: mime.lua,v 1.29 2007/06/11 23:44:54 diego Exp $
-----------------------------------------------------------------------------
------... | gpl-3.0 |
Invertika/data | scripts/libs/karma.lua | 1 | 1976 | ----------------------------------------------------------------------------------
-- Karma Skript --
-- --
-- Das Karmaskript stellt die Karma Funktionen ... | gpl-3.0 |
Meoo/premake-core | src/base/field.lua | 19 | 9485 | ---
-- base/field.lua
--
-- Fields hold a particular bit of information about a configuration, such
-- as the language of a project or the list of files it uses. Each field has
-- a particular data "kind", which describes the structure of the information
-- it holds, such a simple string, or a list of paths.
--
-- The ... | bsd-3-clause |
zjohn4/PD2-lua-src | core/lib/utils/dev/ews/color_picker/corecolorpickerpanel.lua | 1 | 2187 | core:module "CoreColorPickerPanel"
core:import "CoreClass"
core:import "CoreEvent"
core:import "CoreColorPickerDraggables"
core:import "CoreColorPickerFields"
ColorPickerPanel = ColorPickerPanel or CoreClass.mixin(CoreClass.class(), CoreEvent.BasicEventHandling)
function ColorPickerPanel:init(parent_frame, enable_alp... | gpl-2.0 |
MeteoricGames/pioneer | data/ui/StationView.lua | 1 | 3900 | -- Copyright © 2008-2014 Pioneer Developers. See AUTHORS.txt for details
-- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
local Game = import("Game")
local Format = import("Format")
local Engine = import("Engine")
local ShipDef = import("ShipDef")
local Lang = import("Lang")
local Event = import("Even... | gpl-3.0 |
gnosek/sysdig | userspace/sysdig/chisels/v_spans_list.lua | 3 | 2291 | --[[
Copyright (C) 2013-2015 Draios inc.
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 ANY WARRANTY; without... | gpl-2.0 |
Dual-Boxing/MultiBoxMaster | MultiBoxMaster/libs/AceGUI-3.0-SharedMediaWidgets/AceGUI-3.0-SharedMediaWidgets/BorderWidget.lua | 8 | 6514 | -- Widget is based on the AceGUIWidget-DropDown.lua supplied with AceGUI-3.0
-- Widget created by Yssaril
local AceGUI = LibStub("AceGUI-3.0")
local Media = LibStub("LibSharedMedia-3.0")
local AGSMW = LibStub("AceGUISharedMediaWidgets-1.0")
do
local widgetType = "LSM30_Border"
local widgetVersion = 10
local cont... | mit |
Invertika/data | scripts/maps/ow-n0004-p0017-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
dkogan/sysdig | userspace/sysdig/chisels/lsof.lua | 1 | 2475 | --[[
Copyright (C) 2014 Draios inc.
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 ANY WARRANTY; without even... | gpl-2.0 |
metakermit/vlc | share/lua/sd/assembleenationale.lua | 4 | 8099 | --[[
$Id$
Copyright © 2012 VideoLAN and AUTHORS
Authors: François Revol <revol at free dot fr>
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 op... | gpl-2.0 |
dvdvideo1234/wire | lua/entities/gmod_wire_hoverball.lua | 2 | 6870 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Hoverball"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Hoverball"
-- Shared
function ENT:IsOn() return self:GetNWBool( "On", false ) end
if CLIENT then
-- Clientside GetZTarget
function ENT:GetZTarget() return self:GetNWF... | apache-2.0 |
teleofis/OpenWRT | feeds/luci/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua | 9 | 5926 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.luci_statistics.luci_statistics", package.seeall)
function index()
require("nixio.fs")
require("luci.util")
req... | gpl-2.0 |
MeteoricGames/pioneer | win32/codeblocks/premake4.lua | 1 | 3878 | --organizes files in virtual folders
local VPATHS = { ["Headers"] = "**.h", ["Sources"] = {"**.cpp", "**.c"} }
local BASEDIR = "../../"
local SRCDIR = BASEDIR .. "src/"
newoption {
trigger = "thirdparty",
description = "Location of third-party dependencies package (optional)",
}
newoption {
trigger = ... | gpl-3.0 |
mahdikord/mahdib99 | plugins/leaders.lua | 51 | 12502 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0002-p0023-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
jcai1/WowCoding | weakauras/sephuzs-secret/wa.d.actions.init.custom.lua | 1 | 1851 | local A = aura_env
local playerGUID = UnitGUID("player")
local function colorText(c, s)
return format("|cff%s%s|r", c, s)
end
local readyText = colorText("00ff00", "Ready")
local icdText = colorText("ffff00", "ICD")
local activeText = colorText("ffffff", "Active")
local equipped
local customText = readyText
... | mit |
zjohn4/PD2-lua-src | lib/managers/menu/profileboxgui.lua | 1 | 13640 | ProfileBoxGui = ProfileBoxGui or class( TextBoxGui )
function ProfileBoxGui:init( ws, title, text, content_data, config )
config = config or {}
config.h = config.h or 260
config.w = config.w or 280
local x,y = ws:size()
config.x = config.x or 0 -- x - config.w
config.y = config.y or (y - config.h - CoreMenuRen... | gpl-2.0 |
stephen322/prosody-modules | mod_stanza_counter/mod_stanza_counter.lua | 32 | 3033 | -- (C) 2011, Marco Cirillo (LW.Org)
-- General Stanzas' Counter.
local jid_bare = require "util.jid".bare
-- Setup, Init functions.
-- initialize function counter table on the global object on start
local function init_counter()
prosody.stanza_counter = {
iq = { incoming=0, outgoing=0 },
message = { incoming=0, ... | mit |
GoogleFrog/Zero-K | LuaUI/Widgets/gfx_xray_shader.lua | 4 | 6851 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: gui_xray_shader.lua
-- brief: xray shader
-- author: Dave Rodgers
--
-- Copyright (C) 2007.
-- Licensed under the terms of the GNU GPL,... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0004-p0021-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-p0025-p0003-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/chili_new/skins/Robocracy/skin.lua | 15 | 5736 | --//=============================================================================
--// Skin
local skin = {
info = {
name = "Robocracy",
version = "0.3",
author = "jK",
}
}
--//=============================================================================
--//
skin.general = {
focusColor = {1.0,... | gpl-2.0 |
gnosek/sysdig | userspace/sysdig/chisels/spy_syslog.lua | 16 | 5793 | --[[
Copyright (C) 2014 Draios inc.
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 ANY WARRANTY; without even t... | gpl-2.0 |
hackpascal/luci | modules/luci-mod-freifunk/luasrc/controller/freifunk/remote_update.lua | 68 | 1475 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.freifunk.remote_update", package.seeall)
function index()
if not nixio.fs.access("/usr/sbin/remote-update") then
return
end
entry({"admin", "system", "remote_update"}, call("act_re... | apache-2.0 |
teleofis/OpenWRT | feeds/luci/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/network.lua | 58 | 6060 | -- 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 wa = require "luci.tools.webadmin"
local sys = require "luci.sys"
local fs = require "nixio.fs"
local has_pptp = fs.access("/usr/sbin/pptp")
local ha... | gpl-2.0 |
splay-project/splay | src/osx-installer/PKG_PAYLOAD/SPLAY/lualibs/splay/restricted_io.lua | 2 | 9217 | --[[
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 |
GoogleFrog/Zero-K | luaui.lua | 10 | 1926 | -- $Id: luaui.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: luaui.lua
-- brief: entry point for LuaUI
-- author: Dave Rodgers
--
-- Copyright (... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0025-p0017-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/chili_new/skins/Carbon/skin.lua | 7 | 4391 | --//=============================================================================
--// Skin
local skin = {
info = {
name = "Carbon",
version = "1.0",
author = "luckywaldo7",
}
}
--//=============================================================================
--//
skin.general = {
focusColor =... | gpl-2.0 |
teleofis/OpenWRT | feeds/luci/applications/luci-app-iolines/luasrc/model/cbi/iolines.lua | 2 | 1728 | local fs = require "nixio.fs"
local sys = require "luci.sys"
m = Map("iolines", "Universal I/O lines", translate("Mode 1 - voltage measurement; Mode 2 - resistive sensor connection; Mode 3 - load management"))
s = m:section(TypedSection, "io")
s.anonymous = true
s.addremove = false
s.template = "cbi/tblsection"
o =... | gpl-2.0 |
PaulosV/ntopng | scripts/lua/host_l4_stats.lua | 10 | 1612 | --
-- (C) 2013-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
interface.select(ifname)
host_info = url2hostinfo(_GET)
host = interface.getHostInfo(host_info["host"],host_info[... | gpl-3.0 |
HFRBOT/- | helpdev.lua | 1 | 1582 |
do
local function run(msg,matches)
if is_sudo(msg) and matches[1]== "المطورين" then
local sajody = [[🔴افضل بوت لحماية الكروبات🔴
┌─────────┐
┇ٌٖ بّــะُ้ৡ ﮩ๋ٖ͜❁ٱ﴿l﴾ﮩٰٖﮩٰ๋ـ❁رـكوbot
└─────────┘
اوامر خاصة بالمطورين
✧عرض هاي القائمة
>> #المطورين
✧الخروج من الكروب
... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0010-p0017-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
remakeelectric/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/leds.lua | 6 | 4164 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("system", translate("<abbr title=\"Light Emitting Diode\">LED</abbr> Configuration"), translate("Customizes the behaviour of the device <abbr title=\"Light Emitting Diode\">LED</abbr>s if possible."))
l... | apache-2.0 |
gnosek/sysdig | userspace/sysdig/chisels/v_kubernetes_pods.lua | 4 | 3519 | --[[
Copyright (C) 2013-2014 Draios inc.
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 ANY WARRANTY; without... | gpl-2.0 |
RoboLV/gmod-score-3-d | lua/entities/3d_Scorebord/cl_init.lua | 1 | 3210 | include("shared.lua")
local Rules={
"1. Respect the other players, not hinder them.",
"2. Do not flood propyl and other objects.",
"3. Do not flood in chat, a microphone, do not cuss.",
"4. Do not spawn log and annoying construction.",
"5. Disable or change the annoying sound of thrusters"
}
surface.CreateFon... | gpl-2.0 |
zjohn4/PD2-lua-src | lib/network/matchmaking/networkmatchmakingxbl.lua | 1 | 92073 | --[[-----------------------------------------------------------------------------------------------
Match making abstraction layer
To do:
find_game(settings): id
This method should always return a valid game. If the matchmaking service fails to find a
game then the AL needs to create a game and make it availabl... | gpl-2.0 |
remakeelectric/luci | applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua | 6 | 3551 | -- 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.
dsp = require "luci.dispatcher"
uci = require "uci"
function ruleCheck()
local rule_error = {}
uci.cursor():foreach("mwan3", "rule",
function (... | apache-2.0 |
zjohn4/PD2-lua-src | lib/states/victorystate.lua | 1 | 2288 | require "lib/states/GameState"
VictoryState = VictoryState or class( MissionEndState )
function VictoryState:init( game_state_machine, setup )
VictoryState.super.init( self, "victoryscreen", game_state_machine, setup )
self._type = "victory"
end
function VictoryState:at_enter( ... )
self._success = true
Victor... | gpl-2.0 |
zjohn4/PD2-lua-src | core/lib/managers/camera/corecameramixer.lua | 1 | 2858 | core:module("CoreCameraMixer")
core:import("CoreClass")
local mvector3_add = mvector3.add
local mvector3_sub = mvector3.subtract
local mvector3_mul = mvector3.multiply
local mvector3_set = mvector3.set
local mvector3_copy = mvector3.copy
local mrotation_mul = mrotation.multiply
local mrotation_slerp = mrotation.slerp
... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0017-p0014-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
mohammad2016mr/sed | plugins/banhammer.lua | 1085 | 11557 |
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 ... | agpl-3.0 |
BooM-amour/hedie | plugins/banhammer.lua | 1085 | 11557 |
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 |
teleofis/OpenWRT | feeds/luci/modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua | 22 | 3303 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Manuel Munz <freifunk at somakoma de>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local util = require "luci.util"
local uci = require "luci.model.uci".cursor()
local profiles = "/etc/config/profile_*"
m = ... | gpl-2.0 |
tobiaswaldvogel/luci | libs/luci-lib-nixio/docsrc/nixio.TLSSocket.lua | 173 | 2926 | --- TLS Socket Object.
-- TLS Sockets contain the underlying socket and context in the fields
-- "socket" and "context".
-- @cstyle instance
module "nixio.TLSSocket"
--- Initiate the TLS handshake as client with the server.
-- @class function
-- @name TLSSocket.connect
-- @usage This function calls SSL_connect().
-- @... | apache-2.0 |
teleofis/OpenWRT | feeds/luci/libs/luci-lib-nixio/docsrc/nixio.TLSSocket.lua | 173 | 2926 | --- TLS Socket Object.
-- TLS Sockets contain the underlying socket and context in the fields
-- "socket" and "context".
-- @cstyle instance
module "nixio.TLSSocket"
--- Initiate the TLS handshake as client with the server.
-- @class function
-- @name TLSSocket.connect
-- @usage This function calls SSL_connect().
-- @... | gpl-2.0 |
zjohn4/PD2-lua-src | core/lib/managers/cutscene/keys/corelocatorconstraintcutscenekey.lua | 1 | 5381 | require "core/lib/managers/cutscene/keys/CoreCutsceneKeyBase"
CoreLocatorConstraintCutsceneKey = CoreLocatorConstraintCutsceneKey or class(CoreCutsceneKeyBase)
CoreLocatorConstraintCutsceneKey.ELEMENT_NAME = "locator_constraint"
CoreLocatorConstraintCutsceneKey.NAME = "Locator Constraint"
CoreLocatorConstraintCutscene... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0007-n0017-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-p0023-p0001-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
splay-project/splay | src/osx-installer/PKG_PAYLOAD/SPLAY/lualibs/splay/out.lua | 2 | 1917 | --[[
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 |
dkrikun/casio-fsm | foreign/smc_6_1_0/examples/Lua/EX3/AppClass.lua | 3 | 2031 | --
-- The contents of this file are subject to the Mozilla Public
-- License Version 1.1 (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.mozilla.org/MPL/
--
-- Software distributed under the License is distributed on an "AS
-- IS... | mit |
dkogan/sysdig | userspace/sysdig/chisels/iobytes_file.lua | 2 | 1602 | --[[
Copyright (C) 2013-2014 Draios inc.
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 ANY WARRANTY; without... | gpl-2.0 |
mendsley/premake-core | modules/vstudio/tests/vc2010/test_manifest.lua | 1 | 1070 | --
-- tests/actions/vstudio/vc2010/test_manifest.lua
-- Validate generation of Manifest block in Visual Studio 201x C/C++ projects.
-- Copyright (c) 2009-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vs2010_manifest")
local vc2010 = p.vstudio.vc2010
local project = p.p... | bsd-3-clause |
USABOT6/usabot | 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 |
GoogleFrog/Zero-K | LuaRules/Gadgets/empiricalDPS.lua | 7 | 2205 | function gadget:GetInfo()
return {
name = "Empirical DPS",
desc = "Tool for determining real DPS values",
author = "Google Frog",
date = "12 Sep 2011",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = false -- loaded by default?
}
end
------------------... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.