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 |
|---|---|---|---|---|---|
zhityer/zhityer | plugins/help.lua | 290 | 1653 | do
-- Returns true if is not empty
local function has_usage_data(dict)
if (dict.usage == nil or dict.usage == '') then
return false
end
return true
end
-- Get commands for that plugin
local function plugin_help(name)
local plugin = plugins[name]
if not plugin then return nil end
local text = ""
if ... | gpl-2.0 |
seanstermonstr/test | Code/Angel/Libraries/Box2D-2.2.1/premake4.lua | 35 | 1660 | -- Box2D premake script.
-- http://industriousone.com/premake
local action = _ACTION or ""
solution "Box2D"
location ( "Build/" .. action )
configurations { "Debug", "Release" }
configuration "vs*"
defines { "_CRT_SECURE_NO_WARNINGS" }
configuration "Debug"
targetdir ( "Build/" .. action .. "/bin/Debug"... | bsd-3-clause |
Uberi/Minetest-WorldEdit | worldedit/serialization.lua | 1 | 8936 | --- Schematic serialization and deserialiation.
-- @module worldedit.serialization
worldedit.LATEST_SERIALIZATION_VERSION = 5
local LATEST_SERIALIZATION_HEADER = worldedit.LATEST_SERIALIZATION_VERSION .. ":"
--[[
Serialization version history:
1: Original format. Serialized Lua table with a weird linked ... | agpl-3.0 |
tobiaswaldvogel/luci | applications/luci-app-unbound/luasrc/model/cbi/unbound/zones.lua | 10 | 6112 | -- Copyright 2018 Eric Luehrsen <ericluehrsen@gmail.com>
-- Licensed to the public under the Apache License 2.0.
local m5, s5
local ztype, zones, servers, fallback, enabled
local fs = require "nixio.fs"
local ut = require "luci.util"
local sy = require "luci.sys"
local ds = require "luci.dispatcher"
local resolvfile ... | apache-2.0 |
tobiaswaldvogel/luci | build/luadoc/luadoc/doclet/debug.lua | 175 | 1048 | -----------------------------------------------------------------
-- LuaDoc debugging facilities.
-- @release $Id: debug.lua,v 1.3 2007/04/18 14:28:39 tomas Exp $
-----------------------------------------------------------------
module "luadoc.doclet.debug"
function printline()
print(string.rep('-', 79))
end
------... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0020-p0005-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
zhcy/redis | deps/lua/test/life.lua | 888 | 2635 | -- life.lua
-- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l
-- modified to use ANSI terminal escape sequences
-- modified to use for instead of while
local write=io.write
ALIVE="¥" DEAD="þ"
ALIVE="O" DEAD="-"
function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary
for i=1,10000 do... | bsd-3-clause |
frank12268/codis | extern/redis-3.2.8/deps/lua/test/life.lua | 888 | 2635 | -- life.lua
-- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l
-- modified to use ANSI terminal escape sequences
-- modified to use for instead of while
local write=io.write
ALIVE="¥" DEAD="þ"
ALIVE="O" DEAD="-"
function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary
for i=1,10000 do... | mit |
724789975/FxLib | Server/redis-win-3.2.100/deps/lua/test/life.lua | 888 | 2635 | -- life.lua
-- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l
-- modified to use ANSI terminal escape sequences
-- modified to use for instead of while
local write=io.write
ALIVE="¥" DEAD="þ"
ALIVE="O" DEAD="-"
function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary
for i=1,10000 do... | mit |
Invertika/data | scripts/maps/ow-p0007-p0022-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | effects/cegtags.lua | 12 | 5801 | -- heatray_scorcher
-- redlaser_ak
-- yellowlaser_hlt
-- yellowlaser_can
-- orangelaser
-- stormtag
-- redlaser_llt
-- samtag
-- slashtag
return {
["heatray_scorcher"] = {
greenlaser = {
air = true,
class = [[CSimpleGroundFlash]],
count = 1,
ground... | gpl-2.0 |
mendsley/premake-core | src/base/path.lua | 1 | 5100 | --
-- path.lua
-- Path manipulation functions.
-- Copyright (c) 2002-2014 Jason Perkins and the Premake project
--
--
-- Appends a file extension to the path. Verifies that the extension
-- isn't already present, and adjusts quotes as necessary.
--
function path.appendExtension(p, ext)
-- if the extension is nil ... | bsd-3-clause |
Invertika/data | scripts/maps/ow-n0020-p0018-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
tobiaswaldvogel/luci | libs/luci-lib-nixio/root/usr/lib/lua/nixio/fs.lua | 184 | 3723 | --[[
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 |
Invertika/data | scripts/maps/ow-p0007-n0006-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-p0014-p0019-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-p0011-n0008-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-n0020-o0000.lua | 1 | 1403 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
ironman2702/BolScripts | KayleMechanics.lua | 21 | 15290 | --[[
_____ _____ __ .__
/ \_______ / _ \________/ |_|__| ____ __ __ ____ ____
/ \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \
/ Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> )
\____|__ /__| \___... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0002-n0014-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
ugtaems/ugteam | bot/bot.lua | 1 | 13250 | tdcli = dofile('./tg/tdcli.lua')
serpent = (loadfile "./libs/serpent.lua")()
feedparser = (loadfile "./libs/feedparser.lua")()
require('./bot/utils')
URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./... | gpl-3.0 |
seanstermonstr/test | Code/Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/path.lua | 12 | 10171 | --- Path manipulation and file queries.
--
-- This is modelled after Python's os.path library (10.1); see @{04-paths.md|the Guide}.
--
-- Dependencies: `pl.utils`, `lfs`
-- @module pl.path
-- imports and locals
local _G = _G
local sub = string.sub
local getenv = os.getenv
local tmpnam = os.tmpname
local attributes, cu... | bsd-3-clause |
GoogleFrog/Zero-K | LuaUI/Widgets/chili_new/controls/treeviewnode.lua | 35 | 7992 | --//=============================================================================
TreeViewNode = Control:Inherit{
classname = "treeviewnode",
padding = {16,0,0,0},
autosize = true,
caption = "node",
expanded = true,
root = false,
nodes = {},
treeview = nil,
_nodes_hidden = {},
On... | gpl-2.0 |
zjohn4/PD2-lua-src | core/lib/managers/controller/corecontrollerwrapperdebug.lua | 1 | 7172 | core:module( "CoreControllerWrapperDebug" )
core:import( "CoreControllerWrapper" )
ControllerWrapperDebug = ControllerWrapperDebug or class( CoreControllerWrapper.ControllerWrapper )
ControllerWrapperDebug.TYPE = "debug"
function ControllerWrapperDebug:init( controller_wrapper_list, manager, id, name, default_contro... | gpl-2.0 |
matortheeternal/fractal-miner | cantor_dust/init.lua | 1 | 2826 | -- Import Helpers
dofile(minetest.get_modpath("fractal_helpers").."/helpers.lua")
-- Parameters
local YWATER = -31000
local fractal_iteration = 9 -- min value 0, max value 10
local DEBUG = true
local fractal_block = minetest.get_content_id("default:stone")
-- Set mapgen parameters
local fractal_size = math.pow(3, fra... | mit |
Dual-Boxing/MultiBoxMaster | MultiBoxMaster/libs/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua | 45 | 9218 | --[[-----------------------------------------------------------------------------
Frame Container
-------------------------------------------------------------------------------]]
local Type, Version = "Frame", 24
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or ... | mit |
irr/luajit.io | lib/ljio/socket/dns.lua | 2 | 2178 | -- Copyright (C) Jinhua Luo
local ffi = require("ffi")
local anl = ffi.load("anl")
local C = require("ljio.cdef")
local signal = require("ljio.core.signal")
local requests = {}
local handler_registered = false
local tmp = ffi.new("struct gaicb*[1]")
local sig = ffi.new("struct sigevent")
local next_req_key = 1
local... | bsd-2-clause |
Deiz/naev | dat/factions/spawn/goddard.lua | 10 | 1642 | include("dat/factions/spawn/common.lua")
-- @brief Spawns a capship with escorts.
function spawn_capship ()
local pilots = {}
local r = rnd.rnd()
-- Generate the capship
scom.addPilot( pilots, "Goddard Goddard", 145 )
-- Generate the escorts
r = rnd.rnd()
if r < 0.5 then
scom.addP... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Northern_San_dOria/npcs/_6fc.lua | 5 | 1599 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Papal Chambers
-- Finish Mission: The Davoi Report
-- !pos 131 -11 122 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
------------------... | gpl-3.0 |
lshoek/dualstick360 | healthpack.lua | 1 | 2293 | --healthpack.lue
include("dualstick360/globals.lua")
include("dualstick360/player.lua")
include("dualstick360/utils.lua")
Healthpack = {}
Healthpack.__index = Healthpack
--[[creating new healthpack object]]--
function Healthpack.new()
local self = setmetatable({}, Healthpack)
return self
end
--[[checks for player ... | mit |
christakahashi/nodemcu-firmware | lua_modules/ds3231/ds3231.lua | 56 | 1905 | --------------------------------------------------------------------------------
-- DS3231 I2C module for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- Tobie Booth <tbooth@hindbra.in>
--------------------------------------------------------------------------------
local moduleName = ...
loc... | mit |
Openarl/PathOfBuilding | Classes/ModDB.lua | 1 | 6842 | -- Path of Building
--
-- Module: Mod DB
-- Stores modifiers in a database, with modifiers separated by stat
--
local ipairs = ipairs
local pairs = pairs
local select = select
local t_insert = table.insert
local m_floor = math.floor
local m_min = math.min
local m_max = math.max
local m_modf = math.modf
local band = bit... | mit |
dani-sj/komil | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
Maliv/cyber | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
cogwerkz/gUI4 | gUI4_ActionBars/elements/salvage.lua | 1 | 11026 | local addon = ...
local GP_LibStub = _G.GP_LibStub
local gUI4 = GP_LibStub("GP_AceAddon-3.0"):GetAddon("gUI4", true)
if not gUI4 then return end
local parent = gUI4:GetModule("gUI4_ActionBars", true)
if not parent then return end
local module = parent:NewModule("Salvage", "GP_AceEvent-3.0")
local L = GP... | mit |
Wedmer/luci | applications/luci-app-e2guardian/luasrc/model/cbi/e2guardian.lua | 39 | 18596 | --[[
LuCI E2Guardian module
Copyright (C) 2015, Itus Networks, Inc.
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
Author: Marko Ratkaj <marko.ratkaj... | apache-2.0 |
shahifaqeer/my-luci-bismark-0.11 | modules/niu/luasrc/model/cbi/niu/traffic/qos1.lua | 49 | 3073 | --[[
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 |
cogwerkz/gUI4 | gUI4/libs/GP_oUF-Elements/shadoworbs.lua | 1 | 4288 | local addon,ns = ...
local oUF = ns.oUF
if not oUF then return end
local LEGION = tonumber((select(2, GetBuildInfo()))) >= 21996
if LEGION then
return
end
-- WoW API
local GetSpecialization = GetSpecialization
local IsPlayerSpell = IsPlayerSpell
local UnitLevel = UnitLevel
local UnitPower = UnitPower... | mit |
HeavensSword/darkstar | scripts/zones/Promyvion-Holla/Zone.lua | 3 | 3052 | -----------------------------------
--
-- Zone: Promyvion-Holla (16)
--
-----------------------------------
package.loaded["scripts/zones/Promyvion-Holla/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Promyvion-Holla/TextIDs");
require("scripts/zones/Promyvion-Holla/MobIDs");
require("scrip... | gpl-3.0 |
wojons/lua-resty-sse | lib/resty/sse.lua | 1 | 5660 | local http = require "resty.http" -- https://github.com/pintsized/lua-resty-http
local _M = {_VERSION = '0.2.0'}
_M.__index = _M
-- variable caching (https://www.cryptobells.com/properly-scoping-lua-nginx-modules-ngx-ctx/)
local str_find = string.find
local str_sub = string.sub
local str_gfind = string.gfind or... | mit |
ignacio/LuaNode | test/simple/disabled/(fixme) test-http-parser.lua | 3 | 1701 | -- no anda porque no propago errores en los callbacks del http parser
module(..., lunit.testcase, package.seeall)
local common = dofile("common.lua")
-- The purpose of this test is not to check HTTP compliance but to test the
-- binding. Tests for pathological http messages should be submitted
-- upstream to http://g... | mit |
dlannan/webdruino | deps/turbo-1.0.0/turbo/async.lua | 2 | 24770 | --- Turbo.lua Asynchronous builtins module
-- Builtin async features of Turbo.lua:
-- * HTTP Client
--
-- Copyright 2013 John Abrahamsen
--
-- 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
--... | mit |
HeavensSword/darkstar | scripts/zones/Western_Adoulin/npcs/Nylene.lua | 7 | 1244 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Nylene
-- Type: Standard NPC and Quest NPC
-- Involved with Quest: 'A Certain Substitute Patrolman'
-- @zone 256
-- !pos 12 0 -82
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/quests");
----------... | gpl-3.0 |
CyrillJones/K70-RGB-Lua-Interface | DotNetK70Controller/lua/asteroids.lua | 2 | 4839 | --Time between ticks
local SleepDuration = 25
--SpawnDelay of new asteroids in ticks
local SpawnDelay = 200
--What range of keys to use
local leftcol = 0
local rightcol = 92
local toprow = 2
local botrow = 5
--Size of playing field
local width = rightcol-leftcol+1
local height = botrow-toprow+1
--Game variables
loca... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Beadeaux/Zone.lua | 3 | 3250 | -----------------------------------
--
-- Zone: Beadeaux (147)
--
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Beadeaux/TextIDs");
require("scripts/globals/missions");
require("scripts/globals/quests");
require("sc... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/spells/bluemagic/sound_blast.lua | 5 | 1300 | -----------------------------------------
-- Spell: Sound Blast
-- Lowers Intelligence of enemies within range.
-- Spell cost: 25 MP
-- Monster Type: Birds
-- Spell Type: Magical (Fire)
-- Blue Magic Points: 1
-- Stat Bonus: None
-- Level: 32
-- Casting Time: 4 seconds
-- Recast Time: 30 seconds
-- Magic Bursts on: Liq... | gpl-3.0 |
rastin45/webot | plugins/anti_spam.lua | 102 | 3744 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/abilities/blitzers_roll.lua | 1 | 2835 | -----------------------------------
-- Ability: Blitzer's Roll
-- Reduces melee attack delay for party members within area of effect.
-- Optimal Job: None
-- Lucky Number: 4
-- Unlucky Number: 9
-- Level: 83
-- Phantom Roll +1 Value: 1
--
-- Die Roll | Delay Reduction %
-- -------- -------
-- 1 |+2
-... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Apollyon/mobs/Dee_Wapa_the_Desolator.lua | 28 | 2397 | -----------------------------------
-- Area: Apollyon CS
-- MOB: Dee_Wapa_the_Desolator
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Lufaise_Meadows/mobs/Padfoot.lua | 3 | 2429 | -----------------------------------
-- Area: Lufaise Meadows
-- MOB: Padfoot
-- !pos 260.445 -1.761 -27.862 24 (True Copy) 16875578
-- !pos 412.447 -0.057 -200.161 24 (Fake Copies) 16875615
-- !pos -378.950 -15.742 144.215 24 || 16875703
-- !pos -43.689 0.487 -328.028 24 || 16875552
-- !pos -1... | gpl-3.0 |
Wedmer/luci | build/luadoc/luadoc/lp.lua | 175 | 4389 | ----------------------------------------------------------------------------
-- Lua Pages Template Preprocessor.
--
-- @release $Id: lp.lua,v 1.7 2007/04/18 14:28:39 tomas Exp $
----------------------------------------------------------------------------
local assert, error, getfenv, loadstring, setfenv = assert, erro... | apache-2.0 |
abbasgh12345/s | plugins/banhammer.lua | 1085 | 11557 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
Deiz/naev | dat/ai/include/atk_capital.lua | 5 | 2643 | function atk_capital_init ()
mem.atk_think = atk_heuristic_big_game_think
mem.atk = atk_capital
end
--[[
-- Main control function for capital ship behavior.
--]]
function atk_capital ()
local target = _atk_com_think()
if target == nil then return end
-- Targeting stuff
ai.hostile(target) --... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/hellsteak.lua | 3 | 1561 | -----------------------------------------
-- ID: 5609
-- Item: hellsteak
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 20
-- Strength 6
-- Intelligence -2
-- Health Regen While Healing 2
-- hMP +1
-- Attack % 18 (cap 145)
-- Ranged ATT % 18 (cap 145)
-- Dragon Killer 5
----------... | gpl-3.0 |
legospacy/rainbow-arena | systems/01_World/02_Parent.lua | 1 | 1657 | -- FIXME: I don't think this works with tiny-ecs.
--- Require ---
local Class = require("lib.hump.class")
local vector = require("lib.hump.vector")
local tiny = require("lib.tiny")
local circle = require("util.circle")
--- ==== ---
--- System ---
local sys_Parent = Class(tiny.processingSystem())
sys_Parent.filter ... | mit |
cogwerkz/gUI4 | gUI4_ActionBars/elements/vehicleexit.lua | 1 | 13388 | local addon,ns = ...
local gUI4 = GP_LibStub("GP_AceAddon-3.0"):GetAddon("gUI4", true)
if not gUI4 then return end
local parent = gUI4:GetModule("gUI4_ActionBars", true)
if not parent then return end
local version, build, date, tocversion = GetBuildInfo()
build = tonumber(build)
local module = parent:Ne... | mit |
qwook/dpsht | assets/maps/hentest.lua | 2 | 315683 | return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 100,
height = 100,
tilewidth = 32,
tileheight = 32,
properties = {},
tilesets = {
{
name = "tilemap2",
firstgid = 1,
tilewidth = 32,
tileheight = 32,
spacing = 0,
margin = 0,
... | mit |
zero-ui/miniblink49 | third_party/skia/resources/slides_content.lua | 78 | 1789 | Skia Overview 2014
< transition =slide>
One API -- many backends
- Raster [8888, 565, A8]
- GPU [opengl]
- PDF
- XPS
- Picture
- Pipe
<transition= fade>
One Team -- many clients
- Chrome
- ChromeOS
- Clank
- Android Framework
- 3rd parties (e.g. FireFox)
<transition= rotate>
<blockstyle = code>
Optimize for CPU v... | gpl-3.0 |
ind9/kong | kong/dao/cassandra/apis.lua | 7 | 1401 | local BaseDao = require "kong.dao.cassandra.base_dao"
local apis_schema = require "kong.dao.schemas.apis"
local query_builder = require "kong.dao.cassandra.query_builder"
local Apis = BaseDao:extend()
function Apis:new(properties)
self._table = "apis"
self._schema = apis_schema
Apis.super.new(self, properties)
... | apache-2.0 |
dkorolev/tarantool | src/lua/help_en_US.lua | 8 | 17648 | --- help (en_US)
return {
tutorial = {
[[
Tutorial -- Screen #1 -- Hello, Moon
====================================
Welcome to the Tarantool tutorial.
It will introduce you to Tarantool’s Lua application server
and database server, which is what’s running what you’re seeing.
This is INTERACTIVE -- you’re expe... | bsd-2-clause |
steino/lua-enscrypt | test/test.lua | 1 | 1328 | local enscryt = assert(require'enscrypt')
local password = "test"
local salt = "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08" -- sha256 of "test"
-- results from enscrypts cli program.
local results = {
"11e1d357946a72f92cb7be7e4d84a984ca01f808d49c3b20b98c4713a46fb7d7",
"9a138e8b470c80ea296bb95a... | mit |
mohammadclashclash/uzzbot | plugins/steam.lua | 645 | 2117 | -- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI
do
local BASE_URL = 'http://store.steampowered.com/api/appdetails/'
local DESC_LENTH = 200
local function unescape(str)
str = string.gsub( str, '<', '<' )
str = string.gsub( str, '>', '>' )
str = string.gsub( str, '"', '"' )
str... | gpl-2.0 |
Death15/Supers-TOUCHTG | plugins/All.lua | 1 | 4667 | do
data = load_data(_config.moderation.data)
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... | gpl-2.0 |
ignacio/LuaNode | lib/luanode/dns.lua | 2 | 3133 | local Resolver = process.Resolver
local _M = {
_NAME = "luanode.dns",
_PACKAGE = "luanode."
}
-- Make LuaNode 'public' modules available as globals.
luanode.dns = _M
local net = require "luanode.net"
local m_resolver = Resolver()
--
-- Easy DNS A/AAAA look up
-- lookup(domain, [family,] callback)
... | mit |
Openarl/PathOfBuilding | Data/2_6/Bases/sword.lua | 1 | 28073 | -- This file is automatically generated, do not edit!
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Rusted Sword"] = {
type = "One Handed Sword",
socketLimit = 3,
tags = { default = true, weapon = true, onehand = true, sword = true, one_hand_weapon = true, },
implicit = "40% increased Accu... | mit |
pd2-linux/tina | feeds/luci/modules/admin-full/luasrc/model/cbi/admin_status/processes.lua | 85 | 1448 | --[[
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... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/mobskills/head_snatch.lua | 37 | 1058 | ---------------------------------------------
-- Head Snatch
--
-- Description: Grabs a single target's head.
-- Type: Physical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Melee
-- Notes: Only used by Gurfurlur the Menacing. Reduces HP to 10%.
---------------------------------------------
require("script... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/spells/bluemagic/stinking_gas.lua | 5 | 1296 | -----------------------------------------
-- Spell: Stinking Gas
-- Lowers Vitality of enemies within range
-- Spell cost: 37 MP
-- Monster Type: Undead
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 2
-- Stat Bonus: AGI+1
-- Level: 44
-- Casting Time: 4 seconds
-- Recast Time: 60 seconds
-- Magic Bursts on: Deton... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/armorstorage.lua | 37 | 9080 | -----------------------------------
--
-- Armor Storage
--
-----------------------------------
require("scripts/globals/keyitems");
-- Initialize StorageArray
-- {SetId,SetGroup,SetMask,SetCount,Head,Body,Hands,Legs,Feet,StorageCost,KeyItem}
StorageArray = {0x01,0x04,0x000001,0x05,0x30DF,0x315E,0x3689,0x3786,0x370... | gpl-3.0 |
tarantool/cbench | cbench_runner.lua | 1 | 3070 | --- init tarantool db wor tests
if #arg < 1 then
print('Please specify engine [memtx] or [vinyl]')
os.exit(1)
end
local engine = arg[1]
local wal_mode
local count
if engine == 'vinyl' then
if #arg < 2 then
print('Please specify wal_mode [write] or [fsync]')
os.exit(1)
end
wal_mod... | bsd-2-clause |
HeavensSword/darkstar | scripts/zones/Bastok_Mines/npcs/Galdeo.lua | 5 | 1093 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Galdeo
-- Only sells when Bastok controlls Li'Telor Region
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Mines/TextIDs");
require("script... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_ir7.lua | 5 | 1589 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _ir7 (Iron Gate)
-- !pos -70.800 -1.500 60.000 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Phomiuna_Aqueducts/TextIDs");
requir... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Port_San_dOria/npcs/Anoki.lua | 5 | 1100 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Anoki
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_San_dOria/TextIDs");
-----------------------------------
fun... | gpl-3.0 |
shahifaqeer/my-luci-bismark-0.11 | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/interface.lua | 8 | 2820 | --[[
Luci statistics - interface 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-2.0 |
HeavensSword/darkstar | scripts/zones/Port_Jeuno/npcs/Najib.lua | 4 | 1089 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Najib
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
function onTrade... | gpl-3.0 |
o-lim/busted | busted/languages/de.lua | 15 | 1403 | local s = require('say')
s:set_namespace('de')
-- 'Pending: test.lua @ 12 \n description
s:set('output.pending', 'Noch nicht erledigt')
s:set('output.failure', 'Fehlgeschlagen')
s:set('output.success', 'Erfolgreich')
s:set('output.pending_plural', 'übersprungen')
s:set('output.failure_plural', 'fehlgeschlagen')
s:se... | mit |
Wedmer/luci | applications/luci-app-aria2/luasrc/controller/aria2.lua | 17 | 1090 | --[[
LuCI - Lua Configuration Interface - aria2 support
Copyright 2014-2015 nanpuyue <nanpuyue@gmail.com>
Modified by kuoruan <kuoruan@gmail.com>
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 |
MarcoQin/QBilibili | src/lua/libs/luasocket/libluasocket/mime.lua | 149 | 2487 | -----------------------------------------------------------------------------
-- MIME support for the Lua language.
-- Author: Diego Nehab
-- Conforming to RFCs 2045-2049
-----------------------------------------------------------------------------
----------------------------------------------------------------------... | mit |
HeavensSword/darkstar | scripts/zones/Port_Bastok/npcs/Gudav.lua | 5 | 1636 | -----------------------------------
-- Area: Port Bastok
-- NPC: Gudav
-- Starts Quests: A Foreman's Best Friend
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
r... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/weaponskills/ukkos_fury.lua | 3 | 1967 | -----------------------------------
-- Ukko's Fury
-- Great Axe Weapon Skill
-- Skill Level: N/A
-- Description: Delivers a twofold attack that slows target. Chance of params.critical hit varies with TP. Ukonvasara: Aftermath.
-- Available only when equipped with Ukonvasara (85), Ukonvasara (90), Ukonvasara (95), Masch... | gpl-3.0 |
ryangmor/lolsh | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
abbasgh12345/s | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
mosy210/fast-spam | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Throne_Room/bcnms/where_two_paths_converge.lua | 7 | 1683 | ------------------------------------
-- Area: Throne Room
-- Name: Mission 9-2
-- !pos -111 -6 0 165
-----------------------------------
package.loaded["scripts/zones/Throne_Room/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Throne_Room/TextIDs");
require("scripts/globals/keyitems");
req... | gpl-3.0 |
ind9/kong | kong/cli/utils/ssl.lua | 11 | 2658 | local cutils = require "kong.cli.utils"
local utils = require "kong.tools.utils"
local IO = require "kong.tools.io"
local _M = {}
function _M.get_ssl_cert_and_key(kong_config)
local ssl_cert_path, ssl_key_path
if (kong_config.ssl_cert_path and not kong_config.ssl_key_path) or
(kong_config.ssl_key_path and no... | apache-2.0 |
ignacio/LuaNode | test/simple/test-http-upgrade-server.lua | 2 | 3790 | module(..., lunit.testcase, package.seeall)
local common = dofile("common.lua")
local net = require("luanode.net")
local http = require("luanode.http")
function test()
local requests_recv = 0
local requests_sent = 0
local request_upgradeHead
function createTestServer()
local server = http.Server()
server:addListe... | mit |
HeavensSword/darkstar | scripts/zones/Cloister_of_Tremors/bcnms/trial-size_trial_by_earth.lua | 7 | 2121 | -----------------------------------
-- Area: Cloister of Tremors
-- BCNM: Trial-size Trial by Earth
-- !pos -539 1 -493 209
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Tremors/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/cone_of_snoll_gelato.lua | 3 | 1060 | -----------------------------------------
-- ID: 5147
-- Item: cone_of_snoll_gelato
-- Food Effect: 30Min, All Races
-----------------------------------------
-- MP % 16 (cap 75)
-- MP Recovered While Healing 1
-----------------------------------------
require("scripts/globals/status");
--------------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/mobskills/enervation.lua | 5 | 1312 | ---------------------------------------------
-- Enervation
--
-- Description: Lowers the defense and magical defense of enemies within range.
-- Type: Magical (Dark)
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
require("scripts/globals/st... | gpl-3.0 |
cogwerkz/gUI4 | gUI4/libs/GP_oUF/elements/threat.lua | 7 | 2109 | --[[ Element: Threat Icon
Handles updating and toggles visibility of current threat level icon.
Widget
Threat - A Texture used to display the current threat level.
Notes
This element updates by changing colors of the texture.
The default threat icon will be used if the UI widget is a texture and doesn't
ha... | mit |
qwook/dpsht | entities_/physbox.lua | 2 | 2528 |
Physical = require("entities.core.physical")
PhysBox = class("PhysBox", BaseEntity)
PhysBox.spritesheet = SpriteSheet:new("sprites/box_generic.png", 32, 32)
PhysBox.image = loadImage("sprites/doorcrate.gif"):getData()
function PhysBox:initialize(x, y, w, h)
BaseEntity.initialize(self)
self.width = 32
se... | mit |
HeavensSword/darkstar | scripts/globals/spells/mages_ballad_iii.lua | 5 | 1138 | -----------------------------------------
-- Spell: Mage's Ballad III
-- Gradually restores target's MP.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;... | gpl-3.0 |
cogwerkz/gUI4 | gUI4/libs/GP_Ace3/GP_AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua | 1 | 19507 | --[[ $Id: AceGUIWidget-DropDown.lua 1116 2014-10-12 08:15:46Z nevcairiel $ ]]--
local AceGUI = GP_LibStub("GP_AceGUI-3.0")
-- Lua APIs
local min, max, floor = math.min, math.max, math.floor
local select, pairs, ipairs, type = select, pairs, ipairs, type
local tsort = table.sort
-- WoW APIs
local PlaySoundKit... | mit |
helkarakse/TickProfilerDisplay-OC | src/functions.lua | 1 | 5474 | --[[
Common Functions Version 1.3 Dev
Do not modify, copy or distribute without permission of author
Helkarakse 20130614
Changelog:
1.3 - Removed MiscPeripherals related segments - 20131201
1.2 - Changed encrypt function to accept multiple arguments - 20130614
]]--
-- String Functions
function explode(divider, input... | gpl-2.0 |
cogwerkz/gUI4 | gUI4/libs/GP_oUF/ouf.lua | 5 | 14927 | local parent, ns = ...
local global = GetAddOnMetadata(parent, 'X-oUF')
local _VERSION = GetAddOnMetadata(parent, 'version')
local oUF = ns.oUF
local Private = oUF.Private
local argcheck = Private.argcheck
local print = Private.print
local error = Private.error
local styles, style = {}
local callback, objects, head... | mit |
natuan241/Algorithm-Implementations | Bresenham_Line/Lua/Yonaba/bresenham_test.lua | 27 | 1097 | -- Tests for bresenham.lua
local bresenham = require 'bresenham'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
local s... | mit |
sandsmark/google-diff-match-patch | lua/diff_match_patch_test.lua | 264 | 39109 | --[[
* Test Harness for Diff Match and Patch
*
* Copyright 2006 Google Inc.
* http://code.google.com/p/google-diff-match-patch/
*
* Based on the JavaScript implementation by Neil Fraser
* Ported to Lua by Duncan Cross
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Port_Windurst/npcs/Lebondur.lua | 5 | 1247 | -----------------------------------
-- Area: Port Windurst
-- NPC: Lebondur
-- Regional Marchant NPC
-- Only sells when Windurst controls Vollbow.
-- Confirmed shop stock, August 2013
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
pd2-linux/tina | feeds/luci/modules/admin-full/luasrc/controller/admin/system.lua | 24 | 10499 | --[[
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... | gpl-2.0 |
lhsazevedo/LIKO-12 | OS/DiskOS/Libraries/map.lua | 1 | 2504 | local path = select(1,...)
local function newMap(w,h,sheet)
local Map = {}
Map.w, Map.h = w or 24, h or 9
--Initialize the map table
Map.m = {}
for x=0, Map.w-1 do
Map.m[x] = {}
for y=0, Map.h-1 do
Map.m[x][y] = 0
end
end
Map.sheet = sheet
--If called with a function, it will be ca... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.