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-p0012-n0021-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
TheSuperAlaa/TheSuperBot | plugins/robot.lua | 2 | 2465 | --[[
_____ _ _ _ _____ Dev @lIMyIl
|_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il
| |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a
| |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22
|_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI
CH > @lTSHAKEl_CH
--]]
l... | gpl-2.0 |
tobiaswaldvogel/luci | modules/luci-compat/luasrc/model/network/proto_qmi.lua | 14 | 1447 | -- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
-- Licensed to the public under the Apache License 2.0.
local netmod = luci.model.network
local interface = luci.model.network.interface
local proto = netmod:register_protocol("qmi")
function proto.get_i18n(self)
return luci.i18n.translate("QMI Cel... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0014-n0021-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
nightcj/mmo | service/gate.lua | 1 | 1946 | local skynet = require "skynet"
local gateserver = require "snax.gateserver"
local netpack = require "netpack"
local watchdog
local connection = {} -- fd -> connection : { fd , client, agent , ip, mode }
local forwarding = {} -- agent -> connection
skynet.register_protocol {
name = "client",
id = skynet.PTYPE_CLIEN... | mit |
jcai1/WowCoding | weakauras/magic-buff/table.lua | 1 | 2054 | {
d = {
actions = {
init = {
custom = "local A = aura_env\nlocal refreshInterval = 0.05\nlocal lastRefresh = -999\nlocal shouldShow\nlocal now\n\nlocal function refresh()\n if not UnitCanAttack(\"player\", \"target\") then return end\n for i = 1, 50 do\n local name, _, texture, count, d... | mit |
zjohn4/PD2-lua-src | core/lib/units/editor/mission/coretoggle.lua | 1 | 4954 | CoreToggleUnitElement = CoreToggleUnitElement or class( MissionElement )
CoreToggleUnitElement.SAVE_UNIT_POSITION = false
CoreToggleUnitElement.SAVE_UNIT_ROTATION = false
ToggleUnitElement = ToggleUnitElement or class( CoreToggleUnitElement )
function ToggleUnitElement:init( ... )
CoreToggleUnitElement.init( self, .... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0006-p0005-o0000.lua | 1 | 1399 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
pagodabox/tag | test/test-server.lua | 2 | 1528 | -- -*- 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 |
Invertika/data | scripts/maps/ow-n0020-p0002-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
stephen322/prosody-modules | mod_pubsub_googlecode/mod_pubsub_googlecode.lua | 31 | 2693 | module:depends("http");
local st = require "util.stanza";
local json = require "util.json";
local formdecode = require "net.http".formdecode;
local hmac_md5 = require "util.hashes".hmac_md5;
local st = require "util.stanza";
local json = require "util.json";
local datetime = require "util.datetime".datetime;
local p... | mit |
remakeelectric/luci | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dhcpv6.lua | 6 | 1569 | -- Copyright 2013 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local o = section:taboption("general", ListValue, "reqaddress",
translate("Request IPv6-address"))
o:value("try")
o:value("force")
o:value("none", "disabled")
o.default = "try"
... | apache-2.0 |
tobiaswaldvogel/luci | applications/luci-app-dnscrypt-proxy/luasrc/model/cbi/dnscrypt-proxy/configuration_tab.lua | 18 | 1045 | -- Copyright 2017 Dirk Brenken (dev@brenken.org)
-- This is free software, licensed under the Apache License, Version 2.0
local nxfs = require("nixio.fs")
local util = require("luci.util")
local uci_input = "/etc/config/dnscrypt-proxy"
if not nxfs.access(uci_input) then
m = SimpleForm("error", nil, transla... | apache-2.0 |
hackpascal/luci | modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/profile.lua | 68 | 2553 | -- Copyright 2011-2012 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
local ipkg = require "luci.model.ipkg"
local community = uci:get("freifunk", "community", "name")
if community == nil then
luci.http.redirect(luci.dis... | apache-2.0 |
mendsley/premake-core | modules/vstudio/tests/vc2010/test_project_refs.lua | 4 | 2385 | --
-- tests/actions/vstudio/vc2010/test_project_refs.lua
-- Validate project references in Visual Studio 2010 C/C++ projects.
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_vs2010_project_refs")
local vc2010 = p.vstudio.vc2010
--
-- Setup
... | bsd-3-clause |
Invertika/data | scripts/maps/ow-p0003-p0008-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-n0016-p0019-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/units/beings/player/states/playercarry.lua | 1 | 9388 | PlayerCarry = PlayerCarry or class( PlayerStandard )
function PlayerCarry:init( unit )
PlayerCarry.super.init( self, unit )
end
--------------------------------------------------------------------------------------
function PlayerCarry:enter( state_data, enter_data )
PlayerCarry.super.enter( self, state_data, ente... | gpl-2.0 |
tickbh/tdengine_cocos2dx_demo | tdengine_ddz/src/cocos/framework/extends/LayerEx.lua | 13 | 2612 | --[[
Copyright (c) 2011-2014 chukong-inc.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | apache-2.0 |
rchunping/redis-storage | deps/lua/dynasm/dasm_x86.lua | 15 | 58651 | ------------------------------------------------------------------------------
-- DynASM x86/x64 module.
--
-- Copyright (C) 2005-2012 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local x64 = x64
-- Module i... | bsd-3-clause |
hackpascal/luci | applications/luci-app-privoxy/luasrc/model/cbi/privoxy.lua | 35 | 37916 | -- Copyright 2014-2015 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed under the Apache License, Version 2.0
local NXFS = require "nixio.fs"
local SYS = require "luci.sys"
local UTIL = require "luci.util"
local DISP = require "luci.dispatcher"
local DTYP = require "luci.cbi.datatypes"
l... | apache-2.0 |
stuart-warren/.dotfiles | .config/nvim/lua/user/plugins/lsp/servers/settings/schemas.lua | 1 | 5339 | local schemas = {
{
description = "TypeScript compiler configuration file",
fileMatch = {
"tsconfig.json",
"tsconfig.*.json",
},
url = "https://json.schemastore.org/tsconfig.json",
},
{
description = "Lerna config",
fileMatch = { "lerna.json" },
url ... | mit |
GoogleFrog/Zero-K | LuaUI/Widgets/unit_rank_icons.lua | 4 | 1668 | function widget:GetInfo() return {
name = "Rank Icons 2",
desc = "Adds a rank icon depending on experience next to units (needs Unit Icons)",
author = "trepan (idea quantum,jK), CarRepairer tweak, Sprung improve",
date = "Nov 2014", -- "Feb, 2008"
license = "GNU GPL, v2 or later",
layer = ... | gpl-2.0 |
superhj1987/awesome-server-config | nginx/uuid4.lua | 2 | 3044 | --[[
The MIT License (MIT)
Copyright (c) 2012 Toby Jennings
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, merg... | mit |
linxiulei/sysdig | userspace/sysdig/chisels/v_containers.lua | 1 | 4455 | --[[
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 |
HammeredEntertainment/com.hammeredentertainment.shootthis | libs/hump/signal.lua | 12 | 2532 | --[[
Copyright (c) 2012-2013 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | gpl-3.0 |
hackpascal/luci | libs/luci-lib-httpclient/luasrc/httpclient.lua | 62 | 9481 | -- Copyright 2009 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
require "nixio.util"
local nixio = require "nixio"
local ltn12 = require "luci.ltn12"
local util = require "luci.util"
local table = require "table"
local http = require "luci.http.protocol"
local date = requir... | apache-2.0 |
zjohn4/PD2-lua-src | lib/network/matchmaking/networkaccountpsn.lua | 1 | 4566 | require "lib/network/matchmaking/NetworkAccount"
NetworkAccountPSN = NetworkAccountPSN or class( NetworkAccount )
--[[-----------------------------------------------------------------------------------------------
Network account abstraction layer
create_account( name, password, email)
reset_password( name, e... | gpl-2.0 |
zjohn4/PD2-lua-src | core/lib/utils/dev/freeflight/corefreeflight.lua | 1 | 18917 |
--[[
FREE FLIGHT
-----------
The Free Flight (FF) system interacts with GamePlay (GP) through
the Game State Machine (GSM). There are a few methods on the
GameState class that GP can override to customize the FF behavior.
The FF system has modifiers and actions. A modifier is a something
that affects the fr... | gpl-2.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/gui_chili_gesture_menu.lua | 5 | 21760 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--[[ This widget is actually independent of chilli. Chilli is not needed for it's use. All you need to use this are of course this file, and the config files... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0003-p0005-o0000.lua | 1 | 4678 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
fliping/flip | lib/flip.lua | 2 | 9773 | -- -*- 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 2014, Pagoda Box, Inc.
-- @doc
--
-- @end
-- Created : 4 Sept 2014 by Daniel Barney... | mit |
Meoo/premake-core | tests/actions/vstudio/sln2005/test_projects.lua | 3 | 5469 | --
-- tests/actions/vstudio/sln2005/test_projects.lua
-- Validate generation of Visual Studio 2005+ solution project entries.
-- Copyright (c) 2009-2013 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_sln2005_projects")
local sln2005 = premake.vstudio.sln2005
--
-- Setup
--
local sln... | bsd-3-clause |
omidgolmohammadi/freeze_bot_2 | lang/arabic_lang.lua | 14 | 22706 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
zjohn4/PD2-lua-src | lib/units/props/missiondoor.lua | 1 | 11616 | MissionDoor = MissionDoor or class( UnitBase )
function MissionDoor:init( unit )
MissionDoor.super.init( self, unit, false )
self._unit = unit
self._devices = {}
self._powered = true
end
--------------------------------------------------------------------------------------
function MissionDoor:update( unit, t,... | gpl-2.0 |
zjohn4/PD2-lua-src | lib/managers/menu/renderers/menunodetablegui.lua | 1 | 13067 |
MenuNodeTableGui = MenuNodeTableGui or class( MenuNodeGui )
function MenuNodeTableGui:init( node, layer, parameters )
MenuNodeTableGui.super.init( self, node, layer, parameters )
end
function MenuNodeTableGui:_setup_panels( node )
MenuNodeTableGui.super._setup_panels( self, node )
local safe_rect_pixels = sel... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0023-p0021-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
6520874/pipiGame | MyGame/cocos2d/cocos/scripting/lua/script/DeprecatedEnum.lua | 21 | 23253 | require "Cocos2dConstants.lua"
require "OpenglConstants.lua"
require "StudioConstants.lua"
--Enums will be deprecated,begin
_G.kCCTextAlignmentLeft = cc.TEXT_ALIGNMENT_LEFT
_G.kCCTextAlignmentRight = cc.TEXT_ALIGNMENT_RIGHT
_G.kCCTextAlignmentCenter = cc.TEXT_ALIGNMENT_CENTER
_G.kCCV... | gpl-2.0 |
GoogleFrog/Zero-K | scripts/chickenwurm.lua | 12 | 2631 | include "constants.lua"
--pieces
local mbody, fbody, bbody, head, tail = piece("mbody","fbody","bbody","head","tail")
local rsack, rblade, lsack, lblade, fire = piece("rsack","rblade","lsack","lblade","fire")
local smokePiece = {}
--constants
local digSpeed = 1
local digRotate = 0.6
--variables
local isMoving = fal... | gpl-2.0 |
remakeelectric/luci | build/luadoc/luadoc/config.lua | 165 | 1234 | -------------------------------------------------------------------------------
-- LuaDoc configuration file. This file contains the default options for
-- luadoc operation. These options can be overriden by the command line tool
-- @see luadoc.print_help
-- @release $Id: config.lua,v 1.6 2007/04/18 14:28:39 tomas Exp... | apache-2.0 |
GoogleFrog/Zero-K | units/armbrawl.lua | 3 | 6236 | unitDef = {
unitname = [[armbrawl]],
name = [[Brawler]],
description = [[Fire Support Gunship]],
acceleration = 0.2,
amphibious = true,
bankscale = [[1]],
brakeRate = 0.2,
buildCostEnergy = 760,
buildCostMetal = 760,
buil... | gpl-2.0 |
remakeelectric/luci | applications/luci-app-statistics/luasrc/statistics/datatree.lua | 15 | 4384 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.datatree", package.seeall)
local util = require("luci.util")
local sys = require("luci.sys")
local fs = require("nixio.fs")
local uci = require("luci.model.uci").c... | apache-2.0 |
ironman2702/BolScripts | KarthusMechanics.lua | 21 | 18903 | --[[
_____ _____ __ .__
/ \_______ / _ \________/ |_|__| ____ __ __ ____ ____
/ \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \
/ Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> )
\____|__ /__| \___... | gpl-2.0 |
hackpascal/luci | applications/luci-app-firewall/luasrc/model/cbi/firewall/forwards.lua | 66 | 3741 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ds = require "luci.dispatcher"
local ft = require "luci.tools.firewall"
m = Map("firewall", translate("Firewall - Port Forwards"),
translate("Port... | apache-2.0 |
Reda9991/DevRode | plugins/ar-lockedit.lua | 2 | 2558 | --[[
تـم التعـريب بواسـطة @AhMaD_x7
تـم التعـريب بواسـطة @b7_7b
قنــــاتــــنــا : @b7_78
--]]
do
function promote(receiver, member_username, user_id)
local data = load_data(_config.moderation.data)
local group = string.gsub(receiver, 'channel#id', '')
local member_tag_username = string.gsub(... | gpl-2.0 |
GoogleFrog/Zero-K | scripts/amphraider.lua | 16 | 5724 | --linear constant 65536
include "constants.lua"
local base, pelvis, body, countertilt, aimpoint = piece('base', 'pelvis', 'body', 'countertilt', 'aimpoint')
local rthigh, rshin, rfoot, lthigh, lshin, lfoot = piece('rthigh', 'rshin', 'rfoot', 'lthigh', 'lshin', 'lfoot')
local disks = {
{piece('f1disk', 'b1disk')},
{... | gpl-2.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/gui_transporting.lua | 6 | 10174 | -- $Id: gui_transporting.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: gui_transporting.lua
-- brief: Display the units currently being transported
-... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0001-n0005-o0000.lua | 1 | 1394 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
pagodabox/tag | lib/failover/manager.lua | 2 | 1361 | -- -*- 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 |
zjohn4/PD2-lua-src | core/lib/utils/dev/editor/ews_classes/continents.lua | 1 | 13135 | -- ContinentsDialog = ContinentsDialog or class( CoreEditorEwsDialog )
ContinentPanel = ContinentPanel or class()
function ContinentPanel:init( parent )
-- self:create_panel( parent, "HORIZONTAL" )
self:create_panel( parent, "VERTICAL" )
self:create_continent_panel( self._panel, "VERTICAL" )
self._continents_siz... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0010-p0021-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
ls-/oUF | elements/tags.lua | 1 | 22587 | -- Credits: Vika, Cladhaire, Tekkub
--[[
# Element: Tags
Provides a system for text-based display of information by binding a tag string to a font string widget which in turn is
tied to a unit frame.
## Widget
A FontString to hold a tag string. Unlike other elements, this widget must not have a preset name.
## Note... | mit |
kidaa/neuralart | models/inception.lua | 13 | 4352 | --
-- Inception architecture
-- Ref: Szegedy et al. 2015, Going Deeper with Convolutions
--
function create_inception(weights_file, backend)
local nnlib
local lrn -- local response normalization module
if backend == 'cudnn' then
require 'cudnn'
print('using cudnn backend')
nnlib =... | mit |
GoogleFrog/Zero-K | units/corpyro2.lua | 5 | 7154 | unitDef = {
unitname = [[corpyro2]],
name = [[Pyro]],
description = [[Raider/Riot Jumper]],
acceleration = 0.4,
brakeRate = 0.4,
buildCostEnergy = 220,
buildCostMetal = 220,
builder = false,
buildPic =... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0025-n0015-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
tobiaswaldvogel/luci | applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua | 7 | 1933 | -- Copyright 2017 Florian Eckert <fe@dev.tdt.de>
-- Licensed to the public under the GNU General Public License v2.
local net = require "luci.model.network".init()
local s, m, mask, rtmon, rtlookup, logging, loglevel
m = Map("mwan3", translate("MWAN - Globals"))
s = m:section(NamedSection, "globals", "globals", nil... | apache-2.0 |
tobiaswaldvogel/luci | applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_add.lua | 3 | 8845 | -- Copyright 2017-2019 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 http = require("luci.http")
local util = require("luci.util")
local scripts = util.split... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0005-p0020-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-p0002-n0019-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
remakeelectric/luci | libs/luci-lib-httpclient/luasrc/httpclient/receiver.lua | 78 | 5842 | -- Copyright 2009 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
require "nixio.util"
local nixio = require "nixio"
local httpc = require "luci.httpclient"
local ltn12 = require "luci.ltn12"
local print, tonumber, require, unpack = print, tonumber, require, unpack
module "l... | apache-2.0 |
hackpascal/luci | applications/luci-app-ushare/luasrc/model/cbi/ushare.lua | 62 | 1088 | -- Copyright 2008 Yanira <forum-2008@email.de>
-- Licensed to the public under the Apache License 2.0.
m = Map("ushare", translate("uShare"),
luci.util.pcdata(translate("uShare is a UPnP (TM) A/V & DLNA Media Server. It implements the server component that provides UPnP media devices with information on available mul... | apache-2.0 |
teleofis/OpenWRT | feeds/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/vlan.lua | 42 | 8783 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("network", translate("Switch"), translate("The network ports on this device can be combined to several <abbr title=\"Virtual Local Area Network\">... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0008-p0012-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-n0008-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
mahdikord/mahdib99 | plugins/Anti_Bot.lua | 28 | 3358 | local function isBotAllowed (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
local banned = redis:get(hash)
return banned
end
local function allowBot (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
redis:set(hash, true)
end
local function disallowBot (userId, cha... | gpl-2.0 |
GoogleFrog/Zero-K | LuaRules/Gadgets/CAI/HeatmapHandler.lua | 8 | 8078 | --[[ Handles Heatmaps
* Use this file to create a heatmap object with a square size.
* Can add circles of heat or points.
* Is able to track units by unitID and update the heatmap based
on their position.
--]]
local ceil = math.ceil
local floor = math.floor
local max = math.max
local min = math.min
local abs = mat... | gpl-2.0 |
zhityer/zhityer | plugins/location.lua | 625 | 1564 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
Reda9991/DevRode | libs/url.lua | 567 | 9183 | --[[
Copyright 2004-2007 Diego Nehab.
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,... | gpl-2.0 |
MeteoricGames/pioneer | data/ui/StationView/Police.lua | 1 | 2047 | -- Copyright © 2008-2014 Pioneer Developers. See AUTHORS.txt for details
-- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
local Engine = import("Engine")
local Lang = import("Lang")
local Game = import("Game")
local Rand = import("Rand")
local Character = import("Character")
local Format = import("For... | gpl-3.0 |
zjohn4/PD2-lua-src | lib/units/beings/player/states/playerbleedout.lua | 1 | 21790 | PlayerBleedOut = PlayerBleedOut or class( PlayerStandard )
function PlayerBleedOut:init( unit )
PlayerBleedOut.super.init( self, unit )
end
--------------------------------------------------------------------------------------
function PlayerBleedOut:enter( state_data, enter_data )
PlayerBleedOut.super.enter( self... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0002-n0023-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
ld-test/tethys | tethys2/core/SenderServer.lua | 2 | 2813 | module(..., package.seeall)
local oo = require "loop.simple"
local Relaydir = require'tethys2.util.Relaydir'
local Server = require'tethys2.core.Server'
local SMTPSender = require'tethys2.core.SMTPSender'
local fam = require('fam')
require'posix'
require'lfs'
require'config'
new = oo.class({ server_type="sender" }, S... | gpl-3.0 |
GoogleFrog/Zero-K | LuaRules/main.lua | 8 | 1596 | -- $Id: main.lua 4534 2009-05-04 23:35:06Z licho $
if (AllowUnsafeChanges) then
AllowUnsafeChanges("USE AT YOUR OWN PERIL")
end
do -- wrap print() in a closure
local origPrint = print
print = function(arg1,...)
if (arg1) then
arg1 = Script.GetName() .. ': ' .. tostring(arg1)
end
origPrint(arg... | gpl-2.0 |
dvdvideo1234/wire | lua/wire/stools/emarker.lua | 7 | 3612 | WireToolSetup.setCategory( "Detection" )
WireToolSetup.open( "emarker", "Entity Marker", "gmod_wire_emarker", nil, "Entity Markers" )
if CLIENT then
language.Add( "Tool.wire_emarker.name", "Entity Marker Tool (Wire)" )
language.Add( "Tool.wire_emarker.desc", "Spawns an Entity Marker for use with the wire system." )
... | apache-2.0 |
GoogleFrog/Zero-K | LuaRules/Configs/MetalSpots/indonesia_v4.lua | 16 | 1821 | return {
spots = {
{x = 5784, z = 1848, metal = 2},
{x = 4472, z = 1224, metal = 2},
{x = 2568, z = 2824, metal = 2},
{x = 2984, z = 2072, metal = 2},
{x = 3736, z = 2136, metal = 2},
{x = 2104, z = 200, metal = 2},
{x = 3416, z = 776, metal = 2},
{x = 2968, z = 1128, metal = 2.88},
{x = 3000, z = ... | gpl-2.0 |
tobiaswaldvogel/luci | applications/luci-app-mwan3/luasrc/controller/mwan3.lua | 2 | 9822 | -- Copyright 2014 Aedan Renner <chipdankly@gmail.com>
-- Copyright 2018 Florian Eckert <fe@dev.tdt.de>
-- Licensed to the public under the GNU General Public License v2.
module("luci.controller.mwan3", package.seeall)
sys = require "luci.sys"
ut = require "luci.util"
ip = "ip -4 "
function index()
if not nixio.fs.... | apache-2.0 |
zjohn4/PD2-lua-src | lib/units/editor/enemypreferedelement.lua | 1 | 5068 | EnemyPreferedAddUnitElement = EnemyPreferedAddUnitElement or class( MissionElement )
EnemyPreferedAddUnitElement.SAVE_UNIT_POSITION = false
EnemyPreferedAddUnitElement.SAVE_UNIT_ROTATION = false
function EnemyPreferedAddUnitElement:init( unit )
EnemyPreferedRemoveUnitElement.super.init( self, unit )
--self._hed.s... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0020-n0011-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
vintonrobot/antis | plugins/invite.lua | 393 | 1225 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
tehran980/Telehsn | plugins/tweet.lua | 634 | 7120 | local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json"
local client = OAuth.new(consumer_key,
consumer_secret,
... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0013-p0023-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | LuaUI/Configs/transkey.lua | 12 | 1148 | --
-- This table translates keysysms keys to chars
--
local transkey = {
backquote = '`',
leftbracket = '[',
rightbracket = ']',
--delete = 'del',
comma = ',',
period = '.',
slash = '/',
backslash = '\\',
equals = '=',
colon = ':',
semicolon = ';',
quote = "'",
kp_mul... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0025-n0001-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- 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/dis_ppc.lua | 17 | 20318 | ----------------------------------------------------------------------------
-- LuaJIT PPC disassembler module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------... | bsd-2-clause |
GoogleFrog/Zero-K | effects/nuke_150_green.lua | 25 | 15799 | -- nuke_150_green
-- nuke_150_green_seacloud_topcap
-- nuke_150_green_landcloud_cap
-- nuke_150_green_landcloud_ring
-- nuke_150_green_seacloud_cap
-- nuke_150_green_landcloud
-- nuke_150_green_seacloud_ring
-- nuke_150_green_landcloud_pillar
-- nuke_150_green_landcloud_topcap
-- nuke_150_green_seacloud
-- nuke_150_gre... | gpl-2.0 |
fliping/flip | lib/system-store/endpoints/system/?id/get-monitor.lua | 4 | 1220 | -- -*- 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 2014, Pagoda Box, Inc.
-- @doc
--
-- @end
-- Created : 25 Feb 2015 by Daniel Barney... | mit |
Invertika/data | scripts/maps/ow-p0025-n0017-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | LuaRules/Gadgets/unit_gunship_strafe_control.lua | 17 | 3394 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Gunship Strafe Control",
desc = "Adds toggle for strafe, enables propper hold position co... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0001-n0023-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-p0001-n0001-o0000.lua | 1 | 1394 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0011-p0024-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
noahchense/nodemcu-firmware | lua_examples/onewire-ds18b20.lua | 60 | 1505 | --'
-- 18b20 one wire example for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- Vowstar <vowstar@nodemcu.com>
--'
pin = 9
ow.setup(pin)
count = 0
repeat
count = count + 1
addr = ow.reset_search(pin)
addr = ow.search(pin)
tmr.wdclr()
until((addr ~= nil) or (count > 100))
if (addr ==... | mit |
zjohn4/PD2-lua-src | core/lib/units/editor/mission/coreplayeffect.lua | 1 | 10642 | core:import( "CoreEngineAccess" )
CorePlayEffectUnitElement = CorePlayEffectUnitElement or class( MissionElement )
CorePlayEffectUnitElement.USES_POINT_ORIENTATION = true
PlayEffectUnitElement = PlayEffectUnitElement or class( CorePlayEffectUnitElement )
function PlayEffectUnitElement:init( ... )
CorePlayEffectUnit... | gpl-2.0 |
remakeelectric/luci | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_464xlat.lua | 54 | 1063 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2013 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local tunlink, defaultroute, metric, mtu
section:taboption("general", Value, "ip6prefix",
translate("NAT64 Prefix"), translate(... | apache-2.0 |
teleofis/OpenWRT | feeds/luci/applications/luci-app-radvd/luasrc/model/cbi/radvd/rdnss.lua | 61 | 2115 | -- 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 - RDNSS"),
translate("Radvd is a router advertisement daemon for IPv6. " ..
"It listens to router solicitations and sends... | gpl-2.0 |
ls-/oUF | units.lua | 5 | 6780 | local parent, ns = ...
local oUF = ns.oUF
local Private = oUF.Private
local enableTargetUpdate = Private.enableTargetUpdate
local function updateArenaPreparationElements(self, event, elementName, specID)
local element = self[elementName]
if(element and self:IsElementEnabled(elementName)) then
if(element.OverrideA... | mit |
GoogleFrog/Zero-K | units/reef.lua | 1 | 8782 | unitDef = {
unitname = [[reef]],
name = [[Reef]],
description = [[Aircraft Carrier (Bombardment) & Anti-Nuke]],
acceleration = 0.0354,
activateWhenBuilt = true,
brakeRate = 0.0466,
buildCostEnergy = 3500,
buildCostMetal ... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0008-p0008-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
teleofis/OpenWRT | feeds/luci/modules/luci-base/luasrc/cbi/datatypes.lua | 1 | 5966 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local ip = require "luci.ip"
local math = require "math"
local util = require "luci.util"
local tonumber, tostring, type, unpack, select = tonumber, tostring, type, unpack, select
... | gpl-2.0 |
tobiaswaldvogel/luci | modules/luci-base/luasrc/controller/admin/uci.lua | 3 | 1650 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010-2019 Jo-Philipp Wich <jo@mein.io>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.admin.uci", package.seeall)
local function ubus_state_to_http(errstr)
local map = {
["Invalid command"] = 400,
["Invalid argume... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.