repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
Invertika/data | scripts/maps/ow-n0024-n0013-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
irr/luajit.io | lib/ljio/cdef/signal.lua | 2 | 1270 | local ffi = require("ffi")
ffi.cdef[[
typedef struct
{
unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
} __sigset_t;
typedef __sigset_t sigset_t;
int signalfd(int fd, const sigset_t *mask, int flags);
struct signalfd_siginfo
{
uint32_t ssi_signo;
int32_t ssi_errno;
int32_t ssi_code;
... | bsd-2-clause |
remakeelectric/luci | applications/luci-app-qos/luasrc/model/cbi/qos/qos.lua | 36 | 2367 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local wa = require "luci.tools.webadmin"
local fs = require "nixio.fs"
m = Map("qos", translate("Quality of Service"),
translate("With <abbr title=\"Quality of Service\">QoS</abbr> you " ..
"can prioritize n... | apache-2.0 |
zjohn4/PD2-lua-src | core/lib/utils/dev/smoketest/coresmoketestmanager.lua | 1 | 2127 | core:module("CoreSmoketestManager")
core:import("CoreClass")
core:import("CoreEngineAccess")
core:import("CoreSmoketestReporter")
core:import("CoreSmoketestLoadLevelSuite")
core:import("CoreSmoketestEditorSuite")
Manager = Manager or CoreClass.class()
function Manager:init(session_state)
self._session_state = ses... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0014-p0025-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0023-n0005-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-o0000-p0017-o0000.lua | 1 | 1403 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
teleofis/OpenWRT | feeds/routing/bird-openwrt/bird4-openwrt/src/model/bgp_proto.lua | 8 | 9954 | --[[
Copyright (C) 2014 - Eloi Carbó Solé (GSoC2014)
BGP/Bird integration with OpenWRT and QMP
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) a... | gpl-2.0 |
boucha05/VirtualConsole | Sandbox/Sandbox.lua | 1 | 1874 | local content =
{
SpriteSheet = importbinary("..\\Content\\SpriteSheet.Bitmap")
}
local black = 0
local dark_blue = 1
local dark_purple = 2
local dark_green = 3
local brown = 4
local dark_gray = 5
local light_gray = 6
local white = 7
local red = 8
local orange = 9
local yellow = 10
local green = 11
local blue = 12... | mit |
Invertika/data | scripts/maps/ow-p0014-p0018-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-p0008-p0020-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
locou/Zona-Pellucida | lua/timer.lua | 1 | 3691 | --[[
Modeled after garry's mod's timer implementation.
http://wiki.garrysmod.com/page/Category:timer
]]
timer = {
namedTimers = {},
--[[
active,
delay,
delayTimer, --dt gets added to it until it is delay
repetitions,
repetitionsDone, --gets added to each cycle,
func,
]]
simpleTimer... | gpl-3.0 |
Invertika/data | scripts/libs/arenafightpvm.lua | 1 | 1734 | module("arenafight", package.seeall)
require "scripts/lua/npclib"
require "scripts/libs/invertika"
require("scripts/libs/arena/arenafightpvm")
--- Gibt den Arena Rang zurück.
-- @param ch Der Spieler
-- @param arena_string Die Bezeichnung der Arena
-- @return Arena Rang
function get_arena_rank(ch, arena_string)
... | gpl-3.0 |
zhityer/zhityer | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
GoogleFrog/Zero-K | LuaRules/Gadgets/unit_planetwars.lua | 2 | 15457 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
matortheeternal/fractal-miner | penta_sponge/init.lua | 1 | 3194 | -- Import Helpers
dofile(minetest.get_modpath("fractal_helpers").."/helpers.lua")
-- Parameters
local YWATER = -31000
local fractal_iteration = 4 -- min value 0, max value 6
local DEBUG = true
local fractal_block = minetest.get_content_id("default:stone")
local hollow = false
-- Set mapgen parameters
local fractal_si... | mit |
tonibm19/cuberite | Server/Plugins/APIDump/Hooks/OnChunkGenerating.lua | 44 | 1623 | return
{
HOOK_CHUNK_GENERATING =
{
CalledWhen = "A chunk is about to be generated. Plugin can override the built-in generator.",
DefaultFnName = "OnChunkGenerating", -- also used as pagename
Desc = [[
This hook is called before the world generator starts generating a chunk. The plugin may provide
some or... | apache-2.0 |
Uberi/Minetest-WorldEdit | worldedit/visualization.lua | 1 | 4087 | --- Functions for visibly hiding nodes
-- @module worldedit.visualization
minetest.register_node("worldedit:placeholder", {
drawtype = "airlike",
paramtype = "light",
sunlight_propagates = true,
diggable = false,
pointable = false,
walkable = false,
groups = {not_in_creative_inventory=1},
})
--- H... | agpl-3.0 |
Invertika/data | scripts/maps/ow-p0022-n0016-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
hackpascal/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/df.lua | 73 | 1370 | -- 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("DF Plugin Configuration"),
translate(
"The df plugin collects statistics about the disk space " ..
"usage on different devices, mount points or file... | apache-2.0 |
b42-coding/luvit-zed | libs/markdown.lua | 1 | 33151 | ---------------------------------------------------------
--- markdown library in pure lua
--- credits go to the original creator
---------------------------------------------------------
-- Luvit libraries
local math = require('math')
require('./math.lua')(math)
local string = require('string')
local table = require(... | apache-2.0 |
walker020/Tele-inviter | plugins/owners.lua | 284 | 12473 |
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 |
tehran980/Telehsn | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
USABOT6/usabot | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
bestofkeeperbot/yourkeeperbot | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
zjohn4/PD2-lua-src | lib/tweak_data/tipstweakdata.lua | 1 | 1794 | TipsTweakData = TipsTweakData or class()
function TipsTweakData:init()
--[[ Format for the data:
{ string_id = string_id", unlock_lvl = number, level_id = "" }
]]
table.insert( self, { string_id = "tip_tactical_reload" } )
table.insert( self, { string_id = "tip_help_arrested" } )
table.insert( self, { string... | gpl-2.0 |
tickbh/tdengine_cocos2dx_demo | tdengine_ddz/src/cocos/framework/extends/UIScrollView.lua | 55 | 2042 |
--[[
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, di... | apache-2.0 |
GoogleFrog/Zero-K | LuaRules/Configs/lups_projectile_fxs.lua | 12 | 3125 | local MergeTable = Spring.Utilities.MergeTable
local fx = {
flame_heat = {
class = 'JitterParticles2',
colormap = { {1,1,1,1},{1,1,1,1} },
count = 6,
life = 24,
delaySpread = 25,
force = {-10,0,0},
--forceExp = 0.2,
emitRotSprea... | gpl-2.0 |
elemel/moonshine | src/mimic.lua | 1 | 8194 | -- Copyright (c) 2008 Mikael Lind
--
-- 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, publis... | mit |
BloodyKnight/nginx-openresty-windows | luajit-root-x64/luajit/share/luajit-2.1.0-alpha/jit/dis_arm.lua | 17 | 19363 | ----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | bsd-2-clause |
chuenlungwang/skynet | 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 |
nvmlabs/kong-custom-error-handlers | spec/error_handlers_spec.lua | 1 | 6440 | local error_handlers = require "../src/error_handlers"
local format = string.format
describe("error handlers", function()
local whatWasSaid = nil
local messageFormat = nil
local statusCodeTests = {}
statusCodeTests[300] = { 300, "Multiple Choices"}
statusCodeTests[301] = { 301, "Moved Permanently"}
statusC... | apache-2.0 |
GoogleFrog/Zero-K | effects/ataalaser.lua | 8 | 4970 | return {
["ataalaser"] = {
groundsmoke = {
class = [[CSimpleParticleSystem]],
count = 1,
ground = 0,
unit = 1,
properties = {
airdrag = 0.8,
colormap = [[0.2 0 0.25 1 0.4 0 0.7 1 0 0 0 0]],
dir... | gpl-2.0 |
remakeelectric/luci | libs/luci-lib-nixio/docsrc/README.lua | 6 | 4758 | --- General Information.
module "nixio.README"
--- General error handling information.
-- <ul>
-- <li> Most of the functions available in this library may fail. If any error
-- occurs the function returns <strong>nil or false</strong>, an error code
-- (usually errno) and an additional error message text (if avaialabl... | apache-2.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/chili/Controls/colorbars.lua | 25 | 2469 | --//=============================================================================
Colorbars = Control:Inherit{
classname = "colorbars",
color = {1,1,1,1},
defaultWidth = 100,
defaultHeight = 20,
OnChange = {},
}
local this = Colorbars
local inherited = this.inherited
--//=============================... | gpl-2.0 |
wxbasic/wxbasic | oldversions/wxb2_linux-18-feb-2005/source/wrap.lua | 3 | 25236 | -- wrap.lua
-- convert wrappers to C++ format
-- (c) 2002 David Cuny
-- convenience
false = nil
true = 1
-- set one of these for the platforms
win = false
gtk = true
unicode = false
if win == gtk then
print( "win/gtk flags not set correctly" )
exit(0)
end
-- TO DO:
-- code the destructors s... | lgpl-2.1 |
hackpascal/luci | libs/luci-lib-nixio/axTLS/www/lua/download.lua | 180 | 1550 | #!/usr/local/bin/lua
require"luasocket"
function receive (connection)
connection:settimeout(0)
local s, status = connection:receive (2^10)
if status == "timeout" then
coroutine.yield (connection)
end
return s, status
end
function download (host, file, outfile)
--local f = assert (io.open (outfile, "w"))
loc... | apache-2.0 |
tobiaswaldvogel/luci | modules/luci-base/luasrc/http.lua | 8 | 13484 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010-2018 Jo-Philipp Wich <jo@mein.io>
-- Licensed to the public under the Apache License 2.0.
local util = require "luci.util"
local coroutine = require "coroutine"
local table = require "table"
local lhttp = require "lucihttp"
local nixio = require "n... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0009-n0013-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
ffsouza/sipml5 | asterisk/etc/extensions.lua | 317 | 5827 |
CONSOLE = "Console/dsp" -- Console interface for demo
--CONSOLE = "DAHDI/1"
--CONSOLE = "Phone/phone0"
IAXINFO = "guest" -- IAXtel username/password
--IAXINFO = "myuser:mypass"
TRUNK = "DAHDI/G2"
TRUNKMSD = 1
-- TRUNK = "IAX2/user:pass@provider"
--
-- Extensions are expected to be defined in a global table ... | bsd-3-clause |
GoogleFrog/Zero-K | units/chicken_listener.lua | 8 | 3000 | unitDef = {
unitname = [[chicken_listener]],
name = [[Listener]],
description = [[Burrowing Mobile Seismic Detector]],
acceleration = 0.16,
activateWhenBuilt = true,
brakeRate = 0.205,
buildCostEnergy = 0,
buildCostMetal = 0,
builder ... | gpl-2.0 |
bjtaylor1/Project-OSRM-Old | car.lua | 1 | 11785 | -- Begin of globals
--require("lib/access") --function temporarily inlined
barrier_whitelist = { ["cattle_grid"] = true, ["border_control"] = true, ["checkpoint"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["no"] = true, ["entrance"] = true }
access_tag_whitelist = { ["yes"] = true, ["motor... | bsd-2-clause |
GoogleFrog/Zero-K | LuaUI/Widgets/chili/Headers/util.lua | 4 | 8072 | --//=============================================================================
function IsTweakMode()
return widgetHandler.tweakMode
end
--//=============================================================================
function unpack4(t)
return t[1], t[2], t[3], t[4]
end
function clamp(min,max,num)
if (nu... | gpl-2.0 |
hackpascal/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-app.lua | 137 | 15546 | cbimap = Map("asterisk", "asterisk", "")
module = cbimap:section(TypedSection, "module", "Modules", "")
module.anonymous = true
app_alarmreceiver = module:option(ListValue, "app_alarmreceiver", "Alarm Receiver Application", "")
app_alarmreceiver:value("yes", "Load")
app_alarmreceiver:value("no", "Do Not Load")
app_al... | apache-2.0 |
stephen322/prosody-modules | mod_manifesto/mod_manifesto.lua | 32 | 6828 | -- mod_manifesto
local timer = require "util.timer";
local jid_split = require "util.jid".split;
local st = require "util.stanza";
local dm = require "util.datamanager";
local dataforms_new = require "util.dataforms".new;
local adhoc_initial = require "util.adhoc".new_initial_data_form;
local mm_reload = require "modu... | mit |
zjohn4/PD2-lua-src | core/lib/units/editor/corehub.lua | 1 | 21918 | CoreHub = CoreHub or class( HubElement )
-- This is the prepared class for a project heritance
Hub = Hub or class( CoreHub )
function Hub:init( ... )
CoreHub.init( self, ... )
end
function CoreHub:init( unit )
HubElement.init( self, unit )
self._timeline_color = Vector3( 0, 1, 0 )
self._hed.required_triggers =... | gpl-2.0 |
GoogleFrog/Zero-K | LuaRules/Gadgets/api_saveload.lua | 3 | 30630 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- HOW TO USE
-- - see http://springrts.com/wiki/Lua_SaveLoad
-- - tl;dr: /save -y <filename> to save to Spring/Saves
-- remove the -y to not overwrite
--... | gpl-2.0 |
1lann/Firewolf | src/server.lua | 1 | 53364 | --
-- Firewolf Server
-- Made by 1lann and GravityScore
--
-- Networking API
-- RC4
-- RC4
-- Implementation by AgentE382
local cryptWrapper = function(plaintext, salt)
local key = type(salt) == "table" and {unpack(salt)} or {string.byte(salt, 1, #salt)}
local S = {}
for i = 0, 255 do
S... | mit |
xDShot/csgo_knives_sweps | lua/weapons/csgo_falchion_rustcoat.lua | 1 | 2434 | if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then
SWEP.Spawnable = false
print( "csgo_falchion_rustcoat 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) )
DEFINE... | mit |
remakeelectric/luci | applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua | 2 | 3739 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local sys = require "luci.sys"
local uci = require "luci.model.uci".cursor()
local testfullps = luci.sys.exec("ps --help 2>&1 | grep BusyBox") --check which ps do we have
local pss... | apache-2.0 |
tobiaswaldvogel/luci | applications/luci-app-rp-pppoe-server/luasrc/model/cbi/rp-pppoe-server.lua | 7 | 2038 | -- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com>
-- Licensed to the public under the Apache License 2.0.
local m, s, o
local nixio = require "nixio"
m = Map("pppoe", translate("Roaring Penguin PPPoE Server"),
translate("PPPoE Server Configuration"))
s = m:section(TypedSection, "pppoe_server", tran... | apache-2.0 |
royalharsh/flatbuffers | lua/flatbuffers/builder.lua | 8 | 9970 | local N = require("flatbuffers.numTypes")
local ba = require("flatbuffers.binaryarray")
local compat = require("flatbuffers.compat")
local m = {}
local mt = {}
-- get locals for faster access
local VOffsetT = N.VOffsetT
local UOffsetT = N.UOffsetT
local SOffsetT = N.SOffsetT
local Bool = N.Bool
local Uint8 ... | apache-2.0 |
GoogleFrog/Zero-K | LuaRules/Gadgets/91_lups_cloak_fx.lua | 4 | 10962 | -- $Id: lups_manager.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- author: jK
--
-- Copyright (C) 2007,2008.
-- Licensed under the terms of the GNU GPL, v2 or... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0004-p0007-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/game_resource_stats_writer.lua | 17 | 1718 | function widget:GetInfo()
return {
name = "Resource Stat Writer",
desc = "Writes resource statistics to a file at game end.",
author = "Google Frog",
date = "July 11, 2012",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = false -- loaded by default?
}
e... | gpl-2.0 |
zjohn4/PD2-lua-src | core/lib/utils/dev/tools/cutscene_editor/corecutsceneframeexporter.lua | 1 | 3005 | require "core/lib/utils/dev/tools/cutscene_editor/CoreCutsceneFrameVisitor"
CoreCutsceneFrameExporter = CoreCutsceneFrameExporter or class(CoreCutsceneFrameVisitor)
function CoreCutsceneFrameExporter:init(parent_window, cutscene_editor, start_frame, end_frame, collection_name)
self.super.init(self, parent_window, cut... | gpl-2.0 |
GoogleFrog/Zero-K | effects/mary_sue.lua | 25 | 5718 | -- mary_sue_fireball1
-- mary_sue_fireball3
-- mary_sue
-- mary_sue_fireball2
return {
["mary_sue_fireball1"] = {
wezels = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
... | gpl-2.0 |
linxiulei/sysdig | userspace/sysdig/chisels/topfiles_errors.lua | 12 | 1637 | --[[
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 e... | gpl-2.0 |
hackpascal/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua | 73 | 1191 | -- 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("Unixsock Plugin Configuration"),
translate(
"The unixsock plugin creates a unix socket which can be used " ..
"to read collected data from a running... | apache-2.0 |
zjohn4/PD2-lua-src | lib/units/player_team/logics/teamailogicdisabled.lua | 1 | 12373 | require "lib/units/enemies/cop/logics/CopLogicAttack"
-----------------------------------------------------------------------------
-- ************* DISABLED LOGIC ***************
-----------------------------------------------------------------------------
TeamAILogicDisabled = class( TeamAILogicAssault )
TeamAILog... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0017-n0025-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
mendsley/premake-core | modules/d/_preload.lua | 2 | 2148 | --
-- Name: d/_preload.lua
-- Purpose: Define the D language API's.
-- Author: Manu Evans
-- Created: 2013/10/28
-- Copyright: (c) 2013-2015 Manu Evans and the Premake project
--
-- TODO:
-- MonoDevelop/Xamarin Studio has 'workspaces', which correspond to collections
-- of Premake workspaces. If ... | bsd-3-clause |
KublaikhanGeek/wrk | deps/luajit/src/jit/dis_ppc.lua | 88 | 20319 | ----------------------------------------------------------------------------
-- LuaJIT PPC disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------... | apache-2.0 |
zjohn4/PD2-lua-src | core/lib/utils/dev/ews/corevector3spinctrl.lua | 1 | 2643 | core:module("CoreVector3SpinCtrl")
-- Similar to CoreFloatSpinCtrl.
core:import("CoreClass")
core:import("CoreEvent")
core:import("CoreFloatSpinCtrl")
Vector3SpinCtrl = Vector3SpinCtrl or CoreClass.mixin(CoreClass.class(), CoreEvent.BasicEventHandling)
function Vector3SpinCtrl:init(parent, min, max, step, value, na... | gpl-2.0 |
stephen322/prosody-modules | mod_s2s_auth_fingerprint/mod_s2s_auth_fingerprint.lua | 31 | 1380 | -- Copyright (C) 2013-2014 Kim Alvefur
-- This file is MIT/X11 licensed.
module:set_global();
local digest_algo = module:get_option_string(module:get_name().."_digest", "sha1");
local fingerprints = {};
local function hashprep(h)
return tostring(h):gsub(":",""):lower();
end
local function hashfmt(h)
return h:gsu... | mit |
tehran980/Telehsn | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0016-n0024-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-p0024-p0018-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/unit_gadget_icons.lua | 1 | 4251 | -------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Gadget Icons",
desc = "Shows icons from gadgets that cannot access the widget stuff ... | gpl-2.0 |
Meoo/premake-core | tests/actions/vstudio/vc2010/test_manifest.lua | 5 | 1111 | --
-- 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 suite = test.declare("vs2010_manifest")
local vc2010 = premake.vstudio.vc2010
local project = premake.... | bsd-3-clause |
splay-project/splay | tools/scripts/planetlab_utils/splay_pl_pack/splayd_planetlab/lualibs/lib/socket/tp.lua | 146 | 3608 | -----------------------------------------------------------------------------
-- Unified SMTP/FTP subsystem
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: tp.lua,v 1.22 2006/03/14 09:04:15 diego Exp $
-----------------------------------------------------------------------------
--------------------------... | gpl-3.0 |
Drathal/XpFlag | XpFlag.lua | 1 | 1363 | local AddOnName, Engine = ...
-- speed up local calls
local _G = _G
local UnitName = _G.UnitName
local UnitGUID = _G.UnitGUID
local GetRealmName = _G.GetRealmName
local GetBuildInfo = _G.GetBuildInfo
local LibStub = _G.LibStub
-- init addon
local AddOn = LibStub("AceAddon-3.0"):NewAddon(AddOnName, "AceEvent-3.0")
--... | mit |
andreas-t-jonsson/saurus | src/compiler/parser.lua | 2 | 27159 | -- S A U R U S
-- Copyright (c) 2009-2015 Andreas T Jonsson <andreas@saurus.org>
--
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
local line_info = true
local tok... | mpl-2.0 |
lemenkov/wireshark | epan/wslua/console.lua | 13 | 3481 | -- console
-- A console and a window to execute commands in lua
--
-- (c) 2006 Luis E. Garcia Ontanon <luis@ontanon.org>
--
-- Wireshark - Network traffic analyzer
-- By Gerald Combs <gerald@wireshark.org>
-- Copyright 1998 Gerald Combs
--
-- This program is free software; you can redistribute it and/or
-- modify it un... | gpl-2.0 |
gnosek/sysdig | userspace/sysdig/chisels/v_spy_syslog.lua | 3 | 2003 | --[[
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 |
metakermit/vlc | share/lua/meta/art/02_frenchtv.lua | 48 | 2666 | --[[
Gets an artwork from amazon
$Id$
Copyright © 2007 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0025-n0010-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
jordyvl/jordyvl.github.io | backup-dir/lua/colors.lua | 1 | 1462 | colors = {}
colors.white = 1
colors.orange = 2
colors.magenta = 4
colors.lightBlue = 8
colors.yellow = 16
colors.lime = 32
colors.pink = 64
colors.gray = 128
colors.lightGray = 256
colors.cyan = 512
colors.purple = 1024
colors.blue = 2048
colors.brown = 4096
colors.green ... | gpl-2.0 |
gnosek/sysdig | userspace/sysdig/chisels/v_cpus.lua | 5 | 1625 | --[[
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 |
GoogleFrog/Zero-K | LuaUI/Widgets/chili/Controls/window.lua | 12 | 1773 | Window = Control:Inherit{
classname = 'window',
resizable = true,
draggable = true,
minWidth = 50,
minHeight = 50,
defaultWidth = 400,
defaultHeight = 300,
}
local this = Window
local inherited = this.inherited
--//=============================================================================
--[[
fun... | gpl-2.0 |
AlphaStaxLLC/rackspace-monitoring-agent | hostinfo/misc.lua | 3 | 3363 | --[[
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 |
Meoo/premake-core | tests/actions/make/solution/test_group_rule.lua | 3 | 1152 | --
-- tests/actions/make/solution/test_group_rule.lua
-- Validate generation of group rules
-- Copyright (c) 2012-2014 Jason Perkins and the Premake project
--
T.make_group_rule = {}
local suite = T.make_group_rule
local make = premake.make
--
-- Setup/teardown
--
local sln
function suite.setup()
sln = test... | bsd-3-clause |
splay-project/splay | daemon/src/lua/modules/splay/coxpcall.lua | 2 | 1972 | -------------------------------------------------------------------------------
-- Coroutine safe xpcall and pcall versions
--
-- Encapsulates the protected calls with a coroutine based loop, so errors can
-- be dealed without the usual Lua 5.x pcall/xpcall issues with coroutines
-- yielding inside the call to pcall or... | gpl-3.0 |
TelegramDev/sudorobot | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
hackpascal/luci | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua | 72 | 1073 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ipaddr, defaultroute, metric, ttl, mtu
ipaddr = section:taboption("general", Value, "ipaddr",
translate("Local IPv4 address"),
translate("Leave empty to use the current W... | apache-2.0 |
zjohn4/PD2-lua-src | core/lib/utils/dev/tools/cutscene_editor/corecutsceneframeexporterdialog.lua | 1 | 6395 | CoreCutsceneFrameExporterDialog = CoreCutsceneFrameExporterDialog or class()
function CoreCutsceneFrameExporterDialog:init(editor_self, editor_callback, parent_window, folder_name, start_frame, end_frame)
self.__editor_self = editor_self
self.__editor_callback = editor_callback
self.__start_frame = start_frame
sel... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0018-p0011-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- 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/dir.lua | 12 | 15653 | --- Useful functions for getting directory contents and matching them against wildcards.
--
-- Dependencies: `pl.utils`, `pl.path`, `pl.tablex`
--
-- Soft Dependencies: `alien`, `ffi` (either are used on Windows for copying/moving files)
-- @module pl.dir
local utils = require 'pl.utils'
local path = require 'pl.path'... | bsd-3-clause |
tobi-wan-kenobi/dotfiles | config/awesome/misc/input.lua | 1 | 6653 | local gears = require("gears")
local awful = require("awful")
local hotkeys_popup = require("awful.hotkeys_popup")
local scratch = require("awesome-scratch.scratch")
require("awful.hotkeys_popup.keys")
local input = {}
function view_tag_only(i)
local screen = awful.screen.focused()
local tag = screen.tags[i]
if t... | mit |
teleofis/OpenWRT | feeds/luci/applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo.lua | 141 | 1038 | --[[
smap_devinfo - SIP Device Information
(c) 2009 Daniel Dickinson
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
require("luci.i18n")
re... | gpl-2.0 |
SoniEx2/object.lua | object.lua | 1 | 7519 | local smt = setmetatable
local type = type
local error = error
local pcall = pcall
local select = select
local min, max = math.min, math.max
local s = string
local srep = s.rep
local ssub = s.sub
local sgsub = s.gsub
local sfind = s.find
local sbyte = s.byte
local schar = s.char
loca... | mit |
GoogleFrog/Zero-K | units/zenith.lua | 2 | 6925 | unitDef = {
unitname = [[zenith]],
name = [[Zenith]],
description = [[Meteor Controller]],
acceleration = 0,
activateWhenBuilt = true,
buildCostEnergy = 30000,
buildCostMetal = 30000,
... | gpl-2.0 |
esmil/lua-ircparse | test.lua | 1 | 1327 | #!/usr/bin/env lua
--
-- This file is part of lua-ircparse.
-- Copyright 2011 Emil Renner Berthing
--
-- lua-ircparse 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 (a... | gpl-3.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/gui_local_colors.lua | 5 | 5093 | function widget:GetInfo()
return {
name = "Local Team Colors",
desc = "Makes neat team color scheme - you teal, allies blueish, enemies reddish",
author = "Licho",
date = "February, 2010",
license = "GNU GPL v2, or later",
layer = -10001,
enabled = true,
}
end
------------------------------------------... | gpl-2.0 |
teleofis/OpenWRT | feeds/luci/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua | 10 | 17279 | -- Licensed to the public under the Apache License 2.0.
module "luci.sys.zoneinfo.tzdata"
TZ = {
{ 'Africa/Abidjan', 'GMT0' },
{ 'Africa/Accra', 'GMT0' },
{ 'Africa/Addis Ababa', 'EAT-3' },
{ 'Africa/Algiers', 'CET-1' },
{ 'Africa/Asmara', 'EAT-3' },
{ 'Africa/Bamako', 'GMT0' },
{ 'Africa/Bangui', 'WAT-1' },
... | gpl-2.0 |
pmarkus/backpack | libs/AceDB-3.0/AceDB-3.0.lua | 16 | 24630 | --- **AceDB-3.0** manages the SavedVariables of your addon.
-- It offers profile management, smart defaults and namespaces for modules.\\
-- Data can be saved in different data-types, depending on its intended usage.
-- The most common data-type is the `profile` type, which allows the user to choose
-- the active profi... | gpl-3.0 |
1lann/Firewolf | old/rednet explorer.lua | 5 | 6163 | local x,y = term.getSize()
rednet.open("top")
local EditingValue = "";
function rednetV()
return "2.4.1"
end
title = "Rednet Explorer " ..rednetV() --Add title = "name" to change the webpage's title!
local website = "home";
if fs.exists(".cache") then fs.delete(".cache") end
if fs.exists(".websiteedited") then fs.de... | mit |
teleofis/OpenWRT | feeds/routing/bird-openwrt/bird6-openwrt/src/model/bgp_proto.lua | 7 | 9952 | --[[
Copyright (C) 2014 - Eloi Carbó Solé (GSoC2014)
BGP/Bird integration with OpenWRT and QMP
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) a... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0019-n0022-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
chuenlungwang/skynet | test/testredis2.lua | 82 | 1043 | local skynet = require "skynet"
local redis = require "redis"
local db
function add1(key, count)
local t = {}
for i = 1, count do
t[2*i -1] = "key" ..i
t[2*i] = "value" .. i
end
db:hmset(key, table.unpack(t))
end
function add2(key, count)
local t = {}
for i = 1, count do
... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.