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 |
|---|---|---|---|---|---|
Ryan1729/lua-store | createStore.lua | 1 | 4325 | --This is a simple state container modelled on https://github.com/rackt/redux
local current_folder = (...):gsub('%.[^%.]+$', '')
local ActionTypes = require (current_folder .. ".ActionTypes")
local table_invert = require (current_folder .. ".table_invert")
local push = table.insert
local pop = table.remove
--... | bsd-3-clause |
GoogleFrog/Zero-K | units/corawac.lua | 3 | 4302 | unitDef = {
unitname = [[corawac]],
name = [[Vulture]],
description = [[Stealth Radar/Sonar Plane]],
altfromsealevel = [[1]],
amphibious = true,
buildCostEnergy = 340,
buildCostMetal = 340,
builder = false,
buildPic = [[COR... | gpl-2.0 |
hackpascal/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab/mount.lua | 29 | 3928 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local util = require "nixio.util"
local has_fscheck = fs.access("/usr/sbin/e2fsck")
local block = io.popen("block info", "r")
local ln, dev, devices = nil, nil, {}
repeat
ln =... | apache-2.0 |
remakeelectric/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk/dialplan_out.lua | 68 | 3021 | -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ast = require("luci.asterisk")
local function find_outgoing_contexts(uci)
local c = { }
local h = { }
-- uci:foreach("asterisk", "dialplan",
-- function(s)
-- if not h[s['.name']] then
-- c[#c+1]... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0024-n0021-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
remakeelectric/luci | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua | 37 | 1612 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.iwinfo", package.seeall)
function rrdargs( graph, plugin, plugin_instance )
--
-- signal/noise diagram
--
local snr = {
title = "%H: Signal and noise on %pi",
... | apache-2.0 |
tmandry/hammerspoon | extensions/grid/init.lua | 2 | 9181 | --- === hs.grid ===
---
--- Move/resize windows within a grid
---
--- The grid partitions of your screen for the purposes of window management. The default layout of the grid is 3 columns and 3 rows.
---
--- Windows that are aligned with the grid have their location and size described as a `cell`. Each cell is a table ... | mit |
zjohn4/PD2-lua-src | core/lib/utils/dev/freeflight/corefreeflightaction.lua | 1 | 1050 | core:module( "CoreFreeFlightAction" )
FreeFlightAction = FreeFlightAction or class()
function FreeFlightAction:init( name, callback )
self._name = assert( name )
self._callback = assert( callback )
end
function FreeFlightAction:do_action()
self._callback()
end
function FreeFlightAction:reset()
end
function Fr... | gpl-2.0 |
tickbh/tdengine_cocos2dx_demo | tdengine_ddz/src/cocos/framework/extends/UIPageView.lua | 57 | 1384 |
--[[
Copyright (c) 2011-2014 chukong-inc.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... | apache-2.0 |
GoogleFrog/Zero-K | scripts/panther.lua | 18 | 5913 | -- linear constant 65536
include "constants.lua"
local main, nose, nosefan1, nosefan2,
turret, sleeve, barrel1, flare1, barrel2, flare2,
sparkcenter, sparkcenter2,
door1, door2, rud1, rud2, mainfan1, mainfan2,
wheels1, wheels2, wheels3, wheels4, wheels5, wheels6, wheels7,
tracks1, tracks2, tracks3, tracks4 =
piece('m... | gpl-2.0 |
GoogleFrog/Zero-K | scripts/tankriotraider.lua | 18 | 5913 | -- linear constant 65536
include "constants.lua"
local main, nose, nosefan1, nosefan2,
turret, sleeve, barrel1, flare1, barrel2, flare2,
sparkcenter, sparkcenter2,
door1, door2, rud1, rud2, mainfan1, mainfan2,
wheels1, wheels2, wheels3, wheels4, wheels5, wheels6, wheels7,
tracks1, tracks2, tracks3, tracks4 =
piece('m... | gpl-2.0 |
swganh/mmoserver | data/script/TatooineNpcTest5.lua | 4 | 2931 | -- Tatooine NPC test
-- This script will not start until Zoneserver is ready.
local MM = require 'Script/TatooineNpcTest2'
local routeX = { -1445, -1457, -1458, -1422, -1371, -1345, -1333, -1276, -1244, -1236, -1250, -1269, -1286, -1318, -1312, -1321, -1347, -1371, -1401, -1401, -1396, -1385, -1381, -1367, -1364, -13... | gpl-3.0 |
GoogleFrog/Zero-K | effects/gundam_unitrupture.lua | 25 | 3297 | -- unitrupture
return {
["unitrupture"] = {
dirtg = {
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap = [[0.1 0.1 0.1 1.0 0.5 0... | gpl-2.0 |
tobiaswaldvogel/luci | applications/luci-app-nut/luasrc/model/cbi/nut_server.lua | 5 | 7838 | -- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com>
-- Licensed to the public under the Apache License 2.0.
local m, s, o
local nixio = require "nixio"
require "luci.util"
m = Map("nut_server", translate("Network UPS Tools (Server)"),
translate("Network UPS Tools Server Configuration"))
s = m:section... | apache-2.0 |
zjohn4/PD2-lua-src | core/lib/utils/dev/ews/tree_control/corefilteredtreecontrol.lua | 1 | 2815 | require "core/lib/utils/dev/ews/tree_control/CoreManagedTreeControl"
require "core/lib/utils/dev/ews/tree_control/CoreTreeNode"
CoreFilteredTreeControl = CoreFilteredTreeControl or class(CoreManagedTreeControl)
function CoreFilteredTreeControl:init(parent_frame, styles)
self.super.init(self, parent_frame, styles)
s... | gpl-2.0 |
seanstermonstr/test | Code/Tools/BuildScripts/lua-lib/penlight-1.0.2/tests/test-config.lua | 10 | 3559 | require 'pl'
asserteq = require 'pl.test'.asserteq
function testconfig(test,tbl,cfg)
local f = stringio.open(test)
local c = config.read(f,cfg)
f:close()
if not tbl then
print(pretty.write(c))
else
asserteq(c,tbl)
end
end
testconfig ([[
; comment 2 (an ini file)
[section!]
bon... | bsd-3-clause |
xDShot/csgo_knives_sweps | lua/weapons/csgo_bayonet.lua | 1 | 2386 | if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then
SWEP.Spawnable = false
print( "csgo_bayonet 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_BASECLASS... | mit |
GoogleFrog/Zero-K | LuaUI/Widgets/chili/Handlers/texturehandler.lua | 25 | 3354 | --//=============================================================================
--//
TextureHandler = {}
--//=============================================================================
--//TWEAKING
local timeLimit = 0.2/15 --//time per second / desiredFPS
--//==================================================... | gpl-2.0 |
ld-test/tethys | tethys2/plugins/deposit/Mailman.lua | 2 | 1226 | module(..., package.seeall)
local oo = require "loop.simple"
local Plugin = require 'tethys2.plugins.deposit.Plugin'
local MailFormat = require 'tethys2.util.Maildir'
require'posix'
require'lfs'
require'config'
new = oo.class({}, Plugin.class)
Mailman = new
class = new
Mailman.mailman_types =
{
{"^(.*)%-admin$", "b... | gpl-3.0 |
anoidgit/Simple-RNN | experiment/NMT/ASequencerCriterion.lua | 1 | 2611 | local ASequencerCriterion, parent = torch.class('nn.ASequencerCriterion', 'nn.Criterion')
function ASequencerCriterion:__init(criterion)
parent.__init(self)
self.criterion = criterion
if torch.isTypeOf(criterion, 'nn.ModuleCriterion') then
error("ASequencerCriterion shouldn't decorate a ModuleCriterion.... | gpl-3.0 |
tehran980/Telehsn | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
Invertika/data | scripts/maps/iw-nelaro-house18-o00-o00-o00.lua | 1 | 5411 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
alikingambav/archer | plugins/invite.lua | 12 | 1458 | do
local function callbackres(extra, success, result)
--vardump(result)
local user = 'user#id'..result.peer_id
local chat = 'chat#id'..extra.chatid
local channel = 'channel#id'..extra.chatid
if is_banned(result.id, extra.chatid) then
send_large_msg(chat, 'یوزر بن شده است')
send_large_msg(c... | gpl-2.0 |
AlphaStaxLLC/rackspace-monitoring-agent | hostinfo/disk.lua | 3 | 1396 | --[[
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 |
mendsley/premake-core | modules/gmake/tests/cpp/test_file_rules.lua | 3 | 3740 | --
-- tests/actions/make/cpp/test_file_rules.lua
-- Validate the makefile source building rules.
-- Copyright (c) 2009-2014 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("make_cpp_file_rules")
local make = p.make
local project = p.project
--
-- Setup
--
local wks, prj
... | bsd-3-clause |
irr/luajit.io | lib/ljio/core/logging.lua | 2 | 1371 | -- Copyright (C) Jinhua Luo
local C = require("ljio.cdef")
local bit = require("bit")
local tinsert = table.insert
local tconcat = table.concat
local bor = bit.bor
local g_log_level
local g_flags
local opened = false
local levels = {
emerg = C.LOG_EMERG,
alert = C.LOG_ALERT,
crit = C.LOG_CRIT,
err =... | bsd-2-clause |
detect00r/iranspammers | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
dvdvideo1234/wire | lua/wire/client/e2_viewrequest_menu.lua | 3 | 5491 | local function AnswerRequest(accepted, initiator, chip)
net.Start("WireExpression2_AnswerRequest")
net.WriteUInt(accepted, 8)
net.WriteEntity(initiator)
net.WriteEntity(chip)
net.SendToServer()
end
local viewRequests = {}
-- Validates a single request using the initiator and chip (very similar to the server s... | apache-2.0 |
gyakoo/cobj | premake4.lua | 1 | 1085 |
local action = _ACTION or ""
local examples = { "example1" }
solution "cobj"
location ( "build" )
configurations { "Debug", "Release" }
platforms {"native", "x64", "x32"}
startproject "example4"
for k,v in ipairs(examples) do
project(tostring(v))
kind "ConsoleApp"
language "C++"
files ... | mit |
GoogleFrog/Zero-K | effects/freedom_fighter.lua | 25 | 5564 | -- ffejector
-- ff_wingtips
-- ffmuzzle
-- ff_engine
-- ff_puff
return {
["ffejector"] = {
usedefaultexplosions = false,
shells = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = ... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0010-p0012-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
remakeelectric/luci | applications/luci-app-shairplay/luasrc/model/cbi/shairplay.lua | 78 | 1789 | -- Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("shairplay", "Shairplay", translate("Shairplay is a simple AirPlay server implementation, here you can configure the settings."))
s = m:section(TypedSection, "shairplay", "")
s.addremove = true... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0003-p0010-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
linxiulei/sysdig | userspace/sysdig/chisels/iobytes_file.lua | 18 | 1602 | --[[
Copyright (C) 2013-2014 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
mendsley/premake-core | src/base/table.lua | 1 | 10728 | --
-- table.lua
-- Additions to Lua's built-in table functions.
-- Copyright (c) 2002-2013 Jason Perkins and the Premake project
--
--
-- Make a copy of the indexed elements of the table.
--
function table.arraycopy(object)
local result = {}
for i, value in ipairs(object) do
result[i] = value
end
return ... | bsd-3-clause |
Invertika/data | scripts/maps/ow-p0010-p0001-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/libs/poker/pokerpot.lua | 1 | 4810 | --- Class PokerPot
PokerPot = {}
-- payment[PokerPlayer] = Höhe der kumulierten
-- Einzahlungen von gegebenem Spieler
PokerPot.payments = {}
-- Einzahlungen von Spielern die aus dem Spiel geflogen sind.
PokerPot.general_payments = 0
PokerPot.max_payment = nil
-- Speichert ob ein Spieler nur Raise gespielt hat
Poke... | gpl-3.0 |
shamazmazum/voxvision | examples/example3.lua | 1 | 3112 | vt = voxtrees
vr = voxrnd
vs = voxsdl
function init (ctx)
--[[
Build tree from a raw file 'skull.dat' in voxvision's system-wide data directory.
read_raw_data_ranged() is like faster read_raw_data() with test function checking
min <= sample < max (in current example sample >= 40)
]]--
print ... | bsd-2-clause |
AALEKH/redis | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
miminus/redis | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
Invertika/data | scripts/maps/ow-n0019-n0015-o0000.lua | 1 | 1402 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
tonibm19/cuberite | Server/Plugins/APIDump/Hooks/OnPreCrafting.lua | 36 | 1523 | return
{
HOOK_PRE_CRAFTING =
{
CalledWhen = "Before the built-in recipes are checked.",
DefaultFnName = "OnPreCrafting", -- also used as pagename
Desc = [[
This hook is called when a {{cPlayer|player}} changes contents of their
{{cCraftingGrid|crafting grid}}, before the built-in recipes are searched for... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0022-p0018-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
steveyen/moxilua | protocol_memcached/test_perf_pipelined.lua | 1 | 2360 | socket = require('socket')
ambox = require('ambox')
asock = require('asock')
require('util')
local aself = ambox.self_addr
local arecv = ambox.recv
local asend = ambox.send
local acycle = ambox.cycle
local ayield = ambox.yield
local astats = ambox.stats
local srecv = asock.recv
local ssend = asock.send
local ss... | apache-2.0 |
remakeelectric/luci | applications/luci-app-privoxy/luasrc/controller/privoxy.lua | 23 | 8560 | -- Copyright 2014-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed under the Apache License, Version 2.0
module("luci.controller.privoxy", package.seeall)
local NX = require "nixio"
local NXFS = require "nixio.fs"
local DISP = require "luci.dispatcher"
local HTTP = require "luci.h... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0018-p0019-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Maui-84/seven | debug_packet.lua | 2 | 2225 | local packets = require('packets');
local tinc = {};
local tout = {};
-- table.insert(tinc, 0x029, function(id, size, packet)
-- string.char(id):hex()
-- print('IN: ' .. packet:hex());
-- end);
-- table.insert(tout, packets.out.PACKET_NPC_INTERACTION, function(id, size, packet)
-- -- https://github.com/Window... | apache-2.0 |
tobiaswaldvogel/luci | applications/luci-app-ocserv/luasrc/controller/ocserv.lua | 5 | 1850 | -- Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.ocserv", package.seeall)
function index()
if not nixio.fs.access("/etc/config/ocserv") then
return
end
local page
page = entry({"admin", "vpn", "ocserv"}, a... | apache-2.0 |
mahdikord/mahdib99 | plugins/stats.lua | 16 | 4002 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0013-n0024-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0016-n0015-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-n0013-n0025-o0000.lua | 1 | 1398 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
splay-project/splay | daemon/src/lua/modules/splay/restricted_socket.lua | 2 | 16540 | --[[
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 |
zjohn4/PD2-lua-src | lib/managers/menu/items/menuitemupgrade.lua | 1 | 8503 | core:import("CoreMenuItem")
MenuItemUpgrade = MenuItemUpgrade or class( CoreMenuItem.Item )
MenuItemUpgrade.TYPE = "upgrade"
function MenuItemUpgrade:init( data_node, parameters )
CoreMenuItem.Item.init( self, data_node, parameters )
self._parameters.upgrade_id = parameters.upgrade_id
self._parameters.topic_tex... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0003-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-n0024-p0017-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
tobiaswaldvogel/luci | applications/luci-app-coovachilli/luasrc/model/cbi/coovachilli_radius.lua | 79 | 1554 | -- 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.
m = Map("coovachilli")
-- radius server
s1 = m:section(TypedSection, "radius")
s1.anonymous = true
s1:option( Value, "radiusserver1" )
s1:option( Value, "rad... | apache-2.0 |
zjohn4/PD2-lua-src | lib/units/beings/player/states/playerarrested.lua | 1 | 9480 | PlayerArrested = PlayerArrested or class( PlayerStandard )
function PlayerArrested:init( unit )
PlayerArrested.super.init( self, unit )
self._ids_escape = Idstring( "escape" )
self._ids_cuffed = Idstring( "cuffed" )
end
--------------------------------------------------------------------------------------
funct... | gpl-2.0 |
GoogleFrog/Zero-K | Objects3d/pw_techlab.lua | 14 | 2513 | pw_techlab = {
pieces = {
base = {
wheel1 = {offset = {0, 24.778, -51.046},},
wheel2 = {offset = {0, 24.778, 51.046},},
slider = {
sliderturret = {},
},
armabase = {
offset = {47.316, 32.656, 30.519},
arma = {
offset = {-8.605, 29.659, 0},
armapick = {
offset = {-26.401, 4.... | gpl-2.0 |
chuenlungwang/skynet | lualib/cluster.lua | 48 | 1257 | local skynet = require "skynet"
local clusterd
local cluster = {}
function cluster.call(node, address, ...)
-- skynet.pack(...) will free by cluster.core.packrequest
return skynet.call(clusterd, "lua", "req", node, address, skynet.pack(...))
end
function cluster.open(port)
if type(port) == "string" then
skynet.... | mit |
zjohn4/PD2-lua-src | lib/units/props/smalllootbase.lua | 1 | 1806 | SmallLootBase = SmallLootBase or class( UnitBase )
-----------------------------------------------------------------------------------
function SmallLootBase:init( unit )
UnitBase.init( self, unit, false )
self._unit = unit
self:_setup()
end
----------------------------------------------------------------------... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0010-n0001-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-n0019-p0020-o0000.lua | 1 | 1403 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
nightcj/mmo | lualib/socket.lua | 15 | 9300 | local driver = require "socketdriver"
local skynet = require "skynet"
local skynet_core = require "skynet.core"
local assert = assert
local socket = {} -- api
local buffer_pool = {} -- store all message buffer object
local socket_pool = setmetatable( -- store all socket object
{},
{ __gc = function(p)
for id,v in ... | mit |
Invertika/data | scripts/maps/ow-n0024-p0001-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
sdalton1/legion | bindings/lua/examples/circuit/circuit.lua | 1 | 1356 | -- Copyright 2017 Stanford University
--
-- 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 agree... | apache-2.0 |
tonibm19/cuberite | Server/Plugins/APIDump/Classes/WebAdmin.lua | 28 | 2144 | return
{
cWebAdmin =
{
Desc = "",
Functions =
{
GetHTMLEscapedString = { Params = "string", Return = "string", Notes = "(STATIC) Gets the HTML-escaped representation of a requested string. This is useful for user input and game data that is not guaranteed to be escaped already." },
},
}, -- cWebAdmin
... | apache-2.0 |
Dual-Boxing/MultiBoxMaster | MultiBoxMaster/libs/AceGUI-3.0/widgets/AceGUIWidget-Heading.lua | 68 | 2216 | --[[-----------------------------------------------------------------------------
Heading Widget
-------------------------------------------------------------------------------]]
local Type, Version = "Heading", 20
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or... | mit |
Invertika/data | scripts/maps/ow-p0001-n0012-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/network/matchmaking/networkgrouplobbypsn.lua | 1 | 22358 | --[[-----------------------------------------------------------------------------------------------
Group lobby abstraction layer
To do:
create_group_lobby()
Everyone will create a group lobby when they open the multiplayer menu. For XBL this means
that your friends can see that you're in the BC group lobby, ab... | gpl-2.0 |
AlphaStaxLLC/rackspace-monitoring-agent | check/windows/entry_handlers.lua | 4 | 1405 | --[[
Copyright 2013 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 |
tobiaswaldvogel/luci | applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua | 2 | 4587 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require("nixio.fs")
local basicParams = {
--
-- Widget, Name, Default(s), Description
--
{ ListValue,
"verb",
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 },
translate("Set output verbosity") },
... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0022-p0022-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Samake/BomberMan2D | server/classes/PlayerS.lua | 1 | 1761 | --[[
Name: BomberMan2D
Filename: PlayerS.lua
Authors: Sam@ke
--]]
PlayerS = {}
function PlayerS:constructor(parent, playerSettings)
self.playerManager = parent
self.id = playerSettings.id
self.player = playerSettings.player
self.name = self.player:getName()
self.position = playerSettings.position
self.col... | gpl-3.0 |
ardje/luaposix | examples/tree.lua | 8 | 1901 | -- tree view of the file system like the "tree" unix utility
-- John Belmonte <jvb@prairienet.org>
local posix = require 'posix'
local leaf_indent = '| '
local tail_leaf_indent = ' '
local leaf_prefix = '|-- '
local tail_leaf_prefix = '`-- '
local link_prefix = ' -> '
local function printf(...)
io.write(strin... | mit |
zjohn4/PD2-lua-src | core/lib/managers/coreposteffect.lua | 1 | 9021 | CorePostEffectModifier = CorePostEffectModifier or class()
function CorePostEffectModifier:init()
self._params = {}
end
function CorePostEffectModifier:add( from )
for key, value in pairs( from._params ) do
if self._params[ key ] then
self._params[key] = self._params[ key ] + from._params[ key ]
else
if(t... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0015-p0007-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/crimenetmanager.lua | 1 | 130043 | require "lib/managers/menu/WalletGuiObject"
CrimeNetManager = CrimeNetManager or class()
function CrimeNetManager:init()
self._tweak_data = tweak_data.gui.crime_net
-- self:_setup()
self._active = false
self._active_jobs = {}
self:_setup_vars()
end
function CrimeNetManager:_setup_vars()
self._active_job_time ... | gpl-2.0 |
GoogleFrog/Zero-K | effects/lasers.lua | 5 | 34173 | -- gatorlaserflash
-- flash1red2
-- flashlazer
-- lasers_sparks1
-- lasers_melt1
-- flash1orange
-- comlaserflash
-- flash1purple
-- lasers_melt3
-- flash1blue
-- flash1green
-- flash1red
-- lasers_melt2
-- lasers_sparksr1
-- flash1yellow
-- flash1white
-- coregreen
return {
["gatorlaserflash"] = {
usedefaultexp... | gpl-2.0 |
ls-/oUF | elements/stagger.lua | 1 | 6051 | --[[
# Element: Monk Stagger Bar
Handles the visibility and updating of the Monk's stagger bar.
## Widget
Stagger - A `StatusBar` used to represent the current stagger level.
## Sub-Widgets
.bg - A `Texture` used as a background. It will inherit the color of the main StatusBar.
## Notes
A default texture will be... | mit |
gnosek/sysdig | userspace/sysdig/chisels/v_io_by_type.lua | 3 | 2553 | --[[
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 |
seanstermonstr/test | Code/Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/comprehension.lua | 13 | 9071 | --- List comprehensions implemented in Lua.
--
-- See the [wiki page](http://lua-users.org/wiki/ListComprehensions)
--
-- local C= require 'pl.comprehension' . new()
--
-- C ('x for x=1,10') ()
-- ==> {1,2,3,4,5,6,7,8,9,10}
-- C 'x^2 for x=1,4' ()
-- ==> {1,4,9,16}
-- C '{x,x^2} for x=1,4' ()
-- ==... | bsd-3-clause |
Invertika/data | scripts/maps/ow-p0006-n0017-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
tobiaswaldvogel/luci | applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua | 5 | 1607 | -- Copyright 2018 Rosy Song <rosysong@rosinson.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.nft-qos", package.seeall)
function index()
if not nixio.fs.access("/etc/config/nft-qos") then
return
end
local e
e = entry({"admin", "status", "realtime", "rate"}, template("nft-... | apache-2.0 |
zjohn4/PD2-lua-src | core/lib/utils/dev/ews/corexmltextctrl.lua | 1 | 3021 | CoreXMLTextCtrl = CoreXMLTextCtrl or class()
function CoreXMLTextCtrl:init(parent, value, id, syntax_colors, style)
if syntax_colors then
self._syntax_colors = syntax_colors
else
self._syntax_colors = {}
self._syntax_colors["NODE"] = Vector3(50, 50, 255)
self._syntax_colors["KEY"] = Vector3(250, 50, 50)
se... | gpl-2.0 |
stephen322/prosody-modules | mod_captcha_registration/modules/mod_register.lua | 32 | 13867 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
-- Modifications copyright (C) 2014 mrDoctorWho
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
local dataform_new = r... | mit |
irr/luajit.io | lib/ljio/http/constants.lua | 2 | 1575 | -- Copyright (C) Jinhua Luo
local ffi = require("ffi")
local status_tbl = {
[200] = "HTTP/1.1 200 OK\r\n";
[302] = "HTTP/1.1 302 Found\r\n";
[304] = "HTTP/1.1 304 Not Modified\r\n";
[400] = "HTTP/1.1 400 Bad Request\r\n";
[403] = "HTTP/1.1 403 Forbidden\r\n";
[404] = "HTTP/1.1 404 Not Found\r\... | bsd-2-clause |
mox17/mk-frsky-telemetry | Lua Script/telem2.lua | 1 | 3717 | --do the local variables here ie
local besttime = 0
local bat = 0
local amps = 0
local time = 0
local sats = 0
local speed = 0
local mkerror
local timer
local text = "Mikrokopter"
local temp = 0
local errorcode
local error_txt = {
0 = "Mikrokopter",
1 = "FC not compatible",
2 = "MK3Mag not compatible ",
3 ... | apache-2.0 |
Invertika/data | scripts/maps/ow-p0018-p0023-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-n0010-n0017-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0005-p0003-o0000.lua | 1 | 1398 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | effects/gundam_vulcanhit.lua | 26 | 2034 | -- tracerpop
return {
["tracerpop"] = {
groundflash = {
air = true,
alwaysvisible = true,
circlealpha = 0.0,
circlegrowth = 8,
flashalpha = 0.9,
flashsize = 20,
ground = true,
ttl = 10,
... | gpl-2.0 |
alikingambav/archer | plugins/wiki.lua | 12 | 4395 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
dvdvideo1234/wire | lua/entities/gmod_wire_adv_emarker.lua | 2 | 3599 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Adv Wire Entity Marker"
ENT.Author = "Divran"
ENT.WireDebugName = "Adv EMarker"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSo... | apache-2.0 |
Invertika/data | scripts/maps/ow-p0017-p0024-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
metakermit/vlc | share/lua/intf/modules/host.lua | 48 | 12262 | --[==========================================================================[
host.lua: VLC Lua interface command line host module
--[==========================================================================[
Copyright (C) 2007-2012 the VideoLAN team
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>
... | gpl-2.0 |
GoogleFrog/Zero-K | units/armmstor.lua | 7 | 3326 | unitDef = {
unitname = [[armmstor]],
name = [[Storage]],
description = [[Stores Metal and Energy (500)]],
activateWhenBuilt = true,
buildCostEnergy = 100,
buildCostMetal = 100,
builder ... | gpl-2.0 |
HammeredEntertainment/com.hammeredentertainment.shootthis | libs/hump/vector-light.lua | 53 | 3560 | --[[
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 |
locou/Zona-Pellucida | lua/items/passives/exp_bar.lua | 1 | 3818 | local exp_bar = {}
local game = Game()
local EXPBar = {
ID = Isaac.GetItemIdByName( "EXP Bar" )
}
table.insert(locou.Items.Passives, EXPBar)
local stats = {
exp = 0.0,
tolevel = 15.0,
damage = 0.0,
firedelay = 1.0,
speed = 0.0,
luck = 0.0
}
local index = {"damage","firedelay","speed","luck"}
local ba... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0005-p0001-o0000.lua | 1 | 1395 | ----------------------------------------------------------------------------------
-- 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.