commit stringlengths 40 40 | old_file stringlengths 6 181 | new_file stringlengths 6 181 | old_contents stringlengths 448 7.17k | new_contents stringlengths 449 7.17k | subject stringlengths 0 450 | message stringlengths 6 4.92k | lang stringclasses 1
value | license stringclasses 12
values | repos stringlengths 9 33.9k |
|---|---|---|---|---|---|---|---|---|---|
dbeedd911297f7bcae05ca48af4162ca5884ba28 | hammerspoon/.hammerspoon/window-management/layouts.lua | hammerspoon/.hammerspoon/window-management/layouts.lua | local export = {}
grid = require("window-management/grid")
helpers = require("window-management/helpers")
local areas = grid.areas
local hsGrid = grid.hsGrid
-- FILTERS
-------------------------------------------------------------------------------
local wf = hs.window.filter
local mainScreenName = hs.screen.mainScre... | local export = {}
grid = require("window-management/grid")
helpers = require("window-management/helpers")
local areas = grid.areas
local hsGrid = grid.hsGrid
-- FILTERS
-------------------------------------------------------------------------------
local wf = hs.window.filter
local mainScreenName = hs.screen.mainScre... | Layouts: fix workBrowsew and performance optimization | Layouts: fix workBrowsew and performance optimization
| Lua | mit | francoiscote/dotfiles,francoiscote/dotfiles |
b361e31282be7739eef1aaa232748e437c98ea09 | applications/luci-polipo/luasrc/model/cbi/polipo.lua | applications/luci-polipo/luasrc/model/cbi/polipo.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Aleksandar Krsteski <alekrsteski@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
http://www.apache.org/licenses/LICENSE-2.0
$Id$... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Aleksandar Krsteski <alekrsteski@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
http://www.apache.org/licenses/LICENSE-2.0
$Id$... | applications/luci-polipo: fix polipo page | applications/luci-polipo: fix polipo page
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6613 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
60702239d04fe19780cacc6c8df08e5de826bd4f | src/jet/daemon/sorter.lua | src/jet/daemon/sorter.lua | local jutils = require'jet.utils'
local tinsert = table.insert
local tremove = table.remove
local tconcat = table.concat
local tsort = table.sort
local unpack = unpack
local mmin = math.min
local mmax = math.max
local noop = jutils.noop
local is_empty_table = jutils.is_empty_table
-- may create and return a sorter f... | local jutils = require'jet.utils'
local tinsert = table.insert
local tremove = table.remove
local tconcat = table.concat
local tsort = table.sort
local unpack = unpack
local mmin = math.min
local mmax = math.max
local noop = jutils.noop
local is_empty_table = jutils.is_empty_table
-- may create and return a sorter f... | fix sorting issue | fix sorting issue
| Lua | mit | lipp/lua-jet |
853495b0b710ca47abda5a98bedad07f69272c37 | lua/entities/gmod_wire_starfall_screen/init.lua | lua/entities/gmod_wire_starfall_screen/init.lua |
AddCSLuaFile('cl_init.lua')
AddCSLuaFile('shared.lua')
include('shared.lua')
include("starfall/SFLib.lua")
assert(SF, "Starfall didn't load correctly!")
local context = SF.CreateContext()
local screens = {}
util.AddNetworkString("starfall_screen_download")
util.AddNetworkString("starfall_screen_update")... |
AddCSLuaFile('cl_init.lua')
AddCSLuaFile('shared.lua')
include('shared.lua')
include("starfall/SFLib.lua")
assert(SF, "Starfall didn't load correctly!")
local context = SF.CreateContext()
local screens = {}
util.AddNetworkString("starfall_screen_download")
util.AddNetworkString("starfall_screen_update")... | [Fix] screens not receiving data | [Fix] screens not receiving data
FINALLY - it should be completely fixed now.
| Lua | bsd-3-clause | INPStarfall/Starfall,Jazzelhawk/Starfall,Xandaros/Starfall,Ingenious-Gaming/Starfall,INPStarfall/Starfall,Ingenious-Gaming/Starfall,Jazzelhawk/Starfall,Xandaros/Starfall |
92dc9b939c16f10da77c41962b5b2f5c7a92f433 | game/scripts/vscripts/items/item_unstable_quasar.lua | game/scripts/vscripts/items/item_unstable_quasar.lua | LinkLuaModifier("modifier_item_unstable_quasar_passive", "items/item_unstable_quasar.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_unstable_quasar_slow", "items/item_unstable_quasar.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_unstable_quasar_aura", "items/item_unstable_quasar.lua", L... | LinkLuaModifier("modifier_item_unstable_quasar_passive", "items/item_unstable_quasar.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_unstable_quasar_slow", "items/item_unstable_quasar.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_unstable_quasar_aura", "items/item_unstable_quasar.lua", L... | fix(items): Unstable Quasar wastes mana on invalid abilities (#234) | fix(items): Unstable Quasar wastes mana on invalid abilities (#234)
| Lua | mit | ark120202/aabs |
58cae5a3513c367344b4ee8feddb237c1abe251e | canvas.lua | canvas.lua | local url_count = 0
local tries = 0
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*all")
f:close()
return data
else
return ""
end
end
wget.callbacks.lookup_host = function(host)
if host == "canv.as" or host == "www.canv.as" then
-- FIXME... | local url_count = 0
local tries = 0
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*all")
f:close()
return data
else
return ""
end
end
wget.callbacks.lookup_host = function(host)
if host == "canv.as" or host == "www.canv.as" then
return '... | canvas.lua: Fix up lookup_host and fix segfault of url insertion. | canvas.lua: Fix up lookup_host and fix segfault of url insertion.
| Lua | unlicense | ArchiveTeam/canvas-archive-grab,ArchiveTeam/canvas-archive-grab |
9ece6408f3957e7e7520a833d92f816722ed07e1 | frontend/gettext.lua | frontend/gettext.lua | local isAndroid, android = pcall(require, "android")
local logger = require("logger")
local GetText = {
translation = {},
current_lang = "C",
dirname = "l10n",
textdomain = "koreader"
}
local GetText_mt = {
__index = {}
}
function GetText_mt.__call(gettext, string)
return gettext.translation[... | local isAndroid, android = pcall(require, "android")
local logger = require("logger")
local GetText = {
translation = {},
current_lang = "C",
dirname = "l10n",
textdomain = "koreader"
}
local GetText_mt = {
__index = {}
}
function GetText_mt.__call(gettext, string)
return gettext.translation[... | [fix] gettext: die already you stupid language not found error (#3341) | [fix] gettext: die already you stupid language not found error (#3341)
| Lua | agpl-3.0 | mihailim/koreader,Frenzie/koreader,poire-z/koreader,Markismus/koreader,pazos/koreader,poire-z/koreader,koreader/koreader,houqp/koreader,NiLuJe/koreader,mwoz123/koreader,koreader/koreader,lgeek/koreader,NiLuJe/koreader,apletnev/koreader,Frenzie/koreader,Hzj-jie/koreader |
75944606d15151d6c91c1ac713d91f2672a8634c | irccd/plugins/auth.lua | irccd/plugins/auth.lua | local logger = require "irccd.logger"
local parser = require "irccd.parser"
local plugin = require "irccd.plugin"
-- Authentication methods by servers
local auth = {}
--
-- Load the nickserv backend settings.
--
local function loadNickServ(section, backend, server)
local password = section:requireOption("password") ... | local logger = require "irccd.logger"
local parser = require "irccd.parser"
local plugin = require "irccd.plugin"
-- Authentication methods by servers
local auth = {}
--
-- Load the nickserv backend settings.
--
local function loadNickServ(section, backend, server)
local password = section:requireOption("password") ... | Fix quakenet backend, thanks peuc | Fix quakenet backend, thanks peuc
| Lua | isc | bdrewery/irccd |
596153601b2271644c9eec8230ac442c10db12e0 | pgrouter.lua | pgrouter.lua | local cjson = require "cjson"
local function dbreq(sql)
ngx.log(ngx.ERR, 'SQL: ' .. sql)
local dbreq = ngx.location.capture("/pg", { args = { sql = sql } })
local json = dbreq.body
return json
end
local function max(match)
local key = ngx.req.get_uri_args()['key']
if not key then ngx.exit(403... | --
-- A simple API adapter for using postgresql internal subreq in a reusable manner
--
-- Copyright Tor Hveem <thveem> 2013
--
--local cjson = require "cjson"
-- The function sending subreq to nginx postgresql location with rds_json on
-- returns json body to the caller
local function dbreq(sql)
ngx.log(ngx.ER... | doc and fix for pgrouter | doc and fix for pgrouter
| Lua | bsd-3-clause | torhve/Amatyr,torhve/Amatyr,torhve/Amatyr |
e64e1c1b5d4802d2ac488a059293258849a2d287 | premake5.lua | premake5.lua |
workspace "KServer"
configurations { "Debug", "Release" }
platforms { "Win32", "Win64", "Linux" }
location "build"
filter { "platforms:Win32" }
system "windows"
architecture "x32"
defines { "_WIN32", "WIN32" }
filter { "platforms:Win64" }
system "windows"
architecture "x64"
defines { "_WIN32",... |
workspace "KServer"
configurations { "Debug", "Release" }
platforms { "Win32", "Win64", "Linux" }
location "build"
filter { "platforms:Win32" }
system "windows"
architecture "x32"
defines { "_WIN32", "WIN32" }
filter { "platforms:Win64" }
system "windows"
architecture "x64"
defin... | fix build error | fix build error | Lua | apache-2.0 | zentelfong/KServer,zentelfong/KServer |
413cf49dce1bb841ab15f77fd7aed58bbd853762 | src_trunk/resources/job-system/fishing/s_fishing_job.lua | src_trunk/resources/job-system/fishing/s_fishing_job.lua | local totalCatch = 0
local fishSize = 0
-- /fish to start fishing.
function startFishing(thePlayer)
local element = getPedContactElement(thePlayer)
if not (thePlayer) then thePlayer = source end
if not (isElement(element)) then
outputChatBox("You must be on a boat to fish.", thePlayer, 255, 0, 0)
... | local totalCatch = 0
local fishSize = 0
-- /fish to start fishing.
function startFishing(thePlayer)
if not (thePlayer) then thePlayer = source end
local element = getPedContactElement(thePlayer)
if not (isElement(element)) then
outputChatBox("You must be on a boat to fish.", thePlayer, 255, 0, 0)
... | Another fix | Another fix
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@509 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
9aee980d72490ccf9670e988a420a31e633f153d | OS/DiskOS/APIS/RamUtils.lua | OS/DiskOS/APIS/RamUtils.lua | --RAM Utilities.
--Variabes.
local sw,sh = screenSize()
--Localized Lua Library
local unpack = unpack
local floor, ceil, min = math.floor, math.ceil, math.min
local strChar, strByte = string.char, string.byte
local lshift, rshift, bor, band = bit.lshift, bit.rshift, bit.bor, bit.band
--The API
local RamUtils = {}
R... | --RAM Utilities.
--Variabes.
local sw,sh = screenSize()
--Localized Lua Library
local unpack = unpack
local floor, ceil, min = math.floor, math.ceil, math.min
local strChar, strByte = string.char, string.byte
local lshift, rshift, bor, band = bit.lshift, bit.rshift, bit.bor, bit.band
--The API
local RamUtils = {}
R... | Bugfixes | Bugfixes | Lua | mit | RamiLego4Game/LIKO-12 |
75d9b07158510f4d1315edefe860bcdf7b0fd2f7 | lualib/http/httpc.lua | lualib/http/httpc.lua | local socket = require "http.sockethelper"
local url = require "http.url"
local internal = require "http.internal"
local string = string
local table = table
local httpc = {}
local function request(fd, method, host, url, recvheader, header, content)
local read = socket.readfunc(fd)
local write = socket.writefunc(fd)... | local socket = require "http.sockethelper"
local url = require "http.url"
local internal = require "http.internal"
local string = string
local table = table
local httpc = {}
local function request(fd, method, host, url, recvheader, header, content)
local read = socket.readfunc(fd)
local write = socket.writefunc(fd)... | fix: httpc.get | fix: httpc.get
:-(
此错误会导致httpc.get无法找到正确的虚拟主机 | Lua | mit | liuxuezhan/skynet,nightcj/mmo,zzh442856860/skynet,jxlczjp77/skynet,wangyi0226/skynet,your-gatsby/skynet,nightcj/mmo,wangyi0226/skynet,chfg007/skynet,liuxuezhan/skynet,icetoggle/skynet,boyuegame/skynet,catinred2/skynet,QuiQiJingFeng/skynet,harryzeng/skynet,JiessieDawn/skynet,rainfiel/skynet,yinjun322/skynet,plsytj/skyne... |
3c5dfcaedfac9981c91b6e476ecb0e7cbfb7d83f | luapress/template.lua | luapress/template.lua | -- Luapress
-- File: luapress/template.lua
-- Desc: process .mustache and .lhtml templates
local ipairs = ipairs
local type = type
local tostring = tostring
local loadstring = loadstring or load
local mustache = require('lustache')
-- Template data
local template = {
data = {}
}
-- Add to data
function templat... | -- Luapress
-- File: luapress/template.lua
-- Desc: process .mustache and .lhtml templates
local ipairs = ipairs
local type = type
local tostring = tostring
local loadstring = loadstring or load
local mustache = require('lustache')
-- Template data
local template = {
data = {}
}
-- Add to data
function templat... | Fix usage of break, avoid string creation | Fix usage of break, avoid string creation | Lua | mit | Fizzadar/Luapress,Fizzadar/Luapress |
12b3bd4ee03416cb8fd32b130f17d27050c7a363 | modules/corelib/table.lua | modules/corelib/table.lua | -- @docclass table
function table.dump(t, depth)
if not depth then depth = 0 end
for k,v in pairs(t) do
str = (' '):rep(depth * 2) .. k .. ': '
if type(v) ~= "table" then
print(str .. tostring(v))
else
print(str)
table.dump(v, depth+1)
end
end
end
function table.clear(t)
for ... | -- @docclass table
function table.dump(t, depth)
if not depth then depth = 0 end
for k,v in pairs(t) do
str = (' '):rep(depth * 2) .. k .. ': '
if type(v) ~= "table" then
print(str .. tostring(v))
else
print(str)
table.dump(v, depth+1)
end
end
end
function table.clear(t)
for ... | Fix table.equals | Fix table.equals
| Lua | mit | Cavitt/otclient_mapgen,Radseq/otclient,Radseq/otclient,dreamsxin/otclient,dreamsxin/otclient,gpedro/otclient,gpedro/otclient,Cavitt/otclient_mapgen,gpedro/otclient,dreamsxin/otclient |
78a40e7ebd3ebeb4b1c44e2782b0ad40d34639c7 | libcallow.lua | libcallow.lua | local io = require "io"
local string = require "string"
-- Types --
local function _list (car, cdr)
local c = {
type = "list",
car = car,
cdr = cdr,
len = 1,
}
if cdr then
c.len = cdr.len + 1
end
return c
end
local function _symbol (sym)
return {
type = "symbol",... | local io = require "io"
local string = require "string"
-- Types --
local function _list (car, cdr)
local c = {
type = "list",
car = car,
cdr = cdr,
len = 1,
}
if cdr then
c.len = cdr.len + 1
end
return c
end
local function _symbol (sym)
return {
type = "symbol",... | Fix parsing with all values as tables. | Fix parsing with all values as tables.
| Lua | mit | josephburnett/callow |
5aabc7a6ab3ed1b3701646440df1d526411a6e31 | premake5.lua | premake5.lua | -- A solution contains projects, and defines the available configurations
solution "brotli"
configurations { "Release", "Debug" }
targetdir "bin"
location "buildfiles"
flags "RelativeLinks"
includedirs { "c/include" }
filter "configurations:Release"
optimize "Speed"
flags { "StaticRuntime" }
filter "configuration... | -- A solution contains projects, and defines the available configurations
solution "brotli"
configurations { "Release", "Debug" }
platforms { "x64", "x86" }
targetdir "bin"
location "buildfiles"
flags "RelativeLinks"
includedirs { "c/include" }
filter "configurations:Release"
optimize "Speed"
flags { "StaticRuntim... | Added windows platform support to premake (#567) | Added windows platform support to premake (#567)
* Added windows platform support to premake
Win32 and Win64 configuration support for visual studio solutions
* Update premake5.lua
Fixed platform support for linux, made x64 default
* Update premake5.lua
Fix typo
| Lua | mit | google/brotli,nicksay/brotli,google/brotli,nicksay/brotli,google/brotli,nicksay/brotli,google/brotli,google/brotli,google/brotli,nicksay/brotli,nicksay/brotli,google/brotli,google/brotli,nicksay/brotli,nicksay/brotli |
99078fffbd5a967bebf8d833bbe37742f56f5e28 | premake5.lua | premake5.lua | include("tools/build")
require("third_party/premake-export-compile-commands/export-compile-commands")
location(build_root)
targetdir(build_bin)
objdir(build_obj)
includedirs({
".",
"src",
"third_party",
})
defines({
"_UNICODE",
"UNICODE",
-- TODO(benvanik): find a better place for this stuff.
"GLEW_NO... | include("tools/build")
require("third_party/premake-export-compile-commands/export-compile-commands")
location(build_root)
targetdir(build_bin)
objdir(build_obj)
includedirs({
".",
"src",
"third_party",
})
defines({
"_UNICODE",
"UNICODE",
-- TODO(benvanik): find a better place for this stuff.
"GLEW_NO... | Premake: Fix a few issues (using deprecated functionality, hard to change toolset, disable lzcnt) | Premake: Fix a few issues (using deprecated functionality, hard to change toolset, disable lzcnt)
| Lua | bsd-3-clause | maxton/xenia,sephiroth99/xenia,maxton/xenia,sephiroth99/xenia,sephiroth99/xenia,maxton/xenia |
ad0ac0196de235d74deb11c0f1330ae0427de045 | hardware/APS/libaps2-cpp/src/test/aps2_dissectors.lua | hardware/APS/libaps2-cpp/src/test/aps2_dissectors.lua | -- wireshark APS2 protocol dissectors
-- declare our protocol
aps_proto = Proto("aps2","APS2 Control Protocol")
local a = aps_proto.fields
local aps_commands = { [0] = "RESET",
[ 0x01] = "USER I/O ACK",
[ 0x09] = "USER I/O NACK",
[ 0x02] = "EPROM I/O",
[ 0x03] = "CHIP CONFIG I/O",
... | -- wireshark APS2 protocol dissectors
-- declare our protocol
aps_proto = Proto("aps2","APS2 Control Protocol")
local a = aps_proto.fields
local aps_commands = { [0] = "RESET",
[ 0x01] = "USER I/O ACK",
[ 0x09] = "USER I/O NACK",
[ 0x02] = "EPROM I/O",
[ 0x03] = "CHIP CONFIG I/O",
... | Lua dissector shows packet payload. | Lua dissector shows packet payload.
Also fix address type.
| Lua | apache-2.0 | BBN-Q/Qlab,BBN-Q/Qlab,BBN-Q/Qlab,rmcgurrin/Qlab,Plourde-Research-Lab/Qlab,BBN-Q/Qlab,rmcgurrin/Qlab,Plourde-Research-Lab/Qlab,Plourde-Research-Lab/Qlab,rmcgurrin/Qlab,rmcgurrin/Qlab |
4c8012180f9ed0582e55bf3afdfa3aad6cbfcf09 | officernotewarning.lua | officernotewarning.lua | local mod = EPGP:NewModule("EPGP_OfficerNoteWarning", "AceHook-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
function mod:OnInitialize()
StaticPopupDialogs["EPGP_OFFICER_NOTE_WARNING"] = {
text = L["EPGP is using Officer Notes for data storage. Do you really want to edit the Officer Note by hand?"]... | local mod = EPGP:NewModule("EPGP_OfficerNoteWarning", "AceHook-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
StaticPopupDialogs["EPGP_OFFICER_NOTE_WARNING"] = {
text = L["EPGP is using Officer Notes for data storage. Do you really want to edit the Officer Note by hand?"],
button1 = YES,
button2 = N... | Add alert icon to officer note warning popup. Also make it accept on enter. This fixes issue 282. | Add alert icon to officer note warning popup. Also make it accept on enter. This fixes issue 282.
| Lua | bsd-3-clause | hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,sheldon/epgp,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,sheldon/epgp,hayword/tfatf_epgp,ceason/epgp-tfatf |
c8fe297dc97d5e830fb20ade49b686950c1dd315 | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_aiccu.lua | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_aiccu.lua | -- Copyright 2015 Paul Oranje <por@xs4all.nl>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
-- config read by /lib/netifd/proto/aiccu.sh
local username, password, protocol, server, tunnelid, ip6prefix, requiretls, nat, heartbeat,
verbose, ntpsynctimeout, ip6addr, sourcerouting... | -- Copyright 2015 Paul Oranje <por@xs4all.nl>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
-- config read by /lib/netifd/proto/aiccu.sh
local username, password, protocol, server, tunnelid, ip6prefix, requiretls, nat, heartbeat,
verbose, ntpsynctimeout, ip6addr, sourcerouting... | luci-proto-ipv6: aiccu improvements | luci-proto-ipv6: aiccu improvements
- option heartbeat as tunnel type (heartbeat or AYIYA) (inspired by
idea of openwrt forum user thefRont)
- another typo fix in the mtu option
| Lua | apache-2.0 | thesabbir/luci,Noltari/luci,wongsyrone/luci-1,joaofvieira/luci,kuoruan/lede-luci,remakeelectric/luci,bittorf/luci,Hostle/luci,lcf258/openwrtcn,RuiChen1113/luci,rogerpueyo/luci,jchuang1977/luci-1,oyido/luci,LuttyYang/luci,schidler/ionic-luci,cshore/luci,deepak78/new-luci,hnyman/luci,david-xiao/luci,lcf258/openwrtcn,Nolt... |
a7d7898e253b72555d06add2dfd1e5ac0edb059b | game/scripts/vscripts/heroes/hero_doppelganger/mimic.lua | game/scripts/vscripts/heroes/hero_doppelganger/mimic.lua | LinkLuaModifier("modifier_doppelganger_mimic", "heroes/hero_doppelganger/mimic.lua", LUA_MODIFIER_MOTION_NONE)
if IsServer() then
function GenerateAbilityCooldownCache(caster)
local cache = caster.abilityCooldownCache or {}
for i = 0, caster:GetAbilityCount() - 1 do
local ability = caster:GetAbilityByIndex(i)
... | LinkLuaModifier("modifier_doppelganger_mimic", "heroes/hero_doppelganger/mimic.lua", LUA_MODIFIER_MOTION_NONE)
if IsServer() then
function GenerateAbilityCooldownCache(caster)
local cache = caster.abilityCooldownCache or {}
for i = 0, caster:GetAbilityCount() - 1 do
local ability = caster:GetAbilityByIndex(i)
... | fix(doppelganger): mimic can copy illusions | fix(doppelganger): mimic can copy illusions
| Lua | mit | ark120202/aabs |
cfa0a70ad2bb9f64028abc0ac79129d7db94a1ee | lua/json/decode/calls.lua | lua/json/decode/calls.lua | --[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
]]
local lpeg = require("lpeg")
local tostring = tostring
local pairs, ipairs = pairs, ipairs
local next, type = next, type
local error = error
local util = require("json.decode.util")
local buildCall = require... | --[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
]]
local lpeg = require("lpeg")
local tostring = tostring
local pairs, ipairs = pairs, ipairs
local next, type = next, type
local error = error
local util = require("json.decode.util")
local buildCall = require... | decoder: fixes bug where function call returns nothing => error | decoder: fixes bug where function call returns nothing => error
Uncovered by fix permitting nil return value.
All 'calls' are wrapped such that they always return a single value (as expected)
| Lua | mit | renchunxiao/luajson |
c48aa7c083a1fb2584c931e54020656df8922174 | heka/sandbox/filters/firefox_monthly_dashboard.lua | heka/sandbox/filters/firefox_monthly_dashboard.lua | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
--[[
Firefox Monthly Dashboard
*Example Heka Configuration*
.. code-block:: ini
[FirefoxMonthlyDashboard]
... | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
--[[
Firefox Monthly Dashboard
*Example Heka Configuration*
.. code-block:: ini
[FirefoxMonthlyDashboard]
... | Apply the same fix to the monthly dash | Apply the same fix to the monthly dash
| Lua | mpl-2.0 | whd/data-pipeline,nathwill/data-pipeline,acmiyaguchi/data-pipeline,sapohl/data-pipeline,nathwill/data-pipeline,sapohl/data-pipeline,whd/data-pipeline,sapohl/data-pipeline,mozilla-services/data-pipeline,acmiyaguchi/data-pipeline,whd/data-pipeline,mozilla-services/data-pipeline,mozilla-services/data-pipeline,sapohl/data-... |
783aa9ba164ac8cfb298af3f3497db5860b75838 | .build.lua | .build.lua |
project "PlotLib"
if zpm.option( "HeaderOnly" ) then
zpm.export [[
defines "PLOTLIB_NO_HEADER_ONLY"
]]
files "plot/src/**.cpp"
kind "StaticLib"
else
kind "Utility"
end
if zpm.option( "UseZPMAnaconda" ) then
zpm.export [[
def... |
project "PlotLib"
if zpm.option( "HeaderOnly" ) then
kind "Utility"
else
zpm.export [[
defines "PLOTLIB_NO_HEADER_ONLY"
]]
files "plot/src/**.cpp"
kind "StaticLib"
end
if zpm.option( "UseZPMAnaconda" ) then
zpm.export [[
def... | Fixed header only toggle | Fixed header only toggle
| Lua | mit | Zefiros-Software/PlotLib,Zefiros-Software/PlotLib |
e59fe89028e634bded09dbd0c16d7852f55d7b3e | nodemcu/init.lua | nodemcu/init.lua | local wifimodule = require 'wifimodule'
local socketmodule = require 'socketmodule'
local config = require 'config'
local color = nil
-- Initialize LED-strip and Timer
ws2812.init()
local i, buffer = 0, ws2812.newBuffer(8, 3)
local ledTimer = tmr.create()
-- Fill the LED_strip with a single color
function setStrip(co... | local wifimodule = require 'wifimodule'
local socketmodule = require 'socketmodule'
local config = require 'config'
local color = nil
-- Initialize LED-strip and Timer
ws2812.init()
local i, buffer = 0, ws2812.newBuffer(8, 3)
local ledTimer = tmr.create()
-- Fill the LED_strip with a single color
function setStrip(co... | Fix end-game sequence | Fix end-game sequence
| Lua | mit | rijkvanzanten/luaus |
f35f29c020540501787a72a206941c35ab4191ae | bin/benchmarks/scanner.lua | bin/benchmarks/scanner.lua | #!/usr/bin/env luajit
-- SPDX-FileCopyrightText: Copyright 2014-present Greg Hurrell and contributors.
-- SPDX-License-Identifier: BSD-2-Clause
local ffi = require('ffi')
local pwd = os.getenv('PWD')
local lua_directory = pwd .. '/' .. debug.getinfo(1).source:match('@?(.*/)') .. '../../lua'
package.path = lua_direc... | #!/usr/bin/env luajit
-- SPDX-FileCopyrightText: Copyright 2014-present Greg Hurrell and contributors.
-- SPDX-License-Identifier: BSD-2-Clause
local ffi = require('ffi')
local pwd = os.getenv('PWD')
local lua_directory = pwd .. '/' .. debug.getinfo(1).source:match('@?(.*/)') .. '../../lua'
package.path = lua_direc... | fix(lua): make scanner benchmarks work on Intel machine | fix(lua): make scanner benchmarks work on Intel machine
Get rid of the hard-coded path that applied to Apple Silicon Mac.
| Lua | bsd-2-clause | wincent/command-t,wincent/command-t,wincent/command-t |
e68b0e8fd883a2bdbd638d94656e35ecea6870e9 | src/rogue-properties/src/Shared/RoguePropertyService.lua | src/rogue-properties/src/Shared/RoguePropertyService.lua | --[=[
@class RoguePropertyService
]=]
local require = require(script.Parent.loader).load(script)
local RunService = game:GetService("RunService")
local Signal = require("Signal")
local Maid = require("Maid")
local Observable = require("Observable")
local RoguePropertyService = {}
function RoguePropertyService:Ini... | --[=[
@class RoguePropertyService
]=]
local require = require(script.Parent.loader).load(script)
local RunService = game:GetService("RunService")
local Signal = require("Signal")
local Maid = require("Maid")
local Observable = require("Observable")
local RoguePropertyService = {}
function RoguePropertyService:Ini... | fix: RogueProperties work in test mode | fix: RogueProperties work in test mode
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
7249406960cc18b42b297fed5c7b9a661db75e9b | resources/prosody-plugins/mod_persistent_lobby.lua | resources/prosody-plugins/mod_persistent_lobby.lua | -- This module allows lobby room to be created even when the main room is empty.
-- Without this module, the empty main room will get deleted after grace period
-- which triggers lobby room deletion even if there are still people in the lobby.
--
-- This module should be added to the main virtual host domain.
-- It ass... | -- This module allows lobby room to be created even when the main room is empty.
-- Without this module, the empty main room will get deleted after grace period
-- which triggers lobby room deletion even if there are still people in the lobby.
--
-- This module should be added to the main virtual host domain.
-- It ass... | fix(persistent_lobby): properly destroy main room when empty | fix(persistent_lobby): properly destroy main room when empty
| Lua | apache-2.0 | jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet |
f1646c247e373cd73582f052daa2733c573f06a8 | src/main.lua | src/main.lua | -- Kong, the biggest ape in town
--
-- /\ ____
-- <> ( oo )
-- <>_| ^^ |_
-- <> @ \
-- /~~\ . . _ |
-- /~~~~\ | |
-- /~~~~~~\/ _| |
-- |[][][]/ / [m]
-- |[][][[m]
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[|--|]|
-- |[|... | -- Kong, the biggest ape in town
--
-- /\ ____
-- <> ( oo )
-- <>_| ^^ |_
-- <> @ \
-- /~~\ . . _ |
-- /~~~~\ | |
-- /~~~~~~\/ _| |
-- |[][][]/ / [m]
-- |[][][[m]
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[|--|]|
-- |[|... | Fix plugin configuration loading | Fix plugin configuration loading
| Lua | mit | vmercierfr/kong,wakermahmud/kong,puug/kong,skynet/kong,Skyscanner/kong,AnsonSmith/kong,paritoshmmmec/kong,chourobin/kong,ChristopherBiscardi/kong,peterayeni/kong,sbuettner/kong,ropik/kong,bbalu/kong |
7d56feadc399764908284902a342e1ab2104c3ff | mod_xrandr/test_xrandr.lua | mod_xrandr/test_xrandr.lua | -- {{{ mock notion context
local firstscreen = {
geom = function() return { x=0, y=0, w=1680, h=1050 } end,
name = function() return "WScreen<1>" end
}
local secondscreen = {
geom = function() return { x=1680, y=0, w=1920, h=1080 } end,
name = function() return "WScreen" end
}
notioncore = {
load_mo... | -- {{{ mock notion context
local firstscreen = {
geom = function() return { x=0, y=0, w=1680, h=1050 } end,
name = function() return "WScreen<1>" end
}
local secondscreen = {
geom = function() return { x=1680, y=0, w=1920, h=1080 } end,
name = function() return "WScreen" end
}
notioncore = {
load_mo... | Fix unit tests | Fix unit tests
| Lua | lgpl-2.1 | dkogan/notion.xfttest,neg-serg/notion,knixeur/notion,dkogan/notion.xfttest,neg-serg/notion,raboof/notion,knixeur/notion,p5n/notion,dkogan/notion,dkogan/notion,anoduck/notion,dkogan/notion.xfttest,dkogan/notion,anoduck/notion,neg-serg/notion,dkogan/notion,raboof/notion,p5n/notion,p5n/notion,dkogan/notion.xfttest,knixeur... |
6cc0eb562f3f02e151d3aa04affbb3f447077ee1 | src/cosy/connexion/js.lua | src/cosy/connexion/js.lua | require "cosy.lang.cosy"
js.global.cosy = cosy
local observed = require "cosy.lang.view.observed"
observed [#observed + 1] = require "cosy.lang.view.update"
cosy = observed (cosy)
local sha1 = require "sha1"
local json = require "dkjson"
local seq = require "cosy.lang.iterators" . seq
local tags = req... | require "cosy.lang.cosy"
js.global.cosy = cosy
local observed = require "cosy.lang.view.observed"
observed [#observed + 1] = require "cosy.lang.view.update"
cosy = observed (cosy)
local sha1 = require "sha1"
local json = require "dkjson"
local seq = require "cosy.lang.iterators" . seq
local set = req... | Fix problem in elements. | Fix problem in elements.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
b0b8af05f49d067c24c836d51e1f2305b119ca85 | lua/rails.lua | lua/rails.lua | request = { ['offset'] = 0 }
strptime_format = "%Y-%m-%d %H:%M:%S"
function process_line(line, offset)
if line == "\n" then
blanks = blanks or 0
blanks = blanks + 1
if blanks >= 2 and request['data'] then
-- insert the last request
request['data'] = table.concat(request['data'])
ug_req... | request = { ['offset'] = 0, ['data'] = {} }
strptime_format = "%Y-%m-%d %H:%M:%S"
blanks = 0
function process_line(line, offset)
if line == "\n" then
blanks = blanks + 1
else
if blanks >= 2 and request['data'] then
-- insert the last request, reset
request['data'] = table.concat(request['data']... | update rails.lua | update rails.lua
add on_eof to capture the last request
fix blanks processing
always re-initialize data | Lua | apache-2.0 | zendesk/ultragrep,zendesk/ultragrep |
9d405abfe26f7093898aaeea93e239cef307747b | heka/sandbox/decoders/extract_telemetry_dimensions.lua | heka/sandbox/decoders/extract_telemetry_dimensions.lua | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
require "string"
require "cjson"
require "hash"
require "os"
local gzip = require "gzip"
local dt = require("date_tim... | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
require "string"
require "cjson"
require "hash"
require "os"
local gzip = require "gzip"
local dt = require("date_tim... | Don't make the info object required | Don't make the info object required
- fix up the environment.system.os check to prevent termination
on bad data
| Lua | mpl-2.0 | sapohl/data-pipeline,sapohl/data-pipeline,mreid-moz/data-pipeline,nathwill/data-pipeline,whd/data-pipeline,mozilla-services/data-pipeline,mreid-moz/data-pipeline,kparlante/data-pipeline,sapohl/data-pipeline,nathwill/data-pipeline,kparlante/data-pipeline,mreid-moz/data-pipeline,whd/data-pipeline,kparlante/data-pipeline,... |
7c940e3a2e8c38bdcd4522bc941ab1bd979be715 | gumbo/ffi.lua | gumbo/ffi.lua | --[[
LuaJIT FFI/luaffi bindings for the Gumbo HTML5 parsing library.
Copyright (c) 2013 Craig Barnes
Permission to use, copy, modify, and/or 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.
T... | --[[
LuaJIT FFI/luaffi bindings for the Gumbo HTML5 parsing library.
Copyright (c) 2013 Craig Barnes
Permission to use, copy, modify, and/or 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.
T... | Fix get_parse_flags function in gumbo/ffi.lua | Fix get_parse_flags function in gumbo/ffi.lua
| Lua | apache-2.0 | craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo |
5becf8cd9f60ce738b2f6d08ae5ff7262b28c6da | build/LLVM.lua | build/LLVM.lua | -- Setup the LLVM dependency directories
LLVMRootDir = "../../deps/llvm/"
LLVMBuildDir = "../../deps/llvm/build/"
-- TODO: Search for available system dependencies
function SetupLLVMIncludes()
local c = configuration()
includedirs
{
path.join(LLVMRootDir, "include"),
path.join(LLVMRootDir, "tools/clan... | -- Setup the LLVM dependency directories
LLVMRootDir = "../../deps/llvm/"
LLVMBuildDir = "../../deps/llvm/build/"
-- TODO: Search for available system dependencies
function SetupLLVMIncludes()
local c = configuration()
includedirs
{
path.join(LLVMRootDir, "include"),
path.join(LLVMRootDir, "tools/clan... | build: remove -fpermissive from non-VS builds | build: remove -fpermissive from non-VS builds
Now that the warnings have been fixed, we no longer need -fpermissive to
compile CppParser with gcc.
Signed-off-by: Tomi Valkeinen <e1ca4dbb8be1acaf20734fecd2da10ed1d46a9bb@iki.fi>
| Lua | mit | ktopouzi/CppSharp,ddobrev/CppSharp,ktopouzi/CppSharp,txdv/CppSharp,genuinelucifer/CppSharp,Samana/CppSharp,mohtamohit/CppSharp,xistoso/CppSharp,mono/CppSharp,xistoso/CppSharp,Samana/CppSharp,nalkaro/CppSharp,u255436/CppSharp,KonajuGames/CppSharp,KonajuGames/CppSharp,inordertotest/CppSharp,mono/CppSharp,Samana/CppSharp,... |
581373ba992cbd666391ca5ab9d9e2698e7f6cde | Standings.lua | Standings.lua | local mod = EPGP:NewModule("EPGP_Standings", "AceDB-2.0", "AceEvent-2.0")
mod:RegisterDB("EPGP_Standings_DB")
mod:RegisterDefaults("profile", {
data = { },
detached_data = { },
group_by_class = false,
show_alts = false,
raid_mode = true
})
local T = AceLibrary("Tablet-2.0")
local D = AceLibrary("Dewdrop-2.0... | local mod = EPGP:NewModule("EPGP_Standings", "AceDB-2.0", "AceEvent-2.0")
mod:RegisterDB("EPGP_Standings_DB")
mod:RegisterDefaults("profile", {
data = { },
detached_data = { },
group_by_class = false,
show_alts = false,
raid_mode = true
})
local T = AceLibrary("Tablet-2.0")
local D = AceLibrary("Dewdrop-2.0... | Fix issue 59. Now the table has id="epgp-standings" and each tr tag has a specified class="wow-class" for use with CSS to style the epgp standings. | Fix issue 59. Now the table has id="epgp-standings" and each tr tag has a specified class="wow-class" for use with CSS to style the epgp standings.
| Lua | bsd-3-clause | protomech/epgp-dkp-reloaded,sheldon/epgp,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,hayword/tfatf_epgp,sheldon/epgp,hayword/tfatf_epgp,ceason/epgp-tfatf |
5fa5807cbbf745919524b7c0fa7dde4d8da219b5 | src/program/snabbvmx/lwaftr/lwaftr.lua | src/program/snabbvmx/lwaftr/lwaftr.lua | module(..., package.seeall)
local config = require("core.config")
local constants = require("apps.lwaftr.constants")
local ingress_drop_monitor = require("lib.timers.ingress_drop_monitor")
local intel10g = require("apps.intel.intel10g")
local lib = require("core.lib")
local counters = require("program.lwaftr.counters"... | module(..., package.seeall)
local config = require("core.config")
local constants = require("apps.lwaftr.constants")
local ingress_drop_monitor = require("lib.timers.ingress_drop_monitor")
local intel10g = require("apps.intel.intel10g")
local lib = require("core.lib")
local counters = require("program.lwaftr.counters"... | Fix "snabb snabbvmx lwaftr" | Fix "snabb snabbvmx lwaftr"
| Lua | apache-2.0 | eugeneia/snabbswitch,dpino/snabb,snabbco/snabb,dpino/snabb,dpino/snabb,snabbco/snabb,alexandergall/snabbswitch,alexandergall/snabbswitch,eugeneia/snabb,eugeneia/snabb,eugeneia/snabb,Igalia/snabbswitch,SnabbCo/snabbswitch,snabbco/snabb,Igalia/snabbswitch,SnabbCo/snabbswitch,eugeneia/snabb,eugeneia/snabbswitch,Igalia/sna... |
50a920b89280eefe2308d49fdd52283e6ab6fea9 | src/lib/numa.lua | src/lib/numa.lua | module(..., package.seeall)
local ffi = require("ffi")
local S = require("syscall")
local pci = require("lib.hardware.pci")
local bound_cpu
local bound_numa_node
function cpu_get_numa_node (cpu)
local node = 0
while true do
local node_dir = S.open('/sys/devices/system/node/node'..node,
... | module(..., package.seeall)
local ffi = require("ffi")
local S = require("syscall")
local pci = require("lib.hardware.pci")
local bound_cpu
local bound_numa_node
function cpu_get_numa_node (cpu)
local node = 0
while true do
local node_dir = S.open('/sys/devices/system/node/node'..node,
... | numa: Use ljsyscall's fixed "getcpu()" implementation | numa: Use ljsyscall's fixed "getcpu()" implementation
* src/lib/numa.lua: Rely on ljsyscall's getcpu(), now that it's fixed.
| Lua | apache-2.0 | eugeneia/snabb,snabbco/snabb,snabbco/snabb,kbara/snabb,eugeneia/snabbswitch,Igalia/snabbswitch,dpino/snabb,snabbco/snabb,dpino/snabb,eugeneia/snabbswitch,alexandergall/snabbswitch,alexandergall/snabbswitch,dpino/snabb,SnabbCo/snabbswitch,dpino/snabbswitch,eugeneia/snabbswitch,alexandergall/snabbswitch,Igalia/snabb,dpin... |
e4e11373a0ba54eff1b7f4dfb350db0dc986e2c3 | OS/DiskOS/Programs/run.lua | OS/DiskOS/Programs/run.lua | --This file loads a lk12 disk and execute it
--First we will start by obtaining the disk data
--We will run the current code in the editor
print("")
local eapi = require("C://Editors")
local mapobj = require("C://Libraries/map")
local sprid = 3 --"spritesheet"
local codeid = 2 --"luacode"
local tileid = 4 --"tilemap"... | --This file loads a lk12 disk and execute it
--First we will start by obtaining the disk data
--We will run the current code in the editor
print("")
local eapi = require("C://Editors")
local mapobj = require("C://Libraries/map")
local sprid = 3 --"spritesheet"
local codeid = 2 --"luacode"
local tileid = 4 --"tilemap"... | Bugfix | Bugfix
| Lua | mit | RamiLego4Game/LIKO-12 |
1d58ebc2c0881458a58c700b4104b2e634d96a55 | applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua | applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua | --[[
Luci statistics - statistics controller module
(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.... | --[[
Luci statistics - statistics controller module
(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.... | Fixed statistics | Fixed statistics
| Lua | apache-2.0 | deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci |
e95a0e030c11b7a33142b8fa680708d675a15ebd | app/email.lua | app/email.lua | email = require("lib_lua_email")
email.ports = {
smtpSsl = 465,
smtpNoSsl = 25,
imapSsl = 993,
imapNoSsl = 143
}
email.servers = {
yahooImap = "imaps://imap.mail.yahoo.com",
yahooSmtp = "smtps://smtp.mail.yahoo.com",
gmailImap = "imaps://imap.gmail.com",
gmailSmtp = "smtps://smtp.gmail... | email = require("lib_lua_email")
email.ports = {
smtpSsl = 465,
smtpNoSsl = 25,
imapSsl = 993,
imapNoSsl = 143
}
email.servers = {
yahooImap = "imaps://imap.mail.yahoo.com/INBOX",
yahooSmtp = "smtps://smtp.mail.yahoo.com",
gmailImap = "imaps://imap.gmail.com/INBOX",
gmailSmtp = "smtps:... | Rework IMAP commands. Fix up tests. | Rework IMAP commands. Fix up tests.
| Lua | bsd-2-clause | andreichelariu92/email_gateway,andreichelariu92/email_gateway |
f833795f51487bc05b5b7748a33aaa3515014bbe | lib/luvit/timer.lua | lib/luvit/timer.lua | --[[
Copyright 2012 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... | --[[
Copyright 2012 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... | fixes | fixes
| Lua | apache-2.0 | rjeli/luvit,luvit/luvit,sousoux/luvit,kaustavha/luvit,DBarney/luvit,AndrewTsao/luvit,rjeli/luvit,kaustavha/luvit,sousoux/luvit,DBarney/luvit,bsn069/luvit,connectFree/lev,luvit/luvit,zhaozg/luvit,boundary/luvit,bsn069/luvit,DBarney/luvit,kaustavha/luvit,sousoux/luvit,boundary/luvit,boundary/luvit,GabrielNicolasAvellaned... |
c993e14084553f01b4f5538a72f2bb2388be9b11 | mods/boats/init.lua | mods/boats/init.lua |
--
-- Helper functions
--
local function is_water(pos)
local nn = minetest.get_node(pos).name
return minetest.get_item_group(nn, "water") ~= 0
end
local function get_sign(i)
if i == 0 then
return 0
else
return i/math.abs(i)
end
end
local function get_velocity(v, yaw, y)
local x = -math.sin(yaw)*v
local z... |
--
-- Helper functions
--
local function is_water(pos)
local nn = minetest.get_node(pos).name
return minetest.get_item_group(nn, "water") ~= 0
end
local function get_sign(i)
if i == 0 then
return 0
else
return i / math.abs(i)
end
end
local function get_velocity(v, yaw, y)
local x = -math.sin(yaw) * v
loc... | Add spaces around operators in boat mod code, fix a problem with boat staticdata, fix a crash that can occur with boat going over unknown nodes. | Add spaces around operators in boat mod code, fix a problem with boat staticdata, fix a crash that can occur with boat going over unknown nodes.
| Lua | lgpl-2.1 | evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy |
489e69edfd103de532dfd291d3d30eca1db349c8 | protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua | protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua | --[[
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... | --[[
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... | proto/6x4: cast 6to4 adv_interface to string when saving to uci, fixes 6in4.sh not picking up the adv interfaces | proto/6x4: cast 6to4 adv_interface to string when saving to uci, fixes 6in4.sh not picking up the adv interfaces
| Lua | apache-2.0 | ollie27/openwrt_luci,lcf258/openwrtcn,openwrt-es/openwrt-luci,hnyman/luci,bittorf/luci,zhaoxx063/luci,tobiaswaldvogel/luci,taiha/luci,Hostle/openwrt-luci-multi-user,cshore-firmware/openwrt-luci,shangjiyu/luci-with-extra,cshore-firmware/openwrt-luci,Hostle/luci,NeoRaider/luci,db260179/openwrt-bpi-r1-luci,thess/OpenWrt-l... |
59f75d996ee9ac6569c6ba47edbfa87ad8a7e163 | modules/client_entergame/entergame.lua | modules/client_entergame/entergame.lua | EnterGame = { }
-- private variables
local loadBox
local enterGame
local motdButton
local enterGameButton
-- private functions
local function clearAccountFields()
enterGame:getChildById('accountNameTextEdit'):clearText()
enterGame:getChildById('accountPasswordTextEdit'):clearText()
enterGame:getChildById('accou... | EnterGame = { }
-- private variables
local loadBox
local enterGame
local motdButton
local enterGameButton
-- private functions
local function clearAccountFields()
enterGame:getChildById('accountNameTextEdit'):clearText()
enterGame:getChildById('accountPasswordTextEdit'):clearText()
enterGame:getChildById('accou... | Fix crash when logging without specifing a port or host | Fix crash when logging without specifing a port or host
| Lua | mit | Radseq/otclient,kwketh/otclient,dreamsxin/otclient,dreamsxin/otclient,gpedro/otclient,EvilHero90/otclient,dreamsxin/otclient,Radseq/otclient,gpedro/otclient,kwketh/otclient,EvilHero90/otclient,Cavitt/otclient_mapgen,gpedro/otclient,Cavitt/otclient_mapgen |
56ffcd6514197b121b57fadd55955aef1da60459 | lua/entities/gmod_wire_expression2/core/console.lua | lua/entities/gmod_wire_expression2/core/console.lua | /******************************************************************************\
Console support
\******************************************************************************/
E2Lib.RegisterExtension("console", true, "Lets E2 chips run concommands and retrieve convars")
local function tokenizeAndGetCommands(str)
... | /******************************************************************************\
Console support
\******************************************************************************/
E2Lib.RegisterExtension("console", true, "Lets E2 chips run concommands and retrieve convars")
local function tokenizeAndGetCommands(str)
... | Fix concmd whitelist for + and - characters | Fix concmd whitelist for + and - characters
| Lua | apache-2.0 | sammyt291/wire,NezzKryptic/Wire,Grocel/wire,wiremod/wire,garrysmodlua/wire,dvdvideo1234/wire |
8f56c944dd5341d7cc0f437ce3566c1db7072765 | server/lua/initSession.lua | server/lua/initSession.lua | --
-- Copyright 2014 Ilkka Oksanen <iao@iki.fi>
--
-- 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 app... | --
-- Copyright 2014 Ilkka Oksanen <iao@iki.fi>
--
-- 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 app... | Fix lua initSession() | Fix lua initSession()
| Lua | apache-2.0 | ilkkao/mas,ilkkao/mas,ilkkao/mas,ilkkao/mas |
da8f094bf8e4c1a57f741cc61af8a5735488cd60 | src/xenia/app/premake5.lua | src/xenia/app/premake5.lua | project_root = "../../.."
include(project_root.."/tools/build")
group("src")
project("xenia-app")
uuid("d7e98620-d007-4ad8-9dbd-b47c8853a17f")
kind("WindowedApp")
targetname("xenia")
language("C++")
links({
"capstone",
"gflags",
"glew",
"glslang-spirv",
"imgui",
"libavcodec",
"lib... | project_root = "../../.."
include(project_root.."/tools/build")
group("src")
project("xenia-app")
uuid("d7e98620-d007-4ad8-9dbd-b47c8853a17f")
kind("WindowedApp")
targetname("xenia")
language("C++")
links({
"capstone",
"gflags",
"glew",
"glslang-spirv",
"imgui",
"libavcodec",
"lib... | [App] Fix Travis whining. | [App] Fix Travis whining.
| Lua | bsd-3-clause | sephiroth99/xenia,sephiroth99/xenia,sephiroth99/xenia |
d463264f074739e81d70f6afb9dd8fb151b87e09 | src/npge/algo/BlastHits.lua | src/npge/algo/BlastHits.lua | -- lua-npge, Nucleotide PanGenome explorer (Lua module)
-- Copyright (C) 2014-2016 Boris Nagaev
-- See the LICENSE file for terms of use.
local ori = function(start, stop)
if start < stop then
return 1
else
return -1
end
end
local function readBlast(file, query, bank, same, line_handler)
... | -- lua-npge, Nucleotide PanGenome explorer (Lua module)
-- Copyright (C) 2014-2016 Boris Nagaev
-- See the LICENSE file for terms of use.
local ori = function(start, stop)
if start < stop then
return 1
else
return -1
end
end
local function readBlast(file, query, bank, same, line_handler)
... | BlastHits: use io.popen(cmd, 'rb') | BlastHits: use io.popen(cmd, 'rb')
'b' in open mode fixes reading \r-less output of blast on Windows.
| Lua | mit | npge/lua-npge,starius/lua-npge,npge/lua-npge,npge/lua-npge,starius/lua-npge,starius/lua-npge |
4e23cb01d902c2e43ed1e2df96f67042962146c2 | tests/test.lua | tests/test.lua | #!/usr/local/bin/lua5.1
local tmp = "/tmp"
local sep = "/"
local upper = ".."
require"lfs"
print (lfs._VERSION)
function attrdir (path)
for file in lfs.dir(path) do
if file ~= "." and file ~= ".." then
local f = path..sep..file
print ("\t=> "..f.." <=")
local attr = lfs.attributes (f)
assert (type(att... | #!/usr/local/bin/lua5.1
local tmp = "/tmp"
local sep = "/"
local upper = ".."
require"lfs"
print (lfs._VERSION)
function attrdir (path)
for file in lfs.dir(path) do
if file ~= "." and file ~= ".." then
local f = path..sep..file
print ("\t=> "..f.." <=")
local attr = lfs.attributes (f)
assert (type(att... | Corrected 1 of 2 bugs on the test script found by Shmuel Zeigerman: the use of /tmp as a necessary directory. Corrected a bug on the test script on slow fliesystems due to the reliance on close times | Corrected 1 of 2 bugs on the test script found by Shmuel Zeigerman: the use of /tmp as a necessary directory.
Corrected a bug on the test script on slow fliesystems due to the reliance on close times
| Lua | mit | mpeterv/luafilesystem,n1tehawk/luafilesystem,chipsCode/luafilesystem,keplerproject/luafilesystem,kidaa/luafilesystem,cokeboL/luafilesystem,kidaa/luafilesystem,chipsCode/luafilesystem,cokeboL/luafilesystem |
cfbebe559c437713035b486152fbf25e4dc35dd9 | src/core/memory.lua | src/core/memory.lua | module(...,package.seeall)
-- For more information about huge pages checkout:
-- * HugeTLB - Large Page Support in the Linux kernel
-- http://linuxgazette.net/155/krishnakumar.html)
-- * linux/Documentation/vm/hugetlbpage.txt
-- https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt)
local ffi = require("ffi"... | module(...,package.seeall)
-- For more information about huge pages checkout:
-- * HugeTLB - Large Page Support in the Linux kernel
-- http://linuxgazette.net/155/krishnakumar.html)
-- * linux/Documentation/vm/hugetlbpage.txt
-- https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt)
local ffi = require("ffi"... | memory: Force the kernel to enable working HugeTLB allocation | memory: Force the kernel to enable working HugeTLB allocation
If huge page allocation fails then do one of two things:
- Increase sysctl kernel.shmmax if the maximum shared memory
allocation size is less than the size of one huge page. (That is a
misconfigured kernel from our perspective.) Fixes #366.
- Increase... | Lua | apache-2.0 | javierguerragiraldez/snabbswitch,justincormack/snabbswitch,wingo/snabb,Igalia/snabb,eugeneia/snabb,Igalia/snabb,eugeneia/snabb,fhanik/snabbswitch,heryii/snabb,Igalia/snabbswitch,snabbnfv-goodies/snabbswitch,wingo/snabb,eugeneia/snabbswitch,SnabbCo/snabbswitch,andywingo/snabbswitch,dpino/snabb,lukego/snabbswitch,wingo/s... |
c61001e7e410d9aee3e40e48df39db908f41cf0a | src/websocket/server_ev.lua | src/websocket/server_ev.lua |
local socket = require'socket'
local tools = require'websocket.tools'
local frame = require'websocket.frame'
local handshake = require'websocket.handshake'
local tconcat = table.concat
local tinsert = table.insert
local ev
local loop
local clients = {}
local client = function(sock,protocol)
assert(sock)
sock:set... |
local socket = require'socket'
local tools = require'websocket.tools'
local frame = require'websocket.frame'
local handshake = require'websocket.handshake'
local tconcat = table.concat
local tinsert = table.insert
local ev
local loop
local clients = {}
clients[true] = {}
local client = function(sock,protocol)
asse... | fix default handler | fix default handler
| Lua | mit | enginix/lua-websockets,KSDaemon/lua-websockets,KSDaemon/lua-websockets,enginix/lua-websockets,KSDaemon/lua-websockets,OptimusLime/lua-websockets,lipp/lua-websockets,OptimusLime/lua-websockets,OptimusLime/lua-websockets,enginix/lua-websockets,lipp/lua-websockets,lipp/lua-websockets |
af7ae86ba3ec7624bb9efedaed901b156b2b8191 | vararg.lua | vararg.lua | local _G = require "_G"
local error = _G.error
local select = _G.select
local math = require "math"
local max = math.max
local table = require "table"
local unpack = table.unpack or _G.unpack
local tinsert2 = function(t, n, i, v)
-- lua 5.2 rise error if index out of range
-- assert(type(t) =='table')
-- assert(t... | local _G = require "_G"
local error = _G.error
local select = _G.select
local math = require "math"
local max = math.max
local table = require "table"
local unpack = table.unpack or _G.unpack
local tinsert2 = function(t, n, i, v)
-- lua 5.2 rise error if index out of range
-- assert(type(t) =='table')
-- assert(t... | Fix. Compatibility Lua and C version. | Fix. Compatibility Lua and C version.
| Lua | mit | icetoggle/lua-vararg,icetoggle/lua-vararg,moteus/lua-vararg |
e7b0bda439775f5c60ab030772bb65f484a2b6e6 | agents/monitoring/tests/fixtures/protocol/server.lua | agents/monitoring/tests/fixtures/protocol/server.lua | local net = require('net')
local JSON = require('json')
local fixtures = require('./')
local LineEmitter = require('line-emitter').LineEmitter
local tls = require('tls')
local timer = require('timer')
local string = require('string')
local math = require('math')
local table = require('table')
local http = require("http... | local net = require('net')
local JSON = require('json')
local fixtures = require('./')
local LineEmitter = require('line-emitter').LineEmitter
local table = require('table')
local tls = require('tls')
local timer = require('timer')
local string = require('string')
local math = require('math')
local table = require('tab... | monitoring: fixtures: server: clear interval timers | monitoring: fixtures: server: clear interval timers
setup infrastructure to clear interval timers if a connection is
destroyed.
| Lua | apache-2.0 | kans/zirgo,kans/zirgo,kans/zirgo |
4a162c53bf7abd2f884a6caa330f1a041a767202 | tests/check/filesystem.lua | tests/check/filesystem.lua | local math = require('math')
local os = require('os')
local FileSystemCheck = require('/check').FileSystemCheck
local exports = {}
exports['test_filesystem_check'] = function(test, asserts)
if os.type() == "win32" then
fs_target = 'C:\\'
else
fs_target = '/'
end
local check = FileSystemCheck:new({id=... | local math = require('math')
local os = require('os')
local FileSystemCheck = require('/check').FileSystemCheck
local exports = {}
exports['test_filesystem_check'] = function(test, asserts)
if os.type() == "win32" then
fs_target = 'C:\\'
else
fs_target = '/'
end
local check = FileSystemCheck:new({id=... | fix: filesystem mount point fix, missing test changes | fix: filesystem mount point fix, missing test changes
| Lua | apache-2.0 | kaustavha/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-m... |
ca4705254414b7117815c59bc66f285fae2af88d | modules/admin-full/luasrc/model/cbi/admin_network/routes.lua | modules/admin-full/luasrc/model/cbi/admin_network/routes.lua | --[[
LuCI - Lua Configuration Interface
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.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | --[[
LuCI - Lua Configuration Interface
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.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | modules/admin-fulk: Fixed changes handling of Static Routes configuration page | modules/admin-fulk: Fixed changes handling of Static Routes configuration page
| Lua | apache-2.0 | deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci |
aac50266cf5b68d0ca5dc0f734cdee440182820a | examples/GNTPLuaSocket.lua | examples/GNTPLuaSocket.lua | -- Using LuaSocket library to communicate with Growl
local GNTP = require "lluv.gntp"
local socket = require "socket"
local function gntp_send_recv(msg, pass, host, port)
local cli, err = socket.connect(host or "127.0.0.1", port or "23053")
if not cli then return nil, err end
cli:send(msg:encode(pass))
loc... | -- Using LuaSocket library to communicate with Growl
local GNTP = require "lluv.gntp"
local socket = require "socket"
local function gntp_send_recv(msg, pass, host, port)
local cli, err = socket.connect(host or "127.0.0.1", port or "23053")
if not cli then return nil, err end
cli:send(msg:encode(pass))
loc... | Fix. Remove unused code. | Fix. Remove unused code.
| Lua | mit | moteus/lua-gntp |
c29efb234b2d8cb40a0dda9812eb72761cd8b0db | data/pipelines/fxaa.lua | data/pipelines/fxaa.lua | function postprocess(env, transparent_phase, ldr_buffer, gbuffer0, gbuffer1, gbuffer_depth, shadowmap)
if not enabled then return ldr_buffer end
if transparent_phase ~= "post_tonemap" then return ldr_buffer end
local res = env.createRenderbuffer(1, 1, true, "rgba8", "fxaa")
env.beginBlock("fxaa")
if env.fxaa_shade... | function postprocess(env, transparent_phase, ldr_buffer, gbuffer0, gbuffer1, gbuffer_depth, shadowmap)
if not enabled then return ldr_buffer end
if transparent_phase ~= "post_tonemap" then return ldr_buffer end
local res
if env.SCENE_VIEW ~= nil then
res = env.createRenderbuffer(1, 1, true, "rgba16f", "fxaa")
el... | fxaa breaks colors - fixes #1285 | fxaa breaks colors - fixes #1285
| Lua | mit | nem0/LumixEngine,nem0/LumixEngine,nem0/LumixEngine |
8ce6796517f61fd54718e2fc52760854c17ad4a5 | applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua | applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua | --[[
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... | --[[
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... | applications/luci-ddns: fix dyndns config page | applications/luci-ddns: fix dyndns config page
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5463 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
56a4909b28f72d7d6c3f0927b0ea11cf11412d07 | OS/DiskOS/Programs/paint.lua | OS/DiskOS/Programs/paint.lua | --Paint Program--
print("")
local args = {...}
if #args < 1 then color(9) print("Must provide the path to the file") return end
local tar = table.concat(args," ")..".lk12" --The path may include whitespaces
local term = require("C://terminal")
tar = term.parsePath(tar)
if fs.exists(tar) and fs.isDirectory(tar) then co... | --Paint Program--
print("")
local args = {...}
if #args < 1 then color(9) print("Must provide the path to the file") return end
local tar = table.concat(args," ")..".lk12" --The path may include whitespaces
local term = require("C://terminal")
tar = term.parsePath(tar)
if fs.exists(tar) and fs.isDirectory(tar) then co... | Bugfixes some glitches | Bugfixes some glitches
| Lua | mit | RamiLego4Game/LIKO-12 |
0d30c0cb5a359c732db2ee694e02cdc4868655e3 | tests/test-path.lua | tests/test-path.lua | --[[
Copyright 2012 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... | --[[
Copyright 2012 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... | Fix the path basename tests to have specific tests for windows. | Fix the path basename tests to have specific tests for windows.
| Lua | apache-2.0 | zhaozg/luvit,boundary/luvit,DBarney/luvit,sousoux/luvit,DBarney/luvit,DBarney/luvit,GabrielNicolasAvellaneda/luvit-upstream,bsn069/luvit,boundary/luvit,sousoux/luvit,boundary/luvit,sousoux/luvit,sousoux/luvit,bsn069/luvit,boundary/luvit,rjeli/luvit,zhaozg/luvit,boundary/luvit,rjeli/luvit,rjeli/luvit,kaustavha/luvit,kau... |
31d0d09f4f2475ef6a82bef4b0e47db5279642e1 | lua/selectionConverter.lua | lua/selectionConverter.lua |
function updateClipboard(threadObj)
-- ENCODING among -detect-enc, -sjis, -utf16-be, -utf16-le, -utf8
local ENCODING = "-detect-enc"
-- 0 <= DEBUG_LEVEL <= 5
local DEBUG_LEVEL = 0
-- any positive or negative integer
local STRICTNESS = 20
local hexView = getMemoryViewForm().HexadecimalView
... |
function updateClipboard(threadObj)
-- ENCODING among -detect-enc, -sjis, -utf16-be, -utf16-le, -utf8
local ENCODING = "-detect-enc"
-- 0 <= DEBUG_LEVEL <= 5
local DEBUG_LEVEL = 0
-- any positive or negative integer
local STRICTNESS = 20
local hexView = getMemoryViewForm().HexadecimalView
local previousByt... | Fix indentation in lua file | Fix indentation in lua file
| Lua | mit | MX-Futhark/hook-any-text |
13a98fb066635ece8f7843e9b3bb394849c7872d | lualib/snax/gateserver.lua | lualib/snax/gateserver.lua | local skynet = require "skynet"
local netpack = require "netpack"
local socketdriver = require "socketdriver"
local gateserver = {}
local socket -- listen socket
local queue -- message queue
local maxclient -- max client
local client_number = 0
local CMD = setmetatable({}, { __gc = function() netpack.clear(queue) en... | local skynet = require "skynet"
local netpack = require "netpack"
local socketdriver = require "socketdriver"
local gateserver = {}
local socket -- listen socket
local queue -- message queue
local maxclient -- max client
local client_number = 0
local CMD = setmetatable({}, { __gc = function() netpack.clear(queue) en... | fix: supports 'skynet.send' function for gateserver. | fix: supports 'skynet.send' function for gateserver.
| Lua | mit | korialuo/skynet,korialuo/skynet,korialuo/skynet |
84cb67d05c00b0d4026d329838735240e4b36b41 | share/lua/website/sapo.lua | share/lua/website/sapo.lua |
-- libquvi-scripts
-- Copyright (C) 2010-2012 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Fr... |
-- libquvi-scripts
-- Copyright (C) 2010-2012 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Fr... | FIX: sapo.lua: ID, media stream URL and title | FIX: sapo.lua: ID, media stream URL and title
None of ID, URL or title were getting matched with the current
sapo.pt design.
Example URL:
http://videos.sapo.pt/JZOMcU6KPdZV7RTKIphP
| Lua | lgpl-2.1 | hadess/libquvi-scripts-iplayer,DangerCove/libquvi-scripts,hadess/libquvi-scripts-iplayer,legatvs/libquvi-scripts,DangerCove/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,alech/libquvi-scripts |
abea1df8c6064e5655c3e0ba70d2cdfbe4061802 | src/cosy/rockspec/cli.lua | src/cosy/rockspec/cli.lua | local Lfs = require "lfs"
local Serpent = require "serpent"
-- Compute path:
local main = package.searchpath ("cosy.rockspec", package.path)
if main:sub (1, 2) == "./" then
main = Lfs.currentdir () .. "/" .. main:sub (3)
end
main = main:gsub ("/rockspec/init.lua", "")
local rockspec = {
package = "cosyverif",... | local Arguments = require "argparse"
local Lfs = require "lfs"
local Serpent = require "serpent"
local parser = Arguments () {
name = "cosy-rockspec",
description = "cosy rockspec generator",
}
parser:option "-s" "--source" {
description = "path to cosy source",
default = (os.getenv "PWD") .... | Fix the rockspec generator. | Fix the rockspec generator.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
334d108d386995c3c3295f096b66a3f3665d7e52 | luapak/fs.lua | luapak/fs.lua | ---------
-- Utility functions for operations on a file system and paths.
-- Extends LuaFileSystem module.
--
-- **Note: This module is not part of public API!**
----
local lfs = require 'lfs'
local utils = require 'luapak.utils'
local cowrap = coroutine.wrap
local file_attrs = lfs.attributes
local fmt = string.format... | ---------
-- Utility functions for operations on a file system and paths.
-- Extends LuaFileSystem module.
--
-- **Note: This module is not part of public API!**
----
local lfs = require 'lfs'
local pkgpath = require 'luapak.pkgpath'
local utils = require 'luapak.utils'
local concat = table.concat
local cowrap = corou... | Fix fs.walk_dir() to use platform's dir separator | Fix fs.walk_dir() to use platform's dir separator
| Lua | mit | jirutka/luapak,jirutka/luapak |
ee1b801ba023f0abb9a20c018cdccbd4406c9ca6 | mock/gfx/DeckCanvas.lua | mock/gfx/DeckCanvas.lua | module 'mock'
local insert = table.insert
local index = table.index
local remove = table.remove
CLASS: DeckCanvas ( GraphicsPropComponent )
:MODEL{
Field 'index' :no_edit();
'----';
Field 'size' :type('vec2') :getset('Size');
Field 'serializedData' :getset( 'SerializedData' ) :no_edit();
'----';
Fiel... | module 'mock'
local insert = table.insert
local index = table.index
local remove = table.remove
CLASS: DeckCanvas ( GraphicsPropComponent )
:MODEL{
Field 'index' :no_edit();
'----';
Field 'size' :type('vec2') :getset('Size');
Field 'serializedData' :getset( 'SerializedData' ) :no_edit();
'----';
Fiel... | real. fix deckcanvas | real. fix deckcanvas
| Lua | mit | tommo/mock |
32bd9d96d71a42cf2df976eec595ae8ab66523e5 | applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | --[[
LuCI - Lua Configuration Interface
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.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | --[[
LuCI - Lua Configuration Interface
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.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | * luci/olsr: fix names of interfaces with type bridge | * luci/olsr: fix names of interfaces with type bridge
git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@2503 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | gwlim/luci,Flexibity/luci,ThingMesh/openwrt-luci,zwhfly/openwrt-luci,saraedum/luci-packages-old,ch3n2k/luci,8devices/carambola2-luci,8devices/carambola2-luci,gwlim/luci,ch3n2k/luci,freifunk-gluon/luci,vhpham80/luci,vhpham80/luci,jschmidlapp/luci,jschmidlapp/luci,stephank/luci,stephank/luci,yeewang/openwrt-luci,alxhh/pi... |
eebd44da9dd95754da5457950ddd63119a94dc66 | lualib/skynet/db/redis.lua | lualib/skynet/db/redis.lua | local skynet = require "skynet"
local socket = require "skynet.socket"
local socketchannel = require "skynet.socketchannel"
local table = table
local string = string
local assert = assert
local redis = {}
local command = {}
local meta = {
__index = command,
-- DO NOT close channel in __gc
}
---------- redis respon... | local skynet = require "skynet"
local socket = require "skynet.socket"
local socketchannel = require "skynet.socketchannel"
local table = table
local string = string
local assert = assert
local redis = {}
local command = {}
local meta = {
__index = command,
-- DO NOT close channel in __gc
}
---------- redis respon... | fix #1341 | fix #1341
| Lua | mit | korialuo/skynet,cloudwu/skynet,sanikoyes/skynet,xjdrew/skynet,icetoggle/skynet,hongling0/skynet,xjdrew/skynet,icetoggle/skynet,wangyi0226/skynet,wangyi0226/skynet,cloudwu/skynet,cloudwu/skynet,xjdrew/skynet,icetoggle/skynet,sanikoyes/skynet,pigparadise/skynet,hongling0/skynet,pigparadise/skynet,wangyi0226/skynet,korial... |
e90dd05472aa8a6c63458be455a521d1d8a0c735 | item/id_51_emptybucket.lua | item/id_51_emptybucket.lua | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | some style fixes | some style fixes
| Lua | agpl-3.0 | Baylamon/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content |
b47a191363e4d820535d7f17cf327c0987a2a9d0 | hammerspoon/.hammerspoon/windows.lua | hammerspoon/.hammerspoon/windows.lua | local module = {}
module.init = function()
DimensionsHistory = (function()
local history = {}
return {
push = function(win)
local f = win:frame()
local originalDimensions = {
x = f.x,
y = f.y,
w = f.w,
h = f.h,
}
if history[win:id()] and not history[win:id()][20] then
... | local module = {}
module.init = function()
DimensionsHistory = (function()
local history = {}
return {
push = function(win)
local f = win:frame()
local originalDimensions = {
x = f.x,
y = f.y,
w = f.w,
h = f.h,
}
if history[win:id()] and not history[win:id()][20] then
... | [hammerspoon] Add hack to fix weird offset bug for bottom-half window | [hammerspoon] Add hack to fix weird offset bug for bottom-half window
| Lua | mit | spinningarrow/.files,spinningarrow/.files |
fc4908f033cd387955d3d9eb4caa3f22564e4f2d | plugins/translate.lua | plugins/translate.lua | -- Glanced at https://github.com/yagop/telegram-bot/blob/master/plugins/translate.lua
local PLUGIN = {}
PLUGIN.triggers = {
'^/translate'
}
PLUGIN.doc = [[
/translate [target lang]
Reply to a message to translate it to the default language.
]]
PLUGIN.action = function(msg)
if not msg.reply_to_message then
... | -- Glanced at https://github.com/yagop/telegram-bot/blob/master/plugins/translate.lua
local PLUGIN = {}
PLUGIN.triggers = {
'^/translate'
}
PLUGIN.doc = [[
/translate [target lang]
Reply to a message to translate it to the default language.
]]
PLUGIN.action = function(msg)
if not msg.reply_to_message then
... | fixed potential exploit in translate.lua | fixed potential exploit in translate.lua
| Lua | mit | barreeeiroo/BarrePolice,TiagoDanin/SiD,Brawl345/Brawlbot-v2,bb010g/otouto,topkecleon/otouto |
4218da2b8d36cea786d2fd7927804401c753128f | ralis/cli/launcher.lua | ralis/cli/launcher.lua | -- dependencies
local ansicolors = require 'ansicolors'
require 'ralis.core.ralis'
local BaseLauncher = require 'ralis.cli.base_launcher'
-- settings
local nginx_conf_source = 'config/nginx.conf'
local function convert_boolean_to_onoff(value)
if value == true then value = 'on' else value = 'off' end
return ... | -- dependencies
local ansicolors = require 'ansicolors'
require 'ralis.core.ralis'
local BaseLauncher = require 'ralis.cli.base_launcher'
-- settings
local nginx_conf_source = 'config/nginx.conf'
local function convert_boolean_to_onoff(value)
if value == true then value = 'on' else value = 'off' end
return ... | Fix bug of launcher getting initialized on ralis cli. | Fix bug of launcher getting initialized on ralis cli.
| Lua | mit | istr/gin,ostinelli/gin |
d9c88b0c2a478138f91003c7de2509ce183930e3 | lua/entities/gmod_wire_expression2/base/tokenizer.lua | lua/entities/gmod_wire_expression2/base/tokenizer.lua | /******************************************************************************\
Expression 2 Tokenizer for Garry's Mod
Andreas "Syranide" Svensson, me@syranide.com
\******************************************************************************/
AddCSLuaFile("tokenizer.lua")
Tokenizer = {}
Tokenizer.__ind... | /******************************************************************************\
Expression 2 Tokenizer for Garry's Mod
Andreas "Syranide" Svensson, me@syranide.com
\******************************************************************************/
AddCSLuaFile("tokenizer.lua")
Tokenizer = {}
Tokenizer.__ind... | E2: fixed \n in strings adding to the line counter | E2: fixed \n in strings adding to the line counter
| Lua | apache-2.0 | NezzKryptic/Wire,Grocel/wire,CaptainPRICE/wire,immibis/wiremod,rafradek/wire,bigdogmat/wire,Python1320/wire,garrysmodlua/wire,plinkopenguin/wiremod,mitterdoo/wire,notcake/wire,wiremod/wire,dvdvideo1234/wire,mms92/wire,sammyt291/wire,thegrb93/wire |
e6328e4972aa893d84d8bf6ab09cf0c31f968d8c | lua/entities/gmod_wire_expression2/core/selfaware.lua | lua/entities/gmod_wire_expression2/core/selfaware.lua | /******************************************************************************\
Selfaware support
\******************************************************************************/
__e2setcost(1) -- temporary
e2function entity entity()
return self.entity
end
e2function entity owner()
return self.player
end
__e2s... | /******************************************************************************\
Selfaware support
\******************************************************************************/
__e2setcost(1) -- temporary
e2function entity entity()
return self.entity
end
e2function entity owner()
return self.player
end
__e2s... | Fix 'changed' on angle type (#2427) | Fix 'changed' on angle type (#2427)
* Fix 'changed' on angle type
* Update selfaware.lua | Lua | apache-2.0 | Grocel/wire,wiremod/wire |
067131832e3a36decda764a97eaa0fa5b0783f5c | lib/switchboard_modules/lua_script_debugger/premade_scripts/advanced_scripts/14_zerocrossing_pulse_response.lua | lib/switchboard_modules/lua_script_debugger/premade_scripts/advanced_scripts/14_zerocrossing_pulse_response.lua | --This example will output a pulse on FIO1 (FIO4 for T4) a specified amount of time after a
-- rising edge is detected on FIO0 (FIO5 on T4). The delay between detection of a crossing
-- and the beginning of the pulse is controlled by the F32 value in USER_RAM at
-- modbus address 46000-46001.
print("Begin")
local s... | --[[
Name: 14_zerocrossing_pulse_response.lua
Desc: This example will output a pulse on FIO1 (FIO4 for T4) a specified
amount of time after a rising edge is detected on FIO0 (FIO5 for T4)
Note: The delay between detection of a crossing and the beginning of the
pulse is controlled by the ... | Fixed up the formatting of the zerocrossing pulse response example | Fixed up the formatting of the zerocrossing pulse response example
| Lua | mit | chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager |
4756ec14fa1fb2b8fc51cd53276808d6ca2fdef4 | item/id_3077_silvercoins.lua | item/id_3077_silvercoins.lua | require("base.common")
module("item.id_3077_silvercoins", package.seeall)
-- UPDATE common SET com_script='item.id_3077_silvercoins' WHERE com_itemid IN (3077);
TimeList = {};
function UseItem(User, SourceItem)
local frontItem = base.common.GetFrontItem(User)
if not frontItem then
return
end
if frontItem.... | require("base.common")
module("item.id_3077_silvercoins", package.seeall)
-- UPDATE common SET com_script='item.id_3077_silvercoins' WHERE com_itemid IN (3077);
TimeList = {};
function UseItem(User, SourceItem)
local frontItem = base.common.GetFrontItem(User)
if frontItem then
if frontItem.id == 2805 and frontI... | bugfix | bugfix
| Lua | agpl-3.0 | KayMD/Illarion-Content,vilarion/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content |
78fb71f88177ac7e9234065a8bdbe8310ffa95ad | modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | --[[
LuCI - Lua Configuration Interface
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.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | --[[
LuCI - Lua Configuration Interface
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.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | * luci/admin-full: fixed bug that prevented creation of interface sections in dhcp page | * luci/admin-full: fixed bug that prevented creation of interface sections in dhcp page
| Lua | apache-2.0 | mumuqz/luci,RedSnake64/openwrt-luci-packages,aircross/OpenWrt-Firefly-LuCI,aa65535/luci,palmettos/cnLuCI,aa65535/luci,openwrt-es/openwrt-luci,obsy/luci,kuoruan/luci,kuoruan/lede-luci,Kyklas/luci-proto-hso,opentechinstitute/luci,florian-shellfire/luci,taiha/luci,jlopenwrtluci/luci,Hostle/openwrt-luci-multi-user,jlopenwr... |
05a6bab4cc142a86d929501ad0e2ef13b1978ab1 | game/scripts/vscripts/items/item_book_of_the_guardian.lua | game/scripts/vscripts/items/item_book_of_the_guardian.lua | item_book_of_the_guardian_baseclass = {}
LinkLuaModifier("modifier_item_book_of_the_guardian", "items/item_book_of_the_guardian.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_book_of_the_guardian_effect", "items/item_book_of_the_guardian.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_boo... | LinkLuaModifier("modifier_item_book_of_the_guardian", "items/item_book_of_the_guardian.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_book_of_the_guardian_effect", "items/item_book_of_the_guardian.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_book_of_the_guardian_blast", "items/item_boo... | Fixed Book of the Guardian passive modifier wasn't applied | Fixed Book of the Guardian passive modifier wasn't applied
| Lua | mit | ark120202/aabs |
e03cef26dacfc94ffdf7d35f7941159f5acfa9eb | mod_auth_external/mod_auth_external.lua | mod_auth_external/mod_auth_external.lua | --
-- Prosody IM
-- Copyright (C) 2010 Waqas Hussain
-- Copyright (C) 2010 Jeff Mitchell
-- Copyright (C) 2013 Mikael Nordfeldth
-- Copyright (C) 2013 Matthew Wild, finally came to fix it all
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local lpt... | --
-- Prosody IM
-- Copyright (C) 2010 Waqas Hussain
-- Copyright (C) 2010 Jeff Mitchell
-- Copyright (C) 2013 Mikael Nordfeldth
-- Copyright (C) 2013 Matthew Wild, finally came to fix it all
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local lpt... | mod_auth_external: Fix logging of errors | mod_auth_external: Fix logging of errors
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
47f4e824761d42619c49e7c7ffd1f310f2a5c5a2 | game/scripts/vscripts/modules/custom_abilities/ability_shop.lua | game/scripts/vscripts/modules/custom_abilities/ability_shop.lua | function CustomAbilities:PostAbilityShopData()
CustomGameEventManager:RegisterListener("ability_shop_buy", function(_, data)
CustomAbilities:OnAbilityBuy(data.PlayerID, data.ability)
end)
CustomGameEventManager:RegisterListener("ability_shop_sell", Dynamic_Wrap(CustomAbilities, "OnAbilitySell"))
CustomGameEventMa... | function CustomAbilities:PostAbilityShopData()
CustomGameEventManager:RegisterListener("ability_shop_buy", function(_, data)
CustomAbilities:OnAbilityBuy(data.PlayerID, data.ability)
end)
CustomGameEventManager:RegisterListener("ability_shop_sell", Dynamic_Wrap(CustomAbilities, "OnAbilitySell"))
CustomGameEventMa... | fix(custom_abilities): puck's jaunt not deactivates with orb remove | fix(custom_abilities): puck's jaunt not deactivates with orb remove
Fixes #238.
| Lua | mit | ark120202/aabs |
ee5242d39e8ed712bc668c0bfbd6ec83a56bfbc5 | scripts/rules/d/dmd.lua | scripts/rules/d/dmd.lua | --[[
Copyright (c) Jason White. MIT license.
Description:
Generates rules for the DMD compiler.
]]
local rules = require "rules"
--[[
Helper functions.
TODO: Alter paths based on platform
]]
local function is_d_source(src)
return path.getext(src) == ".d"
end
local function to_object(objdir, src)
return pat... | --[[
Copyright (c) Jason White. MIT license.
Description:
Generates rules for the DMD compiler.
]]
local rules = require "rules"
--[[
Helper functions.
TODO: Alter paths based on platform
]]
local function is_d_source(src)
return path.getext(src) == ".d"
end
local function to_object(objdir, src)
return pat... | Fix incorrect object path for combined compilation | Fix incorrect object path for combined compilation
| Lua | mit | jasonwhite/bblua,jasonwhite/bblua,jasonwhite/bblua,jasonwhite/button-lua,jasonwhite/button-lua,jasonwhite/button-lua |
1ebc03c62252c2fa1e2c431465ed3e9b46bf3c51 | plugins/mod_muc_unique.lua | plugins/mod_muc_unique.lua | -- XEP-0307: Unique Room Names for Multi-User Chat
local uuid_gen = require "util.uuid".generate;
module:add_feature "http://jabber.org/protocol/muc#unique"
module:hook("iq-get/host/http://jabber.org/protocol/muc#unique:unique", function()
local origin, stanza = event.origin, event.stanza;
origin.send(st.reply(stanza... | -- XEP-0307: Unique Room Names for Multi-User Chat
local st = require "util.stanza";
local uuid_gen = require "util.uuid".generate;
module:add_feature "http://jabber.org/protocol/muc#unique"
module:hook("iq-get/host/http://jabber.org/protocol/muc#unique:unique", function(event)
local origin, stanza = event.origin, eve... | plugins/mod_muc_unique: Fix undefined global access (thanks Lance) | plugins/mod_muc_unique: Fix undefined global access (thanks Lance)
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
495c2cabd7bfa8c85fed87b9ee46871569bda252 | OS/DiskOS/Programs/save.lua | OS/DiskOS/Programs/save.lua | local destination = select(1,...)
local flag = select(2,...) or ""
local ctype = select(3,...) or "gzip"
local clvl = tonumber(select(4,...) or "9")
local term = require("terminal")
local eapi = require("Editors")
if destination and destination ~= "@clip" and destination ~= "-?" then
destination = term.resolve(des... | local destination = select(1,...)
local flag = select(2,...) or ""
local ctype = select(3,...) or "gzip"
local clvl = tonumber(select(4,...) or "9")
local term = require("terminal")
local eapi = require("Editors")
if destination = "-?" then destination = nil end
if destination and destination ~= "@clip" and destinat... | Fix -? not working on the save command | Fix -? not working on the save command | Lua | mit | RamiLego4Game/LIKO-12 |
705f7e4c0da99c0529e0cc53d7824b696615f3df | packages/lime-proto-anygw/src/anygw.lua | packages/lime-proto-anygw/src/anygw.lua | #!/usr/bin/lua
local fs = require("nixio.fs")
local network = require("lime.network")
local libuci = require "uci"
anygw = {}
anygw.configured = false
function anygw.configure(args)
if anygw.configured then return end
anygw.configured = true
local ipv4, ipv6 = network.primary_address()
local anygw_mac = "aa:aa... | #!/usr/bin/lua
local fs = require("nixio.fs")
local network = require("lime.network")
local libuci = require "uci"
anygw = {}
anygw.configured = false
function anygw.configure(args)
if anygw.configured then return end
anygw.configured = true
local ipv4, ipv6 = network.primary_address()
local anygw_mac = "aa:aa... | lime-proto-anygw: dhcp-broadcast no longer needed | lime-proto-anygw: dhcp-broadcast no longer needed
Bug was fixed upstream, workaround no longer needed
http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2017q1/011326.html
Signed-off-by: Gui Iribarren <d6a7af134530254f6dae4886d160be8e6c6891c9@altermundi.net>
| Lua | agpl-3.0 | libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages |
8c666f3209e3bb0f858f8d6b4879dd6c8ec3f061 | lua/iq-lines-animate-one.lua | lua/iq-lines-animate-one.lua | -- Visualize IQ data from the HackRF
-- This loads one second of data and then visualizes it.
-- Currently segfaults.
VERTEX_SHADER = [[
#version 400
layout (location = 0) in vec3 vp;
layout (location = 1) in vec3 vn;
out vec3 color;
uniform mat4 uViewMatrix, uProjectionMatrix;
uniform float uTime;
void main() {
c... | -- Visualize a single sample
VERTEX_SHADER = [[
#version 400
layout (location = 0) in vec3 vp;
layout (location = 1) in vec3 vn;
layout (location = 2) in vec2 vt;
out vec3 color;
out vec2 texCoord;
uniform mat4 uViewMatrix, uProjectionMatrix;
uniform float uTime;
void main() {
color = vec3(1.0, 1.0, 1.0);
texC... | Fix iq-lines-animate-one. | Fix iq-lines-animate-one.
| Lua | mit | silky/frequensea,silky/frequensea,fdb/frequensea,fdb/frequensea,fdb/frequensea,fdb/frequensea,silky/frequensea,silky/frequensea,fdb/frequensea,silky/frequensea |
e3f30172b0d716f2ab7c95cebf3c8b24f618b59c | MMOCoreORB/bin/scripts/mobile/yavin4/serverobjects.lua | MMOCoreORB/bin/scripts/mobile/yavin4/serverobjects.lua | includeFile("yavin4/acklay.lua")
includeFile("yavin4/alert_droideka.lua")
includeFile("yavin4/ancient_mamien.lua")
includeFile("yavin4/angler_be.lua")
includeFile("yavin4/angler_hatchling.lua")
includeFile("yavin4/angler.lua")
includeFile("yavin4/angler_recluse.lua")
includeFile("yavin4/biogenic_assistant.lua")
include... | includeFile("yavin4/acklay.lua")
includeFile("yavin4/alert_droideka.lua")
includeFile("yavin4/ancient_mamien.lua")
includeFile("yavin4/angler_be.lua")
includeFile("yavin4/angler_hatchling.lua")
includeFile("yavin4/angler.lua")
includeFile("yavin4/angler_recluse.lua")
includeFile("yavin4/biogenic_assistant.lua")
include... | (unstable) [fixed] luke mission 1. | (unstable) [fixed] luke mission 1.
git-svn-id: e4cf3396f21da4a5d638eecf7e3b4dd52b27f938@5957 c3d1530f-68f5-4bd0-87dc-8ef779617e40
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2... |
060e6795a9720bee08bc03c6ef11fe4fc2556175 | MMOCoreORB/bin/scripts/mobile/corellia/tabage_scavenger.lua | MMOCoreORB/bin/scripts/mobile/corellia/tabage_scavenger.lua | tabage_scavenger = Creature:new {
objectName = "@mob/creature_names:tabage_scavenger",
socialGroup = "tabage",
pvpFaction = "",
faction = "",
level = 14,
chanceHit = 0.3,
damageMin = 140,
damageMax = 150,
baseXp = 714,
baseHAM = 1500,
baseHAMmax = 1900,
armor = 0,
resists = {10,10,0,0,0,0,0,-1,-1},
meatTy... | tabage_scavenger = Creature:new {
objectName = "@mob/creature_names:tabage_scavenger",
socialGroup = "tabage",
pvpFaction = "",
faction = "",
level = 14,
chanceHit = 0.3,
damageMin = 140,
damageMax = 150,
baseXp = 714,
baseHAM = 1500,
baseHAMmax = 1900,
armor = 0,
resists = {10,10,0,0,0,0,0,-1,-1},
meatTy... | [fixed] mantis 4304 added meat/hide/bone resources to tabage scavenger | [fixed] mantis 4304 added meat/hide/bone resources to tabage scavenger
Change-Id: If0ddf269507bf9eb3164b4dfbb93ef5615558773
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/lege... |
d50da4c1f8a4f765b1af411596bb74da96bd0dd0 | lua/job.lua | lua/job.lua | local _M = {
_VERSION = "1.9.0"
}
local lock = require "resty.lock"
local shdict = require "shdict"
local JOBS = shdict.new("jobs")
local ipairs = ipairs
local update_time = ngx.update_time
local ngx_now = ngx.now
local worker_exiting = ngx.worker.exiting
local timer_at = ngx.timer.at
local ngx_log = ngx.log
loca... | local _M = {
_VERSION = "2.2.1"
}
local lock = require "resty.lock"
local shdict = require "shdict"
local JOBS = shdict.new("jobs")
local ipairs = ipairs
local update_time = ngx.update_time
local ngx_now = ngx.now
local worker_exiting = ngx.worker.exiting
local timer_at = ngx.timer.at
local ngx_log = ngx.log
loca... | fix job clean method | fix job clean method
| Lua | bsd-2-clause | ZigzagAK/nginx-resty-auto-healthcheck-config,ZigzagAK/nginx-resty-auto-healthcheck-config |
25d37c999394d1ad69e6c43e996d5ae372de98c6 | rbm-grads.lua | rbm-grads.lua | grads = {}
ProFi = require('ProFi')
-- Calculate generative weights
-- tcwx is tcwx = torch.mm( x,rbm.W:t() ):add( rbm.c:t() )
function grads.generative(rbm,x,y,tcwx,chx,chy)
local visx_rnd, visy_rnd, h0, h0_rnd,ch_idx
h0 = sigm( torch.add(tcwx, torch.mm(y,rbm.U:t() ) ) ) -- UP
if rbm.tra... | grads = {}
ProFi = require('ProFi')
-- Calculate generative weights
-- tcwx is tcwx = torch.mm( x,rbm.W:t() ):add( rbm.c:t() )
function grads.generative(rbm,x,y,tcwx,chx,chy)
local visx_rnd, visy_rnd, h0, h0_rnd,ch_idx
h0 = sigm( torch.add(tcwx, torch.mm(y,rbm.U:t() ) ) ) -- UP
-- Switch ... | fix PCD chains not being updated | fix PCD chains not being updated
| Lua | bsd-3-clause | elezar/rbm_toolbox_lua,skaae/rbm_toolbox_lua |
2c8bab159831828d56054488e55a3874de92bb7f | mod_carbons/mod_carbons.lua | mod_carbons/mod_carbons.lua | -- XEP-0280: Message Carbons implementation for Prosody
-- Copyright (C) 2011 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local xmlns_carbons = "urn:xmpp:carbons:1";
local xmlns_forward = "urn:xmpp:forward:0";
local host_sessions = hosts[... | -- XEP-0280: Message Carbons implementation for Prosody
-- Copyright (C) 2011 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local xmlns_carbons = "urn:xmpp:carbons:1";
local xmlns_forward = "urn:xmpp:forward:0";
local host_sessions = hosts[... | mod_carbons: Fix handling of messages from remote hosts | mod_carbons: Fix handling of messages from remote hosts
| Lua | mit | brahmi2/prosody-modules,dhotson/prosody-modules,crunchuser/prosody-modules,apung/prosody-modules,mmusial/prosody-modules,olax/prosody-modules,Craige/prosody-modules,vfedoroff/prosody-modules,guilhem/prosody-modules,cryptotoad/prosody-modules,olax/prosody-modules,vfedoroff/prosody-modules,obelisk21/prosody-modules,NSAKE... |
977b7827f9eb14d43890afe9c1e423fba55fbb95 | spec/02-integration/03-admin_api/06-cluster_routes_spec.lua | spec/02-integration/03-admin_api/06-cluster_routes_spec.lua | local helpers = require "spec.helpers"
local cjson = require "cjson"
describe("Admin API", function()
local client
setup(function()
helpers.kill_all()
helpers.prepare_prefix()
assert(helpers.start_kong())
client = helpers.admin_client()
end)
teardown(function()
if client then
client:... | local helpers = require "spec.helpers"
local cjson = require "cjson"
describe("Admin API", function()
local client
setup(function()
helpers.kill_all()
helpers.prepare_prefix()
assert(helpers.start_kong())
client = helpers.admin_client()
end)
teardown(function()
if client then
client:... | fix(tests) use 'kill' module for 'is_running()' helper in cluster specs | fix(tests) use 'kill' module for 'is_running()' helper in cluster specs
| Lua | apache-2.0 | beauli/kong,icyxp/kong,Kong/kong,Vermeille/kong,ccyphers/kong,salazar/kong,Kong/kong,Mashape/kong,akh00/kong,Kong/kong,li-wl/kong,shiprabehera/kong,jerizm/kong,jebenexer/kong |
34a42a4a540068d9892544241cc5826392ff3d3c | src/lua/export/html.lua | src/lua/export/html.lua | -- © 2008 David Given.
-- WordGrinder is licensed under the MIT open source license. See the COPYING
-- file in this distribution for the full text.
-----------------------------------------------------------------------------
-- The exporter itself.
local function unhtml(s)
s = s:gsub("&", "&")
s = s:gsub("<",... | -- © 2008 David Given.
-- WordGrinder is licensed under the MIT open source license. See the COPYING
-- file in this distribution for the full text.
-----------------------------------------------------------------------------
-- The exporter itself.
local function unhtml(s)
s = s:gsub("&", "&")
s = s:gsub("<",... | Emit poor-man's XHTML (minus the doctype, because it makes XML tools sad); fix bug where ul and /ul where being generated in the wrong place. | Emit poor-man's XHTML (minus the doctype, because it makes XML tools sad);
fix bug where ul and /ul where being generated in the wrong place.
| Lua | mit | rodoviario/wordgrinder,Munchotaur/wordgrinder,NRauh/wordgrinder,rodoviario/wordgrinder,Munchotaur/wordgrinder,NRauh/wordgrinder |
e2b3155cc136d19e5b6dad1f88dd5905560535e2 | modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | --[[
LuCI - Lua Configuration Interface
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.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | --[[
LuCI - Lua Configuration Interface
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.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | Fix behaviour of dynamicdhcp field (thanks to Fabio Mercuri) | Fix behaviour of dynamicdhcp field (thanks to Fabio Mercuri)
| Lua | apache-2.0 | deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci |
6e211474c96d75a878c2cf15991828789047bdf3 | otouto/plugins/amazon_cleaner.lua | otouto/plugins/amazon_cleaner.lua | local cln_amzn = {}
cln_amzn.triggers = {
'amazon.(%w+)/gp/product/(.+)/(.+)',
'amazon.(%w+)/gp/product/(.+)%?(.+)',
'amazon.(%w+)/dp/(.+)/(.+)',
'amazon.(%w+)/dp/(.+)%?(.+)',
'amzn.to/(.+)'
}
function cln_amzn:action(msg, config, matches)
if #matches == 1 then
local request_constructor = {
url =... | local cln_amzn = {}
cln_amzn.triggers = {
'amazon.(%w+)/gp/product/(.+)/(.+)',
'amazon.(%w+)/gp/product/(.+)%?(.+)',
'amazon.(%w+)/dp/(.+)/(.+)',
'amazon.(%w+)/dp/(.+)%?(.+)',
'amzn.to/(.+)'
}
function cln_amzn:action(msg, config, matches)
if #matches == 1 then
local request_constructor = {
url =... | Fixe Amazon-Plugin mit einigen URLs (warum hat Amazon so verdammt viele verschiedene Produkt-URLs?) | Fixe Amazon-Plugin mit einigen URLs (warum hat Amazon so verdammt viele verschiedene Produkt-URLs?)
| Lua | agpl-3.0 | Brawl345/Brawlbot-v2 |
c0d572a64abfc1b977d3162df809f0f5994b00da | BtEvaluator/category.lua | BtEvaluator/category.lua | --- .
-- @module CategoryManager
local CustomEnvironment = Utils.CustomEnvironment
local Logger = Utils.Debug.Logger
local UnitCategories = Utils.UnitCategories
local ProjectManager = Utils.ProjectManager
local categories = {}
local CategoryManager = {}
function CategoryManager.loadCategory(...)
local categoryData,... | --- .
-- @module CategoryManager
local CustomEnvironment = Utils.CustomEnvironment
local Logger = Utils.Debug.Logger
local UnitCategories = Utils.UnitCategories
local ProjectManager = Utils.ProjectManager
local categories = {}
local CategoryManager = {}
function CategoryManager.loadCategory(...)
local categoryData,... | Fixed infinite recursion during CategoryManager.reload. | Fixed infinite recursion during CategoryManager.reload.
| Lua | mit | MartinFrancu/BETS |
643b9df7b3bbbdf8f6dff4fef153177db88c13c7 | test/src/testLoader.lua | test/src/testLoader.lua | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- 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, ... | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- 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, ... | Fix tests | Fix tests
| Lua | mit | Zefiros-Software/ZPM |
94c4d72a06625a340165e3fbe1d366b0a3f42db1 | deps/coro-channel.lua | deps/coro-channel.lua | exports.name = "creationix/coro-channel"
exports.version = "1.0.3"
-- Given a raw uv_stream_t userdara, return coro-friendly read/write functions.
-- Given a raw uv_stream_t userdara, return coro-friendly read/write functions.
function exports.wrapStream(socket)
local paused = true
local queue = {}
local waiting... | exports.name = "creationix/coro-channel"
exports.version = "1.0.4"
-- Given a raw uv_stream_t userdara, return coro-friendly read/write functions.
-- Given a raw uv_stream_t userdara, return coro-friendly read/write functions.
function exports.wrapStream(socket)
local paused = true
local queue = {}
local waiting... | Import coro-channel fixes from rye | Import coro-channel fixes from rye
| Lua | apache-2.0 | zhaozg/lit,kidaa/lit,luvit/lit,DBarney/lit,lduboeuf/lit,squeek502/lit,1yvT0s/lit,james2doyle/lit,kaustavha/lit |
5e0314a578fb81e79361b739d477f835738b6bc9 | lib/switchboard_modules/lua_script_debugger/premade_scripts/7b_log_voltage_to_file_wifi.lua | lib/switchboard_modules/lua_script_debugger/premade_scripts/7b_log_voltage_to_file_wifi.lua | print("Log voltage to file. Voltage measured on AIN1 every 50ms. Store values every 5 seconds")
--Requires micro SD Card installed inside the T7 or T7-Pro.
--Requires FW 1.0150 or newer.
--This example is for logging to file while using WiFi, since WiFi needs 5s or more to initialize
--without comm. to/from the uSD c... | --[[
Name: 7b_log_voltage_to_file_wifi.lua
Desc: This example shows how to log voltage measurements to file if
communicating over WiFi (WiFi needs 5s or more to initialize)
without comm
Note: Requires an SD Card installed inside the T7 or T7-Pro
This example requires firmware 1.0282 (T7... | Fixed up the formatting of the voltage logging over WiFi example | Fixed up the formatting of the voltage logging over WiFi example
| Lua | mit | chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.