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 |
|---|---|---|---|---|---|
stephen322/prosody-modules | mod_component_roundrobin/mod_component_roundrobin.lua | 32 | 3224 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
if module:get_host_type() ~= "component" then
error("Don't load mod_component manually, it should be for ... | mit |
StaymanHou/Hacking-the-Pentest-Tutor-Game | lib/LoveFrames/objects/textinput.lua | 4 | 50372 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- textinput object
local newobject = loveframes.NewObject("textinput", "loveframes_object_textinput", true)
--[[----------... | apache-2.0 |
Invertika/data | scripts/maps/ow-p0018-p0009-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
mendsley/premake-core | tests/api/test_register.lua | 16 | 1711 | --
-- tests/api/test_register.lua
-- Tests the new API registration function.
-- Copyright (c) 2012 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("api_register")
local api = p.api
--
-- Setup and teardown
--
function suite.teardown()
testapi = nil
end
--
-- Verify t... | bsd-3-clause |
gnosek/sysdig | userspace/sysdig/chisels/echo_fds.lua | 6 | 4115 | --[[
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 |
zjohn4/PD2-lua-src | lib/managers/hud/hudsuspicion.lua | 1 | 11423 | HUDSuspicion = HUDSuspicion or class()
function HUDSuspicion:init( hud, sound_source )
self._hud_panel = hud.panel
self._sound_source = sound_source
if self._hud_panel:child( "suspicion_panel" ) then
self._hud_panel:remove( self._hud_panel:child( "suspicion_panel" ) )
end
self._suspicion_panel = self._hud... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0011-p0007-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-n0002-p0003-o0000.lua | 1 | 1393 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
tobiaswaldvogel/luci | applications/luci-app-travelmate/luasrc/model/cbi/travelmate/configuration_tab.lua | 7 | 1085 | -- Copyright 2017-2018 Dirk Brenken (dev@brenken.org)
-- This is free software, licensed under the Apache License, Version 2.0
local fs = require("nixio.fs")
local util = require("luci.util")
local input = "/etc/config/travelmate"
if not fs.access(input) then
m = SimpleForm("error", nil, translate("Input file no... | apache-2.0 |
Invertika/data | scripts/maps/ow-p0018-p0002-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-p0024-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
tickbh/tdengine_cocos2dx_demo | tdengine_ddz/src/global/include/define.lua | 1 | 4185 | -- define.lua
-- Created by wugd
-- 定义全局变量
-- 连接类型
CONN_TYPE_CLIENT = 1;
CONN_TYPE_GS = 2;
CONN_TYPE_YUNYING = 3;
SERVER_TYPE_GATE = -2;
SERVER_TYPE_LOGIC = -1;
SERVER_TYPE_CLIENT = 0;
SERVER_GATE = "gate"
SERVER_LOGIC = "logic"
SERVER_CLIENT = "client"
MESSAGE_GATE = "gate"
MESSAGE_LOGIC = "logic"
MESSA... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0004-n0009-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
xDShot/csgo_knives_sweps | lua/weapons/csgo_butterfly_slaughter.lua | 1 | 2440 | if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then
SWEP.Spawnable = false
print( "csgo_butterfly_slaughter failed to initialize: csgo_baseknife.lua not found. Did you install the main part?" )
return
end
local TTT = ( GAMEMODE_NAME == "terrortown" or cvars.Bool("csgo_knives_force_ttt", false) )
DEFI... | mit |
Invertika/data | scripts/maps/ow-n0024-p0006-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0024-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-n0019-n0022-o0000.lua | 1 | 1403 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | gamedata/modrules.lua | 2 | 3924 | -- $Id: modrules.lua 4625 2009-05-16 13:11:14Z google frog $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: modrules.lua
-- brief: modrules definitions
--
-------------------------------... | gpl-2.0 |
PaulosV/ntopng | scripts/lua/host_pkt_distro.lua | 8 | 1219 | --
-- (C) 2013-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
interface.select(ifname)
mode = _GET["mode"]
type = _GET["type"]
host_info = url2hostinfo(_GET)
host = interface.... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0017-p0006-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
dvdvideo1234/wire | lua/entities/gmod_wire_expression2/core/compat.lua | 1 | 3396 | -- Functions in this file are retained purely for backwards-compatibility. They should not be used in new code and might be removed at any time.
e2function string number:teamName()
return team.GetName(this) or ""
end
e2function number number:teamScore()
return team.GetScore(this)
end
e2function number number:teamP... | apache-2.0 |
PaulosV/ntopng | scripts/lua/modules/sqlite_utils.lua | 10 | 8666 | --
-- (C) 2014-15 - ntop.org
--
-- This file contains the description of all functions
-- used to interact with sqlite
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
require "template"
local j = require ("dkjson")
local SqliteClass = {} -- t... | gpl-3.0 |
StaymanHou/Hacking-the-Pentest-Tutor-Game | mods/std/outcomes/install.lua | 1 | 1837 | if Outcome == nil then
Outcome = require "lib.Outcome"
end
if Tool == nil then
Tool = require "lib.Tool"
end
if Virus == nil then
Virus = require "lib.Virus"
end
if Rootkit == nil then
Rootkit = require "lib.Rootkit"
end
if Host == nil then
Host = require "lib.Host"
end
install_program = Outcome.new("install... | apache-2.0 |
zjohn4/PD2-lua-src | lib/units/civilians/logics/civilianlogicidle.lua | 1 | 21566 | -----------------------------------------------------------------------------
-- ************* IDLE LOGIC *******************
-----------------------------------------------------------------------------
local tmp_vec1 = Vector3()
CivilianLogicIdle = class( CopLogicBase )
function CivilianLogicIdle.enter( data, new... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0014-n0014-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-n0004-n0019-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
mohammad2016mr/sed | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | agpl-3.0 |
alishahi/TeleSeed | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
ashkanpj/teleme | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
sykesm/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/interface.lua | 28 | 9746 | -- ------ extra functions ------ --
function interfaceCheck() -- find issues with too many interfaces, reliability and metric
uci.cursor():foreach("mwan3", "interface",
function (section)
local interfaceName = section[".name"]
interfaceNumber = interfaceNumber+1 -- count number of mwan interfaces configured
... | gpl-2.0 |
zjohn4/PD2-lua-src | lib/units/editor/areaminpoliceforceunitelement.lua | 1 | 1081 | AreaMinPoliceForceUnitElement = AreaMinPoliceForceUnitElement or class( MissionElement )
function AreaMinPoliceForceUnitElement:init( unit )
AreaMinPoliceForceUnitElement.super.init( self, unit )
self._hed.amount = 1
table.insert( self._save_values, "amount" )
end
function AreaMinPoliceForceUnitElement:_buil... | gpl-2.0 |
lemenkov/wireshark | test/lua/pcre_sets2.lua | 35 | 6228 | -- See Copyright Notice in the file LICENSE
local pat2pcre = require "pat2pcre"
local function get_gsub (lib)
return lib.gsub or
function (subj, pattern, repl, n)
return lib.new (pattern) : gsub (subj, repl, n)
end
end
local function set_f_gsub1 (lib, flg)
local subj, pat = "abcdef", "[abef]+"
re... | gpl-2.0 |
hackpascal/luci | applications/luci-app-multiwan/luasrc/controller/multiwan.lua | 62 | 1929 | module("luci.controller.multiwan", package.seeall)
function index()
local fs = require "nixio.fs"
if not fs.access("/etc/config/multiwan") then
return
end
local page
page = entry({"admin", "network", "multiwan"}, cbi("multiwan/multiwan"), _("Multi-WAN"))
page.dependent = true
entry({"admin", "network", "m... | apache-2.0 |
jcai1/WowCoding | weakauras/meme-sound-filter/wa.d.actions.init.custom.lua | 1 | 2285 | local A = aura_env
local R = WeakAuras.regions[A.id].region
local chatChannels = {
CHAT_MSG_INSTANCE_CHAT = "Instance",
CHAT_MSG_INSTANCE_CHAT_LEADER = "Instance Leader",
CHAT_MSG_BN_WHISPER = "BNet Whisper",
CHAT_MSG_GUILD = "Guild",
CHAT_MSG_PARTY = "Party",
CHAT_MSG_PARTY_LEADER = "Party Lea... | mit |
GoogleFrog/Zero-K | scripts/armcrabe.lua | 4 | 10085 | include 'constants.lua'
include 'reliableStartMoving.lua'
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local base = piece 'base'
local ground = piece 'ground'
local turret = piece 'turret'
... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0014-n0005-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/elementenemyprefered.lua | 1 | 2754 | core:import( "CoreMissionScriptElement" )
ElementEnemyPreferedAdd = ElementEnemyPreferedAdd or class( CoreMissionScriptElement.MissionScriptElement )
function ElementEnemyPreferedAdd:init( ... )
ElementEnemyPreferedAdd.super.init( self, ... )
-- self._group_data = nil
-- self._group_data.spawn_points = nil
-- s... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0022-n0020-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Olivine-Labs/resty-mongol | src/cursor.lua | 3 | 2108 | local t_insert = table.insert
local t_remove = table.remove
local t_concat = table.concat
local strbyte = string.byte
local strformat = string.format
local cursor_methods = { }
local cursor_mt = { __index = cursor_methods }
local function new_cursor(col, query, returnfields, num_each_query)
return setmetatable ( {
... | mit |
Meoo/premake-core | tests/actions/vstudio/vc2010/test_filter_ids.lua | 5 | 2427 | --
-- tests/actions/vstudio/vc2010/test_filter_ids.lua
-- Validate generation of filter unique identifiers.
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
--
local suite = test.declare("vs2010_filter_ids")
local vc2010 = premake.vstudio.vc2010
--
-- Setup/teardown
--
local sln, prj
function s... | bsd-3-clause |
Invertika/data | scripts/maps/ow-o0000-p0002-o0000.lua | 1 | 1393 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
alikingambav/archer | plugins/gif.lua | 15 | 1758 | do
local BASE_URL = 'http://api.giphy.com/v1'
local API_KEY = 'dc6zaTOxFJmzC' -- public beta key
local function get_image(response)
local images = json:decode(response).data
if #images == 0 then return nil end -- No images
local i = math.random(#images)
local image = images[i] -- A random one
if image.ima... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0005-n0009-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
zjohn4/PD2-lua-src | core/lib/utils/dev/editor/coreheatmaplayer.lua | 1 | 5255 | core:module( "CoreHeatmapLayer" )
core:import( "CoreLayer" )
core:import( "CoreEws" )
HeatmapLayer = HeatmapLayer or class( CoreLayer.Layer )
function HeatmapLayer:init( owner )
HeatmapLayer.super.init( self, owner, "heatmap" )
self._heatmap_sets = {}
end
function HeatmapLayer:get_layer_name()
return "Heatma... | gpl-2.0 |
royalharsh/flatbuffers | lua/flatbuffers/view.lua | 9 | 2327 | local m = {}
local mt = {}
local mt_name = "flatbuffers.view.mt"
local N = require("flatbuffers.numTypes")
local binaryarray = require("flatbuffers.binaryarray")
function m.New(buf, pos)
N.UOffsetT:EnforceNumber(pos)
-- need to convert from a string buffer into
-- a binary array
local o = {
... | apache-2.0 |
noahchense/nodemcu-firmware | lua_modules/yeelink/yeelink_lib.lua | 73 | 3136 |
-- ***************************************************************************
-- Yeelink Updata Libiary Version 0.1.2 r1
--
-- Written by Martin
-- but based on a script of zhouxu_o from bbs.nodemcu.com
--
-- MIT license, http://opensource.org/licenses/MIT
-- **********************************************************... | mit |
TeleMidia/dietncl | dietncl/filter/lua_table.lua | 1 | 11814 | --[[ filter.lua_table -- Convert NCL Document into NCL-ltab.
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, eithe... | gpl-2.0 |
mendsley/premake-core | scripts/package.lua | 2 | 4413 | ---
-- Create a source or binary release package.
---
---
-- Helper function: run a command while hiding its output.
---
local function execQuiet(cmd, ...)
cmd = string.format(cmd, ...) .. " > _output_.log 2> _error_.log"
local z = os.execute(cmd)
os.remove("_output_.log")
os.remove("_error_.log")
return ... | bsd-3-clause |
Invertika/data | scripts/maps/ow-o0000-p0007-o0000.lua | 1 | 1403 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0020-p0022-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-p0001-p0011-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/gui_chili_facpanel.lua | 3 | 33433 | -------------------------------------------------------------------------------
local version = "v0.019"
function widget:GetInfo()
return {
name = "Chili FactoryPanel",
desc = version .. " - Chili buildmenu for factories.",
author = "CarRepairer",
date = "2013-07-06",
license ... | gpl-2.0 |
whitehat101/iliketurtles | programs/pserver.lua | 1 | 6040 | -- Peripheral Server
os.loadAPI('/iliketurtles/apis/label')
--[[
Request all methods from a server
{
[1] = 'poll',
[2] = {
filter = filter -- optional
}
}
Call a single method with optional args
{
[1] = 'call',
[2] = {
filter = filter, -- optional
method = 'method',
args = { ... } -- optio... | gpl-2.0 |
noahchense/nodemcu-firmware | lua_modules/ds3231/ds3231-web.lua | 84 | 1338 | require('ds3231')
port = 80
-- ESP-01 GPIO Mapping
gpio0, gpio2 = 3, 4
days = {
[1] = "Sunday",
[2] = "Monday",
[3] = "Tuesday",
[4] = "Wednesday",
[5] = "Thursday",
[6] = "Friday",
[7] = "Saturday"
}
months = {
[1] = "January",
[2] = "Febuary",
[3] = "March",
[4] = "Apri... | mit |
Invertika/data | scripts/maps/ow-p0024-p0020-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
TeaEntityLab/teaTool | lib/tool/request.lua | 1 | 1728 | local Tool = require("lib.tool.tool")
local Env = require("lib.tool.env")
local Request = Tool:new()
if Env:isLuaJIT() then
local luajitrequest = require("luajit-request")
Request._send = luajitrequest.send
-- elseif Env:isNodeJS() then
-- Request._send = function(...)
-- local request = js.global:requireNo... | mit |
Invertika/data | scripts/maps/ow-p0020-p0005-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
rchunping/redis-storage | deps/lua/src/jit/dis_ppc.lua | 15 | 20319 | ----------------------------------------------------------------------------
-- LuaJIT PPC disassembler module.
--
-- Copyright (C) 2005-2012 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------... | bsd-3-clause |
HammeredEntertainment/com.hammeredentertainment.shootthis | libs/hump/vector.lua | 20 | 5319 | --[[
Copyright (c) 2010-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 |
sykesm/packages | net/smartsnmpd/files/mibs/interfaces.lua | 158 | 4833 | --
-- This file is part of SmartSNMP
-- Copyright (C) 2014, Credo Semiconductor Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your optio... | gpl-2.0 |
GoogleFrog/Zero-K | effects/xta_crawlexplode.lua | 50 | 8555 | -- small_nuke_explosion_fx
return {
["small_nuke_explosion_fx"] = {
usedefaultexplosions = false,
g_blast = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties... | gpl-2.0 |
xDShot/csgo_knives_sweps | lua/weapons/csgo_gut_case.lua | 1 | 2404 | if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then
SWEP.Spawnable = false
print( "csgo_gut_case 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_BASECLAS... | mit |
chandra1087/vpn989group | plugins/moderators.lua | 6 | 10496 | local config = require 'config'
local u = require 'utilities'
local api = require 'methods'
local plugin = {}
local mod = {
promote = function(chat_id, user)
assert(user.id, "mod.promote: user.id missing")
db:hmset(('chat:%d:mod:%d'):format(chat_id, tonumber(user.id)), user)
loca... | gpl-2.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/chili/Handlers/skinhandler.lua | 16 | 4757 | --//=============================================================================
--// Theme
SkinHandler = {}
--//=============================================================================
--// load shared skin utils
local SkinUtilsEnv = {}
setmetatable(SkinUtilsEnv,{__index = getfenv()})
VFS.Include(CHILI_DIRNAM... | gpl-2.0 |
JTriggerFish/protoplug | ProtoplugFiles/sci/qrng/_sobol.lua | 2 | 4886 | --------------------------------------------------------------------------------
-- Sobol quasi random number generator module.
--
-- Copyright (C) 2011-2014 Stefano Peluchetti. All rights reserved.
--
-- Features, documentation and more: http://www.scilua.org .
--
-- Credit: this implementation is based on the code pu... | mit |
rchunping/redis-storage | deps/lua/src/jit/v.lua | 17 | 5614 | ----------------------------------------------------------------------------
-- Verbose mode of the LuaJIT compiler.
--
-- Copyright (C) 2005-2012 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | bsd-3-clause |
Invertika/data | scripts/maps/ow-n0021-p0025-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Mizugola/ObEngine | engine/Lib/Extlibs/pl/compat.lua | 5 | 5040 | ----------------
--- Lua 5.1/5.2/5.3 compatibility.
-- Ensures that `table.pack` and `package.searchpath` are available
-- for Lua 5.1 and LuaJIT.
-- The exported function `load` is Lua 5.2 compatible.
-- `compat.setfenv` and `compat.getfenv` are available for Lua 5.2, although
-- they are not always guaranteed to work... | mit |
GoogleFrog/Zero-K | scripts/corbtrans.lua | 1 | 14392 | local body = piece 'body'
local LUpperClaw1 = piece 'LUpperClaw1'
local LMidClaw1 = piece 'LMidClaw1'
local LLowClaw1 = piece 'LLowClaw1'
local LUpperClaw2 = piece 'LUpperClaw2'
local LMidClaw2 = piece 'LMidClaw2'
local LLowClaw2 = piece 'LLowClaw2'
local LUpperClaw3 = piece 'LUpperClaw3'
local LMidClaw3 = pi... | gpl-2.0 |
seanstermonstr/test | Code/Tools/BuildScripts/lua-lib/penlight-1.0.2/tests/test-date.lua | 10 | 2659 | local test = require 'pl.test'
local asserteq, assertmatch = test.asserteq, test.assertmatch
local dump = require 'pl.pretty'.dump
local T = require 'pl.test'.tuple
local Date = require 'pl.Date'
--[[
d = Date()
print(d)
print(d:year())
d:day(20)
print(d)
d:add {day = 2}
print(d:day())
d = Date() -- 'now'
print(d:las... | bsd-3-clause |
splay-project/splay | src/osx-installer/PKG_PAYLOAD/SPLAY/lualibs/splay/utils.lua | 2 | 3114 | --[[
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 |
TeleMidia/dietncl | tests/test-filter-import.lua | 1 | 13214 | --[[ 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 |
seanstermonstr/test | Code/Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/luabalanced.lua | 49 | 8024 | --- Extract delimited Lua sequences from strings.
-- Inspired by Damian Conway's Text::Balanced in Perl. <br/>
-- <ul>
-- <li>[1] <a href="http://lua-users.org/wiki/LuaBalanced">Lua Wiki Page</a></li>
-- <li>[2] http://search.cpan.org/dist/Text-Balanced/lib/Text/Balanced.pm</li>
-- </ul> <br/>
-- <pre class=example... | bsd-3-clause |
GoogleFrog/Zero-K | LuaUI/Widgets/unit_shield_guard.lua | 12 | 18168 | -- $Id$
--[[
local versionName = "v1.0b"
function widget:GetInfo()
return {
name = "Shield Guard",
desc = versionName .. " Units walking with Area Shield will move at same speed. Area Shield will slow down for slow unit and fast unit will slow down for Area Shield. Work with GUARD (Area Shield) co... | gpl-2.0 |
sinavafa/priv8 | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
jcai1/WowCoding | weakauras/legionfall-building-buff/wa.d.actions.init.custom.lua | 1 | 1153 | local A = aura_env
local displayText = ""
local buildings = {
{name = "Mage Tower", contributionID = 1, trackingQuestID = 46793},
{name = "Command Center", contributionID = 3, trackingQuestID = 46870},
{name = "Nether Disruptor", contributionID = 4, trackingQuestID = 46871},
}
local outputNames = {}
loca... | mit |
Meoo/premake-core | tests/actions/vstudio/vc200x/test_debug_settings.lua | 4 | 2449 | --
-- tests/actions/vstudio/vc200x/test_debugdir.lua
-- Validate handling of the working directory for debugging.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_vs200x_debugdir")
local vc200x = premake.vstudio.vc200x
local project = premake.project
--
-- Se... | bsd-3-clause |
Invertika/data | scripts/maps/ow-p0004-p0013-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-p0003-n0010-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-p0012-n0019-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
noahchense/nodemcu-firmware | lua_examples/mcp23008/mcp23008_buttons.lua | 82 | 1801 | ---
-- @description Shows how to read 8 GPIO pins/buttons via I2C with the MCP23008 I/O expander.
-- Tested on NodeMCU 0.9.5 build 20150213.
-- @circuit
-- Connect GPIO0 of the ESP8266-01 module to the SCL pin of the MCP23008.
-- Connect GPIO2 of the ESP8266-01 module to the SDA pin of the MCP23008.
-- Use 3.3V fo... | mit |
stephen322/prosody-modules | mod_storage_multi/mod_storage_multi.lua | 32 | 2258 | -- mod_storage_multi
local storagemanager = require"core.storagemanager";
local backends = module:get_option_array(module.name); -- TODO better name?
-- TODO migrate data "upwards"
-- one → one successful write is success
-- all → all backends must report success
-- majority → majority of backends must report succes... | mit |
Invertika/data | scripts/maps/ow-p0016-n0014-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | units/armestor.lua | 3 | 3594 | unitDef = {
unitname = [[armestor]],
name = [[Energy Transmission Pylon]],
description = [[Extends overdrive grid]],
activateWhenBuilt = true,
buildCostEnergy = 200,
buildCostMetal = 200,
builder ... | gpl-2.0 |
zjohn4/PD2-lua-src | lib/network/matchmaking/networkvoicechatpsn.lua | 1 | 8129 | --[[-----------------------------------------------------------------------------------------------
Voice chat abstraction layer - Playstation Network implementation
To do:
open_channel_to(player_info, context):
player_info: table
the player info structure that comes from the player_joined callback
context... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0022-p0011-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
pcewing/dotfiles | config/nvim/lsp_go.lua | 1 | 1342 | -- This file is responsible for setting up the language server for Go
local nvim_lsp = require('lspconfig')
-- Use an on_attach function to only map the following keys
-- after the language server attaches to the current buffer
local on_attach = function(client, bufnr)
local function buf_set_keymap(...) vim.api.nvi... | mit |
GoogleFrog/Zero-K | LuaUI/Widgets/gfx_BloomShader.lua | 6 | 15267 | -- $Id: BloomShader.lua 3171 2008-11-06 09:06:29Z det $
function widget:GetInfo()
return {
name = "BloomShader (v0.31a)",
desc = "Sets Spring In Bloom (do not use with < 7xxx geforce series or non-latest ATI cards!)",
author = "Kloot", --Updated by Shadowfury333
date = "28-5-2008",
license ... | gpl-2.0 |
TeleMidia/dietncl | dietncl/filter/remove_component.lua | 1 | 2122 | --[[ filter.unused_media -- Remove unused medias.
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... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0014-p0012-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
ehrenbrav/FCEUX_Learning_Environment | output/luaScripts/BugsBunnyBirthdayBlowout.lua | 9 | 5535 | --Bugs Bunny Birthday Blowout
--Written by XKeeper
--Creates Lag and Sprite counters as well as Camera position
-- ************************************************************************************
-- ************************************************************************************
-- **********************... | gpl-2.0 |
fjz13/Medusa | Test/Test/Data/Script/Medusa/Lib/tableExtend.lua | 4 | 2954 |
if _VERSION == 'Lua 5.1' then
if not table.pack then
function table.pack(...)
return { n = select('#', ...); ...}
end
end
if not table.unpack then
table.unpack = unpack;
end
end
--[[--
insert list.
**Usage:**
local dest = {1, 2, 3}
local src = {4, 5, 6}
table.insertList(dest, src)
-... | mit |
ccyphers/kong | spec/03-plugins/003-http-log/01-log_spec.lua | 1 | 3482 | local cjson = require "cjson"
local socket = require "socket"
local helpers = require "spec.helpers"
local mockbin_ip = socket.dns.toip("mockbin.org")
local function create_mock_bin()
local client = assert(helpers.http_client(mockbin_ip, 80))
local res = assert(client:send({
method = "POST",
path = "/bin/... | apache-2.0 |
LuaDist2/lua-http-parser | test.lua | 2 | 7434 | #!/usr/bin/env lua
-- Make it easier to test
local src_dir, build_dir = ...
if ( src_dir ) then
package.path = src_dir .. "?.lua;" .. package.path
package.cpath = build_dir .. "?.so;" .. package.cpath
end
local lhp = require 'http.parser'
local counter = 1
function ok(assert_true, desc)
local msg = ( a... | mit |
Inorizushi/DDR-SN1HD | Graphics/ScreenGameplay LifeFrame/default.lua | 1 | 5475 | -- gameplay life frame
-- The math.floor(10000*aspect) trick is used to circumvent float precision problems.
local aspectRatioSuffix = {
[math.floor(10000*4/3)] = " 4_3",
[math.floor(10000*16/9)] = " 16_9",
[math.floor(10000*16/10)] = " 16_9"
}
--fall back on the 4:3 frame if we don't know about this aspect... | gpl-3.0 |
copystudy/squish | minify/optlex.lua | 125 | 31588 | --[[--------------------------------------------------------------------
optlex.lua: does lexer-based optimizations
This file is part of LuaSrcDiet.
Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net>
The COPYRIGHT file describes the conditions
under which this software may be distributed.
See the Chan... | mit |
eugenesan/openwrt-luci | modules/admin-mini/luasrc/model/cbi/mini/network.lua | 82 | 6273 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
h... | apache-2.0 |
otservme/global1051 | data/migrations/8.lua | 57 | 3350 | function onUpdateDatabase()
print("> Updating database to version 9 (global inbox)")
db.query("CREATE TABLE IF NOT EXISTS `player_inboxitems` (`player_id` int(11) NOT NULL, `sid` int(11) NOT NULL, `pid` int(11) NOT NULL DEFAULT '0', `itemtype` smallint(6) NOT NULL, `count` smallint(5) NOT NULL DEFAULT '0', `attribute... | gpl-2.0 |
chroteus/clay | lib/hump/vector-light.lua | 9 | 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-2.0 |
Ninjistix/darkstar | scripts/zones/RuLude_Gardens/npcs/Magian_Moogle_Orange.lua | 5 | 2007 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Magian Moogle (Orange Bobble)
-- Type: Magian Trials NPC (Weapon/Empyrean Armor)
-- !pos -11 2.453 118 64
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.