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 |
|---|---|---|---|---|---|
prasoc/BetterUI | Modules/Store/Store.lua | 2 | 3144 | BUI_STORE_SCENE_NAME = "bui_gamepad_store"
BUI.Store.Buy = ZO_GamepadStoreBuy:Subclass()
function BUI.Store.Buy:New(...)
local object = ZO_GamepadStoreBuy.New(self, ...)
--object:Initialize(self, ...)
return object
end
function BUI.Store.Buy:Initialize(scene)
ZOS_GamepadStoreListComponent.Initialize(self,... | mit |
Meoo/premake-core | tests/actions/vstudio/vc200x/test_excluded_configs.lua | 3 | 1581 | --
-- tests/actions/vstudio/vc200x/test_excluded_configs.lua
-- Check handling of configurations which have been excluded from the build.
-- Copyright (c) 2012-2014 Jason Perkins and the Premake project
--
local suite = test.declare("vs200x_excluded_configs")
local vc200x = premake.vstudio.vc200x
local config = pre... | bsd-3-clause |
Invertika/data | scripts/maps/ow-n0011-p0016-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
BloodyKnight/nginx-openresty-windows | luajit-root/luajit/share/luajit-2.1.0-alpha/jit/dump.lua | 17 | 19737 | ----------------------------------------------------------------------------
-- LuaJIT compiler dump module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-... | bsd-2-clause |
matortheeternal/fractal-miner | hilbert_curve/init.lua | 1 | 3762 | -- Import Helpers
dofile(minetest.get_modpath("fractal_helpers").."/helpers.lua")
-- Parameters
local YWATER = -31000
local fractal_iteration = 5 -- min value 1, max value 14
local DEBUG = true
local fix_spread = true
local fractal_block = minetest.get_content_id("default:dirt_with_snow")
local fix_spread_block = mine... | mit |
Invertika/data | scripts/maps/ow-n0008-n0024-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0025-n0003-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
whitehat101/iliketurtles | apis/travel.lua | 1 | 3791 | function north()
return orientation.turnNorth() and turtle.forward()
end
function east()
return orientation.turnEast() and turtle.forward()
end
function south()
return orientation.turnSouth() and turtle.forward()
end
function west()
return orientation.turnWest() and turtle.forward()
end
local function goN(m... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0024-n0015-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
chandra1087/vpn989group | plugins/banhammer.lua | 4 | 7949 | local config = require 'config'
local u = require 'utilities'
local api = require 'methods'
local plugin = {}
local function get_motivation(msg)
if msg.reply then
return msg.text:match(("%sban (.+)"):format(config.cmd))
or msg.text:match(("%skick (.+)"):format(config.cmd))
or msg.text:match(("%stempban .+\n(... | gpl-2.0 |
hackpascal/luci | applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua | 40 | 3094 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.ip")
require("luci.model.uci")
local basicParams = {
--
-- Widget, Name, Default(s), Description
--
{ ListValue, "verb", { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }, translate("Set... | apache-2.0 |
zjohn4/PD2-lua-src | core/lib/utils/dev/tools/cutscene_editor/corecutsceneprojectmappingpanel.lua | 1 | 2703 | require "core/lib/utils/dev/ews/CoreTableEditorPanel"
require "core/lib/utils/dev/tools/cutscene_editor/CoreCutsceneEditorProject"
CoreCutsceneProjectMappingPanel = CoreCutsceneProjectMappingPanel or class(CoreTableEditorPanel)
function CoreCutsceneProjectMappingPanel:init(parent)
self.super.init(self, parent)
se... | gpl-2.0 |
PaulosV/ntopng | scripts/lua/country_stats.lua | 10 | 1904 | --
-- (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')
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
active_page = "hosts"
dofile(dirs.installdir .. "/sc... | gpl-3.0 |
pagodabox/tag | deps/cauterize/lib/pid.lua | 2 | 1565 | -- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*-
-- vim: ts=4 sw=4 ft=lua noet
----------------------------------------------------------------------
-- @author Daniel Barney <daniel@pagodabox.com>
-- @copyright 2015, Pagoda Box, Inc.
-- @doc
--
-- @end
-- Created : 15 May 2015 by Daniel Barney... | mit |
Invertika/data | scripts/maps/ow-o0000-n0007-o0000.lua | 1 | 1403 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
TeleMidia/dietncl | tests/test-filter-norm1.lua | 1 | 59527 | --[[ 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 |
irr/luajit.io | lib/ljio/core/strict.lua | 2 | 4923 | --[[
Copyright (C) 2009 Steve Donovan, David Manura.
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, publi... | bsd-2-clause |
jcai1/WowCoding | archived/raid-interrupts/wa.d.actions.init.custom.lua | 1 | 17710 | local t = GetTime()
local A = aura_env
local F = WeakAuras.regions[A.id].region
-- Set constants here
A.nrow = 5
A.font = "Fonts\\FRIZQT__.TTF"
A.headerHeightRel = 0.09
A.headerLengthLimit = 25
A.nameHeightRel = 0.25
A.nameLengthLimit = 5
A.borderThicknessRel = 0.03
-- Creation of UI objects (done once per /reload)
F... | mit |
tickbh/tdengine_cocos2dx_demo | tdengine_ddz/src/cocos/ui/DeprecatedUIFunc.lua | 53 | 7325 | if nil == ccui then
return
end
--tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--functions of ccui.Text will be deprecated begin
local TextDeprecated = { }
function TextDeprecated.setText(self, st... | apache-2.0 |
GoogleFrog/Zero-K | LuaRules/Gadgets/unit_antinuke_handler.lua | 7 | 5130 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Antinuke Handler",
desc = "Manages AllowWeaponInterceptTarget.",
author = "Google Frog"... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0020-p0017-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-p0004-n0003-o0000.lua | 1 | 1397 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/chili_new/controls/combobox.lua | 8 | 3446 | --//=============================================================================
--- ComboBox module
--- ComboBox fields.
-- Inherits from Control.
-- @see control.Control
-- @table ComboBox
-- @tparam {"item1","item2",...} items table of items in the ComboBox, (default {"items"})
-- @int[opt=1] selected id of the s... | gpl-2.0 |
beatgammit/luasocket | test/utestclnt.lua | 44 | 18346 | local socket = require"socket"
socket.unix = require"socket.unix"
host = host or "luasocket"
function pass(...)
local s = string.format(...)
io.stderr:write(s, "\n")
end
function fail(...)
local s = string.format(...)
io.stderr:write("ERROR: ", s, "!\n")
socket.sleep(3)
os.exit()
end
function wa... | mit |
zjohn4/PD2-lua-src | lib/managers/menu/crimenetcasinogui.lua | 1 | 7944 | CrimeNetCasinoGui = CrimeNetCasinoGui or class()
function CrimeNetCasinoGui:init( ws, fullscreen_ws, node )
self._ws = ws
self._fullscreen_ws = fullscreen_ws
self._panel = self._ws:panel():panel( { layer = 51 } )
self._fullscreen_panel = self._fullscreen_ws:panel():panel( { layer = 50 } )
self._fullscreen_panel... | gpl-2.0 |
Dual-Boxing/MultiBoxMaster | MultiBoxMaster/libs/LibSharedMedia-3.0/LibSharedMedia-3.0.lua | 7 | 10741 | --[[
Name: LibSharedMedia-3.0
Revision: $Revision: 74 $
Author: Elkano (elkano@gmx.de)
Inspired By: SurfaceLib by Haste/Otravi (troeks@gmail.com)
Website: http://www.wowace.com/projects/libsharedmedia-3-0/
Description: Shared handling of media data (fonts, sounds, textures, ...) between addons.
Dependencies: LibStub, C... | mit |
Invertika/data | scripts/maps/ow-n0007-n0010-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
tmandry/hammerspoon | extensions/hints/init.lua | 2 | 7181 | --- === hs.hints ===
---
--- Switch focus with a transient per-application keyboard shortcut
local hints = require "hs.hints.internal"
local screen = require "hs.screen"
local window = require "hs.window"
local hotkey = require "hs.hotkey"
local modal_hotkey = hotkey.modal
--- hs.hints.hintChars
--- Variable
--- This... | mit |
steveyen/moxilua | protocol_memcached/server_ascii_proxy.lua | 1 | 6416 | local mpb = memcached_protocol_binary
local pack = memcached_protocol_binary.pack
local SUCCESS = mpb.response_status.SUCCESS
-- Translators for ascii upstream to different downstreams.
--
local binary_success = {}
binary_success[mpb.command.SET] = "STORED\r\n"
binary_success[mpb.command.NOOP] = "END\r\n"
bina... | apache-2.0 |
PaulosV/ntopng | scripts/lua/mesh_antenna_stats.lua | 8 | 1965 | --
-- (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 = "network"
end
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.in... | gpl-3.0 |
GoogleFrog/Zero-K | LuaRules/Configs/morph_defs.lua | 4 | 6879 | -- $Id: morph_defs.lua 4643 2009-05-22 05:52:27Z carrepairer $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local devolution = false
local morphDefs = {
--// Evil4Zerggin: Revised time requirements. ... | gpl-2.0 |
strukturag/vlc | share/lua/playlist/anevia_xml.lua | 124 | 3618 | --[[
Parse list of available streams on Anevia servers.
The URI http://ipaddress/ws/Mgmt/* describes a list of
available streams on the server.
Copyright © 2009 M2X BV
Authors: Jean-Paul Saman <jpsaman@videolan.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the... | gpl-2.0 |
metakermit/vlc | share/lua/playlist/anevia_xml.lua | 124 | 3618 | --[[
Parse list of available streams on Anevia servers.
The URI http://ipaddress/ws/Mgmt/* describes a list of
available streams on the server.
Copyright © 2009 M2X BV
Authors: Jean-Paul Saman <jpsaman@videolan.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0013-p0020-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
zjohn4/PD2-lua-src | lib/managers/mission/elementsecuritycamera.lua | 1 | 3894 | core:import( "CoreMissionScriptElement" )
ElementSecurityCamera = ElementSecurityCamera or class( CoreMissionScriptElement.MissionScriptElement )
function ElementSecurityCamera:init( ... )
ElementSecurityCamera.super.init( self, ... )
self._triggers = {}
end
------------------------------------------------------... | gpl-2.0 |
ahmadnamed/ANIMUS | plugins/banhammer.lua | 7 | 13927 |
local function pre_process(msg)
local data = load_data(_config.moderation.data)
-- 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
pr... | gpl-2.0 |
remakeelectric/luci | applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/instances.lua | 12 | 2836 | -- Copyright 2017 Yousong Zhou <yszhou4tech@gmail.com>
-- Licensed to the public under the Apache License 2.0.
local ds = require "luci.dispatcher"
local ss = require "luci.model.shadowsocks-libev"
local ut = require "luci.util"
local m, s, o
m = Map("shadowsocks-libev",
translate("Local Instances"),
translate("Ins... | apache-2.0 |
xDShot/csgo_knives_sweps | lua/weapons/csgo_gut_freehand.lua | 1 | 2408 | if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then
SWEP.Spawnable = false
print( "csgo_gut_freehand 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 |
TheSuperAlaa/TheSuperBot | plugins/helpall.lua | 1 | 14485 | --[[
_____ _ _ _ _____ Dev @lIMyIl
|_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il
| |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a
| |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22
|_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI
CH > @lTSHAKEl_CH
--]]
l... | gpl-2.0 |
GoogleFrog/Zero-K | LuaRules/Configs/MetalSpots/RustyDelta_Final.lua | 16 | 2894 | return {
spots = {
{x = 9960, z = 3576, metal = 2.011},
{x = 1576, z = 1768, metal = 2.011},
{x = 9272, z = 2696, metal = 2.011},
{x = 3256, z = 1864, metal = 2.011},
{x = 1704, z = 2808, metal = 2.011},
{x = 984, z = 2696, metal = 2.011},
{x = 10136, z = 3720, metal = 2.011},
{x = 4728, z = 38... | gpl-2.0 |
zjohn4/PD2-lua-src | lib/network/base/handlers/defaultnetworkhandler.lua | 1 | 1107 | DefaultNetworkHandler = DefaultNetworkHandler or class()
function DefaultNetworkHandler:init()
end
function DefaultNetworkHandler.lost_peer( peer_ip )
cat_print( "multiplayer_base", "Lost Peer (DefaultNetworkHandler)" )
if( managers.network:session() ) then
local peer = managers.network:session():peer_by_ip( peer... | gpl-2.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/gui_iconheight.lua | 2 | 6411 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Icon Height",
desc = "Displays icons for all units at once, depending on camera height",
a... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0004-p0020-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
KublaikhanGeek/wrk | src/wrk.lua | 34 | 1571 | local wrk = {
scheme = "http",
host = "localhost",
port = nil,
method = "GET",
path = "/",
headers = {},
body = nil,
thread = nil,
}
function wrk.resolve(host, service)
local addrs = wrk.lookup(host, service)
for i = #addrs, 1, -1 do
if not wrk.connect(addrs[i]) then
... | apache-2.0 |
stephen322/prosody-modules | mod_carbons_copies/mod_carbons_copies.lua | 32 | 2242 | -- Send carbons v0 style copies of incoming messages to clients which
-- are not (yet) capable of Message Carbons (XEP-0280).
--
-- This extension integrates with the mod_carbons plugin in such a way
-- that a client capable of Message Carbons will not get a v0 copy.
--
-- This extension can be enabled for all users by... | mit |
Invertika/data | scripts/maps/iw-monitoring-center-o00-o00-o00.lua | 1 | 7301 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger u... | gpl-3.0 |
seanstermonstr/test | Code/Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/text.lua | 12 | 7196 | --- Text processing utilities.
--
-- This provides a Template class (modeled after the same from the Python
-- libraries, see string.Template). It also provides similar functions to those
-- found in the textwrap module.
--
-- See @{03-strings.md.String_Templates|the Guide}.
--
-- Calling `text.format_operator()` over... | bsd-3-clause |
stephen322/prosody-modules | mod_http_dir_listing/http_dir_listing/mod_http_dir_listing.lua | 32 | 2248 | -- Prosody IM
-- Copyright (C) 2012 Kim Alvefur
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
module:set_global();
local server = require"net.http.server";
local lfs = require "lfs";
local stat = lfs.attributes;
local build_path = require"socket.u... | mit |
xDShot/csgo_knives_sweps | lua/weapons/csgo_daggers_boreal.lua | 1 | 2422 | if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then
SWEP.Spawnable = false
print( "csgo_daggers_boreal 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_BA... | mit |
linxiulei/sysdig | userspace/sysdig/chisels/memcachelog.lua | 10 | 2785 | --[[
memcachelog.lua - show most used memcached keys.
USAGE: sysdig -c memcachelog <get|set>
eg,
sysdig -c memcachelog # show memcached get/set utilization
sysdig -c memcachelog get # show memcached only get utilization
sysdig -c memcachelog set # show memcached only set utilizatio... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0020-n0004-o0000.lua | 1 | 1403 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Maui-84/seven | behaviors/healing.lua | 2 | 3141 | local party = require('party');
local actions = require('actions');
local magic = require('magic');
local actions = require('actions');
return {
-- Scans the party (including the current player) for those needing heals
-- @returns list of party indicies needing heals
NeedHeals = function(self, hppCheck)
loc... | apache-2.0 |
steveyen/moxilua | wrn.lua | 1 | 13028 | -- A generic W+R>N replication implementation.
--
-- It's generic in that the actual implementation of a request,
-- response and replica node is abstracted out. Just duck typing.
--
-- replica_nodes -- array of nodes, higher priority first.
-- replica_min -- minimum # of nodes to replicate to.
--
------------------... | apache-2.0 |
GoogleFrog/Zero-K | LuaRules/Gadgets/lups_shockwaves.lua | 16 | 3441 | -- $Id: lups_shockwaves.lua 3171 2008-11-06 09:06:29Z det $
function gadget:GetInfo()
return {
name = "Shockwaves",
desc = "",
author = "jK",
date = "Jan. 2008",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true
}
end
--------------------------------... | gpl-2.0 |
zjohn4/PD2-lua-src | lib/units/enemies/cop/actions/full_body/copactiondodge.lua | 1 | 6714 | CopActionDodge = CopActionDodge or class()
CopActionDodge._apply_freefall = CopActionWalk._apply_freefall
CopActionDodge._VARIATIONS = { "side_step", "dive", "roll" }
CopActionDodge._SIDES = { "fwd", "bwd", "l", "r" }
-- The object is created when the action is started
function CopActionDodge:init( action_desc, comm... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0025-n0006-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | units/corsilo.lua | 2 | 6371 | unitDef = {
unitname = [[corsilo]],
name = [[Silencer]],
description = [[Nuclear ICBM Launcher, Drains 18 m/s, 3 minute stockpile]],
acceleration = 0,
antiweapons = [[1]],
bmcode = [[0]]... | gpl-2.0 |
GoogleFrog/Zero-K | scripts/capturecar.lua | 4 | 6694 | include "constants.lua"
local spGetUnitRulesParam = Spring.GetUnitRulesParam
local base, front, bigwheel, rear = piece('base', 'front', 'bigwheel', 'rear')
local turret, arm_1, arm_2, arm_3, dish, panel_a1, panel_b1, panel_a2, panel_b2, flare = piece('turret', 'arm_1', 'arm_2', 'arm_3', 'dish', 'panel_a1', 'panel_b1... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0011-n0012-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
teleofis/OpenWRT | feeds/luci/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/interface.lua | 39 | 2614 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.interface", package.seeall)
function rrdargs( graph, plugin, plugin_instance )
--
-- traffic diagram
--
local traffic = {
-- draw this diag... | gpl-2.0 |
hackpascal/luci | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/interface.lua | 39 | 2614 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.interface", package.seeall)
function rrdargs( graph, plugin, plugin_instance )
--
-- traffic diagram
--
local traffic = {
-- draw this diag... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0013-n0021-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
zjohn4/PD2-lua-src | lib/managers/hud/hudhitconfirm.lua | 1 | 2054 | HUDHitConfirm = HUDHitConfirm or class()
function HUDHitConfirm:init( hud )
self._hud_panel = hud.panel
if self._hud_panel:child( "hit_confirm" ) then
self._hud_panel:remove( self._hud_panel:child( "hit_confirm" ) )
end
if self._hud_panel:child( "headshot_confirm" ) then
self._hud_panel:remove( self._hud_... | gpl-2.0 |
zjohn4/PD2-lua-src | core/lib/utils/dev/tools/coreenveditor.lua | 1 | 35913 | core:import "CoreClass"
core:import "CoreEvent"
core:import "CoreEws"
core:import "CoreColorPickerPanel"
require("core/lib/utils/dev/tools/CoreEnvEditorTabs")
require("core/lib/utils/dev/tools/CoreEnvEditorDialogs")
require("core/lib/utils/dev/tools/CoreEnvEditorFormulas")
require("core/lib/utils/dev/tools/CoreEnvEdit... | gpl-2.0 |
lipari/slurm | contribs/lua/job_submit.lua | 1 | 3414 | --[[
Example lua script demonstrating the SLURM job_submit/lua interface.
This is only an example, not meant for use in its current form.
Leave the function names, arguments, local varialbes and setmetatable
set up logic in each function unchanged. Change only the logic after
the line containing "*** YOUR LOGIC ... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0008-p0010-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | scripts/bomberdive.lua | 4 | 5431 | local base = piece 'base'
local fuselage = piece 'fuselage'
local wingl1 = piece 'wingl1'
local wingr1 = piece 'wingr1'
local wingl2 = piece 'wingl2'
local wingr2 = piece 'wingr2'
local engines = piece 'engines'
local fins = piece 'fins'
local rflap = piece 'rflap'
local lflap = piece 'lflap'
local predrop = p... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0022-p0019-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
ugtaems/ugteam | plugins/warnlink.lua | 1 | 1156 | -- CleanMember.lua
local function mmm(chat_id)
local chat = {}
local chat_id = tostring(chat_id)
if chat_id:match('^-10000') then
local channel_id = chat_id:gsub('-10000', '')
chat = {ID = channel_id, type = 'channel'}
else
local group_id = chat_id:gsub('-', '')
chat = {ID = group_id, type = 'gr... | gpl-3.0 |
gokiburikin/gokilove | stats.lua | 1 | 2070 | statSet = class('stats')
function statSet:initialize()
end
function statSet:attach(key, stat)
self[key] = stat
return stat
end
function statSet:detach(key)
self[key] = nil
end
function statSet:get(key)
return self[key]
end
function statSet:valueOf(key)
return self[key]:value()
end
stat = class('stat')
funct... | mit |
dvdvideo1234/wire | lua/wire/stools/colorer.lua | 8 | 1369 | WireToolSetup.setCategory( "Visuals" )
WireToolSetup.open( "colorer", "Colorer", "gmod_wire_colorer", nil, "Colorers" )
if CLIENT then
language.Add( "Tool.wire_colorer.name", "Colorer Tool (Wire)" )
language.Add( "Tool.wire_colorer.desc", "Spawns a constant colorer prop for use with the wire system." )
language.Add... | apache-2.0 |
USABOT6/usabot | plugins/xkcd.lua | 628 | 1374 | do
function get_last_id()
local res,code = https.request("http://xkcd.com/info.0.json")
if code ~= 200 then return "HTTP ERROR" end
local data = json:decode(res)
return data.num
end
function get_xkcd(id)
local res,code = http.request("http://xkcd.com/"..id.."/info.0.json")
if code ~= 200 then return "HT... | gpl-2.0 |
bestofkeeperbot/yourkeeperbot | plugins/xkcd.lua | 628 | 1374 | do
function get_last_id()
local res,code = https.request("http://xkcd.com/info.0.json")
if code ~= 200 then return "HTTP ERROR" end
local data = json:decode(res)
return data.num
end
function get_xkcd(id)
local res,code = http.request("http://xkcd.com/"..id.."/info.0.json")
if code ~= 200 then return "HT... | gpl-2.0 |
GoogleFrog/Zero-K | effects/nota_lrpc_expl.lua | 50 | 1295 | -- lrpc_expl
return {
["lrpc_expl"] = {
usedefaultexplosions = true,
bang = {
air = true,
class = [[heatcloud]],
count = 2,
ground = true,
water = true,
properties = {
heat = 12,
... | gpl-2.0 |
remakeelectric/luci | applications/luci-app-wol/luasrc/model/cbi/wol.lua | 11 | 2680 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local utl = require "luci.util"
local sys = require "luci.sys"
local ipc = require "luci.ip"
local fs = require "nixio.fs"
m = SimpleForm("wol", translate("Wake on LAN"),
translate("Wake on LAN is a mechanism... | apache-2.0 |
linxiulei/sysdig | userspace/sysdig/chisels/table_generator.lua | 18 | 4388 | --[[
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 |
ironman2702/BolScripts | TristanaMechanics.lua | 8 | 24864 | --[[
_____ _____ __ .__
/ \_______ / _ \________/ |_|__| ____ __ __ ____ ____
/ \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \
/ Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> )
\____|__ /__| \___... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0025-p0019-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
zjohn4/PD2-lua-src | lib/units/weapons/grenades/smokegrenade.lua | 1 | 2119 | SmokeGrenade = SmokeGrenade or class( GrenadeBase )
-----------------------------------------------------------------------------------
function SmokeGrenade:init( unit )
self._init_timer = 1.5
SmokeGrenade.super.init( self, unit )
end
function SmokeGrenade:update( unit, t, dt )
SmokeGrenade.super.update( self, u... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0009-p0016-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-n0014-p0024-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/tools/interaction_editor/prop_panels/coreinteractioneditorgenericpanel.lua | 1 | 10750 | core:module( "CoreInteractionEditorGenericPanel" )
core:import( "CoreClass" )
core:import( "CoreCode" )
core:import( "CoreFloatSpinCtrl" )
NAME = "generic"
InteractionEditorGenericPanel = InteractionEditorGenericPanel or CoreClass.class()
function InteractionEditorGenericPanel:init(parent, box, owner)
self._scrol... | gpl-2.0 |
stephen322/prosody-modules | mod_remote_roster/mod_remote_roster.lua | 32 | 6782 | --
-- mod_remote_roster
--
-- This is an experimental implementation of http://jkaluza.fedorapeople.org/remote-roster.html
--
local st = require "util.stanza";
local jid_split = require "util.jid".split;
local jid_prep = require "util.jid".prep;
local t_concat = table.concat;
local tonumber = tonumber;
loca... | mit |
teleofis/OpenWRT | feeds/luci/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua | 12 | 3197 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.ip")
require("luci.model.uci")
local basicParams = {
--
-- Widget, Name, Default(s), Description
--
{ ListValue, "verb", { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }, translate("Set... | gpl-2.0 |
pagodabox/tag | lib/store/config_loader.lua | 2 | 1852 | -- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*-
-- vim: ts=4 sw=4 ft=lua noet
----------------------------------------------------------------------
-- @author Daniel Barney <daniel@pagodabox.com>
-- @copyright 2015, Pagoda Box, Inc.
-- @doc
--
-- @end
-- Created : 21 May 2015 by Daniel Barne... | mit |
demhydraz/luabf | lib/codegen.lua | 1 | 1536 | local ret = {}
local opt = require 'lib.opt'
local generate = {}
local indent = 1
do -- fold this pls
function generate.right_move (token)
return "tracker += ".. token.count .. ";"
end
function generate.left_move (token)
return "tracker -= ".. token.count .. ";"
end
function generate.add (token)
return "... | mit |
dvdvideo1234/wire | lua/entities/gmod_wire_user.lua | 9 | 1226 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire User"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "User"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
end
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsIni... | apache-2.0 |
tobiaswaldvogel/luci | modules/luci-base/luasrc/template.lua | 6 | 2820 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local util = require "luci.util"
local config = require "luci.config"
local tparser = require "luci.template.parser"
local tostring, pairs, loadstring = tostring, pairs, loadstring
local setmetatable, loadfile ... | apache-2.0 |
zjohn4/PD2-lua-src | lib/network/base/networkpeer.lua | 1 | 26955 | NetworkPeer = NetworkPeer or class()
NetworkPeer.PRE_HANDSHAKE_CHK_TIME = 8
function NetworkPeer:init( name, rpc, id, loading, synced, in_lobby, character, user_id )
self._name = name or managers.localization:text( "menu_" .. tostring( character or "russian" ) ) -- "NAMELESS PEER ID:"..tostring(id)
self._rpc = rpc
... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0005-p0001-o0000.lua | 1 | 1398 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
mendsley/premake-core | src/base/moduledownloader.lua | 12 | 1799 | --
-- moduledownloader.lua
-- Downloads a module from a package server
-- Copyright (c) 2002-2017 Jason Perkins and the Premake project
--
---
-- Downloads a module from a package server
--
-- @param modname
-- The name of the module to download.
-- @param versions
-- An optional version criteria string; see pre... | bsd-3-clause |
tobiaswaldvogel/luci | applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua | 5 | 5527 | -- 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 = sys.exec("ps --help 2>&1 | grep BusyBox") --check which ps do we have
local psstring... | apache-2.0 |
hackpascal/luci | applications/luci-app-splash/luasrc/controller/splash/splash.lua | 22 | 4649 | module("luci.controller.splash.splash", package.seeall)
local uci = luci.model.uci.cursor()
local util = require "luci.util"
function index()
entry({"admin", "services", "splash"}, cbi("splash/splash"), _("Client-Splash"), 90)
entry({"admin", "services", "splash", "splashtext" }, form("splash/splashtext"), _("Splas... | apache-2.0 |
mendsley/premake-core | modules/vstudio/tests/cs2005/test_debug_props.lua | 2 | 2016 | --
-- tests/actions/vstudio/cs2005/test_debug_props.lua
-- Test debugging and optimization flags block of a Visual Studio 2005+ C# project.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_cs2005_debug_props")
local cs2005 = p.vstudio.cs2005
... | bsd-3-clause |
remakeelectric/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/iface_add.lua | 33 | 3121 | -- Copyright 2009-2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local nw = require "luci.model.network".init()
local fw = require "luci.model.firewall".init()
local utl = require "luci.util"
local uci = require "luci.model.uci".cursor()
m = SimpleForm("network", tran... | apache-2.0 |
noahchense/nodemcu-firmware | lua_examples/make_phone_call.lua | 75 | 3145 | --[[
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, distribute,
sublicense, and/or sell copies... | mit |
teleofis/OpenWRT | feeds/luci/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua | 18 | 3897 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local encaps, atmdev, vci, vpi, username, password
local ipv6, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand, mtu
encaps = section:tabop... | gpl-2.0 |
AlphaStaxLLC/rackspace-monitoring-agent | hostinfo/fstab.lua | 3 | 2135 | --[[
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 |
Invertika/data | scripts/maps/ow-n0010-n0011-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-n0021-n0016-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.