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 |
|---|---|---|---|---|---|
NerdWalletOSS/Q | UTILS/build/mk_core_so.lua | 1 | 2005 | local extract_fn_proto = require 'Q/UTILS/lua/extract_fn_proto'
local plpath = require 'pl.path'
local plfile = require 'pl.file'
local src_root = assert(os.getenv("Q_SRC_ROOT"))
local q_root = assert(os.getenv("Q_ROOT"))
assert(plpath.isdir(src_root))
corefiles = "core_c_files.txt"
assert(plpath.isfile(corefiles))
lo... | mit |
great90/skynet | lualib/skynet/snax.lua | 24 | 3697 | local skynet = require "skynet"
local snax_interface = require "snax.interface"
local snax = {}
local typeclass = {}
local interface_g = skynet.getenv("snax_interface_g")
local G = interface_g and require (interface_g) or { require = function() end }
interface_g = nil
skynet.register_protocol {
name = "snax",
id =... | mit |
keyidadi/luci | modules/base/luasrc/model/uci.lua | 86 | 10653 | --[[
LuCI - UCI model
Description:
Generalized UCI model
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
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... | apache-2.0 |
endavis/bastmush | Bast/lua/chardb.lua | 1 | 48264 | -- $Id$
--[[
QP/TP per level
SELECT AVG(qp + mccp + lucky + tier), AVG(tp) FROM quests GROUP BY level;
SELECT AVG(qp), AVG(tp) FROM campaigns GROUP BY level;
QP/TP/XP Hourly stats
SELECT SUM(qp + mccp + lucky + tier), SUM(tp) FROM quests WHERE finishtime > now - 1 hour;
SELECT SUM(qp), SUM(tp) FROM campaigns WHERE ... | gpl-2.0 |
Oliveryo/Interface | AddOns/oCB/Libs/BabbleSpell-2.2/Babble-Spell-2.2.lua | 1 | 301910 | --[[
Name: Babble-Spell-2.2
Revision: $Rev: 15059 $
Author(s): ckknight (ckknight@gmail.com)
Website: http://ckknight.wowinterface.com/
Documentation: http://wiki.wowace.com/index.php/Babble-Spell-2.2
SVN: http://svn.wowace.com/root/trunk/Babble-2.2/Babble-Spell-2.2
Description: A library to provide localizations for ... | gpl-3.0 |
great90/skynet | lualib/skynet/datasheet/init.lua | 11 | 1531 | local skynet = require "skynet"
local service = require "skynet.service"
local core = require "skynet.datasheet.core"
local datasheet_svr
skynet.init(function()
datasheet_svr = service.query "datasheet"
end)
local datasheet = {}
local sheets = setmetatable({}, {
__gc = function(t)
for _,v in pairs(t) do
skyne... | mit |
Oliveryo/Interface | AddOns/dpsmate/modules/DPSMate_Details_DecursesReceived.lua | 2 | 8342 | -- Global Variables
DPSMate.Modules.DetailsDecursesReceived = {}
-- Local variables
local DetailsArr, DetailsTotal, DmgArr, DetailUser, DetailsSelected = {}, 0, {}, "", 1
local DetailsArrComp, DetailsTotalComp, DmgArrComp, DetailUserComp, DetailsSelectedComp = {}, 0, {}, "", 1
local g, g2
local curKey = 1
local db, ... | gpl-3.0 |
Oliveryo/Interface | AddOns/dpsmate/modules/DPSMate_LiftMagic.lua | 1 | 4160 | -- Global Variables
DPSMate.Modules.LiftMagic = {}
DPSMate.Modules.LiftMagic.Hist = "Dispels"
DPSMate.Options.Options[1]["args"]["liftmagic"] = {
order = 220,
type = 'toggle',
name = DPSMate.L["liftmagic"],
desc = DPSMate.L["show"].." "..DPSMate.L["liftmagic"]..".",
get = function() return DPSMateSettings["windows... | gpl-3.0 |
PetaVision/projects | depthSCANN/input/benchmarkEncoding/encode_LCA.lua | 2 | 16428 | -------------------------------------------------------------------
-- Encoding benchmark dataset with SCANN
--
-- Sheng Lundquist 6/9/15
--
-- Implements encoding of benchmark training set with SCANN model as described in
-- Lundquist et al., "Emergence of Depth-Tuned Hidden Units Through
-- Sparse Encoding of Binocul... | epl-1.0 |
leecrest/luvit | deps/pretty-print.lua | 4 | 9524 | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
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 o... | apache-2.0 |
keyidadi/luci | libs/nixio/lua/nixio/util.lua | 179 | 5824 | --[[
nixio - Linux I/O library for lua
Copyright 2009 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
local... | apache-2.0 |
x-v8/bkb | bkb/lib/resty/cookie.lua | 5 | 5650 | -- Copyright (C) 2013-2016 Jiale Zhi (calio), CloudFlare Inc.
-- See RFC6265 http://tools.ietf.org/search/rfc6265
-- require "luacov"
local type = type
local byte = string.byte
local sub = string.sub
local format = string.format
local log = ngx.log
local ERR = ngx... | mit |
NerdWalletOSS/Q | QLI_LUA/DEPRECATED/Q_TOOL/deps/http-codec.lua | 4 | 9078 | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
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 o... | mit |
Goodzilam/Good1 | bot/utils.lua | 646 | 23489 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
Flexibity/luci | libs/sys/luasrc/sys/zoneinfo/tzoffset.lua | 72 | 3904 | --[[
LuCI - Autogenerated Zoneinfo Module
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
]]--
module "luci.sys.zoneinfo.tzoffset"
OFFSET = {
gmt =... | apache-2.0 |
NerdWalletOSS/Q | DEPRECATED_Q2/LUAQ/BAK1/chk_add_fld.lua | 1 | 1326 | #!/home/subramon/lua-5.3.0/src/lua
function chk_add_fld(J)
assert(J ~= nil)
assert(type(J) == "table")
local t = assert(J.tbl)
assert(chk_tbl_name(t))
assert(is_tbl(t), "Table not found" .. t)
local f = assert(J.fld)
assert(chk_fld_name(f), "Invalid field name: " .. f)
local op = assert(J.OP)
local ar... | mit |
aure/Soundpipe | modules/data/dtrig.lua | 3 | 1805 | sptbl["dtrig"] = {
files = {
module = "dtrig.c",
header = "dtrig.h",
example = "ex_dtrig.c",
},
func = {
create = "sp_dtrig_create",
destroy = "sp_dtrig_destroy",
init = "sp_dtrig_init",
compute = "sp_dtrig_compute",
},
params = {
ma... | mit |
NerdWalletOSS/Q | QLI_LUA/DEPRECATED/Q_TOOL/deps/querystring.lua | 10 | 2914 | --[[
Copyright 2015 The Luvit Authors. All Rights Reserved.
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 agr... | mit |
xriss/fun64 | plated/source/blog/2017-01-27-comic-test/comic-head-cannon.fun.lua | 1 | 32454 |
local bit=require("bit")
local wstr=require("wetgenes.string")
local wgrd=require("wetgenes.grd")
local tardis=require("wetgenes.tardis") -- matrix/vector math
local bitdown=require("wetgenes.gamecake.fun.bitdown")
local bitdown_font_4x8=require("wetgenes.gamecake.fun.bitdown_font_4x8")
local chipmunk=require("wetge... | mit |
NoxHarmonium/spacestationkeeper | assets/scripts/jobs/MiningJob/MiningJob.lua | 1 | 2385 | -- Mining Job
class 'MiningJob' (Job)
function MiningJob:__init(gameGrid, coord, preReqTexture, postReqTexture)
Job.__init(self)
LuaDebug.Log('MiningJob:__init() called!')
self._gameGrid = gameGrid
self._coord = coord
self._preReqTexture = preReqTexture
self._postReqTexture = postReqTexture
... | mit |
MaliciouZzHD/AndroidChromeCastControl | files/nmap/nselib/pop3.lua | 2 | 5967 | ---
-- POP3 functions.
--
-- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html
local base64 = require "base64"
local comm = require "comm"
local nmap = require "nmap"
local stdnse = require "stdnse"
local string = require "string"
local table = require "table"
_ENV = stdnse.module("pop3", stdnse.seeall)... | gpl-3.0 |
NerdWalletOSS/Q | OPERATORS/UNIQUE/lua/expander_unique.lua | 1 | 5586 | local ffi = require 'Q/UTILS/lua/q_ffi'
local lVector = require 'Q/RUNTIME/lua/lVector'
local qconsts = require 'Q/UTILS/lua/q_consts'
local qc = require 'Q/UTILS/lua/q_core'
local cmem = require 'libcmem'
local get_ptr = require 'Q/UTILS/lua/get_ptr'
local sort_utility = require 'Q/OPERATORS/UNIQUE/lua/uni... | mit |
Flexibity/luci | modules/flexibity/luasrc/controller/flexibity/sensors.lua | 1 | 2019 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Maxim Osipov <maxim.osipov@gmail.com>
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... | apache-2.0 |
wilkgr76/eggwars | register_arena.lua | 1 | 5857 | ----------------------------------------------------------------------
-- Eggwars by wilkgr --
-- with additional code by shivajiva101@hotmail.com --
-- Licensed under the AGPL v3 --
-- You MUST make any changes you make open source ... | agpl-3.0 |
keyidadi/luci | contrib/luadoc/lua/luadoc/taglet/standard.lua | 93 | 16319 | -------------------------------------------------------------------------------
-- @release $Id: standard.lua,v 1.39 2007/12/21 17:50:48 tomas Exp $
-------------------------------------------------------------------------------
local assert, pairs, tostring, type = assert, pairs, tostring, type
local io = require "io... | apache-2.0 |
a1lu/awesomeWM | sc/drop.lua | 1 | 5106 | -------------------------------------------------------------------
-- Drop-down applications manager for the awesome window manager
-------------------------------------------------------------------
-- Coded by: * Lucas de Vries <lucas@glacicle.com>
-- Hacked by: * Adrian C. (anrxc) <anrxc@sysphere.org>
... | mit |
adminomega/exterme-2 | plugins/stats.lua | 1 | 3996 | 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 |
NerdWalletOSS/Q | DEPRECATED_Q2/Q_HTTP/q_server.lua | 1 | 2227 | --[[
A simple HTTP server that loadstring's the input string
Usage: luajit Q/Q_HTTP/q_server.lua [<port>]
]]
Q = require 'Q'
local port = arg[1] or 0 -- 0 means pick one at random
local http_server = require "http.server"
local http_headers = require "http.headers"
local eval = require 'q_eval_line'
local res_str =... | mit |
Flexibity/luci | modules/admin-full/luasrc/controller/admin/system.lua | 6 | 10645 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008-2011 Jo-Philipp Wich <xm@subsignal.org>
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
htt... | apache-2.0 |
Oliveryo/Interface | AddOns/VanillaGuide/GuideTables/Horde/002_TirisfalGlades.lua | 1 | 13162 | --[[--------------------------------------------------
002-TirisfalGlades.lua
Authors: mrmr
Version: 1.04.2
------------------------------------------------------
Description: Guide Serie - 002 Tirisfal Glades
1.04.1
-- First Release
Undead Tirisfal Glades's Guide
from level 1 to lev... | gpl-3.0 |
Oliveryo/Interface | AddOns/dpsmate/modules/DPSMate_OHealingTaken.lua | 1 | 4500 | -- Global Variables
DPSMate.Modules.OHealingTaken = {}
DPSMate.Modules.OHealingTaken.Hist = "OHealingTaken"
DPSMate.Options.Options[1]["args"]["OHealingTaken"] = {
order = 81,
type = 'toggle',
name = DPSMate.L["OHealingTaken"],
desc = DPSMate.L["show"].." "..DPSMate.L["OHealingTaken"]..".",
get = function() return... | gpl-3.0 |
slayerrensky/luci | applications/luci-app-pbx/luasrc/model/cbi/pbx-google.lua | 146 | 5490 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx 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
... | apache-2.0 |
MaliciouZzHD/AndroidChromeCastControl | files/nmap/nselib/bjnp.lua | 2 | 9061 | ---
-- An implementation of the Canon BJNP protocol used to discover and query
-- Canon network printers and scanner devices.
--
-- The implementation is pretty much based on Wireshark decoded messages
-- the cups-bjnp implementation and the usual guesswork.
--
-- @author "Patrik Karlsson <patrik [at] cqure.net>"
--
l... | gpl-3.0 |
sysuzhang/arcemu | src/scripts/lua/LuaBridge/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Kilrek.lua | 30 | 1152 | function Kilrek_Broken_Pact(Unit, event, miscunit, misc)
if Unit:GetHealthPct() < 2 and Didthat == 0 then
Unit:FullCastSpellOnTarget(30065,Unit:GetUnitBySqlId(15688))
Unit:SendChatMessage(11, 0, "You let me down Terestian, you will pay for this...")
Didthat = 1
else
end
end
function Kilrek_FireBolt(Unit, even... | agpl-3.0 |
padrinoo/padrino85 | plugins/banhammer.lua | 294 | 10470 | local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return white
end
local function is_chat_whitelisted(id)
local hash = 'whitelist:chat#id'..id
local white = redis:get(hash) or false
return white
end
local function kick_user(user_id, chat_id)... | gpl-2.0 |
x-v8/bkb | bkb/lib/resty/upload.lua | 1 | 5178 | -- Copyright (C) Yichun Zhang (agentzh)
-- local sub = string.sub
local req_socket = ngx.req.socket
local match = string.match
local setmetatable = setmetatable
local type = type
local ngx_var = ngx.var
-- local print = print
local _M = { _VERSION = '0.09' }
local CHUNK_SIZE = 4096
local MAX_LINE_SIZE = 512
loca... | mit |
usirin/koding | go/src/vendor/github.com/caglar10ur/lxc/src/lxc/lxc-top.lua | 62 | 7453 | #!/usr/bin/env lua
--
-- top(1) like monitor for lxc containers
--
-- Copyright © 2012 Oracle.
--
-- Authors:
-- Dwight Engen <dwight.engen@oracle.com>
--
-- This library 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 Fre... | apache-2.0 |
TeslaCloud/TTTRewrite | terrortown/entities/entities/ttt_weapon_check.lua | 1 | 2825 |
ENT.Type = "brush"
ENT.Base = "base_brush"
function ENT:KeyValue(key, value)
if key == "WeaponsFound" then
-- this is our output, so handle it as such
self:StoreOutput(key, value)
end
end
local function VectorInside(vec, mins, maxs)
return (vec.x > mins.x and vec.x < maxs.x
and vec.y ... | mit |
fredericjoanis/Argorha-Pathfinding | extern/premake/tools/dotnet.lua | 40 | 1857 | --
-- dotnet.lua
-- Interface for the C# compilers, all of which are flag compatible.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
premake.dotnet = { }
premake.dotnet.namestyle = "windows"
--
-- Translation of Premake flags into CSC flags
--
local flags =
{
FatalWarning = "/warnase... | mit |
cc122cc/THETETOO2 | plugins/all.lua | 41 | 4395 | do
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_print_name(user)..' ['..user_id..']'
return u... | gpl-2.0 |
lhmwzy/vanilla | vanilla/sys/vanilla.lua | 3 | 3396 | -- dep
local ansicolors = require 'vanilla.v.libs.ansicolors'
-- perf
local error = error
local sgmatch = string.gmatch --cli didn't have ngx.re API
-- vanilla
local va_conf = require 'vanilla.sys.config'
local ngx_handle = require 'vanilla.sys.nginx.handle'
local ngx_config = require 'vanilla.sys.nginx.config'
local... | mit |
leecrest/luvit | tests/test-json.lua | 11 | 2436 | --[[
Copyright 2015 The Luvit Authors. All Rights Reserved.
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 agr... | apache-2.0 |
FlightControl-Master/MOOSE | Moose Development/Moose/Actions/Act_Route.lua | 1 | 15809 | --- (SP) (MP) (FSM) Route AI or players through waypoints or to zones.
--
-- ===
--
-- # @{#ACT_ROUTE} FSM class, extends @{Core.Fsm#FSM_PROCESS}
--
-- ## ACT_ROUTE state machine:
--
-- This class is a state machine: it manages a process that is triggered by events causing state transitions to occur.
-- All derived cla... | gpl-3.0 |
Oliveryo/Interface | AddOns/BigWigs_RazuviousAssistant/libs/Gratuity-2.0/Gratuity-2.0.lua | 3 | 7889 | --[[
Name: Gratuity-2.0
Revision: $Rev: 11053 $
Author: Tekkub Stoutwrithe (tekkub@gmail.com)
Website: http://wiki.wowace.com/index.php/GratuityLib
Documentation: http://wiki.wowace.com/index.php/Gratuity-2.0_API_Documentation
SVN: svn://svn.wowace.com/root/trunk/GratuityLib/Gratuity-2.0
Description: Tooltip parsing li... | gpl-3.0 |
satta/companion | data/filters/filter_short_partials.lua | 4 | 1564 | --[[
Author: Sascha Steinbiss <ss34@sanger.ac.uk>
Copyright (c) 2014 Genome Research Ltd
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWA... | isc |
sysuzhang/arcemu | src/scripts/lua/LuaBridge/AUCHINDOUN/MANA_TOMBS/shaffar.lua | 13 | 4734 | --?!MAP=557
assert( include("manatombs.lua") , "Failed to load manatombs.lua")
local mod = require("DUNGEON_AUCHINDOUN.INSTANCE_MANATOMBS")
assert(mod)
module(mod._NAME..".SHAFFAR",package.seeall)
local self = getfenv(1)
WorldDBQuery("DELETE FROM ai_agents WHERE entry = 18344;")
function OnSpawn(unit)
for i = 1,3 do
... | agpl-3.0 |
codergreen/ValyriaTear | dat/effects/particles/heal_sp_particle.lua | 5 | 2526 | -- Heal SP particle effect
-- Author: Bertram
systems = {}
systems[0] =
{
enabled = true,
emitter =
{
x = 0,
y = -64,
x2 = 0, --useless when using a circle shape
y2 = 0, --useless when using a circle shape
center_x = 0, --useless when using a circle shape
... | gpl-2.0 |
tboox/xmake | xmake/core/sandbox/modules/winos.lua | 1 | 1515 | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | apache-2.0 |
Oliveryo/Interface | AddOns/!ImprovedErrorFrame/localization.cn.lua | 1 | 3474 | --------------------------------------------------
-- localization.cn.lua (Chinese) by shu
-- $LastChangedBy: Miravlix $
-- $Date: 2006-05-27 23:47:37 -0500 (Sat, 27 May 2006) $
if ( GetLocale() == "zhCN" ) then
-- Interface Configuration
IEF_FILE = "文件: ";
IEF_STRING = "字符: ";
IEF_LINE = "行: ";
IEF_COUNT = ... | gpl-3.0 |
NerdWalletOSS/Q | RUNTIME/test/lVector_test/map_lVector.lua | 1 | 13690 | local qconsts = require 'Q/UTILS/lua/q_consts'
-- test_type: need to specify the vector type to be created
-- assert_fns: function to be called to perform checks
-- name: testcase name
-- meta: meta data file for vector
-- num_elements: number of elements
-- qtype: need to specify qtype if you want to run test for spe... | mit |
tboox/xmake | xmake/core/base/process.lua | 1 | 6605 | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | apache-2.0 |
codergreen/ValyriaTear | dat/maps/layna_village/layna_village_riverbank_house_map.lua | 4 | 26768 | map_data = {}
-- The number of rows, and columns that compose the map
map_data.num_tile_cols = 32
map_data.num_tile_rows = 24
-- The tilesets definition files used.
map_data.tileset_filenames = {}
map_data.tileset_filenames[1] = "dat/tilesets/building_interior_objects_01.lua"
map_data.tileset_filenames[2] = "dat/tile... | gpl-2.0 |
g0t-ya/XiaoyuBox | luci/model/cbi/admin_system/startup.lua | 67 | 2805 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2012 Jo-Philipp Wich <xm@subsignal.org>
Copyright 2010 Manuel Munz <freifunk at somakoma dot de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with t... | lgpl-3.0 |
NerdWalletOSS/Q | RUNTIME/DEPRECATED/COLUMN/code/lua/0.Vector.lua | 1 | 12674 | --[[
Vector Semantics
1. Pull Semantics
1.1 Read file
Params
chunk_size (optional) - The number of fields in each chunk, defaults to qconsts.chunk_size
field_type - The field type used, which must be present in qconsts.qtypes
field_size - If specif... | mit |
tboox/xmake | xmake/core/sandbox/modules/interpreter/macos.lua | 1 | 1188 | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | apache-2.0 |
tboox/xmake | xmake/modules/lib/detect/has_features.lua | 1 | 2047 | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | apache-2.0 |
NerdWalletOSS/Q | OPERATORS/F1S1OPF2/test/test_is_prev.lua | 1 | 1393 | -- FUNCTIONAL
local Q = require 'Q'
local qconsts = require 'Q/UTILS/lua/q_consts'
require 'Q/UTILS/lua/strict'
local tests = {}
tests.t1 = function()
local c1 = Q.mk_col( {1,2,3,4,5,6,7,8}, "I4")
local c2 = Q.is_prev(c1, "eq", { default_val = 0 } )
local n1, n2 = Q.sum(c2):eval()
assert(n1:to_num() == 0)
Q... | mit |
protito/nyas-space-quest-qd | cocos2d/plugin/luabindings/auto/api/lua_cocos2dx_pluginx_auto_api.lua | 146 | 1793 | --------------------------------
-- @module plugin
--------------------------------------------------------
-- the plugin PluginProtocol
-- @field [parent=#plugin] PluginProtocol#PluginProtocol PluginProtocol preloaded module
--------------------------------------------------------
-- the plugin PluginManager
-- @fi... | apache-2.0 |
HiT-Hi-FiT-Hai/ptokax-scripts | chatrooms.lua | 4 | 5380 | --[[
This file is part of HiT Hi FiT Hai's PtokaX scripts
Copyright: © 2014 HiT Hi FiT Hai group
Licence: GNU General Public Licence v3 https://www.gnu.org/licenses/gpl-3.0.html
--]]
function OnStartup()
tConfig = {
tTemplates = {
sHistory = "Past %d messages: \n\n\t%s\n\n",
sList = "There are currently... | gpl-3.0 |
tboox/xmake | xmake/core/main.lua | 1 | 7641 | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | apache-2.0 |
keyidadi/luci | modules/base/luasrc/ccache.lua | 82 | 1863 | --[[
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
ht... | apache-2.0 |
slayerrensky/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_add.lua | 50 | 4887 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local nw = require "luci.model.network"
local fw = require "luci.model.firewall"
local uci = require "luci.model.uci".cursor()
local http = require "luci.http"
local iw = lu... | apache-2.0 |
keyidadi/luci | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_mini.lua | 141 | 1031 | --[[
smap_devinfo - SIP Device Information
(c) 2009 Daniel Dickinson
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
require("luci.i18n")
re... | apache-2.0 |
Flexibity/luci | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_mini.lua | 141 | 1031 | --[[
smap_devinfo - SIP Device Information
(c) 2009 Daniel Dickinson
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
require("luci.i18n")
re... | apache-2.0 |
tboox/xmake | xmake/platforms/windows/xmake.lua | 1 | 5051 | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | apache-2.0 |
tboox/xmake | xmake/core/sandbox/modules/vprintf.lua | 1 | 1028 | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | apache-2.0 |
EvilHero90/forgottenserver | data/npc/lib/npcsystem/npchandler.lua | 6 | 21885 | -- Advanced NPC System by Jiddo
if not NpcHandler then
-- Constant talkdelay behaviors.
TALKDELAY_NONE = 0 -- No talkdelay. Npc will reply immedeatly.
TALKDELAY_ONTHINK = 1 -- Talkdelay handled through the onThink callback function. (Default)
TALKDELAY_EVENT = 2 -- Not yet implemented
-- Currently applied talkde... | gpl-2.0 |
tboox/xmake | xmake/plugins/lua/scripts/echo.lua | 1 | 1096 | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | apache-2.0 |
weirdouncle/QSanguosha-For-Hegemony | lang/zh_CN/Audio/FormationLines.lua | 1 | 2700 |
return {
-- 邓艾
--["cv:dengai"] = "doublebit",
["$tuntian1"] = "休养生息,备战待敌。",
["$tuntian2"] = "锄禾日当午,汗滴禾下土。",
["$ziliang1"] = "屯田日久,当建奇功!",
["$ziliang2"] = "开辟险路,奇袭敌军!",
["$jixi1"] = "攻其不备,出其不意!",
["$jixi2"] = "偷渡阴平,直取蜀汉!",
["~dengai"] = "吾破蜀克敌,竟葬于奸贼之手!",
-- 曹洪
["cv:caohong"] = "极光星逝",
["$huyuan1"] = "明公... | gpl-3.0 |
tboox/xmake | xmake/core/ui/boxdialog.lua | 1 | 2471 | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | apache-2.0 |
alfred-bot/phmbot | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
LibreLabUCM/telegram-bot | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
NerdWalletOSS/Q | OPERATORS/GETK/lua/expander_getk.lua | 1 | 4445 | local qconsts = require 'Q/UTILS/lua/q_consts'
-- local ffi = require 'Q/UTILS/lua/q_ffi'
local qc = require 'Q/UTILS/lua/q_core'
local lVector = require 'Q/RUNTIME/lua/lVector'
local cmem = require 'libcmem'
local get_ptr = require 'Q/UTILS/lua/get_ptr'
local ffi = require 'Q/UTILS/lua/q_ffi'
local rec... | mit |
Oliveryo/Interface | AddOns/VanillaGuide/UI.lua | 1 | 5561 | --[[--------------------------------------------------
----- VanillaGuide -----
------------------
UI.lua
Authors: mrmr
Version: 1.04.2
------------------------------------------------------
Description:
Master UI object.
From here Main/Settings/About frames spawns
1.00
-- Initial Ace2 release
1.99a
... | gpl-3.0 |
Oliveryo/Interface | AddOns/aux-addon/util.lua | 1 | 3159 | module 'aux'
do
local mt = {__metatable=false, __newindex=nop, __mode='k'}
function mt:__sub(table)
local proxy = setmetatable(T, O('__metatable', false, '__newindex', nop, '__index', table))
self[proxy] = table
return proxy
end
function M.get_wrapper()
return setmetatable(T, mt)
end
end
M.select = varar... | gpl-3.0 |
fredericjoanis/Argorha-Pathfinding | extern/premake/base/project.lua | 8 | 17761 | --
-- project.lua
-- Functions for working with the project data.
-- Copyright (c) 2002 Jason Perkins and the Premake project
--
premake.project = { }
--
-- Create a tree from a project's list of files, representing the filesystem hierarchy.
--
-- @param prj
-- The project containing the files to map.
-- @return... | mit |
leecrest/luvit | tests/test-fs-chmod.lua | 11 | 3263 | --[[
Copyright 2012-2015 The Luvit Authors. All Rights Reserved.
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... | apache-2.0 |
DSUK/OpenRA | mods/ra/maps/soviet-01/soviet01.lua | 28 | 2150 | Yaks = { "yak", "yak", "yak" }
Airfields = { Airfield1, Airfield2, Airfield3 }
InsertYaks = function()
local i = 1
Utils.Do(Yaks, function(yakType)
local start = YakEntry.CenterPosition + WVec.New(0, (i - 1) * 1536, Actor.CruiseAltitude(yakType))
local dest = StartJeep.Location + CVec.New(0, 2 * i)
local yak =... | gpl-3.0 |
NerdWalletOSS/Q | OPERATORS/AINB/test/test_get_idx_by_val.lua | 1 | 1185 | local Q = require 'Q'
local qconsts = require 'Q/UTILS/lua/q_consts'
local get_ptr = require 'Q/UTILS/lua/get_ptr'
local Scalar = require 'libsclr'
require 'Q/UTILS/lua/strict'
local tests = {}
tests.t1 = function()
local n_src = 65
local x = Q.seq( {start = 10, by = 1, qtype = "I4", len = n_src} )
... | mit |
HelenaKitty/EbooMC | Server/webadmin/template.lua | 5 | 5592 | -- Use a table for fast concatenation of strings
local SiteContent = {}
function Output(String)
table.insert(SiteContent, String)
end
function GetTableSize(Table)
local Size = 0
for key,value in pairs(Table) do
Size = Size + 1
end
return Size
end
function GetDefaultPage()
local PM = cRoot:Get():GetPlu... | apache-2.0 |
zhityer/zhityer7 | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
NerdWalletOSS/Q | ML/KNN/test/experimental/test_knn_voting.lua | 1 | 1115 | local Q = require 'Q'
local qc = require 'Q/UTILS/lua/q_core'
local plpath = require 'pl.path'
local run_voting = require 'Q/ML/KNN/lua/run_voting'
-- local utils = require 'Q/UTILS/lua/utils'
local tests = {}
local q_src_root = os.getenv("Q_SRC_ROOT")
assert(plpath.isdir(q_src_root))
local data_dir = q_src_root .. "/... | mit |
MaliciouZzHD/AndroidChromeCastControl | files/nmap/nselib/cassandra.lua | 2 | 6559 | ---
-- Library methods for handling Cassandra Thrift communication as client
--
-- @author Vlatko Kosturjak
-- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html
--
-- Version 0.1
--
local bin = require "bin"
local nmap = require "nmap"
local stdnse = require "stdnse"
local string = require "string"
loca... | gpl-3.0 |
aure/Soundpipe | modules/data/incr.lua | 3 | 1675 | sptbl["incr"] = {
files = {
module = "incr.c",
header = "incr.h",
example = "ex_incr.c",
},
func = {
create = "sp_incr_create",
destroy = "sp_incr_destroy",
init = "sp_incr_init",
compute = "sp_incr_compute",
},
params = {
mandatory ... | mit |
OompahLoompah/ProjectHamsterball | hamsterBounce.lua | 2 | 2763 | require 'object'
require 'camera'
local player = require 'player'
local state = {}
local x
local y
local xSpeed
local ySpeed
local cam
local objects = {}
local i = 0
local runtest = false
function state.init()
objects[1] = object.new(love.graphics.newImage('resources/imgs/hamster.png'), 0, 0, 0, 0, 10, true)
i = 1... | mit |
NerdWalletOSS/Q | OPERATORS/F1F2OPF3/lua/expander_f1f2opf3.lua | 1 | 3331 | -- local dbg = require 'Q/UTILS/lua/debugger' local gen_code = require 'Q/UTILS/lua/gen_code'
local qconsts = require 'Q/UTILS/lua/q_consts'
local ffi = require 'Q/UTILS/lua/q_ffi'
local qc = require 'Q/UTILS/lua/q_core'
local lVector = require 'Q/RUNTIME/lua/lVector'
local cmem = require 'libcmem'
local ge... | mit |
Oliveryo/Interface | AddOns/dpsmate/modules/DPSMate_Details_DispelsReceived.lua | 2 | 8139 | -- Global Variables
DPSMate.Modules.DetailsDispelsReceived = {}
-- Local variables
local DetailsArr, DetailsTotal, DmgArr, DetailUser, DetailsSelected = {}, 0, {}, "", 1
local DetailsArrComp, DetailsTotalComp, DmgArrComp, DetailUserComp, DetailsSelectedComp = {}, 0, {}, "", 1
local g, g2
local curKey = 1
local db, c... | gpl-3.0 |
swq0553/ClusteredShadingAndroid | modules/ndk/ndk.lua | 2 | 2068 | --
-- ndk.lua
-- Android exporter module for Premake.
-- Copyright (c) 2014 Will Vale and the Premake project
--
-- Define module
premake.modules.ndk = {}
local ndk = premake.modules.ndk
-- Shortcuts
local api = premake.api
local config = premake.config
local make = premake.make
local project = ... | bsd-3-clause |
Oliveryo/Interface | AddOns/AtlasLoot/Content/AL_BossList.lua | 1 | 3515 | AtlasLootBossNames = {
BlackrockSpireLower = {
"Highlord Omokk (LBRS)";
"Spirestone Battle Lord (LBRS)";
"Vosh'gajin (LBRS)";
"War Master Voone (LBRS)";
"Mor Grayhoof (LBRS)";
"Mother Smolderweb (LBRS)";
"Crystal Fang (LBRS)";
"Doomhowl (LBRS)";
... | gpl-3.0 |
iranianhacker40/ARCHON-TEAM | plugins/lock_chat.lua | 13 | 2802 |
local function run(msg, matches)
if msg.to.type == 'chat' then
if is_momod(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings'] then
if data[tostring(msg.to.id)]['settings']['lock_chat... | gpl-2.0 |
alanjcfs/glc-client | assets/shooter/shooter.lua | 2 | 26986 | return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 25,
height = 25,
tilewidth = 16,
tileheight = 16,
properties = {},
tilesets = {
{
name = "Wall",
firstgid = 1,
tilewidth = 16,
tileheight = 16,
spacing = 0,
margin = 0,
image... | apache-2.0 |
codergreen/ValyriaTear | dat/maps/layna_forest/layna_forest_south_west_map.lua | 4 | 94595 | map_data = {}
-- The number of rows, and columns that compose the map
map_data.num_tile_cols = 64
map_data.num_tile_rows = 48
-- The tilesets definition files used.
map_data.tileset_filenames = {}
map_data.tileset_filenames[1] = "dat/tilesets/wood_tileset.lua"
-- The map grid to indicate walkability. 0 is walkable, ... | gpl-2.0 |
keyidadi/luci | modules/admin-mini/luasrc/controller/mini/index.lua | 79 | 1429 | --[[
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 |
Oliveryo/Interface | AddOns/!ImprovedErrorFrame/localization.fr.lua | 1 | 4230 | -- Version : French ( by Vjeux, Sasmira )
-- last update : 08/10/2005
if ( GetLocale() == "frFR" ) then
-- Interface Configuration
IEF_FILE = "Fichier : ";
IEF_STRING = "Cha\195\174ne : ";
IEF_LINE = "Ligne : ";
IEF_COUNT = "Nombre : ";
IEF_ERROR = "Erreur : ";
--IEF_ADDON = "AddOn: ";
--IEF_PATH = "Pa... | gpl-3.0 |
NerdWalletOSS/Q | experimental/q_performance_testing/test_reduce.lua | 1 | 1310 | local Q = require 'Q'
local Vector = require 'libvec'
local file_name = "profile_result.txt"
local n = 128*1048576
-- Q.save()
-- os.exit()
-- Q.restore()
_G['g_time'] = {}
Vector.reset_timers()
local start_time, stop_time, time
start_time = qc.RDTSC()
a = Q.const({ val = 1, len = n, qtype = "F8" }):memo(false)
b =... | mit |
Asitara/addons-chardump | json/json.lua | 1 | 15851 | -----------------------------------------------------------------------------
-- JSON4Lua: JSON encoding / decoding support for the Lua language.
-- json Module.
-- Author: Craig Mason-Jones
-- Homepage: http://json.luaforge.net/
-- Version: 0.9.20
-- This module is released under the The GNU General Public License (GP... | lgpl-2.1 |
Kyrremann/GlobalGameJam2015 | player.lua | 1 | 5086 | local class = require "middleclass"
local Player = class('Player')
Player.static.JUMP = 1
Player.static.DUCK = 2
Player.static.UNDUCK = 3
local playt = 0 -- time since playback started
function Player:initialize(name, x, y)
self.name = name
self:initImages()
self.anim = {
tile = 1,
duration = .... | gpl-3.0 |
kvalium/loveGame | functions.lua | 1 | 2263 | local reloadColor = true
local timer = 0
--
-- Prints debug information on objects
--
function printDebug(spriteLayer, entities, player, exit)
-- Draw Collision Map
love.graphics.setColor(255, 0, 0, 50)
map:box2d_draw()
-- player debug
love.graphics.setColor(255, 255, 255, 255)
love.graphics.po... | gpl-3.0 |
keyidadi/luci | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/cpu.lua | 76 | 1096 | --[[
Luci statistics - cpu plugin diagram definition
(c) 2008 Freifunk Leipzig / 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
http://www.apache... | apache-2.0 |
leecrest/luvit | bench/http-cluster/master.lua | 14 | 1302 | --[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
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 agr... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.