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 |
|---|---|---|---|---|---|
liruqi/bigfoot | Interface/AddOns/DBM-Party-MoP/ShadoPanMonastery/GuCloudstrike.lua | 1 | 4251 | local mod = DBM:NewMod(673, "DBM-Party-MoP", 3, 312)
local L = mod:GetLocalizedStrings()
local sndWOP = mod:SoundMM("SoundWOP")
mod:SetRevision(("$Revision: 10172 $"):sub(12, -3))
mod:SetCreatureID(56747)--56747 (Gu Cloudstrike), 56754 (Azure Serpent)
mod:SetZone()
mod:RegisterCombat("combat")
mod:Regist... | mit |
DavidAlphaFox/wax | lib/stdlib/luaspec/luaspec.lua | 19 | 9172 | spec = {
contexts = {}, passed = 0, failed = 0, pending = 0, current = nil
}
Report = {}
Report.__index = Report
function Report:new(spec)
local report = {
num_passed = spec.passed,
num_failed = spec.failed,
num_pending = spec.pending,
total = spec.passed + spec.failed + spec.pending,
resu... | mit |
ingran/balzac | custom_feeds/teltonika_luci/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua | 1 | 6152 | --[[
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 |
Admicos/luapp | test.lua | 1 | 6049 | --luapp test
local function _split(str, splitter)
local t = {}
local function helper(line) table.insert(t, line) return "" end
helper((str:gsub("(.-)" .. splitter, helper)))
return t
end
local function runShellProgramWithErrors(program, arg)
local path = shell.resolveProgram(program)
local... | mit |
mario0582/devenserver | data/npc/lib/npcsystem/npchandler.lua | 13 | 21971 | -- Advanced NPC System by Jiddo
if NpcHandler == nil 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 tal... | gpl-2.0 |
bdowning/lj-cdefdb | ljclang/ljclang_Index_h.lua | 1 | 56148 | require('ffi').cdef[==========[
/*===-- clang-c/CXString.h - C Index strings --------------------*- C -*-===*\
|* *|
|* The LLVM Compiler Infrastructure *|
|* ... | mit |
shiprabehera/kong | spec/01-unit/01-db/02-cassandra_spec.lua | 7 | 2407 | local cassandra_db = require "kong.dao.db.cassandra"
describe("cassandra_db", function()
describe("extract_major()", function()
it("extract major version digit", function()
assert.equal("3", cassandra_db.extract_major("3.7"))
assert.equal("3", cassandra_db.extract_major("3.7.12"))
assert.equal(... | apache-2.0 |
Beagle/wesnoth | data/ai/micro_ais/cas/ca_swarm_move.lua | 26 | 2504 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local ca_swarm_move = {}
function ca_swarm_move:evaluation(ai, cfg)
local units = wesnoth.get_units { side = wesnoth.current.side }
for _,unit in ipairs(units) do
if (unit.moves > 0) then return cfg.ca_score e... | gpl-2.0 |
SajayAntony/wrk | deps/luajit/src/jit/v.lua | 88 | 5614 | ----------------------------------------------------------------------------
-- Verbose mode of the LuaJIT compiler.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | apache-2.0 |
m13790115/ssss | plugins/btc.lua | 289 | 1375 | -- See https://bitcoinaverage.com/api
local function getBTCX(amount,currency)
local base_url = 'https://api.bitcoinaverage.com/ticker/global/'
-- Do request on bitcoinaverage, the final / is critical!
local res,code = https.request(base_url..currency.."/")
if code ~= 200 then return nil end
local data = j... | gpl-2.0 |
sunyi00/wrk | deps/luajit/src/jit/dis_x86.lua | 89 | 29330 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | apache-2.0 |
liruqi/bigfoot | Interface/AddOns/DBM-Nighthold/ChronoAnomaly.lua | 1 | 21033 | local mod = DBM:NewMod(1725, "DBM-Nighthold", nil, 786)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17522 $"):sub(12, -3))
mod:SetCreatureID(104415)--104731 (Depleted Time Particle). 104676 (Waning Time Particle). 104491 (Accelerated Time particle). 104492 (Slow Time Particle)
mod:SetEncount... | mit |
bjornbytes/RxLua | tests/elementAt.lua | 2 | 1696 | describe('elementAt', function()
it('errors when its parent errors', function()
expect(Rx.Observable:throw():elementAt(0)).to.produce.error()
end)
it('chains subscriptions', function()
local subscription = Rx.Subscription.create()
local observable = Rx.Observable.create(function() return subscription... | mit |
liruqi/bigfoot | Interface/AddOns/BigFoot/AceLibs/Ace3/AceAddon-3.0/AceAddon-3.0.lua | 17 | 26462 | --- **AceAddon-3.0** provides a template for creating addon objects.
-- It'll provide you with a set of callback functions that allow you to simplify the loading
-- process of your addon.\\
-- Callbacks provided are:\\
-- * **OnInitialize**, which is called directly after the addon is fully loaded.
-- * **OnEnable... | mit |
liruqi/bigfoot | Interface/AddOns/DBM-WorldEvents/Holidays/HeadlessHorseman.lua | 1 | 3216 | local mod = DBM:NewMod("d285", "DBM-WorldEvents", 1)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17257 $"):sub(12, -3))
mod:SetCreatureID(23682, 23775)
--mod:SetModelID(22351)--Model doesn't work/render for some reason.
mod:SetZone()
mod:SetReCombatTime(10)
mod:RegisterCombat("combat")
... | mit |
shiprabehera/kong | spec/03-plugins/25-response-rate-limiting/03-api_spec.lua | 4 | 1589 | local helpers = require "spec.helpers"
local cjson = require "cjson"
describe("Plugin: response-rate-limiting (API)", function()
local admin_client
teardown(function()
if admin_client then
admin_client:close()
end
helpers.stop_kong()
end)
describe("POST", function()
setup(function()
... | apache-2.0 |
dromozoa/dromozoa-commons | dromozoa/commons/base64.lua | 3 | 4685 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-commons.
--
-- dromozoa-commons 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... | gpl-3.0 |
ingran/balzac | custom_feeds/teltonika_luci/protocols/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua | 7 | 3622 | --[[
LuCI - Lua Configuration Interface
Copyright 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
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/BigFoot/AceLibs/Ace3/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua | 1 | 11116 | --[[ $Id: AceGUIWidget-DropDown-Items.lua 1167 2017-08-29 22:08:48Z funkydude $ ]]--
local AceGUI = LibStub("AceGUI-3.0")
-- Lua APIs
local select, assert = select, assert
-- WoW APIs
local PlaySound = PlaySound
local CreateFrame = CreateFrame
local function fixlevels(parent,...)
local i = 1
local ch... | mit |
lp/puredis | pdtests/redis_zset_suite.lua | 1 | 2332 | local suite = Suite("redis zset suite")
suite.setup(function()
_.outlet({"command","flushdb"})
_.outlet({"command","ZADD","MYZSET1",1,"M1"})
_.outlet({"command","ZADD","MYZSET1",2,"M2"})
_.outlet({"command","ZADD","MYZSET1",3,"M3"})
_.outlet({"command","ZADD","MYZSET1",4,"M4"})
_.outlet({"command","ZADD","M... | mit |
handsomecheung/miniKanren.lua | test.lua | 1 | 4477 | local MK = require("mk")
local run = MK.run
local run_all = MK.run_all
local eq = MK.eq
local not_eq = MK.not_eq
local all = MK.all
local alli = MK.alli
local condi = MK.condi
local cond = MK.cond
local fresh_vars = MK.fresh_vars
local succeed = MK.succeed
local fail = MK.fail
local list = MK.list
local car = MK.car
... | mit |
alijoooon/Psycho | 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 |
johannes-mueller/ardour | scripts/stop_at_marker.lua | 1 | 1299 | ardour {
["type"] = "session",
name = "Stop at Marker",
license = "MIT",
author = "Ardour Lua Task Force",
description = [[An example session script which stops the transport on every location marker when rolling forward.]]
}
function factory ()
return function (n_samples)
if (not Session:tr... | gpl-2.0 |
Telewild/telewild | plugins/ingroup.lua | 527 | 44020 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
TeleDALAD/sg | libs/redis.lua | 566 | 1214 | local Redis = require 'redis'
local FakeRedis = require 'fakeredis'
local params = {
host = os.getenv('REDIS_HOST') or '127.0.0.1',
port = tonumber(os.getenv('REDIS_PORT') or 6379)
}
local database = os.getenv('REDIS_DB')
local password = os.getenv('REDIS_PASSWORD')
-- Overwrite HGETALL
Redis.commands.hgetall = ... | gpl-2.0 |
valy012/safroid5 | plugins/SUDO.lua | 36 | 1917 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' yo... | gpl-2.0 |
Yonaba/Algorithm-Implementations | Bellman_Ford_Search/Lua/Yonaba/bellmanford.lua | 26 | 3025 | -- Bellman Ford single source shortest path search algorithm implementation
-- See : https://en.wikipedia.org/wiki/Bellman%E2%80%93Ford_algorithm
-- Notes : this is a generic implementation of Bellman Ford search algorithm.
-- It is devised to be used on waypoint graphs.
-- The BellmanFord class expects a handler to b... | mit |
ingran/balzac | custom_feeds/teltonika_luci/modules/admin-mini/luasrc/controller/mini/system.lua | 1 | 6723 | --[[
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 |
dromozoa/dromozoa-commons | dromozoa/commons/hash_table.lua | 2 | 2781 | -- Copyright (C) 2015,2017 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-commons.
--
-- dromozoa-commons 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 Li... | gpl-3.0 |
liruqi/bigfoot | Interface/AddOns/Decursive/Dcr_lists.lua | 1 | 16625 | --[[
This file is part of Decursive.
Decursive (v 2.7.5.7) add-on for World of Warcraft UI
Copyright (C) 2006-2014 John Wellesz (archarodim AT teaser.fr) ( http://www.2072productions.com/to/decursive.php )
Starting from 2009-10-31 and until said otherwise by its author, Decursive
is no ... | mit |
BeaconNet/sPhone | src/apis/bigfont.lua | 3 | 17220 | --# BigFont API - Write bigger letters. v1.1
--# Made By Wojbie
--# http://pastebin.com/3LfWxRWh
local rawFont = {
{
"\32\32\32\137\156\148\158\159\148\135\135\144\159\139\32\136\157\32\159\139\32\32\143\32\32\143\32\32\32\32\32\32\32\32\147\148\150\131\148\32\32\32\151\140\148\151\140\147",
"\32\32\32\149\132\... | mit |
masoudre11/RaHabot | plugins/slap.lua | 11 | 4313 | local doc = [[
/slap [target]
Give someone a good slap (or worse) through reply or specification of a target.
]]
local triggers = {
'^/slap[@'..bot.username..']*'
}
local slaps = {
'$victim was shot by $victor.',
'$victim was pricked to death.',
'$victim walked into a cactus while trying to escape $victor.',
'... | gpl-2.0 |
pouya-joker/Telecat | plugins/ingroup.lua | 7 | 50617 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
Unknown8765/SpeedBot | plugins/vote.lua | 615 | 2128 | do
local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()... | gpl-2.0 |
ingran/balzac | custom_feeds/teltonika_luci/applications/luci-ahcp/luasrc/model/cbi/ahcp.lua | 1 | 3875 | --[[
LuCI - Lua Configuration Interface
Copyright 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
http://www.apache.org/licenses/LICENSE-2.0
$Id: init.lua... | gpl-2.0 |
ingran/balzac | custom_feeds/teltonika_luci/applications/luci-input-output-tlt/luasrc/tools/input-output.lua | 1 | 6089 | --[[
LuCI - Lua Configuration Interface
Copyright 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
http://www.apache.org/licenses/LICENSE-2.0
$Id: firewall... | gpl-2.0 |
AngelBaltar/RenegadeKlingon | Utils/Advanced-Tiled-Loader/external/crc32lua.lua | 13 | 3282 | --[[
dmlib.crc32
CRC-32 checksum implemented entirely in Lua. This is similar to [1-2].
References
[1] http://www.axlradius.com/freestuff/CRC32.java
[2] http://www.gamedev.net/reference/articles/article1941.asp
[3] http://java.sun.com/j2se/1.5.0/docs/api/java/util/zip/CRC32.html
[4] http://www.dsource.org/pro... | gpl-3.0 |
MocoNinja/LinuxConfs | Archlabs/.config/awesome/vicious/widgets/gmail.lua | 1 | 2031 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
---------------------------------------------------
-- {{{ Grab environment
local type = type
local tonumber = tonumber
local io = { popen = io.popen }
local setmetatab... | gpl-3.0 |
liruqi/bigfoot | Interface/AddOns/AngryKeystones/Persist.lua | 1 | 10930 | if GetBuildInfo() ~= "7.2.0" then return end
local ADDON, Addon = ...
local Mod = Addon:NewModule('Persist')
local challengeMapID
local function LoadPersist()
local function IsInCompletedInstance()
return select(10, C_Scenario.GetInfo()) == LE_SCENARIO_TYPE_CHALLENGE_MODE and C_ChallengeMode.GetCompletionI... | mit |
SbssTeam/QuickPlus | plugins/password.lua | 1 | 2225 | do
local function set_pass(msg, pass, id)
local hash = nil
if msg.to.type == "channel" then
hash = 'setpass:'
end
local name = string.gsub(msg.to.print_name, '_', '')
if hash then
redis:hset(hash, pass, id)
return send_large_msg("channel#id"..msg.to.id, "ߔ᠐assword of group:\n["..name.."] has be... | gpl-2.0 |
hadirahimi1380/AhrimanBot | plugins/inrealm.lua | 114 | 25001 | -- 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 |
ingran/balzac | custom_feeds/teltonika_luci/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/olsrd.lua | 85 | 3643 | --[[
Luci statistics - olsrd plugin diagram definition
Copyright 2011 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 the License.
You may obtain a copy of the License at
http://www.apache.org/licen... | gpl-2.0 |
kosua20/GL_Template | src/libs/glfw/premake5.lua | 1 | 1674 |
project("glfw3")
kind("StaticLib")
language("C")
-- common files
files({"src/internal.h", "src/mappings.h", "src/glfw_config.h",
"include/GLFW/glfw3.h", "include/GLFW/glfw3native.h",
"src/context.c", "src/init.c", "src/input.c", "src/monitor.c", "src/vulkan.c", "src/window.c",
"premake5.lua"})
-- sys... | mit |
nemisis99/BolScripts | EliseMechanics.lua | 13 | 21635 | --[[
_____ _____ __ .__
/ \_______ / _ \________/ |_|__| ____ __ __ ____ ____
/ \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \
/ Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> )
\____|__ /__| \___... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/Recount/locales/Recount-zhCN.lua | 1 | 17910 | -- Recount Locale
-- Please use the Localization App on WoWAce to Update this
-- http://www.wowace.com/projects/recount/localization/
local L = LibStub("AceLocale-3.0"):NewLocale("Recount", "zhCN")
if not L then return end
L[" at "] = "在"
L[" by "] = "由"
L[" dies."] = "死亡。"
L[" for "] = "为"
L["|cff40ff40Enable... | mit |
liruqi/bigfoot | Interface/AddOns/BigFoot/AceLibs/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua | 2 | 6674 | -- Widget is based on the AceGUIWidget-DropDown.lua supplied with AceGUI-3.0
-- Widget created by Yssaril
local AceGUI = LibStub("AceGUI-3.0")
local Media = LibStub("LibSharedMedia-3.0")
local AGSMW = LibStub("AceGUISharedMediaWidgets-1.0")
do
local widgetType = "LSM30_Statusbar"
local widgetVersion = 11... | mit |
liruqi/bigfoot | Interface/AddOns/MySlot/libs/base64.lua | 1 | 1282 | -- 原作者 Lua 5.1+ base64 v3.0 (c) 2009 by Alex Kloss <alexthkloss@web.de>
-- 修改使兼容byte seq table by T.G. <farmer1992@gmail.com> 2010 Oct 24
local base64 = LibStub:NewLibrary("BASE64-1.0", 1)
local b ='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
local function enc(data)
local t = {}
f... | mit |
ckaotik/ESO-Midget | libs/LibAddonMenu-2.0/controls/panel.lua | 6 | 5022 | --[[panelData = {
type = "panel",
name = "Window Title",
displayName = "My Longer Window Title", --(optional) (can be useful for long addon names or if you want to colorize it)
author = "Seerah", --(optional)
version = "2.0", --(optional)
slashCommand = "/myaddon", --(optional) will register a keybind to open to ... | mit |
ingran/balzac | custom_feeds/teltonika_luci/libs/web/luasrc/http.lua | 1 | 8222 | --[[
LuCI - HTTP-Interaction
Description:
HTTP-Header manipulator and form variable preprocessor
FileId:
$Id: http.lua 8573 2012-04-16 16:48:59Z jow $
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 complia... | gpl-2.0 |
sduponch/overthebox-feeds | otb-luci-swconfig/files/usr/lib/lua/luci/controller/otb_swconfig.lua | 3 | 1664 | -- vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 :
module("luci.controller.otb_swconfig", package.seeall)
function index()
local has_switch = false
local uci = require("luci.model.uci").cursor()
uci:foreach("network", "switch", function(s)
if s.name == 'otbv2sw' then
has_switch = true
... | gpl-3.0 |
liruqi/bigfoot | Interface/AddOns/Bartender4/locale/enUS.lua | 1 | 12790 | -- Bartender4 Locale
-- Please use the Localization App on WoWAce to Update this
-- http://www.wowace.com/projects/bartender4/localization/ ;¶
local debug = false
--[===[@debug@
debug = true
--@end-debug@]===]
local L = LibStub("AceLocale-3.0"):NewLocale("Bartender4", "enUS", true, debug)
L[ [=["None" as ... | mit |
klukonin/nodemcu-firmware | lua_examples/http_server.lua | 53 | 3696 | --
-- Simple NodeMCU web server (done is a not so nodeie fashion :-)
--
-- Highly modified by Bruce Meacham, based on work by Scott Beasley 2015
-- Open and free to change and use. Enjoy. [Beasley/Meacham 2015]
--
-- Meacham Update: I streamlined/improved the parsing to focus on simple HTTP GET request and their simple... | mit |
borromeotlhs/nodemcu-firmware | lua_examples/http_server.lua | 53 | 3696 | --
-- Simple NodeMCU web server (done is a not so nodeie fashion :-)
--
-- Highly modified by Bruce Meacham, based on work by Scott Beasley 2015
-- Open and free to change and use. Enjoy. [Beasley/Meacham 2015]
--
-- Meacham Update: I streamlined/improved the parsing to focus on simple HTTP GET request and their simple... | mit |
liruqi/bigfoot | Interface/AddOns/MySlot/libs/lua-pb/pb/standard/message.lua | 1 | 8142 | -- Copyright (c) 2011, Robert G. Jakabosky <bobby@sharedrealm.com> All rights reserved.
local _require = LibStub:GetLibrary('pblua.require')
local require = _require.require
local _M = LibStub:NewLibrary("pblua.message", 1)
local error = error
local assert = assert
local tostring = tostring
local setmetata... | mit |
ingran/balzac | custom_feeds/teltonika_luci/applications/luci-load_balancing/luasrc/controller/balancing.lua | 1 | 2190 | module("luci.controller.balancing", package.seeall)
function index()
if not nixio.fs.access("/etc/config/load_balancing") then
return
end
entry({"admin", "network", "balancing"}, alias("admin", "network", "balancing", "configuration"), _("Load Balancing"), 600)
entry({"admin", "network", "balancing", "configura... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/DBM-Challenges/LegionArtifacts/Healer.lua | 1 | 5036 | local mod = DBM:NewMod("ArtifactHealer", "DBM-Challenges", 2)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 84 $"):sub(12, -3))
mod:SetZone()--Healer (1710), Tank (1698), DPS (1703-The God-Queen's Fury), DPS (Fel Totem Fall)
mod:RegisterEvents(
"SPELL_AURA_APPLIED 235984 237188",
"SPELL... | mit |
MocoNinja/LinuxConfs | Archlabs/.config/awesome/themes/default/theme.lua | 1 | 8354 | ---------------------------
-- Default ArchLabs theme --
---------------------------
local awful = require("awful")
--Configure home path so you dont have too
home_path = os.getenv('HOME') .. '/'
theme = {}
theme.wallpaper_cmd = { "awsetbg /usr/share/backgrounds/archlabs/archlabs.png" }
theme.font = "Ubunt... | gpl-3.0 |
Hosseiin138yz/sam | 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 |
liruqi/bigfoot | Interface/AddOns/Bagnon_Config/panels.lua | 1 | 4773 | --[[
panels.lua
Configuration panels
--]]
local L = LibStub('AceLocale-3.0'):GetLocale('Bagnon-Config')
local SLOT_COLOR_TYPES = {}
for id, name in pairs(Bagnon.BAG_TYPES) do
tinsert(SLOT_COLOR_TYPES, name)
end
sort(SLOT_COLOR_TYPES)
tinsert(SLOT_COLOR_TYPES, 1, 'normal')
local SetProfile = functio... | mit |
hashkat/hashkat | src/dependencies/lua-repl/repl/plugins/completion.lua | 2 | 4670 | -- Copyright (c) 2011-2013 Rob Hoelz <rob@hoelz.ro>
--
-- 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,... | gpl-3.0 |
Capibara-/cardpeek | dot_cardpeek_dir/scripts/etc/paris-rer.lua | 17 | 11936 | BANLIEUE_LIST = {
[01] = {
[00] = "Châtelet-Les Halles",
[01] = "Châtelet-Les Halles",
[07] = "Luxembourg"
},
[03] = {
[00] = "Saint-Michel Notre-Dame"
},
[06] = {
[00] = "Auber"
},
[14] = {
[04] = "Cité Universitaire"
},
[15] = {
[12] = "Port Royal",
[13] = "Denfert-Ro... | gpl-3.0 |
liruqi/bigfoot | Interface/AddOns/BigFoot/AceLibs/wyLib/NetEaseGUI-2.0/Embed/Scroll.lua | 1 | 3430 |
local GUI = LibStub('NetEaseGUI-2.0')
local View = GUI:NewEmbed('Scroll', 4)
if not View then
return
end
local function scrollBarOnShownChanged(bar)
bar:GetParent():UpdateLayout()
end
local function viewOnMouseWheel(self, delta)
self.ScrollBar:SetValue(self.ScrollBar:GetValue() - delta * self... | mit |
liruqi/bigfoot | Interface/AddOns/Bartender4/PetButton.lua | 1 | 8604 | --[[
Copyright (c) 2009-2017, Hendrik "Nevcairiel" Leppkes < h.leppkes at gmail dot com >
All rights reserved.
]]
--[[
Pet Button template
]]
local _, Bartender4 = ...
local PetButtonPrototype = CreateFrame("CheckButton")
local PetButton_MT = {__index = PetButtonPrototype}
local WoW80 = select(4, GetBuil... | mit |
Capibara-/cardpeek | dot_cardpeek_dir/scripts/mifare reader.lua | 16 | 14339 | --
-- This file is part of Cardpeek, the smartcard reader utility.
--
-- Copyright 2009-2013 by 'L1L1'
--
-- Cardpeek 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
-- (a... | gpl-3.0 |
moderna/ShivaSensorRigging | shiva/SensorRigging/Resources/Scripts/SensorRigging_Handler_onMouseWheel.lua | 1 | 1251 | --------------------------------------------------------------------------------
-- Handler.......... : onMouseWheel
-- Author........... :
-- Description...... :
--------------------------------------------------------------------------------
----------------------------------------------------------------------... | gpl-3.0 |
liruqi/bigfoot | Interface/AddOns/DBM-Scenario-MoP/BattleontheHighSeas/BattleHighSeas.lua | 1 | 2583 | local mod = DBM:NewMod("d652", "DBM-Scenario-MoP")
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 2 $"):sub(12, -3))
mod:SetZone()
mod:RegisterCombat("scenario", 1099)
mod:RegisterEventsInCombat(
"SPELL_CAST_START 141438 141327 141187 136473",
"UNIT_DIED",
"UNIT_SPELLCAST_SUCCEEDED t... | mit |
codeacula/lusternia-neko | Stats/Stat.lua | 1 | 6158 | -- The stat handler
Stat = {}
-- All of the stats
Stats = {}
-- Metatables
-- Lets the stats reference the main table functions
Stat.__index = Stat
-- Lets us quickly determine if two stats are the same
Stat.__eq = function(t1, t2)
return t1.name == t2.name
end
-- Metatable functions for better sorting
Stat.__... | mit |
davideuler/lsyncd | tests/schedule.lua | 13 | 1962 | #!/usr/bin/lua
require("posix")
dofile("tests/testlib.lua")
cwriteln("****************************************************************")
cwriteln(" Testing Lsyncd scheduler ")
cwriteln("****************************************************************")
local tdir, srcdir, trgdir ... | gpl-2.0 |
KamilKZ/love2d-netmap | netmap/main.lua | 1 | 9592 |
local updateTime = 15 --0 or a small value will still wait for the current cycle to finish ( multithreading would help )
local width = 1920
local height = 1080
local numberOfThreads = 10 --this can eat cpu
local SAVE_ALL = false --save all (timestamped) images to %APPDATA%/Love/netmap, or just the most current (overwr... | mit |
BeaconNet/sPhone | src/bin/wget.lua | 3 | 1187 | --[[
wget made by dan200
]]
local function printUsage()
print( "Usage:" )
print( "wget <url> <filename>" )
end
local tArgs = { ... }
if #tArgs < 2 then
printUsage()
return
end
if not http then
printError( "wget requires http API" )
printError( "Set http_enable to true in ComputerCraft.cfg... | mit |
LuaDist/luaglut | macros.lua | 1 | 6798 | -- ======================================================================
-- macros.lua - Copyright (C) 2005-2006 Varol Kaptan
-- see LICENSE for more information
-- ======================================================================
-- vim: set ts=3 et:
--[[
Function signatures are encoded as a combination of ... | mit |
bb010g/otouto | otouto/plugins/starwars_crawl.lua | 1 | 2217 | --[[
starwars_crawl.lua
Returns the opening "crawl" of a given Star Wars film.
Based on a plugin by matthewhesketh.
Copyright 2016 topkecleon <drew@otou.to>
This code is licensed under the GNU AGPLv3. See /LICENSE for details.
]]--
local HTTP = require('socket.http')
local JSON = require('dkjson'... | agpl-3.0 |
SINGLECYBER/CyberSource | bot/seedbot.lua | 1 | 11661 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | agpl-3.0 |
RUlanowicz/MyBreakout | cocos2d/external/lua/luajit/src/dynasm/dasm_mips.lua | 74 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/DBM-PvP/Battlegrounds/Warsong.lua | 1 | 9635 | -- Warsong mod v3.0
-- rewrite by Nitram and Tandanu
--
-- thanks to LeoLeal, DiabloHu and Са°ЧТВ
local mod = DBM:NewMod("z489", "DBM-PvP", 2)
local L = mod:GetLocalizedStrings()
mod:RemoveOption("HealthFrame")
mod:SetRevision(("$Revision: 66 $"):sub(12, -3))
mod:SetZone(DBM_DISABLE_ZONE_DETECTION)
... | mit |
shiprabehera/kong | spec/03-plugins/18-ip-restriction/02-access_spec.lua | 2 | 9260 | local helpers = require "spec.helpers"
local cjson = require "cjson"
describe("Plugin: ip-restriction (access)", function()
local plugin_config
local client, admin_client
setup(function()
helpers.run_migrations()
local api1 = assert(helpers.dao.apis:insert {
name = "api-1",
hosts = { "ip-re... | apache-2.0 |
br-lemes/stuff | smartlan/socket/url.lua | 148 | 10529 | -----------------------------------------------------------------------------
-- URI parsing, composition and relative URL resolution
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: url.lua,v 1.38 2006/04/03 04:45:42 diego Exp $
-----------------------------------------------------------------------------
... | mit |
alijoooon/Psycho | 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 |
mahdib9/3 | 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 |
UB12/GAMEOVER | 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 |
aqasaeed/x | 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 |
Steelcap/NSL-CompMod | NSLCompMod/source/lua/DPR/Replace/Door.lua | 1 | 7763 | -- ======= Copyright (c) 2003-2014, Unknown Worlds Entertainment, Inc. All rights reserved. =======
--
-- lua\Door.lua
--
-- Created by: Charlie Cleveland (charlie@unknownworlds.com) and
-- Max McGuire (max@unknownworlds.com)
--
-- ========= For more information, visit us at http://www.unknownworl... | mit |
liruqi/bigfoot | Interface/AddOns/WorldQuestTracker/libs/DF/pictureedit.lua | 1 | 20430 |
local DF = _G ["DetailsFramework"]
if (not DF or not DetailsFrameworkCanLoad) then
return
end
local _
local window = DF:NewPanel (UIParent, nil, "DetailsFrameworkImageEdit", nil, 100, 100, false)
window:SetPoint ("center", UIParent, "center")
window:SetResizable (true)
window:SetMovable (true)
tinsert (UISpeci... | mit |
SIDN/spin | src/tools/profile-util/util_validate.lua | 1 | 1289 | --
-- Copyright (c) 2018 Caspar Schutijser <caspar.schutijser@sidn.nl>
--
-- 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 SOFTWARE IS P... | gpl-2.0 |
geanux/darkstar | scripts/zones/Southern_San_dOria/npcs/Helbort.lua | 17 | 2420 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Helbort
-- Starts and Finished Quest: A purchase of Arms
-- @zone 230
-- @pos 71 -1 65
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
requi... | gpl-3.0 |
geanux/darkstar | scripts/globals/mobskills/Bai_Wing.lua | 25 | 1095 | ---------------------------------------------
-- Bai Wing
--
-- Description: A hot wind deals Fire damage to enemies within a very wide area of effect. Additional effect: Plague
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only by Ouryu and Cuelebre while fl... | gpl-3.0 |
kaen/Zero-K | LuaUI/Widgets/chili_new/headers/util.lua | 7 | 10080 | --//=============================================================================
function IsTweakMode()
return widgetHandler.tweakMode
end
--//=============================================================================
--// some needed gl constants
GL_DEPTH24_STENCIL8 = 0x88F0
GL_KEEP = 0x1E00
GL_INCR_WRAP... | gpl-2.0 |
tonylauCN/tutorials | openresty/debugger/lualibs/metalua/compiler/parser/annot/generator.lua | 7 | 1618 | --------------------------------------------------------------------------------
-- Copyright (c) 2006-2013 Fabien Fleutot and others.
--
-- All rights reserved.
--
-- This program and the accompanying materials are made available
-- under the terms of the Eclipse Public License v1.0 which
-- accompanies this distribut... | apache-2.0 |
omidtarh/wizard | plugins/minecraft.lua | 624 | 2605 | local usage = {
"!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565",
"!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.",
}
local ltn12 = require "ltn12"
local function mineSearch(ip, port, receiver) --25565
local responseText = ""
l... | gpl-2.0 |
serl/vlc | share/lua/playlist/metachannels.lua | 92 | 2096 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Rémi Duraffort <ivoire at videolan dot org>
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 y... | gpl-2.0 |
bungle/lua-resty-nettle | lib/resty/nettle/types/nettle-types.lua | 1 | 1173 | local ffi = require "ffi"
local ffi_cdef = ffi.cdef
ffi_cdef [[
union nettle_block16 {
uint8_t b[16];
unsigned long w[16 / sizeof(unsigned long)];
uint64_t u64[2];
};
union nettle_block8 {
uint8_t b[8];
uint64_t u64;
};
typedef void nettle_random_func(void *ctx,
size_t lengt... | bsd-2-clause |
famellad/oldschool-scroller | deps-main.lua | 1 | 4732 | -- Load libs
require("libs.AnAL") -- Library for animations (is there another one?)
-- Base classes
require("game") -- Basic game handling
require("static") -- Static functions and variables
require("console") -- Game console TODO
require("debug-print") -- Debug output functions
require("entity") ... | gpl-2.0 |
geanux/darkstar | scripts/zones/Windurst_Woods/npcs/HomePoint#2.lua | 17 | 1251 | -----------------------------------
-- Area: Windurst Woods
-- NPC: HomePoint#2
-- @pos 107 -5 -56 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Windurst_Woods/TextIDs");
require("scripts/glo... | gpl-3.0 |
geanux/darkstar | scripts/globals/mobskills/PW_Groundburst.lua | 25 | 1068 | ---------------------------------------------
-- Groundburst
--
-- Description: Expels a fireball on targets in an area of effect.
-- Type: Physical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Unknown radial
-- Notes: Only used by notorious monsters, and from any Mamool Ja in besieged.
-------------------... | gpl-3.0 |
geanux/darkstar | scripts/zones/Apollyon/mobs/Ice_Elemental.lua | 112 | 2441 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
--------------------------... | gpl-3.0 |
geanux/darkstar | scripts/zones/Apollyon/mobs/Light_Elemental.lua | 112 | 2441 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
--------------------------... | gpl-3.0 |
eamosov/thrift | lib/lua/TBinaryProtocol.lua | 90 | 6141 | --
-- 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 Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
geanux/darkstar | scripts/zones/Behemoths_Dominion/mobs/King_Behemoth.lua | 23 | 1825 | -----------------------------------
-- Area: Behemoth's Dominion
-- HNM: King Behemoth
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
--------------... | gpl-3.0 |
h0tw1r3/mame | 3rdparty/genie/tests/base/test_config_bug.lua | 9 | 3732 | T.config_bug_report = { }
local config_bug = T.config_bug_report
local vs10_helpers = premake.vstudio.vs10_helpers
local sln, prjA,prjB,prjC,prjD
function config_bug.teardown()
sln = nil
prjA = nil
prjB = nil
prjC = nil
prjD = nil
end
function config_bug.setup()
end
local config_bug_updated ... | gpl-2.0 |
geanux/darkstar | scripts/zones/Metalworks/npcs/Grohm.lua | 19 | 2699 | -----------------------------------
-- Area: Metalworks
-- NPC: Grohm
-- Involved In Mission: Journey Abroad
-- @pos -18 -11 -27 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/z... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.