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
7ad676e5bf506c900564ff28080d5114f3c222a3
wow/30-FontString-Text.lua
wow/30-FontString-Text.lua
require "wow/Frame"; require "rainback/AnchoredBound"; require "rainback/Graphics"; local Delegate = OOP.Class(); function Delegate:Constructor(frame) self.frame = frame; self.text = ""; self.font = Rainback.Font(); self.color = {0, 0, 0, 1}; frame:OnDelegateSet(function(category, delegate) ...
require "wow/Frame"; require "rainback/AnchoredBound"; require "rainback/Graphics"; local Delegate = OOP.Class(); function Delegate:Constructor(frame) self.frame = frame; self.text = ""; self.font = Rainback.Font(); self.color = {0, 0, 0, 1}; frame:OnDelegateSet(function(category, delegate) ...
Fix a lingering bug in FontString
Fix a lingering bug in FontString
Lua
mit
Thonik/rainback
32d54ef9a3e786b6dfb11994e53db5448e32f078
tests/lua/scope.lua
tests/lua/scope.lua
local env = environment() local l = param_univ("l") local nat = Const("nat") local real = Const("real") local one = Const("one") local Ul = mk_sort(l) local lst_l = Const("lst", {l}) local vec_l = Const("vec", {l}) local mat_l = Const("mat", {l}) local A = Local("A", Ul) local n = Local...
local env = environment() local l = param_univ("l") local nat = Const("nat") local real = Const("real") local one = Const("one") local Ul = mk_sort(l) local lst_l = Const("lst", {l}) local vec_l = Const("vec", {l}) local mat_l = Const("mat", {l}) local A = Local("A", Ul) local n = Local...
fix(tests/lua): remove os.exit(0), it does not work if it is executed in the scope of a lock
fix(tests/lua): remove os.exit(0), it does not work if it is executed in the scope of a lock Signed-off-by: Leonardo de Moura <7610bae85f2b530654cc716772f1fe653373e892@microsoft.com>
Lua
apache-2.0
rlewis1988/lean,fgdorais/lean,fpvandoorn/lean2,avigad/lean,rlewis1988/lean,leanprover-community/lean,fpvandoorn/lean,javra/lean,htzh/lean,johoelzl/lean,fgdorais/lean,avigad/lean,soonhokong/lean-osx,htzh/lean,Kha/lean,soonhokong/lean,fpvandoorn/lean,avigad/lean,soonhokong/lean-windows,dselsam/lean,eigengrau/lean,javra/l...
5203c1f0cd453082add7d251d1a732033564a62d
premake4.lua
premake4.lua
function copy(src, dst, always) local action = "python" local script = "\"" .. path.join(os.getcwd(), "copy-data.py") .. "\"" src = "\"" .. src .. "\"" dst = "\"" .. dst .. "\"" cwd = "\"" .. os.getcwd() .. "\"" postbuildcommands { action .. " " .. script .. " " .. cwd .. " " .. src .. " " .. dst .. " " ....
function copy(src, dst, always) local action = "python" local script = "\"" .. path.join(os.getcwd(), "copy-data.py") .. "\"" src = "\"" .. src .. "\"" dst = "\"" .. dst .. "\"" cwd = "\"" .. os.getcwd() .. "\"" postbuildcommands { action .. " " .. script .. " " .. cwd .. " " .. src .. " " .. dst .. " " ....
Fix premake.lua
Fix premake.lua
Lua
bsd-3-clause
bmteam/blowmorph,bmteam/blowmorph,bmteam/blowmorph,bmteam/blowmorph,bmteam/blowmorph
72035316c7141c4147f2b67508b4817e9d045c40
premake4.lua
premake4.lua
-- -- Premake4 build script (http://industriousone.com/premake/download) -- solution 'WinsockExamples' configurations {'Debug', 'Release'} language 'C++' flags {'ExtraWarnings'} targetdir 'bin' configuration 'Debug' defines { 'DEBUG' } flags { 'Symbols' } configuration 'Releas...
-- -- Premake4 build script (http://industriousone.com/premake/download) -- solution 'WinsockExamples' configurations {'Debug', 'Release'} language 'C++' flags {'ExtraWarnings'} targetdir 'bin' configuration 'Debug' defines { 'DEBUG' } flags { 'Symbols' } configuration 'Releas...
fix building script
fix building script
Lua
apache-2.0
ichenq/WinsockTut,ichenq/WinsockTut,ichenq/WinsockTut
b166041f15531079c6dd6a0ecd6b14c788a80a8e
contrib/scripts/autoprop.lua
contrib/scripts/autoprop.lua
-- Automatically create a winprop for the WClientWin given. -- Basic functionality by pinko -- Extended by Etan Reisner <deryni@gmail.com> -- kpress(META.."W", "autoprop(_sub, _, false)", "_sub:WClientWin") -- kpress(MOD4.."W", "autoprop(_sub, _, true)", "_sub:WClientWin") -- Use autoprop(_sub, nil, X) to remove a wi...
-- Automatically create a winprop for the WClientWin given. -- Basic functionality by pinko -- Extended by Etan Reisner <deryni@gmail.com> --defbindings("WFrame", { ---- add winprop permanentlu -- kpress(META.."W", "autoprop(_sub, _, true)", "_sub:WGroupCW"), ---- add winprop for this session only -- kpress(META...
improve/bugfix autoprop.lua
improve/bugfix autoprop.lua
Lua
lgpl-2.1
raboof/notion,knixeur/notion,neg-serg/notion,dkogan/notion.xfttest,p5n/notion,anoduck/notion,anoduck/notion,p5n/notion,dkogan/notion.xfttest,p5n/notion,dkogan/notion.xfttest,anoduck/notion,neg-serg/notion,knixeur/notion,raboof/notion,neg-serg/notion,dkogan/notion,anoduck/notion,dkogan/notion,knixeur/notion,dkogan/notio...
e8c4ec22bfc233a9bf756ed30042b76e42197431
premake4.lua
premake4.lua
local action = _ACTION or "" solution "nanovg" location ( "build" ) configurations { "Debug", "Release" } platforms {"native", "x64", "x32"} project "nanovg" language "C" kind "StaticLib" includedirs { "src" } files { "src/*.c" } targetdir("build") project "example_gl2" kind "ConsoleApp" lan...
local action = _ACTION or "" solution "nanovg" location ( "build" ) configurations { "Debug", "Release" } platforms {"native", "x64", "x32"} project "nanovg" language "C" kind "StaticLib" includedirs { "src" } files { "src/*.c" } targetdir("build") project "example_gl2" kind "ConsoleApp" lan...
Fix issue #10
Fix issue #10 - link to framework CoreVideo on OSX, fixes compiling on OSX 10.9
Lua
bsd-3-clause
dleslie/nanovg-egg
814e8cc95ef89e04d79eb07e667334fb0e4552bc
mods/00_bt_messages/00_bt_important_messages/init.lua
mods/00_bt_messages/00_bt_important_messages/init.lua
local MESSAGE_INTERVAL = 300 local mod_storage = minetest.get_mod_storage() important_message = {} important_message.message = mod_storage:get_string("message") function important_message.display_message() if important_message.message and important_message.message ~= "" then local msg = string.char(0x1b).."(c@#00f...
local MESSAGE_INTERVAL = 300 local mod_storage = minetest.get_mod_storage() important_message = {} important_message.message = mod_storage:get_string("message") function important_message.display_message() if important_message.message and important_message.message ~= "" then local msg = string.char(0x1b).."(c@#00f...
Fixed missing privilege registration
Fixed missing privilege registration
Lua
lgpl-2.1
evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy
083c56f47c82113fad4f6453d25d84b303002956
vi_complete.lua
vi_complete.lua
-- Implement word completion (with ctrl-p/ctrl-n) in insert mode. local M = {} local vi_tags = require('vi_tags') -- update the display from the current word after moving. local function update_word() -- Save and restore the selection local pos = M.state.pos local listpos = M.state.listpos local sel_st...
-- Implement word completion (with ctrl-p/ctrl-n) in insert mode. local M = {} local vi_tags = require('vi_tags') -- update the display from the current word after moving. local function update_word() local pos = M.state.pos local listpos = M.state.listpos local sel_start = M.state.wordstart local sel_...
Fix ctrl-p/ctrl-n when in the middle of a word.
Fix ctrl-p/ctrl-n when in the middle of a word.
Lua
mit
jugglerchris/textadept-vi,jugglerchris/textadept-vi
a3f1590de8254324b6950dcf53ab2d3178a0b337
kong/concurrency.lua
kong/concurrency.lua
local resty_lock = require "resty.lock" local ngx_semaphore = require "ngx.semaphore" local concurrency = {} -- these must remain for the lifetime of the process local semaphores = {} function concurrency.with_worker_mutex(opts, fn) if type(opts) ~= "table" then error("opts must be a table", 2) end if t...
local resty_lock = require "resty.lock" local ngx_semaphore = require "ngx.semaphore" local get_phase = ngx.get_phase local concurrency = {} -- these must remain for the lifetime of the process local semaphores = {} function concurrency.with_worker_mutex(opts, fn) if type(opts) ~= "table" then error("opts...
fix(concurrency) support with_coroutine_mutex in init_worker
fix(concurrency) support with_coroutine_mutex in init_worker Support the use of `concurrency.with_coroutine_mutex` in `init_worker` by simply running the callback and not locking: during `init_worker` only one Lua coroutine is active as it has not yet started spinning up other coroutines for requests and timers. This...
Lua
apache-2.0
Kong/kong,Mashape/kong,Kong/kong,Kong/kong
3d85439ade6ad241db8990ac7132f467cb5d9e32
src/move.lua
src/move.lua
function getTile(index) return game.players[index].surface.get_tile(game.players[index].position.x,game.players[index].position.y) end function getDirectiveEntity(index) position = {game.players[index].position.x, game.players[index].position.y} local list = {"left","down","up","right","accelerator_charger"} f...
function getTile(index) return game.players[index].surface.get_tile(game.players[index].position.x,game.players[index].position.y) end function getDirectiveEntity(index) position = {game.players[index].position.x, game.players[index].position.y} local list = {"left","down","up","right","accelerator_charger"} f...
make charging work again and eliminate a weird bug with arrows that caused a change in direction when charge is 0
make charging work again and eliminate a weird bug with arrows that caused a change in direction when charge is 0
Lua
mit
kiba/Factorio-MagneticFloor,kiba/Factorio-MagneticFloor
3d363876668d13f75cb04d070c77d5b66762ce9d
src/blend/src/Client/Test/BlendComputePairs.story.lua
src/blend/src/Client/Test/BlendComputePairs.story.lua
--- -- @module Blend.story -- @author Quenty local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).load(script) local RunService = game:GetService("RunService") local Blend = require("Blend") local Maid = require("Maid") return function(target) local maid = Maid...
--- -- @module Blend.story -- @author Quenty local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).load(script) local Blend = require("Blend") local Maid = require("Maid") return function(target) local maid = Maid.new() local state = Blend.State({"a", "b", "c"}...
style: Fix linting
style: Fix linting
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
467cff36c75ccac0f65170340da4a66448e622fb
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 sprid = "spritesheet" local codeid = "luacode" local tileid = "tilemap" local diskdata = eapi:export() diskdata = loadstring(d...
--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 sprid = "spritesheet" local codeid = "luacode" local tileid = "tilemap" local diskdata = eapi:export() diskdata = loadstring(d...
Bugfixed spritesheet loading (Sorry for that :P)
Bugfixed spritesheet loading (Sorry for that :P)
Lua
mit
RamiLego4Game/LIKO-12
fcb300cf07bf03b924fd9766adc5cff0f838593d
CosineDistance.lua
CosineDistance.lua
local CosineDistance, parent = torch.class('nn.CosineDistance', 'nn.Module') function CosineDistance:__init() parent.__init(self) self.gradInput = {torch.Tensor(), torch.Tensor()} end function CosineDistance:updateOutput(input) local input1, input2 = input[1], input[2] if input1:dim() == 1 then i...
local CosineDistance, parent = torch.class('nn.CosineDistance', 'nn.Module') function CosineDistance:__init() parent.__init(self) self.gradInput = {torch.Tensor(), torch.Tensor()} end function CosineDistance:updateOutput(input) local input1, input2 = input[1], input[2] if input1:dim() == 1 then i...
Optimizations plus bugfix
Optimizations plus bugfix
Lua
bsd-3-clause
nicholas-leonard/nn,sbodenstein/nn,jhjin/nn,clementfarabet/nn,ivendrov/nn,Djabbz/nn,caldweln/nn,lukasc-ch/nn,bartvm/nn,andreaskoepf/nn,witgo/nn,eriche2016/nn,zhangxiangxiao/nn,Aysegul/nn,abeschneider/nn,aaiijmrtt/nn,ominux/nn,elbamos/nn,davidBelanger/nn,mlosch/nn,eulerreich/nn,jzbontar/nn,GregSatre/nn,colesbury/nn,kmul...
4660c83743f3f6962a17d77d1738536c48ec23b4
tests/test_request.lua
tests/test_request.lua
package.path = package.path .. ';../?.lua' local Request = require 'lib/request' describe('require', function() function getInstance(headers) local err = {nil, nil, nil, nil, nil, 'error'} local param = { receive = function() return headers[1], err[1] end ...
package.path = package.path .. ';../?.lua' local Request = require 'lib/request' describe('require', function() function getInstance(headers) local err = {nil, nil, nil, nil, nil, 'error'} local param = { receive = function() return headers[1], err[1] end ...
fixed problem with tab
fixed problem with tab
Lua
mit
EvandroLG/pegasus.lua,dieseltravis/pegasus.lua
0d0154f66bdda50b40846491cfc9c63a8c0f9311
prosody-modules/mod_auth_external.lua
prosody-modules/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...
Work around the `mod_auth_external.lua` echo bug
Work around the `mod_auth_external.lua` echo bug Thanks to Damien Fetis and his patch in https://prosody.im/issues/issue/855 Does not currently work with non-blocking I/O, so do **not** enable `use_libevent = true;` in your `/etc/prosody/prosody.cfg.lua` when running prosody-trunk. I hope Damien will be able to find ...
Lua
mit
jsxc/xmpp-cloud-auth,jsxc/xmpp-cloud-auth,jsxc/xmpp-cloud-auth,jsxc/xmpp-cloud-auth
fae5cdbcacba7a0ed3683867e2b8c0c2ea76e8e9
fusion/core/lexer.lua
fusion/core/lexer.lua
local re = require("re"); local defs = {} local current_file; defs['true'] = function() return true end defs['false'] = function() return false end defs['bool'] = function(...) return defs[(...)]() end defs['numberify'] = tonumber defs.print = print defs.incomplete_statement = function(pos, char) local line = 1 l...
local re = require("re"); local defs = {} local current_file; defs['true'] = function() return true end defs['false'] = function() return false end defs['bool'] = function(...) return defs[(...)]() end defs['numberify'] = tonumber defs.print = print defs.incomplete_statement = function(pos, char) local line = 1 l...
lexer: fix blcok type and remove `:` token in method definition
lexer: fix blcok type and remove `:` token in method definition
Lua
mit
RyanSquared/FusionScript
9b0a839130b657963cfc72d68f7d051fbceb9a2f
modules/tollpost.lua
modules/tollpost.lua
local ev = require'ev' local util = require'util' local simplehttp = util.simplehttp local json = util.json local apiurl = 'http://www.tollpost.no/XMLServer/rest/trackandtrace/%s' local duration = 60 if(not ivar2.timers) then ivar2.timers = {} end -- Abuse the ivar2 global to store out ephemeral event data until we ...
local ev = require'ev' local util = require'util' local simplehttp = util.simplehttp local json = util.json local apiurl = 'http://www.tollpost.no/XMLServer/rest/trackandtrace/%s' local duration = 60 if(not ivar2.timers) then ivar2.timers = {} end -- Abuse the ivar2 global to store out ephemeral event data until we ...
tollpost: Remove trailing whitespaces and fix mixed indent.
tollpost: Remove trailing whitespaces and fix mixed indent.
Lua
mit
torhve/ivar2,torhve/ivar2,haste/ivar2,torhve/ivar2
b7f5185b40f10c87d978db378ee2782a414c8d70
Normalize.lua
Normalize.lua
local Normalize, parent = torch.class('nn.Normalize', 'nn.Module') function Normalize:__init(p,eps) parent.__init(self) assert(p,'p-norm not provided') assert(p > 0, p..'-norm not supported') self.p = p self.eps = eps or 1e-10 end function Normalize:updateOutput(input) assert(input:dim() <= 2, 'only 1d la...
local Normalize, parent = torch.class('nn.Normalize', 'nn.Module') function Normalize:__init(p,eps) parent.__init(self) assert(p,'p-norm not provided') assert(p > 0, p..'-norm not supported') self.p = p self.eps = eps or 1e-10 end function Normalize:updateOutput(input) assert(input:dim() <= 2, 'only 1d la...
fixing nn.Normalize for new cutorch types
fixing nn.Normalize for new cutorch types
Lua
bsd-3-clause
colesbury/nn,nicholas-leonard/nn,apaszke/nn,eriche2016/nn,joeyhng/nn,sagarwaghmare69/nn,kmul00/nn
58fc97025dfe874d9daaeed0267cfbb35f535603
parts/main.lua
parts/main.lua
local lua = require "lapis.lua" local lapis = require "lapis.init" local lapis_application = require "lapis.application" local respond_to = lapis_application.respond_to local yield_error = lapis_application.yield_error local capture_errors = lapis_application.capture_errors local lapis_validate = require "lapis.valid...
local lua = require "lapis.lua" local lapis = require "lapis.init" local lapis_application = require "lapis.application" local respond_to = lapis_application.respond_to local yield_error = lapis_application.yield_error local capture_errors = lapis_application.capture_errors local lapis_validate = require "lapis.valid...
page titles - fix #6
page titles - fix #6
Lua
mit
catwell/lua-toolbox
90876a80700d2282fa1b9a062bd76e55772c004e
lua-ubjson/ubjson.lua
lua-ubjson/ubjson.lua
--local _ENV = nil -- blocking globals in Lua 5.2 local math = require 'math' local ubjson = { version = 'lua-ubjson 0.1' } local pow2 = function(v) local out = 1 for i = 0, v do -- Use floats, since this may end up very large. out = out * 2.0 end return out end -- Mapping from maximum value -> ubjs...
--local _ENV = nil -- blocking globals in Lua 5.2 local math = require 'math' local ubjson = { version = 'lua-ubjson 0.1' } local pow2 = function(v) local out = 1 for i = 0, v do -- Use floats, since this may end up very large. out = out * 2.0 end return out end -- Mapping from maximum value -> ubjs...
Fix depth of error message.
Fix depth of error message.
Lua
apache-2.0
tobinsarah/tenshi,jessicakam/tenshi,tobinsarah/tenshi,cduck/tenshi,jarzofjam/tenshi,tobinsarah/tenshi,chuen0630/tenshi,JaronArmiger/tenshi,JaronArmiger/tenshi,jarzofjam/tenshi,SamboyKirk/tenshi,pioneers/tenshi,hozhu123/tenshi,tobinsarah/tenshi,abhishyantkhare/tenshi,SamboyKirk/tenshi,cduck/tenshi,tobinsarah/tenshi,zent...
e07bd8b2c7e95cb3fd4632c693b2915f64f53e0d
ssbase/gamemode/storeitems/accessories/tails_feline.lua
ssbase/gamemode/storeitems/accessories/tails_feline.lua
ITEM.ID = "tails_feline" -- Should be a unique string that identifies the item ITEM.Name = "Tail (Cat)" -- The name the item should display ITEM.Price = 2000 ITEM.Model = "models/mrgiggles/skeyler/accessories/tails_feline.mdl" -- Model used by the item ITEM.Type = "tail" -- Also works for...
ITEM.ID = "tails_feline" -- Should be a unique string that identifies the item ITEM.Name = "Tail (Cat)" -- The name the item should display ITEM.Price = 2000 ITEM.Model = "models/mrgiggles/skeyler/accessories/tails_feline.mdl" -- Model used by the item ITEM.Type = "tail" -- Also works for...
Possible fix for spazzy tail
Possible fix for spazzy tail
Lua
bsd-3-clause
T3hArco/skeyler-gamemodes
a70686aa48edfba30b238fe996e3bd6632ae1d91
scripts/texturec.lua
scripts/texturec.lua
-- -- Copyright 2010-2015 Branimir Karadzic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- project "texturec" uuid "838801ee-7bc3-11e1-9f19-eae7d36e7d26" kind "ConsoleApp" defines { "ENTRY_CONFIG_PROFILER=0", } includedirs { path.join(BX_DIR, "include"), path.join(BGF...
-- -- Copyright 2010-2015 Branimir Karadzic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- project "texturec" uuid "838801ee-7bc3-11e1-9f19-eae7d36e7d26" kind "ConsoleApp" includedirs { path.join(BX_DIR, "include"), path.join(BGFX_DIR, "include"), path.join(BGFX_DIR, "sr...
Fixed "fix"
Fixed "fix"
Lua
bsd-2-clause
Synxis/bgfx,bkaradzic/bgfx,0-wiz-0/bgfx,MikePopoloski/bgfx,jdryg/bgfx,Synxis/bgfx,aonorin/bgfx,MikePopoloski/bgfx,bkaradzic/bgfx,septag/bgfx,jpcy/bgfx,marco-we/bgfx,LWJGL-CI/bgfx,emoon/bgfx,0-wiz-0/bgfx,v3n/bgfx,mendsley/bgfx,jdryg/bgfx,fluffyfreak/bgfx,v3n/bgfx,fluffyfreak/bgfx,emoon/bgfx,bkaradzic/bgfx,mmicko/bgfx,bk...
f70ccfc0d207aaa504e44adc557c93c7a6aadc82
tests/proxymenu/proxymenu.lua
tests/proxymenu/proxymenu.lua
require "fmt" stead.proxy_prefix = '   ' local function proxy_wrap(nam, fwd) if not fwd then fwd = nam end return function(s, ...) local t local o = _(s.ref) local act = s.acts or { } act = act[nam] or nam local r, v = std.call(std.game, 'before_'..act, o, ...) t = std.par(std.scene_delim, t or false, r...
require "fmt" stead.proxy_prefix = '   ' local function proxy_wrap(nam, fwd) if not fwd then fwd = nam end return function(s, ...) local t local o = _(s.ref) local act = s.acts or { } act = act[nam] or nam local r, v = std.call(std.game, 'before_'..act, o, ...) t = std.par(std.scene_delim, t or false, r...
proxymenu disp fix
proxymenu disp fix
Lua
mit
gl00my/stead3
bdc57888fbd2c68f536fbc3336a1ac49c0c6693a
lua/plugins/init.lua
lua/plugins/init.lua
local nvim = require'nvim' local echoerr = require'tools'.messages.echoerr -- local load_module = require'tools'.helpers.load_module -- TODO: Add dynamic plugin load if nvim.has('nvim-0.5') then local plugins = { iron = { ok = false, status = false}, lsp = { ok = false, status = fal...
local nvim = require'nvim' local echoerr = require'tools'.messages.echoerr -- local load_module = require'tools'.helpers.load_module -- TODO: Add dynamic plugin load if nvim.has('nvim-0.5') then local plugins = { iron = { ok = false, status = false}, lsp = { ok = false, status = fal...
fix: remove dead code
fix: remove dead code
Lua
mit
Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim
5fcce8db2aeee016ab927c8ca36a715c02f982f9
example/custom.lua
example/custom.lua
function mean(vals) local sum=0 for i=1,#vals do sum = sum + vals[i] end return sum / #vals end function loc(chrom, start, stop) return chrom .. ":" .. start .. "-" .. stop end CLINVAR_LOOKUP = {} CLINVAR_LOOKUP['0'] = 'unknown' CLINVAR_LOOKUP['1'] = 'germline' CLINVAR_LOOKUP['2'] = 'somatic' CLINVAR_LOO...
function mean(vals) local sum=0 for i=1,#vals do sum = sum + vals[i] end return sum / #vals end function loc(chrom, start, stop) return chrom .. ":" .. start .. "-" .. stop end CLINVAR_LOOKUP = {} CLINVAR_LOOKUP['0'] = 'unknown' CLINVAR_LOOKUP['1'] = 'germline' CLINVAR_LOOKUP['2'] = 'somatic' CLINVAR_LOO...
fix clinvar code
fix clinvar code
Lua
mit
brentp/vcfanno,brentp/vcfanno,brentp/vcfanno
a169bcf354f3ac67aa5320c4fbf190859f408ded
kong/pdk/private/phases.lua
kong/pdk/private/phases.lua
local bit = require "bit" local band = bit.band local fmt = string.format local PHASES = { --init = 0x00000001, init_worker = 0x00000001, certificate = 0x00000002, --set = 0x00000004, rewrite = 0x00000010, access = 0x00000020, balancer = 0x00000040, --content ...
local bit = require "bit" local band = bit.band local fmt = string.format local ngx_get_phase = ngx.get_phase local PHASES = { --init = 0x00000001, init_worker = 0x00000001, certificate = 0x00000002, --set = 0x00000004, rewrite = 0x00000010, access = 0x00000020, balance...
fix(pdk) treat custom content blocks as the Admin API
fix(pdk) treat custom content blocks as the Admin API This is a small workaround to a problem that happens when any custom content_by_lua block attempts to use the PDK. For example, this happens when trying to hit the `/` endpoint of the metrics server of the Prometheus plugin: https://github.com/Kong/kong-plugin-pro...
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong,Mashape/kong
e6fd69d402142bb2e2513ff48b9dce421f624f11
applications/luci-wol/luasrc/model/cbi/wol.lua
applications/luci-wol/luasrc/model/cbi/wol.lua
--[[ LuCI - Lua Configuration Interface Copyright 2010 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 uc...
--[[ LuCI - Lua Configuration Interface Copyright 2010 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 uc...
applications/luci-wol: fix XSS
applications/luci-wol: fix XSS git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6545 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
744d292b8ecbc3bea733f91f3350a9d4c2437f38
.config/nvim/lua/config/tabline.lua
.config/nvim/lua/config/tabline.lua
local status_ok, p = pcall(require, "tabline") if not status_ok then return end p.setup({ enable = true, options = { show_filename_only = true, }, }) local lualine_status_ok, lualine = pcall(require, "lualine") if not lualine_status_ok then return end lualine.setup({ tabline = { lualine_a = {}, lualine_b...
local status_ok, p = pcall(require, "tabline") if not status_ok then return end p.setup({ enable = true, options = { show_filename_only = true, }, }) -- NOTE: tabline読み込み後に発火させる vim.api.nvim_create_autocmd({ "ModeChanged" }, { group = "_", once = true, callback = function() p.toggle_show_all_buffers() end...
[nvim] Fix tabline config
[nvim] Fix tabline config
Lua
mit
masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles
f0a0e503783d6571c1a0a90bf14e7531b2f2a176
libs/httpd/luasrc/httpd.lua
libs/httpd/luasrc/httpd.lua
--[[ HTTP server implementation for LuCI - core (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 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...
--[[ HTTP server implementation for LuCI - core (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 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...
* libs/httpd: Fixed garbage collection
* libs/httpd: Fixed garbage collection
Lua
apache-2.0
Wedmer/luci,dismantl/luci-0.12,zhaoxx063/luci,fkooman/luci,florian-shellfire/luci,LazyZhu/openwrt-luci-trunk-mod,wongsyrone/luci-1,thesabbir/luci,LazyZhu/openwrt-luci-trunk-mod,schidler/ionic-luci,chris5560/openwrt-luci,oneru/luci,joaofvieira/luci,NeoRaider/luci,shangjiyu/luci-with-extra,male-puppies/luci,marcel-sch/lu...
a6d0d430a3ab5a188dcefa48923e8318c6cbc4f2
map/text.lua
map/text.lua
text = {} local text = text text.skills = {} --技能表,以技能ID为索引 --以1秒为周期进行循环检查 timer.loop(1, function() local hero = game.self() local flag = jass.IsPlayerObserver(jass.GetLocalPlayer()) if hero then for i = 0, 99 do ...
text = {} local text = text text.skills = {} --技能表,以技能ID为索引 --以1秒为周期进行循环检查 timer.loop(1, function() local hero = game.self() if hero then for i = 0, 99 do local ab = japi.EXGetUnitAbilityByIndex(hero, i) ...
修正裁判会掉线的BUG
修正裁判会掉线的BUG
Lua
apache-2.0
syj2010syj/All-star-Battle
1b6246a3c1eb8a838d7656df996b5e89c1c3d99c
nvim/lua/user/ui.lua
nvim/lua/user/ui.lua
local filereadable_key = 'filereadable' local current_normal_winnr_key = 'current_normal_winnr' local function file_exists(name) local f = io.open(name, 'r') return f ~= nil and io.close(f) end local function update_filereadable() local path = vim.api.nvim_buf_get_name(0) if path ~= '' then vim.api.nvim_b...
local filereadable_key = 'filereadable' local current_normal_winnr_key = 'current_normal_winnr' local function file_exists(name) local f = io.open(name, 'r') return f ~= nil and io.close(f) end local function update_filereadable() local path = vim.api.nvim_buf_get_name(0) if path ~= '' then vim.api.nvim_b...
Fix for neovim 0.7.0
Fix for neovim 0.7.0
Lua
mit
creasty/dotfiles,creasty/dotfiles,creasty/dotfiles,creasty/dotfiles,creasty/dotfiles,creasty/dotfiles,creasty/dotfiles,creasty/dotfiles
bae3044fc23fa5716810c4ce4b7e91bbabb3a467
src_trunk/resources/killmessages/vgkillmessages_server.lua
src_trunk/resources/killmessages/vgkillmessages_server.lua
local config = { ["lines"] = 5, ["startY"] = 0.35, ["textHeight"] = 16, ["iconHeight"] = 20, ["iconSpacing"] = 4, ["defaultWeapon"] = 255, ["fadeTime"] = 5000, ["startFade"] = 15000, ["align"] = "right", ["startX"] = -10 } local default = { ["lines"] = 5, ["startY"] = 0.25, ["textHeight"] = 16, ["iconHe...
local config = { ["lines"] = 5, ["startY"] = 0.35, ["textHeight"] = 16, ["iconHeight"] = 20, ["iconSpacing"] = 4, ["defaultWeapon"] = 255, ["fadeTime"] = 5000, ["startFade"] = 15000, ["align"] = "right", ["startX"] = -10 } local default = { ["lines"] = 5, ["startY"] = 0.25, ["textHeight"] = 16, ["iconHe...
fix for killmessages
fix for killmessages git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1075 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
5e2040b2c5bd17d19de10de90fbda55afc52a8d9
Interface/AddOns/RayUI/mini/TooltipItemID/TooltipItemID.lua
Interface/AddOns/RayUI/mini/TooltipItemID/TooltipItemID.lua
local R, L, P = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, local local f = CreateFrame("Frame") f:RegisterEvent("ADDON_LOADED") f:SetScript("OnEvent", function(_, _, name) f:UnregisterEvent("ADDON_LOADED") f:SetScript("OnEvent", nil) end) local function addLine(self,id,isItem) for i = 1, self:NumL...
local R, L, P = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, local local f = CreateFrame("Frame") f:RegisterEvent("ADDON_LOADED") f:SetScript("OnEvent", function(_, _, name) f:UnregisterEvent("ADDON_LOADED") f:SetScript("OnEvent", nil) end) local function addLine(self,id,isItem) for i = 1, self:NumL...
fix
fix fix TradeSkillFrame Tooltip ItemID.Reference from BagSync
Lua
mit
fgprodigal/RayUI
363a8d84d6a979c91b0e1354735b6c4d5b73602a
hammerspoon/hammerspoon.symlink/modules/monitor-monitor.lua
hammerspoon/hammerspoon.symlink/modules/monitor-monitor.lua
local window,screen=require'hs.window',require'hs.screen' local application,spaces=require'hs.application',require'hs.spaces' local drawing,canvas=require'hs.drawing',require'hs.canvas' local uielement=require'hs.uielement' local fnutils=require'hs.fnutils' -- local serial = require("hs._asm.serial") local lastScreenI...
local window,screen=require'hs.window',require'hs.screen' local application,spaces=require'hs.application',require'hs.spaces' local drawing,canvas=require'hs.drawing',require'hs.canvas' local uielement=require'hs.uielement' local fnutils=require'hs.fnutils' -- local serial = require("hs._asm.serial") local lastScreenI...
fix(hammerspoon): calculate actual menubar height
fix(hammerspoon): calculate actual menubar height
Lua
mit
sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles
228f92472717fe0208f32b6f851bf33c5af1446e
premake4.lua
premake4.lua
if not _ACTION then _ACTION="vs2010" end solution "TaskScheduler" language "C++" location ( "Build/" .. _ACTION ) flags {"NoManifest", "ExtraWarnings", "StaticRuntime", "NoMinimalRebuild", "FloatFast", "EnableSSE2" } optimization_flags = { "OptimizeSpeed" } targetdir("Bin") local config_list = { ...
if not _ACTION then _ACTION="vs2010" end isVisualStudio = false if _ACTION == "vs2002" or _ACTION == "vs2003" or _ACTION == "vs2005" or _ACTION == "vs2008" or _ACTION == "vs2010" then isVisualStudio = true end solution "TaskScheduler" language "C++" location ( "Build/" .. _ACTION ) flags {"NoM...
fixed premake4.lua for correct codeblocks support
fixed premake4.lua for correct codeblocks support
Lua
mit
galek/TaskScheduler,SergeyMakeev/TaskScheduler,vr3d/TaskScheduler,galek/TaskScheduler,SergeyMakeev/TaskScheduler,vr3d/TaskScheduler,galek/TaskScheduler,vr3d/TaskScheduler
a0b7176ef321b2b2b315c1bd9251a89ab359a8d1
lua/mp_menu/volume_control.lua
lua/mp_menu/volume_control.lua
local math = math local ceil = math.ceil local clamp = math.Clamp local surface = surface local color_white = color_white local PANEL = {} PANEL.Margin = 16 PANEL.ButtonWidth = 18 PANEL.ButtonSpacing = 8 PANEL.BackgroundColor = Color( 28, 100, 157 ) function PANEL:Init() self.BaseClass.Init( self ) self.VolumeB...
local math = math local ceil = math.ceil local clamp = math.Clamp local surface = surface local color_white = color_white local PANEL = {} PANEL.Margin = 16 PANEL.ButtonWidth = 18 PANEL.ButtonSpacing = 8 PANEL.BackgroundColor = Color( 28, 100, 157 ) function PANEL:Init() self.BaseClass.Init( self ) self.VolumeB...
Fixed lua error for queue management buttons.
Fixed lua error for queue management buttons.
Lua
mit
pixeltailgames/gm-mediaplayer,pixeltailgames/gm-mediaplayer
5b55d75d8ddfae8bd3303297e67047217d5b844b
readline.lua
readline.lua
-- Very basic FFI interface to readline, -- with history saving/restoring -- local ffi = require 'ffi' local assert = assert local cocreate, coresume, costatus = coroutine.create, coroutine.resume, coroutine.status local readline = {} ffi.cdef[[ /* libc definitions */ void* malloc(size_t bytes); void free(void *); /*...
-- Very basic FFI interface to readline, -- with history saving/restoring -- local ffi = require 'ffi' local assert = assert local cocreate, coresume, costatus = coroutine.create, coroutine.resume, coroutine.status local readline = {} ffi.cdef[[ /* libc definitions */ void* malloc(size_t bytes); void free(void *); /*...
fixed READLINE on Linux.
fixed READLINE on Linux.
Lua
bsd-3-clause
hughperkins/trepl,colesbury/trepl,torch/trepl,ninjin/trepl,zhengwy888/trepl
782a734e924d2173862a5b335fa755b4b73c27b0
WzComparerR2.LuaConsole/Examples/DumpImages.lua
WzComparerR2.LuaConsole/Examples/DumpImages.lua
import 'WzComparerR2.PluginBase' import 'WzComparerR2.WzLib' import 'System.IO' import 'System.Xml' ------------------------------------------------------------ local function enumAllWzNodes(node) return coroutine.wrap(function() coroutine.yield(node) for _,v in each(node.Nodes) do for child in enum...
import 'WzComparerR2.PluginBase' import 'WzComparerR2.WzLib' import 'System.IO' import 'System.Xml' ------------------------------------------------------------ local function enumAllWzNodes(node) return coroutine.wrap(function() coroutine.yield(node) for _,v in each(node.Nodes) do for child in enum...
LuaConsole: fix filename bug in example script.
LuaConsole: fix filename bug in example script.
Lua
mit
Kagamia/WzComparerR2,KENNYSOFT/WzComparerR2
9e43697a4a69aa3b70c9f7db59f2e3eed6735a5c
App/NevermoreEngineLoader.lua
App/NevermoreEngineLoader.lua
--- This scripts loads Nevermore from the server. -- It also replicates the into ReplicatedStorage for internal usage. ----------------------- -- UTILITY FUNCTIONS -- ----------------------- local TestService = game:GetService('TestService') local ReplicatedStorage = game:GetService("ReplicatedStorage") local...
--- This scripts loads Nevermore from the server. -- It also replicates the into ReplicatedStorage for internal usage. ----------------------- -- UTILITY FUNCTIONS -- ----------------------- local TestService = game:GetService('TestService') local ReplicatedStorage = game:GetService("ReplicatedStorage") local...
Fixed loader. Thanks user Looah!
Fixed loader. Thanks user Looah!
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
a9c048c9109efaa12ae0e84ffe1f97126faeaf45
src/extensions/cp/apple/finalcutpro/export/destinations.lua
src/extensions/cp/apple/finalcutpro/export/destinations.lua
--- === cp.apple.finalcutpro.export.destinations === --- --- Provides access to the list of Share Destinations configured for the user. -------------------------------------------------------------------------------- -- Logger: -------------------------------------------------------------------------------- local log ...
--- === cp.apple.finalcutpro.export.destinations === --- --- Provides access to the list of Share Destinations configured for the user. -------------------------------------------------------------------------------- -- Logger: -------------------------------------------------------------------------------- local log ...
#1349
#1349 - Fixed bug in `findDestinationsPath()` where it was reading the wrong plist file. - Fixed bug in `cp.apple.finalcutpro.export.destinations.names()` where it could return a blank value - Closes #1349
Lua
mit
CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks
539113c77802c35ecf937c280639a964aa5d633b
minetestforfun_game/mods/default/commands.lua
minetestforfun_game/mods/default/commands.lua
minetest.register_privilege("physics", { description = "Allows player to set their gravity, jump height and movement speed"}) -- Infotool code by PilzAdam: minetest.register_craftitem("default:infotool", { description = "Infotool", inventory_image = "default_infotool.png", wield_image = "default_infoto...
minetest.register_privilege("physics", { description = "Allows player to set their gravity, jump height and movement speed"}) -- Infotool code by PilzAdam: minetest.register_craftitem("default:infotool", { description = "Infotool", inventory_image = "default_infotool.png", wield_image = "default_infoto...
fix infotool crash when unknow node
fix infotool crash when unknow node
Lua
unlicense
Coethium/server-minetestforfun,paly2/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,paly2/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,Coethium/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,Ombridride/minetest-minetestforfu...
55220babe8db8923d99c2223f73798c6e68e22d1
stdlib/surface.lua
stdlib/surface.lua
--- Surface module -- @module Surface require 'stdlib/core' Surface = {} --- Flexible, safe lookup function for surfaces. <p> -- May be given a string, the name of a surface, or may be given a table with surface names, -- may be given the a surface object, or may be given a table of surface objects, or -- may be ...
--- Surface module -- @module Surface require 'stdlib/core' require 'stdlib/area/area' Surface = {} --- Flexible, safe lookup function for surfaces. <p> -- May be given a string, the name of a surface, or may be given a table with surface names, -- may be given the a surface object, or may be given a table of surf...
Fixed Surface.find_all_entities() for Factorio 0.13.10 (incompatible with previous versions!), but increased search speed a lot.
Fixed Surface.find_all_entities() for Factorio 0.13.10 (incompatible with previous versions!), but increased search speed a lot.
Lua
isc
Afforess/Factorio-Stdlib
8b9d91913e6bc302922d08ad302cc088bb40bcbc
init.lua
init.lua
-- Alias various helper variables. local opt = vim.opt -- Options. local cmd = vim.cmd -- Vim commands. -- Enable relative line numbers. opt.number = true opt.relativenumber = true opt.scrolloff = 3 -- Highlight current line. opt.cursorline = true -- Ignore case in searches. opt.ignorecase = true -- Show the filena...
-- Alias various helper variables. local opt = vim.opt -- Options. local cmd = vim.cmd -- Vim commands. -- Enable relative line numbers. opt.number = true opt.relativenumber = true opt.scrolloff = 3 -- Highlight current line. opt.cursorline = true -- Ignore case in searches. opt.ignorecase = true -- Show the filena...
Fix nvim color scheme search highlight colors
Fix nvim color scheme search highlight colors
Lua
mit
HiDeoo/dotfiles
7d4c4bf72a84d1a69c439bf3cfbc293c5cef95ec
init.lua
init.lua
local textadept = require("textadept") local events = require("events") local constants = require("textadept-nim.constants") local icons = require("textadept-nim.icons") local nimsuggest = require("textadept-nim.nimsuggest") local check_executable = require("textadept-nim.utils").check_executable local sessions = requi...
local textadept = require("textadept") local events = require("events") local constants = require("textadept-nim.constants") local icons = require("textadept-nim.icons") local nimsuggest = require("textadept-nim.nimsuggest") local check_executable = require("textadept-nim.utils").check_executable local sessions = requi...
Fixes original filtering of suggestion
Fixes original filtering of suggestion
Lua
mit
xomachine/textadept-nim
72728ed45da04c3e59a53ae14f0e3ae52af4fa29
scripts/shaderc.lua
scripts/shaderc.lua
-- -- Copyright 2010-2016 Branimir Karadzic. All rights reserved. -- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause -- project "glslang" kind "StaticLib" configuration { "vs*" } buildoptions { "/wd4005", -- warning C4005: '_CRT_SECURE_NO_WARNINGS': macro redefinition } configuration { "not...
-- -- Copyright 2010-2016 Branimir Karadzic. All rights reserved. -- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause -- project "glslang" kind "StaticLib" configuration { "vs2012" } defines { "strtoll=_strtoi64", "strtoull=_strtoui64", } configuration { "vs*" } buildoptions { "/wd40...
Fixed VS2012 build.
Fixed VS2012 build.
Lua
bsd-2-clause
bkaradzic/bgfx,jdryg/bgfx,emoon/bgfx,mmicko/bgfx,fluffyfreak/bgfx,attilaz/bgfx,bkaradzic/bgfx,jdryg/bgfx,bkaradzic/bgfx,emoon/bgfx,fluffyfreak/bgfx,jpcy/bgfx,MikePopoloski/bgfx,attilaz/bgfx,septag/bgfx,mmicko/bgfx,Synxis/bgfx,jpcy/bgfx,jpcy/bgfx,LWJGL-CI/bgfx,emoon/bgfx,bkaradzic/bgfx,mendsley/bgfx,septag/bgfx,LWJGL-CI...
802c71b0e9b076d01646c4839791681eeeee323f
data/templates/metronome/metronome.cfg.lua
data/templates/metronome/metronome.cfg.lua
-- ** Metronome's config file example ** -- -- The format is exactly equal to Prosody's: -- -- Lists are written { "like", "this", "one" } -- Lists can also be of { 1, 2, 3 } numbers, etc. -- Either commas, or semi-colons; may be used as seperators. -- -- A table is a list of values, except each value has a name. An...
-- ** Metronome's config file example ** -- -- The format is exactly equal to Prosody's: -- -- Lists are written { "like", "this", "one" } -- Lists can also be of { 1, 2, 3 } numbers, etc. -- Either commas, or semi-colons; may be used as seperators. -- -- A table is a list of values, except each value has a name. An...
Update data/templates/metronome/metronome.cfg.lua
Update data/templates/metronome/metronome.cfg.lua Add HTTP Upload service (moul's request), and fix indenting
Lua
agpl-3.0
YunoHost/moulinette-yunohost,YunoHost/moulinette-yunohost,YunoHost/yunohost,YunoHost/yunohost,YunoHost/moulinette-yunohost,YunoHost/moulinette-yunohost,YunoHost/moulinette-yunohost,YunoHost/yunohost,YunoHost/yunohost
18bca68cfe9d5d061d5a86e485a28fbb712f8e28
packages/rules.lua
packages/rules.lua
SILE.baseClass:loadPackage("raiselower") SILE.baseClass:loadPackage("rebox") SILE.registerCommand("hrule", function (options, _) local width = SU.cast("length", options.width) local height = SU.cast("length", options.height) local depth = SU.cast("length", options.depth) SILE.typesetter:pushHbox({ width = ...
SILE.baseClass:loadPackage("raiselower") SILE.baseClass:loadPackage("rebox") SILE.registerCommand("hrule", function (options, _) local width = SU.cast("length", options.width) local height = SU.cast("length", options.height) local depth = SU.cast("length", options.depth) SILE.typesetter:pushHbox({ width = ...
fix(packages): Draw rules in the writing direction
fix(packages): Draw rules in the writing direction
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
979b883d36301307cb3eecef7fedea5858be7192
kong/pdk/table.lua
kong/pdk/table.lua
--- Utilities for Lua tables -- -- @module kong.table local new_tab local clear_tab do --- -- Returns a table with pre-allocated number of slots in its array and hash -- parts. -- -- @function kong.table.new -- @tparam[opt] number narr specifies the number of slots to pre-allocate -- in the array part. ...
--- Utilities for Lua tables -- -- @module kong.table local new_tab local clear_tab do --- -- Returns a table with pre-allocated number of slots in its array and hash -- parts. -- -- @function kong.table.new -- @tparam[opt] number narr specifies the number of slots to pre-allocate -- in the array part. ...
docs(pdk) fix kong.table.merge ldoc comment (#6961)
docs(pdk) fix kong.table.merge ldoc comment (#6961) Most likely the culprit is the missing `@function` tag
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
2ce7efd31062d91e4823010331cb820f97d3af96
src/lounge/lua/show.lua
src/lounge/lua/show.lua
#!/lounge/bin/janosh -f local util = require("util") local VIDEO_HOSTS={ ["grooveshark.com/"]='youtube', ["youtube.com/"]='youtube', ["youtu.be/"]='youtube', ["vine.com/"]='youtube', ["tvthek.orf.at/"]='orf', ["videos.arte.tv/"]='arte7', ["vimeo.com/"]='vimeo', ["soundcloud.com/"]='soundcloud', ["ted.com/"]='ted', ["j...
#!/lounge/bin/janosh -f local util = require("util") local VIDEO_HOSTS={ ["grooveshark.com/"]='youtube', ["youtube.com/"]='youtube', ["youtu.be/"]='youtube', ["vine.com/"]='youtube', ["dailymotion.com/"]='youtube', ["tvthek.orf.at/"]='orf', ["videos.arte.tv/"]='arte7', ["vimeo.com/"]='vimeo', ["soundcloud.com/"]='soun...
fix video host matching regex and add dailymotion support
fix video host matching regex and add dailymotion support
Lua
agpl-3.0
screeninvader/ScreenInvader,screeninvader/ScreenInvader
c34b494190e2c5cd537fddb05800248c6b9da02e
conf/rewrite_request.lua
conf/rewrite_request.lua
local inspect = require "inspect" local plutils = require "pl.utils" local stringx = require "pl.stringx" local types = require "pl.types" local utils = require "utils" local deep_merge_overwrite_arrays = utils.deep_merge_overwrite_arrays local is_empty = types.is_empty local split = plutils.split local strip = string...
local inspect = require "inspect" local plutils = require "pl.utils" local stringx = require "pl.stringx" local tablex = require "pl.tablex" local types = require "pl.types" local utils = require "utils" local deep_merge_overwrite_arrays = utils.deep_merge_overwrite_arrays local is_empty = types.is_empty local keys = ...
Fix setting the X-Api-Roles header.
Fix setting the X-Api-Roles header.
Lua
mit
apinf/api-umbrella,apinf/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,NREL/api-umbrella
c58ab340e18f683e372d11af5db483a3d5826716
turbo/log.lua
turbo/log.lua
--[[ Turbo Log module Copyright John Abrahamsen 2011, 2012, 2013 < JhnAbrhmsn@gmail.com > "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 ri...
--[[ Turbo Log module Copyright John Abrahamsen 2011, 2012, 2013 < JhnAbrhmsn@gmail.com > "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 ri...
Fixed broken dump func.
Fixed broken dump func.
Lua
apache-2.0
ddysher/turbo,mniestroj/turbo,zcsteele/turbo,kernelsauce/turbo,zcsteele/turbo,YuanPeir-Chen/turbo-support-mipsel,luastoned/turbo,luastoned/turbo,YuanPeir-Chen/turbo-support-mipsel,ddysher/turbo