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 |
|---|---|---|---|---|---|
Invertika/data | scripts/maps/ow-n0005-n0022-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
tobiaswaldvogel/luci | applications/luci-app-bmx7/root/usr/lib/lua/luci/controller/bmx7.lua | 9 | 2756 | --[[
Copyright (C) 2011 Pau Escrich <pau@dabax.net>
Contributors Jo-Philipp Wich <xm@subsignal.org>
Roger Pueyo Centelles <roger.pueyo@guifi.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
... | apache-2.0 |
beatgammit/luasocket | etc/tftp.lua | 45 | 4798 | -----------------------------------------------------------------------------
-- TFTP support for the Lua language
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- ... | mit |
teleofis/OpenWRT | feeds/luci/applications/luci-app-polipo/luasrc/model/cbi/polipo.lua | 45 | 5753 | -- Copyright 2008 Aleksandar Krsteski <alekrsteski@gmail.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("polipo", translate("Polipo"),
translate("Polipo is a small and fast caching web proxy."))
-- General section
s = m:section(NamedSection, "general", "polipo", translate("Proxy"))
s:tab("gene... | gpl-2.0 |
metakermit/vlc | share/lua/playlist/koreus.lua | 37 | 2125 | --[[
Copyright © 2009 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.
This program is distributed in ... | gpl-2.0 |
zjohn4/PD2-lua-src | core/lib/compilers/corecompilersystem.lua | 1 | 2015 | -- Currently, an engine-side instance of Application does not exist at compile time.
-- Thus, we need to fake one here. This might change in the future.
if Application == nil then
Application = setmetatable({}, {})
function Application:ews_enabled()
return false
end
end
-- Currently, an engine-side instance of... | gpl-2.0 |
giuseppeM99/Utility-Bot | plugins/moderation.lua | 1 | 12600 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
local members
if not cb_extra.is_chan then
members = result.members
else
members = result
end
for k,v in pairs(members) do
... | gpl-3.0 |
KublaikhanGeek/wrk | deps/luajit/src/jit/dis_mips.lua | 88 | 13222 | ----------------------------------------------------------------------------
-- LuaJIT MIPS 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 |
BloodyKnight/nginx-openresty-windows | lua-resty-core-0.1.1/lib/resty/core/exit.lua | 9 | 1125 | -- Copyright (C) Yichun Zhang (agentzh)
local ffi = require 'ffi'
local ffi_string = ffi.string
local C = ffi.C
local ngx = ngx
local tostring = tostring
local error = error
local base = require "resty.core.base"
local get_string_buf = base.get_string_buf
local get_size_ptr = base.get_size_ptr
local base = require "r... | bsd-2-clause |
Reda9991/DevRode | plugins/broadcast.lua | 2 | 1524 | local function run(msg, matches)
if matches[1] == 'bc' and is_admin1(msg) then
local response = matches[3]
--send_large_msg("chat#id"..matches[2], response)
send_large_msg("channel#id"..matches[2], response)
end
if matches[1] == 'broadcast' then
if is_sudo(msg) then -- Only sudo !
local data = load_data(_... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0001-p0019-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
dkogan/sysdig | userspace/sysdig/chisels/topfiles_bytes.lua | 2 | 1135 | --[[
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/Skins/Glass/skin.lua | 26 | 4861 | --//=============================================================================
--// GlassSkin
local skin = {
info = {
name = "Glass",
version = "0.2",
author = "jK",
}
}
--//=============================================================================
--//
skin.general = {
--font = "F... | gpl-2.0 |
zjohn4/PD2-lua-src | core/lib/utils/corelinkedstackmap.lua | 1 | 2800 | core:module( "CoreLinkedStackMap" )
-- A stack were you can remove any value, but only add to the top:
LinkedStackMap = LinkedStackMap or class()
function LinkedStackMap:init()
self._linked_map = {}
self._top_link = nil
self._bottom_link = nil
self._last_link_id = 0
end
function LinkedStackMap:top_link()
return... | gpl-2.0 |
zjohn4/PD2-lua-src | lib/managers/mission/elementinventorydummy.lua | 1 | 4599 | core:import( "CoreMissionScriptElement" )
ElementInventoryDummy = ElementInventoryDummy or class( CoreMissionScriptElement.MissionScriptElement )
function ElementInventoryDummy:init( ... )
ElementInventoryDummy.super.init( self, ... )
end
function ElementInventoryDummy:client_on_executed( ... )
-- self:on_executed... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0002-n0022-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
dvdvideo1234/wire | lua/entities/gmod_wire_socket.lua | 3 | 12060 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Socket"
ENT.Purpose = "Links with a plug"
ENT.Instructions = "Move a plug close to a plug to link them, and data will be transferred through the link."
ENT.WireDebugName = "Socket"
local PositionOffsets = {
["models/wingf0x/i... | apache-2.0 |
metakermit/vlc | share/lua/sd/fmc.lua | 122 | 2554 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
... | gpl-2.0 |
zjohn4/PD2-lua-src | core/lib/managers/cutscene/corecutscenemanager.lua | 1 | 21457 | require "core/lib/managers/cutscene/CoreCutscene"
require "core/lib/managers/cutscene/CoreCutsceneKeys"
require "core/lib/managers/cutscene/CoreCutsceneCast"
require "core/lib/managers/cutscene/CoreCutscenePlayer"
require "core/lib/managers/cutscene/CoreCutsceneActorDatabase"
CoreCutsceneManager = CoreCutsceneManager ... | gpl-2.0 |
stephen322/prosody-modules | mod_seclabels/mod_seclabels.lua | 32 | 3461 | local st = require "util.stanza";
local xml = require "util.xml";
local xmlns_label = "urn:xmpp:sec-label:0";
local xmlns_label_catalog = "urn:xmpp:sec-label:catalog:2";
local xmlns_label_catalog_old = "urn:xmpp:sec-label:catalog:0"; -- COMPAT
module:add_feature(xmlns_label);
module:add_feature(xmlns_label_catalog);
... | mit |
dvdvideo1234/wire | lua/entities/gmod_wire_expression2/base/preprocessor.lua | 2 | 14940 | --[[
Expression 2 Pre-Processor for Garry's Mod
Andreas "Syranide" Svensson, me@syranide.com
]]
AddCSLuaFile()
E2Lib.PreProcessor = {}
local PreProcessor = E2Lib.PreProcessor
PreProcessor.__index = PreProcessor
function PreProcessor.Execute(...)
-- instantiate PreProcessor
local instance = setmetatable({}, Pre... | apache-2.0 |
ahmadnamed/ANIMUS | plugins/owners.lua | 194 | 23755 | 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)]['settings'... | gpl-2.0 |
xDShot/csgo_knives_sweps | lua/weapons/csgo_bayonet_slaughter.lua | 1 | 2430 | if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then
SWEP.Spawnable = false
print( "csgo_bayonet_slaughter 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 |
elemel/moonshine | src/Game.lua | 1 | 2470 | -- 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 |
tobiaswaldvogel/luci | applications/luci-app-ltqtapi/luasrc/controller/ltqtapi.lua | 5 | 1114 | -- Copyright 2019 John Crispin <blogic@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.ltqtapi", package.seeall)
function index()
if not nixio.fs.access("/etc/config/telephony") then
return
end
page = node("admin", "telephony")
page.target = firstchild()
page.title... | apache-2.0 |
Invertika/data | scripts/maps/ow-p0009-p0007-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | LuaRules/Gadgets/game_lagmonitor.lua | 1 | 16097 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
tobiaswaldvogel/luci | applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosy-file-server.lua | 7 | 2295 | -- Copyright 2018 Rosy Song <rosysong@rosinson.com>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
local dis = uci:get("rosyfs", "default", "disabled")
local targets = {}
local server_root = luci.http.formvalue("server_root") or "/www/rosyfs-share/"
local buffer ... | apache-2.0 |
tobiaswaldvogel/luci | applications/luci-app-unbound/luasrc/controller/unbound.lua | 5 | 7259 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2017 Eric Luehrsen <ericluehrsen@gmail.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.unbound", package.seeall)
function index()
local fs = require "nixio.fs"... | apache-2.0 |
linxiulei/sysdig | userspace/sysdig/chisels/v_syscalls.lua | 2 | 2258 | --[[
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 |
TITANBOT/RT | plugins/anti_spam.lua | 923 | 3750 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
hackpascal/luci | applications/luci-app-vsftpd/luasrc/controller/vsftpd.lua | 8 | 1128 | --[[
LuCI - Lua Configuration Interface
Copyright 2016 Weijie Gao <hackpascal@gmail.com>
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$
]]--
req... | apache-2.0 |
AlphaStaxLLC/rackspace-monitoring-agent | main.lua | 2 | 10028 | --[[
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 |
PaulosV/ntopng | scripts/lua/vlan_stats.lua | 10 | 1940 | --
-- (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')
if (group_col == nil) then
group_col = "asn"
end
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
... | gpl-3.0 |
zjohn4/PD2-lua-src | lib/managers/mission/elementexplosion.lua | 1 | 1673 | core:import( "CoreMissionScriptElement" )
ElementExplosion = ElementExplosion or class( ElementFeedback )
function ElementExplosion:init( ... )
ElementExplosion.super.init( self, ... )
if Application:editor() then
if self._values.explosion_effect ~= "none" then
CoreEngineAccess._editor_load( self.IDS_EFFECT... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0001-n0001-o0000.lua | 1 | 1689 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0020-p0002-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
andreas-t-jonsson/saurus | premake4.lua | 2 | 2177 | for _,arg in ipairs(_ARGS) do
if arg == 'debug' then debug_compiler = true
elseif arg == 'html' then html = true
elseif arg == 'm' then m = true
elseif arg == 'dl' then dl = true
elseif arg == 'no-pattern' then no_pattern = true
elseif arg == 'no-dynlib' then no_... | mpl-2.0 |
Invertika/data | scripts/maps/ow-p0023-n0009-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-p0021-n0012-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-n0018-n0024-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | units/armdeva.lua | 1 | 5591 | unitDef = {
unitname = [[armdeva]],
name = [[Stardust]],
description = [[Anti-Swarm Turret]],
activateWhenBuilt = true,
buildCostEnergy = 220,
buildCostMetal = 220,
builder = fals... | gpl-2.0 |
dvdvideo1234/wire | lua/entities/gmod_wire_screen.lua | 3 | 6027 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Screen"
ENT.WireDebugName = "Screen"
ENT.Editable = true
ENT.RenderGroup = RENDERGROUP_BOTH
function ENT:SetupDataTables()
self:NetworkVar("Bool", 0, "SingleValue", { KeyName = "SingleValue",
Edit = { type = "Boolean", title = "#Tool_... | apache-2.0 |
dvdvideo1234/wire | lua/wire/client/e2descriptions.lua | 1 | 159085 | if not E2Helper then return end
local name, short, type, typeid
timer.Simple(0.1, function()
for k, v in pairs( wire_expression_types ) do
if k == "NORMAL" then k = "NUMBER" end
name = k:sub(1,1) .. k:sub(2):lower()
short = name:Left(3)
type = name:lower()
typeid = v[1]
-- tables
E2Helper.Descriptions[... | apache-2.0 |
tickbh/tdengine_cocos2dx_demo | tdengine_ddz/src/ui/head_icon.lua | 1 | 1463 | HEAD_ICON_CLASS = class("HEAD_ICON_CLASS", function()
return display.newNode()
end)
function HEAD_ICON_CLASS:ctor(data)
self.data = {}
local head_bg = display.newSprite()
head_bg:setTexture("icon/icon_bg.png")
head_bg:setAnchorPoint(cc.p(0, 0))
self:addChild(head_bg)
self.head_bg = head_bg
... | apache-2.0 |
alikingambav/archer | plugins/admin.lua | 11 | 11055 | 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 |
xDShot/csgo_knives_sweps | lua/weapons/csgo_flip_fade.lua | 1 | 2400 | if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then
SWEP.Spawnable = false
print( "csgo_flip_fade 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_BASECLA... | mit |
zjohn4/PD2-lua-src | lib/managers/mission/elementaccesscamera.lua | 1 | 5201 | core:import( "CoreMissionScriptElement" )
ElementAccessCamera = ElementAccessCamera or class( CoreMissionScriptElement.MissionScriptElement )
function ElementAccessCamera:init( ... )
ElementAccessCamera.super.init( self, ... )
self._camera_unit = nil
self._triggers = {}
end
function ElementAccessCamera:on_scrip... | gpl-2.0 |
Meoo/premake-core | tests/base/test_include.lua | 5 | 1082 | --
-- tests/base/test_include.lua
-- Test the include() function, for including external scripts
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
local suite = test.declare("include")
--
-- Setup and teardown
--
function suite.teardown()
-- clear the list of included files after each run
i... | bsd-3-clause |
GoogleFrog/Zero-K | LuaUI/Widgets/unit_com_counter.lua | 25 | 2079 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "ComCounter",
desc = "Nofifies how many Commanders are remaining",
author = "TheFatContr... | gpl-2.0 |
tickbh/tdengine_cocos2dx_demo | tdengine_ddz/src/ui/main_scene.lua | 1 | 1405 |
MAIN_SCENE_CLASS = class("MAIN_SCENE_CLASS", function()
return display.newScene("MAIN_SCENE_CLASS")
end)
function MAIN_SCENE_CLASS:ctor()
self:enableNodeEvents()
self.uid = new_cookie()
self:openLoginLayer()
end
function MAIN_SCENE_CLASS:openLoginLayer()
self:removeAllChildren()
local layer ... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0013-o0000-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- 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/coreeditorcubemap.lua | 1 | 9172 | core:import( "CoreEditorUtils" )
-- Searched for units with projection lights and starts cube generator
function CoreEditor:create_projection_light( type )
local lights = {}
local units = {}
if type == "all" then
local s_units = self:layer( "Statics" ):created_units()
for _,unit in ipairs( s_units ) do
local... | gpl-2.0 |
zjohn4/PD2-lua-src | core/lib/managers/mission/coreelementrandom.lua | 1 | 1425 | core:module( "CoreElementRandom" )
core:import( "CoreMissionScriptElement" )
core:import( "CoreTable" )
ElementRandom = ElementRandom or class( CoreMissionScriptElement.MissionScriptElement )
function ElementRandom:init( ... )
ElementRandom.super.init( self, ... )
self._original_on_executed = CoreTable.clone( sel... | gpl-2.0 |
Invertika/data | scripts/maps/iw-monument-of-bugfixer-o00-o00-n01.lua | 1 | 3009 | -- Externe Map Skripting Datei
-- In dieser Datei stehen die entsprechenden externen NPCs, Trigger und anderer Dinge.
--
-- © 2008-2011 by The Invertika Development Team
--
-- This file is part of Invertika. Invertika is free software; you can redistribute
-- it and/or modify it under the terms of the GNU General Pub... | gpl-3.0 |
GoogleFrog/Zero-K | effects/resurrect.lua | 25 | 3032 | -- resurrect
return {
["resurrect"] = {
sparks = {
air = true,
class = [[CSimpleParticleSystem]],
ground = true,
water = true,
underwater = true,
properties = {
airdrag = 1,
colormap ... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0008-p0021-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-n0015-n0006-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
tickbh/tdengine_cocos2dx_demo | tdengine_ddz/src/packages/mvc/ViewBase.lua | 29 | 1888 |
local ViewBase = class("ViewBase", cc.Node)
function ViewBase:ctor(app, name)
self:enableNodeEvents()
self.app_ = app
self.name_ = name
-- check CSB resource file
local res = rawget(self.class, "RESOURCE_FILENAME")
if res then
self:createResoueceNode(res)
end
local binding = ... | apache-2.0 |
linxiulei/sysdig | userspace/sysdig/chisels/scallslower.lua | 12 | 4223 | --[[
scallslower.lua - trace the syscalls slower than a given threshold.
USAGE: sysdig -c scallslower min_ms
eg,
sysdig -c scallslower 1000 # show syscalls slower than 1000 ms.
sysdig -c scallslower "1 disable_colors" # show syscalls slower than 1 ms. w/ no colors
sysdig -pc -c scallslower 1000 #... | gpl-2.0 |
teleofis/OpenWRT | feeds/luci/applications/luci-app-asterisk/luasrc/model/cbi/asterisk.lua | 68 | 5120 | -- 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", "")
asterisk = cbimap:section(TypedSection, "asterisk", "Asterisk General Options", "")
asterisk.anonymous = true
agidir... | gpl-2.0 |
xDShot/csgo_knives_sweps | lua/weapons/csgo_m9_slaughter.lua | 1 | 2413 | if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then
SWEP.Spawnable = false
print( "csgo_m9_slaughter 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_BASE... | mit |
Invertika/data | scripts/maps/ow-n0002-p0018-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
MeteoricGames/pioneer | data/systems/01_firedrake.lua | 1 | 3728 | -- Copyright © 2008-2014 Pioneer Developers. See AUTHORS.txt for details
-- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
local s = CustomSystem:new('Firedrake', { 'STAR_M' })
:govtype('CISSOCDEM')
:short_desc('Remote colony with large amounts of heavy industry')
:long_desc([[A remote heavy industr... | gpl-3.0 |
tobiaswaldvogel/luci | applications/luci-app-dnscrypt-proxy/luasrc/model/cbi/dnscrypt-proxy/overview_tab.lua | 10 | 9479 | -- Copyright 2017-2018 Dirk Brenken (dev@brenken.org)
-- This is free software, licensed under the Apache License, Version 2.0
local fs = require("nixio.fs")
local uci = require("luci.model.uci").cursor()
local util = require("luci.util")
local res_input = "/usr/share/dnscrypt-proxy/dnscrypt-resolver... | apache-2.0 |
stephen322/prosody-modules | mod_twitter/mod_twitter.lua | 32 | 15067 | -- for Prosody
-- via dersd
if module:get_host_type() ~= "component" then
error(module.name.." should be loaded as a component, check out http://prosody.im/doc/components", 0);
end
local jid_split = require "util.jid".split;
local st = require "util.stanza";
local componentmanager = require "core.componentmanager";
... | mit |
Invertika/data | scripts/maps/ow-n0011-n0023-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
KublaikhanGeek/wrk | deps/luajit/dynasm/dasm_arm.lua | 120 | 34598 | ------------------------------------------------------------------------------
-- DynASM ARM module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0017-n0013-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-n0022-n0008-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
zjohn4/PD2-lua-src | core/lib/managers/coresettingsmanager.lua | 1 | 3024 | --------------------------------------------------
-- WARNING:
-- The settings manager should only be used during
-- development. It is unsafe to use it to store
-- game settings, since it stores the settings as
-- a plain Lua file and executes it using the Lua
-- loadstring() function.
--
-- USAGE:
-- local sm = Setti... | gpl-2.0 |
GoogleFrog/Zero-K | units/armpw.lua | 4 | 6327 | unitDef = {
unitname = [[armpw]],
name = [[Glaive]],
description = [[Light Raider Bot]],
acceleration = 0.5,
brakeRate = 0.4,
buildCostEnergy = 65,
buildCostMetal = 65,
buildPic = [[armpw.png]],
buildTime ... | gpl-2.0 |
tonibm19/cuberite | Server/Plugins/Debuggers/Info.lua | 7 | 5962 |
-- Info.lua
-- Implements the g_PluginInfo standard plugin description
g_PluginInfo =
{
Name = "Debuggers",
Version = "14",
Date = "2014-12-11",
Description = [[Contains code for testing and debugging the server. Should not be enabled on a production server!]],
Commands =
{
["/arr"] =
{
Permission... | apache-2.0 |
hackpascal/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-voice.lua | 68 | 1280 | -- 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", "")
voicegeneral = cbimap:section(TypedSection, "voicegeneral", "Voicemail general options", "")
serveremail = voicegene... | apache-2.0 |
Meoo/premake-core | tests/tools/test_snc.lua | 7 | 3477 | --
-- tests/test_snc.lua
-- Automated test suite for the SNC toolset interface.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
--
local suite = test.declare("tools_snc")
local snc = premake.tools.snc
--
-- Setup/teardown
--
local sln, prj, cfg
function suite.setup()
sln, prj = test.creates... | bsd-3-clause |
zjohn4/PD2-lua-src | lib/managers/menu/menurenderer.lua | 1 | 17004 | core:import("CoreMenuRenderer")
require "lib/managers/menu/MenuNodeGui"
require "lib/managers/menu/renderers/MenuNodeTableGui"
require "lib/managers/menu/renderers/MenuNodeStatsGui"
require "lib/managers/menu/renderers/MenuNodeCreditsGui"
require "lib/managers/menu/renderers/MenuNodeButtonLayoutGui"
require "lib/manag... | gpl-2.0 |
Disslove77777/pppp | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
GoogleFrog/Zero-K | LuaUI/Configs/sounds_noises.lua | 6 | 20884 | -- needs select[1] and ok[1] (and build for cons)
local sounds = {
-- Misc
default = {
ok = {
[1] = "light_bot_move",
},
select = {
[1] = "light_bot_select",
},
},
armasp = {
select = {
[1] = "building_select1",
},
},
armcsa = {
build = "builder_start",
ok = {
[1] = "gunship_move",
... | gpl-2.0 |
dvdvideo1234/wire | lua/entities/gmod_wire_egp_hud/huddraw.lua | 3 | 5076 | hook.Add("Initialize","EGP_HUD_Initialize",function()
if (CLIENT) then
local EGP_HUD_FirstPrint = true
local tbl = {}
--------------------------------------------------------
-- Toggle
--------------------------------------------------------
local function EGP_Use( um )
local ent = um:ReadEntity()
i... | apache-2.0 |
MOHAMMAD-MOSAVI/ABCD | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
walker020/Tele-inviter | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
splay-project/splay | daemon/src/lua/modules/splay/utils.lua | 2 | 3364 | --[[
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 |
remakeelectric/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua | 68 | 1787 | -- 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", "")
iax = cbimap:section(TypedSection, "iax", "IAX Connection", "")
iax.addremove = true
alwaysinternational = iax:optio... | apache-2.0 |
Invertika/data | scripts/maps/ow-p0014-p0010-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
windyuuy/spt | src/result/indexer.lua | 1 | 2069 |
module('indexer',package.seeall)
function index(self,node_path,...)
local aliases=string.split(node_path,'>',nil)
local order=aliases[1]
order=tonumber(order)
if(order and order>0)then
-- assert(aliases[1]:sub(1,1)=='.','')
table.remove(aliases,1)
else
order=1
end
-- local end_alias,attr_... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0017-n0011-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
PaulosV/ntopng | third-party/LuaJIT-2.0.3/src/host/genminilua.lua | 55 | 11962 | ----------------------------------------------------------------------------
-- Lua script to generate a customized, minified version of Lua.
-- The resulting 'minilua' is used for the build process of LuaJIT.
----------------------------------------------------------------------------
-- Copyright (C) 2005-2014 Mike P... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0009-p0002-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/stdout.lua | 2 | 1295 | --[[
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 |
zjohn4/PD2-lua-src | lib/managers/hud/hudinteraction.lua | 1 | 5808 | HUDInteraction = HUDInteraction or class()
function HUDInteraction:init( hud, child_name )
self._hud_panel = hud.panel
self._circle_radius = 64
self._sides = 64
self._child_name_text = (child_name or "interact").."_text"
self._child_ivalid_name_text = (child_name or "interact").."_invalid_text"
if self._hud_pa... | gpl-2.0 |
PaulosV/ntopng | scripts/lua/iface_ndpi_stats.lua | 5 | 3262 | --
-- (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)
if(_GET["breed"] == "true") then
show_breed = true
els... | gpl-3.0 |
swganh/mmoserver | data/script/TatooineNpcTest4.lua | 4 | 1519 | -- Tatooine NPC test
-- This script will not start until Zoneserver is ready.
print("Tatooine NPC test");
LuaScriptEngine.WaitMSec(1000);
local MM = require 'Script/TatooineNpcTest2'
local myPos = "SR";
local prevPos = "";
-- npcObjects to use in formation.
local npcMembers = { };
local spawnPosX = -1371.0
local d... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0009-n0004-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
zhityer/zhityer | plugins/banhammer.lua | 175 | 5896 | local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return white
end
local function is_chat_whitelisted(id)
local hash = 'whitelist:chat#id'..id
local white = redis:get(hash) or false
return white
end
local function kick_user(user_id, chat_id)... | gpl-2.0 |
AlphaStaxLLC/rackspace-monitoring-agent | hostinfo/system.lua | 3 | 1177 | --[[
Copyright 2014 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 |
b42-coding/luvit-zed | libs/json.lua | 1 | 24837 | ---------------------------------------------------------
--- json 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('tab... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0006-p0001-o0000.lua | 1 | 1399 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
hackpascal/luci | applications/luci-app-radvd/luasrc/model/cbi/radvd/interface.lua | 61 | 7787 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sid = arg[1]
local utl = require "luci.util"
m = Map("radvd", translatef("Radvd - Interface %q", "?"),
translate("Radvd is a router advertisement daemon for IPv6. " ..
"It listens to router solicitatio... | apache-2.0 |
Invertika/data | scripts/maps/ow-p0012-p0021-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
sinavafa/priv8 | plugins/anti_spam.lua | 435 | 3886 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.