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
ebf64c605c034d892275be70771f96be3b62ae28
src/cosy/loader/lua.lua
src/cosy/loader/lua.lua
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 or Luajit with 5.2 compatibility to run." end return function (t) t = t or {} local loader = {} local modules = setmetatable ({}, { __mode = "kv" }) loader.hotswap = t.hotswap or require "...
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 or Luajit with 5.2 compatibility to run." end return function (t) t = t or {} local loader = {} local modules = setmetatable ({}, { __mode = "kv" }) loader.hotswap = t.hotswap or require "...
Fix require in the loader.
Fix require in the loader.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
000672985e522417587619935ca0a819b277ff3a
nyagos.d/suffix.lua
nyagos.d/suffix.lua
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end share._suffixes={} share._setsuffix = function(suffix,cmdline) local suffix=string.lower(suffix) if string.sub(suffix,1,1)=='.' then suffix = string.sub(suffix,2) end if not share._suffixes[su...
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end share._suffixes={} share._setsuffix = function(suffix,cmdline) local suffix=string.lower(suffix) if string.sub(suffix,1,1)=='.' then suffix = string.sub(suffix,2) end if not share._suffixes[su...
Do not insert interpreter when argv[0] does not have a suffix for #237
Do not insert interpreter when argv[0] does not have a suffix for #237 `suffix` on _nyagos called suffix.lua infinitely when the current directory is nyagos.d/ .
Lua
bsd-3-clause
tsuyoshicho/nyagos,zetamatta/nyagos,tyochiai/nyagos,nocd5/nyagos
895e415fd40ac0c4e01285b5166e1a588d2654e6
deviceloaders/dynamixel/serial.lua
deviceloaders/dynamixel/serial.lua
local M = {} local sched = require 'lumen.sched' local log = require 'lumen.log' local mutex = require 'lumen.mutex' local selector = require 'lumen.tasks.selector' local mx = mutex.new() --local my_path = debug.getinfo(1, "S").source:match[[^@?(.*[\/])[^\/]-$]] local NULL_CHAR = string.char(0x00) local PACKET_STA...
local M = {} local sched = require 'lumen.sched' local log = require 'lumen.log' local mutex = require 'lumen.mutex' local selector = require 'lumen.tasks.selector' local mx = mutex.new() --local my_path = debug.getinfo(1, "S").source:match[[^@?(.*[\/])[^\/]-$]] local NULL_CHAR = string.char(0x00) local PACKET_STA...
dynamixel serial fix for lumen
dynamixel serial fix for lumen
Lua
mit
xopxe/Toribio,xopxe/Toribio,xopxe/Toribio
8caa7ce2fae55fc7abded30a4a4f918ec22b97db
src/actions/vstudio/vs2005.lua
src/actions/vstudio/vs2005.lua
-- -- actions/vstudio/vs2005.lua -- Add support for the Visual Studio 2005 project formats. -- Copyright (c) 2008-2013 Jason Perkins and the Premake project -- premake.vstudio.vs2005 = {} local vs2005 = premake.vstudio.vs2005 local vstudio = premake.vstudio --- -- Register a command-line action for Visual Studio...
-- -- actions/vstudio/vs2005.lua -- Add support for the Visual Studio 2005 project formats. -- Copyright (c) 2008-2013 Jason Perkins and the Premake project -- premake.vstudio.vs2005 = {} local vs2005 = premake.vstudio.vs2005 local vstudio = premake.vstudio --- -- Register a command-line action for Visual Studio...
This fixes issue #41 by simply resetting the indentation to its default at the beginning of solution generation, i.e. in vs2005.generateSolution, shared by all VS implementations
This fixes issue #41 by simply resetting the indentation to its default at the beginning of solution generation, i.e. in vs2005.generateSolution, shared by all VS implementations --HG-- branch : fix_issue41
Lua
bsd-3-clause
annulen/premake,warrenseine/premake,warrenseine/premake,annulen/premake,annulen/premake,annulen/premake,warrenseine/premake
ad0fb9d873639facb825a02484849d114327612c
openresty/app.lua
openresty/app.lua
local _M = {} local cjson = require "cjson" local mysql = require "resty.mysql" local math = require "math" local encode = cjson.encode local random = math.random local insert = table.insert local mysqlconn = { host = "DBHOSTNAME", port = 3306, database = "hello_world", user = "benchmarkdbuser", ...
local _M = {} local cjson = require "cjson" local mysql = require "resty.mysql" local math = require "math" local encode = cjson.encode local random = math.random local insert = table.insert local mysqlconn = { host = "DBHOSTNAME", port = 3306, database = "hello_world", user = "benchmarkdbuser", ...
fix formatting
fix formatting
Lua
bsd-3-clause
joshk/FrameworkBenchmarks,herloct/FrameworkBenchmarks,lcp0578/FrameworkBenchmarks,greenlaw110/FrameworkBenchmarks,sanjoydesk/FrameworkBenchmarks,s-ludwig/FrameworkBenchmarks,Rydgel/FrameworkBenchmarks,RockinRoel/FrameworkBenchmarks,lcp0578/FrameworkBenchmarks,kbrock/FrameworkBenchmarks,greenlaw110/FrameworkBenchmarks,g...
7c226e03734a4057489cd4c7062e937b36c501d7
src_trunk/resources/realism-system/c_thermal_vision.lua
src_trunk/resources/realism-system/c_thermal_vision.lua
blackMales = {7, 14, 15, 16, 17, 18, 20, 21, 22, 24, 25, 28, 35, 36, 50, 51, 66, 67, 78, 79, 80, 83, 84, 102, 103, 104, 105, 106, 107, 134, 136, 142, 143, 144, 156, 163, 166, 168, 176, 180, 182, 183, 185, 220, 221, 222, 249, 253, 260, 262 } whiteMales = {23, 26, 27, 29, 30, 32, 33, 34, 35, 36, 37, 38, 43, 44, 45, 46, ...
blackMales = {0, 7, 14, 15, 16, 17, 18, 20, 21, 22, 24, 25, 28, 35, 36, 50, 51, 66, 67, 78, 79, 80, 83, 84, 102, 103, 104, 105, 106, 107, 134, 136, 142, 143, 144, 156, 163, 166, 168, 176, 180, 182, 183, 185, 220, 221, 222, 249, 253, 260, 262 } whiteMales = {23, 26, 27, 29, 30, 32, 33, 34, 35, 36, 37, 38, 43, 44, 45, 4...
Fix for vision goggles, still have two bugs in them: skin detection doesnt work, shouldn't display info for passengers in your vehicle.
Fix for vision goggles, still have two bugs in them: skin detection doesnt work, shouldn't display info for passengers in your vehicle. git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@808 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
7d7deb228c100360e269b985f64168a5d4e5cdda
SelectTable.lua
SelectTable.lua
local SelectTable, parent = torch.class('nn.SelectTable', 'nn.Module') function SelectTable:__init(index) parent.__init(self) self.index = index self.gradInput = {} end function SelectTable:updateOutput(input) assert(math.abs(self.index) <= #input, "arg 1 table idx out of range") if self.index < 0 then...
local SelectTable, parent = torch.class('nn.SelectTable', 'nn.Module') function SelectTable:__init(index) parent.__init(self) self.index = index self.gradInput = {} end function SelectTable:updateOutput(input) assert(math.abs(self.index) <= #input, "arg 1 table idx out of range") if self.index < 0 then...
Fix SelectTable variable input size bug
Fix SelectTable variable input size bug
Lua
bsd-3-clause
caldweln/nn,aaiijmrtt/nn,noa/nn,nicholas-leonard/nn,jzbontar/nn,forty-2/nn,xianjiec/nn,PraveerSINGH/nn,davidBelanger/nn,LinusU/nn,witgo/nn,sagarwaghmare69/nn,colesbury/nn,ominux/nn,jhjin/nn,Jeffyrao/nn,PierrotLC/nn,Aysegul/nn,elbamos/nn,joeyhng/nn,kmul00/nn,hughperkins/nn,sbodenstein/nn,andreaskoepf/nn,clementfarabet/n...
1133f0ed81b8f953a5281e73e4de744c83d3916e
states/splash.lua
states/splash.lua
local Sprite = require 'entities.sprite' local splash = {} function splash:init() self.componentList = { { parent = self, image = Sprite:new('assets/images/NezumiSplash.png'), initialAlpha = 0, finalAlpha = 255, fadeInTime = 1, stillT...
local Sprite = require 'entities.sprite' local splash = {} function splash:init() self.componentList = { { parent = self, image = Sprite:new('assets/images/NezumiSplash.png'), initialAlpha = 0, finalAlpha = 255, fadeInTime = 1, stillT...
fixed splashscreen bug
fixed splashscreen bug -skipping the splashscreen would cause the game to be entered twice
Lua
mit
Nuthen/ludum-dare-39
a0e53d1f7ef1076988d07238e28315aafb47c44c
lua/caps.lua
lua/caps.lua
caps_table = {} function caps_callback(event, origin, params) -- create entry if it doesnt exist if caps_table[origin] == nil then caps_table[origin] = 0 end -- increment or decrement entry if params[2]:upper() == params[2] and params[2]:lower() ~= params[2] then caps_table[origin] = caps_table[origin] + 1 ...
caps_table = {} function caps_callback(event, origin, params) -- create entry if it doesnt exist if caps_table[origin] == nil then caps_table[origin] = 0 end -- determine if its caps lock local this_is_caps = false if params[2]:upper() == params[2] and params[2]:lower() ~= params[2] then this_is_caps = tru...
bugfix
bugfix
Lua
mit
wetfish/denice,pielover88888/denice
2f6ca0401b823a158b9cccfe156c9fbfe09acf3b
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...
More clear shift calculation (should be less buggy)
More clear shift calculation (should be less buggy)
Lua
mit
xomachine/textadept-nim
ce7af7c3fa340b68eeb574701be0c192a55c78bd
src/luacheck/flow.lua
src/luacheck/flow.lua
local non_ctrl_tags = { Nil = true, Dots = true, True = true, False = true, Number = true, String = true, Function = true, Table = true, Op = true, Paren = true, Call = true, Invoke = true, Id = true, Index = true, Set = true, Local = true, Localrec = true } local mul...
local non_ctrl_tags = { Nil = true, Dots = true, True = true, False = true, Number = true, String = true, Function = true, Table = true, Op = true, Paren = true, Call = true, Invoke = true, Id = true, Index = true, Set = true, Local = true, Localrec = true } local mul...
Fixed luacheck.flow crash on if else
Fixed luacheck.flow crash on if else
Lua
mit
adan830/luacheck,kidaa/luacheck,mpeterv/luacheck,linuxmaniac/luacheck,adan830/luacheck,linuxmaniac/luacheck,tst2005/luacheck,xpol/luacheck,tst2005/luacheck,mpeterv/luacheck,xpol/luacheck,xpol/luacheck,kidaa/luacheck,mpeterv/luacheck
42422c429ad04eda1955695badf59642fb16a24a
commands/build.lua
commands/build.lua
zpm.build.commands = {} zpm.build.rcommands = {} function zpm.build.commands.option( opt ) zpm.assert(zpm.build._currentDependency.options[opt] ~= nil, "Option '%s' does not exist!", opt) return zpm.build._currentDependency.options[opt] == true end function zpm.build.commands.export( commands ) local n...
zpm.build.commands = {} zpm.build.rcommands = {} function zpm.build.commands.option( opt ) zpm.assert(zpm.build._currentDependency.options ~= nil, "Option '%s' does not exist!", opt) zpm.assert(zpm.build._currentDependency.options[opt] ~= nil, "Option '%s' does not exist!", opt) return zpm.build._current...
Fix option does not exist
Fix option does not exist
Lua
mit
Zefiros-Software/ZPM
b5e7d774b2146dbc70ae40b147af846ba4d8e896
init.lua
init.lua
-- Copyright 2015 BMC Software, Inc. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed ...
-- Copyright 2015 BMC Software, Inc. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed ...
simpler onparsevalues code to fix issue PLUG-174
simpler onparsevalues code to fix issue PLUG-174
Lua
apache-2.0
boundary/boundary-plugin-zookeeper
f761a44d3942be780616c0e43d70d1bf4927d4da
lua_modules/luvit-rackspace-monitoring-client/lib/client.lua
lua_modules/luvit-rackspace-monitoring-client/lib/client.lua
--[[ Copyright 2012 Rackspace 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 agreed to in writing, software dis...
--[[ Copyright 2012 Rackspace 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 agreed to in writing, software dis...
rackspace-monitoring-client: bump client for parse fix
rackspace-monitoring-client: bump client for parse fix
Lua
apache-2.0
kans/zirgo,kans/zirgo,kans/zirgo
256bc48eacba55c56a2de5420133fd655edcf5dc
pud/component/Component.lua
pud/component/Component.lua
local Class = require 'lib.hump.class' local property = require 'pud.component.property' -- Component -- local Component = Class{name='Component', function(self, newProperties) self._properties = {} self:_createProperties(newProperties) end } -- destructor function Component:destroy() for k in pairs(self._prop...
local Class = require 'lib.hump.class' local property = require 'pud.component.property' local message = require 'pud.component.message' -- Component -- local Component = Class{name='Component', function(self, newProperties) self._properties = {} self:_createProperties(newProperties) end } -- destructor functio...
fix attachMessages()
fix attachMessages()
Lua
mit
scottcs/wyx
d027c90bd0f6e3d2588d929de39faa60a8a3913e
tests/lua/tc_bug1.lua
tests/lua/tc_bug1.lua
local env = environment() local N = Const("N") local p = Const("p") local q = Const("q") local a = Const("a") local b = Const("b") local f = Const("f") local H1 = Const("H1") local H2 = Const("H2") local And = Const("and") local and_intro = Const("and_intro") local A = Local("A", Bool) local B = Local...
local env = environment() local N = Const("N") local p = Const("p") local q = Const("q") local a = Const("a") local b = Const("b") local f = Const("f") local H1 = Const("H1") local H2 = Const("H2") local And = Const("and") local and_intro = Const("and_intro") local A = Local("A", Bool) local B = Local...
fix(tests/lua/tc_bug1): update test to reflect recent changes
fix(tests/lua/tc_bug1): update test to reflect recent changes Signed-off-by: Leonardo de Moura <7610bae85f2b530654cc716772f1fe653373e892@microsoft.com>
Lua
apache-2.0
javra/lean,rlewis1988/lean,javra/lean,rlewis1988/lean,sp3ctum/lean,sp3ctum/lean,soonhokong/lean-windows,avigad/lean,soonhokong/lean-osx,htzh/lean,fgdorais/lean,sp3ctum/lean,UlrikBuchholtz/lean,digama0/lean,levnach/lean,fgdorais/lean,eigengrau/lean,avigad/lean,leodemoura/lean,levnach/lean,fpvandoorn/lean,soonhokong/lean...
a701a4eb62ceaea938451e65f52029e3e3b07832
src/game.lua
src/game.lua
-- vendor libs require 'vendor/AnAL' local PrettyPrint = require 'vendor/lua-pretty-print/PrettyPrint' local gamestate = require 'vendor/hump/gamestate' local Camera = require 'vendor/hump/camera' local Grid = require 'vendor/Jumper/jumper.grid' local Pathfinder = require 'vendor/Jumper/jumper.pathfinder' -- game modu...
-- vendor libs require 'vendor/AnAL' local PrettyPrint = require 'vendor/lua-pretty-print/PrettyPrint' local gamestate = require 'vendor/hump/gamestate' local Camera = require 'vendor/hump/camera' local Grid = require 'vendor/Jumper/jumper.grid' local Pathfinder = require 'vendor/Jumper/jumper.pathfinder' -- hack std ...
fix camera pan clamps
fix camera pan clamps
Lua
mit
davidyu/mld50
12852bc9d866f1429a57691aaa1ec77886abe9d9
lualib/sys/json.lua
lualib/sys/json.lua
local next = next local type = type local pcall = pcall local pairs = pairs local ipairs = ipairs local assert = assert local tostring = tostring local tonumber = tonumber local tconcat = table.concat local format = string.format local find = string.find local sub = string.sub local gsub = string.gsub local byte = stri...
local next = next local type = type local pcall = pcall local pairs = pairs local ipairs = ipairs local assert = assert local tostring = tostring local tonumber = tonumber local tconcat = table.concat local format = string.format local find = string.find local sub = string.sub local gsub = string.gsub local byte = stri...
bugfix json escape character
bugfix json escape character
Lua
mit
findstr/silly
a1b6bd90ecccc73e2f97cb1f0b9cad0f3b75a1f1
l2l/itertools.lua
l2l/itertools.lua
local function resolve(str, t) local obj = t or _G for name in str:gmatch("[^.]+") do if obj then obj = obj[name] end end return obj end local function pack(...) return {...}, select("#", ...) end local function dict(...) local count = select('#', ...) if count % 2 ~= 0 then error("dic...
local function resolve(str, t) local obj = t or _G for name in str:gmatch("[^.]+") do if obj then obj = obj[name] end end return obj end local function pack(...) return {...}, select("#", ...) end local function dict(...) local count = select('#', ...) if count % 2 ~= 0 then error("dic...
Fix cons cell in list; __tostring. #19
Fix cons cell in list; __tostring. #19
Lua
bsd-2-clause
tst2005/l2l,meric/l2l,carloscm/l2l
e0dfa6311b27e985c00e2495ccd62ecdd4609ff5
src/characters/vicedean.lua
src/characters/vicedean.lua
local anim8 = require 'vendor/anim8' local plyr = {} plyr.name = 'vicedean' plyr.offset = 5 plyr.ow = 8 plyr.costumes = { {name='Vice Dean Laybourne', sheet='images/vicedean.png'}, {name='Ghost', sheet='images/vicedean_ghost.png'}, {name='Going Through Some Stuff', sheet='images/vicedean_stuff.png'}, } lo...
local anim8 = require 'vendor/anim8' local plyr = {} plyr.name = 'vicedean' plyr.offset = 5 plyr.ow = 8 plyr.costumes = { {name='Vice Dean Laybourne', sheet='images/vicedean.png'}, {name='Ghost', sheet='images/vicedean_ghost.png'}, {name='Going Through Some Stuff', sheet='images/vicedean_stuff.png'}, } lo...
Fixes #166. Vicedean. That's everyone!
Fixes #166. Vicedean. That's everyone!
Lua
mit
hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-client-lua
b8ef36445fb4ab2598c1159906990fbf516e2dfc
mod-mpv/config/images/fancy_zoom.lua
mod-mpv/config/images/fancy_zoom.lua
local rotation = 0 local rendering = false local user_fiddled = false math.sign = math.sign or function(x) return x<0 and -1 or x>0 and 1 or 0 end function get(property) return mp.get_property(property) end function set(property, value) mp.set_property(property, value) end function add(property, delta) ...
local rotation = 0 local rendering = false local user_fiddled = false math.sign = math.sign or function(x) return x<0 and -1 or x>0 and 1 or 0 end function add_property(property, delta) mp.set_property_number(property, mp.get_property_number(property) + delta) end function add_rotation(delta) rotation = rota...
mod-mpv: fix fancy zoom breaking on certain files
mod-mpv: fix fancy zoom breaking on certain files
Lua
mit
rr-/dotfiles,rr-/dotfiles,rr-/dotfiles
a3f8d058ecc0e1653d9c4d6a27c39e4759a80fa1
build/scripts/common.lua
build/scripts/common.lua
-- Configuration gnrale configurations { -- "DebugStatic", -- "ReleaseStatic", "DebugDLL", "ReleaseDLL" } defines "NAZARA_BUILD" language "C++" location(_ACTION) includedirs { "../include", "../src/", "../extlibs/include" } libdirs "../lib" if (_OPTIONS["x64"]) then defines "NAZARA_PLATFORM_x64" libdirs ".....
-- Configuration gnrale configurations { -- "DebugStatic", -- "ReleaseStatic", "DebugDLL", "ReleaseDLL" } defines "NAZARA_BUILD" language "C++" location(_ACTION) includedirs { "../include", "../src/", "../extlibs/include" } libdirs "../lib" if (_OPTIONS["x64"]) then defines "NAZARA_PLATFORM_x64" libdirs ".....
Fixed some warnings with Visual Studio
Fixed some warnings with Visual Studio Former-commit-id: e783a55f47e9cfd8a08eced14d19e5eb03b864d8
Lua
mit
DigitalPulseSoftware/NazaraEngine
4dd0a7f0ce3f7590e2b1aa0aff7ea50af4c0f6ec
src/plugins/finalcutpro/inspector/show.lua
src/plugins/finalcutpro/inspector/show.lua
--- === plugins.finalcutpro.inspector.show === --- --- Final Cut Pro Inspector Additions. local require = require local log = require "hs.logger".new "inspShow" local fcp = require "cp.apple.finalcutpro" local go = require "cp.rx.go" local i18n = require "cp.i18n" local...
--- === plugins.finalcutpro.inspector.show === --- --- Final Cut Pro Inspector Additions. local require = require --local log = require "hs.logger".new "inspShow" local fcp = require "cp.apple.finalcutpro" local go = require "cp.rx.go" local i18n = require "cp.i18n" loc...
#1826
#1826 - Fixed @stickler-ci bugs
Lua
mit
fcpxhacks/fcpxhacks,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost
bd7c8b558d61e6fde43aeb1202a61dc510915091
vi_quickfix.lua
vi_quickfix.lua
-- Implement quickfix-like functionality. local M = {} local lpeg = require('lpeg') local P = lpeg.P local S = lpeg.S local C = lpeg.C local R = lpeg.R local Ct = lpeg.Ct local Cg = lpeg.Cg local Cc = lpeg.Cc local errpat_newdir = Ct(P"make: Entering directory `" * Cg((P(1) - P"'")^0, 'newdir')* P"'") local errpat_le...
-- Implement quickfix-like functionality. local M = {} local lpeg = require('lpeg') local P = lpeg.P local S = lpeg.S local C = lpeg.C local R = lpeg.R local Ct = lpeg.Ct local Cg = lpeg.Cg local Cc = lpeg.Cc local ws = S" \t" local to_nl = (P(1) - P"\n") ^ 0 local errpat_newdir = Ct(P"make: Entering directory `" * C...
Improve error matching in quickfix (for errors without a filename).
Improve error matching in quickfix (for errors without a filename).
Lua
mit
jugglerchris/textadept-vi,erig0/textadept-vi,jugglerchris/textadept-vi
6b2c98f38fcf9be11c71a764a28c9289e94bcc89
lua/testdriver.lua
lua/testdriver.lua
require 'libinjection' require 'Test.More' require 'Test.Builder.Tester' function trim(s) return s:find'^%s*$' and '' or s:match'^%s*(.*%S)' end function print_token_string(tok) local out = '' if tok.str_open ~= '\0' then out = out .. tok.str_open end out = out .. tok.val if tok.str_cl...
require 'libinjection' require 'Test.More' require 'Test.Builder.Tester' function trim(s) return s:find'^%s*$' and '' or s:match'^%s*(.*%S)' end function print_token_string(tok) local out = '' if tok.str_open ~= '\0' then out = out .. tok.str_open end out = out .. tok.val if tok.str_cl...
fix lua testdriver
fix lua testdriver
Lua
bsd-3-clause
dijkstracula/libinjection,ppliu1979/libinjection,dijkstracula/libinjection,fengjian/libinjection,fengjian/libinjection,ppliu1979/libinjection,ppliu1979/libinjection,dijkstracula/libinjection,fengjian/libinjection,ppliu1979/libinjection,dijkstracula/libinjection,dijkstracula/libinjection,fengjian/libinjection,fengjian/l...
c1d3ba9aa61b8f09f2c0e5576d4ece65330657d9
mod_storage_gdbm/mod_storage_gdbm.lua
mod_storage_gdbm/mod_storage_gdbm.lua
-- mod_storage_gdbm -- Copyright (C) 2014-2015 Kim Alvefur -- -- This file is MIT/X11 licensed. -- -- Depends on lgdbm: -- http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/#lgdbm local gdbm = require"gdbm"; local path = require"util.paths"; local lfs = require"lfs"; local st = require"util.stanza"; local uuid = requ...
-- mod_storage_gdbm -- Copyright (C) 2014-2015 Kim Alvefur -- -- This file is MIT/X11 licensed. -- -- Depends on lgdbm: -- http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/#lgdbm local gdbm = require"gdbm"; local path = require"util.paths"; local lfs = require"lfs"; local st = require"util.stanza"; local uuid = requ...
mod_storage_gdbm: Prefix archive item keys with username to prevent collisions
mod_storage_gdbm: Prefix archive item keys with username to prevent collisions
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
39ee0911ccfd4dfc288cc42cdf53e205ab8e69ca
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
deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci
dfdf3c055d5dc09c7df65408f2a00f2653a3a83c
item/id_61_goldcoins.lua
item/id_61_goldcoins.lua
-- I_61.lua Goldm&uuml;nzen einschmelzen -- UPDATE common SET com_script='item.id_61_goldcoins' WHERE com_itemid IN (61); require("base.common") module("item.id_61_goldcoins", package.seeall) if not InitTime then InitTime=true; TimeList = {}; end function UseItem(User, SourceItem) if ( SourceItem.number == 1 ) ...
-- I_61.lua Goldm&uuml;nzen einschmelzen -- UPDATE common SET com_script='item.id_61_goldcoins' WHERE com_itemid IN (61); require("base.common") module("item.id_61_goldcoins", package.seeall) if not InitTime then InitTime=true; TimeList = {}; end function UseItem(User, SourceItem) if TimeList[User.id]~=nil ...
bugfix
bugfix
Lua
agpl-3.0
Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content
a614e4867e0e118973ed6a01f62e8727926a640a
tools/torch/LRPolicy.lua
tools/torch/LRPolicy.lua
-- Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. local LRPolicy = torch.class('LRPolicy') ---------------------------------------------------------------------------------------- -- This file contains details of learning rate policies that are used in caffe. -- Calculates and returns the current l...
-- Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. local LRPolicy = torch.class('LRPolicy') ---------------------------------------------------------------------------------------- -- This file contains details of learning rate policies that are used in caffe. -- Calculates and returns the current l...
Fix Torch LR policy
Fix Torch LR policy "exp", "inv" and "sigmoid" weren't operating as expected close #662
Lua
bsd-3-clause
ethantang95/DIGITS,jmancewicz/DIGITS,TimZaman/DIGITS,Deepomatic/DIGITS,dongjoon-hyun/DIGITS,jmancewicz/DIGITS,ethantang95/DIGITS,Deepomatic/DIGITS,dongjoon-hyun/DIGITS,Lucaszw/DIGITS,dongjoon-hyun/DIGITS,ethantang95/DIGITS-GAN,TimZaman/DIGITS,Lucaszw/DIGITS,bygreencn/DIGITS,gheinrich/DIGITS-GAN,TimZaman/DIGITS,gheinric...
e8887b3dc0cddc4be74b6f9237106d47dc438511
libs/web/luasrc/http.lua
libs/web/luasrc/http.lua
--[[ LuCI - HTTP-Interaction Description: HTTP-Header manipulator and form variable preprocessor FileId: $Id$ ToDo: - Cookie handling License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lic...
--[[ LuCI - HTTP-Interaction Description: HTTP-Header manipulator and form variable preprocessor FileId: $Id$ ToDo: - Cookie handling License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lic...
libs/web: Fixed bug where the environment table gets returned in case of an undefined variable
libs/web: Fixed bug where the environment table gets returned in case of an undefined variable git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@2424 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
phi-psi/luci,8devices/carambola2-luci,stephank/luci,gwlim/luci,gwlim/luci,dtaht/cerowrt-luci-3.3,stephank/luci,zwhfly/openwrt-luci,ch3n2k/luci,gwlim/luci,alxhh/piratenluci,Canaan-Creative/luci,projectbismark/luci-bismark,yeewang/openwrt-luci,saraedum/luci-packages-old,vhpham80/luci,zwhfly/openwrt-luci,stephank/luci,Thi...
36eab2616fdf64555832097d40b70076cec155bb
lua/filters/fieldfix.lua
lua/filters/fieldfix.lua
-- From: https://github.com/hynd/heka-tsutils-plugins -- 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/. --[[ Performs some basic mutations on message Fields - add if ...
-- From: https://github.com/hynd/heka-tsutils-plugins -- 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/. --[[ Performs some basic mutations on message Fields - add if ...
lua/filters: fieldfix- allow over-writing Payload.
lua/filters: fieldfix- allow over-writing Payload. Payload supports field interpolation. Also refactors by combing interpolate and override. Previously, the had the same behavior (overriding existing fields), but interpolate allowed interpolating values. So combined them into just "override", but supporting interpol...
Lua
apache-2.0
wxdublin/heka-clever-plugins
3b588686089f9762d8210fdd33a4503b233d2d98
lua/mediaplayer/players/components/vote.lua
lua/mediaplayer/players/components/vote.lua
if SERVER then AddCSLuaFile() end --[[-------------------------------------------- Vote object ----------------------------------------------]] local VOTE = {} VOTE.__index = VOTE function VOTE:New( ply, value ) local obj = setmetatable( {}, self ) obj.player = ply obj.value = value or 1 return obj end funct...
if SERVER then AddCSLuaFile() end --[[-------------------------------------------- Vote object ----------------------------------------------]] local VOTE = {} VOTE.__index = VOTE function VOTE:New( ply, value ) local obj = setmetatable( {}, self ) obj.player = ply obj.value = value or 1 return obj end funct...
Fixed issues with adding a vote.
Fixed issues with adding a vote.
Lua
mit
pixeltailgames/gm-mediaplayer,pixeltailgames/gm-mediaplayer
50460896c8e6b451e24eb4fe44c2fa51dc15095d
src/memory.lua
src/memory.lua
module(...,package.seeall) local lib = require("lib") local ffi = require("ffi") local C = ffi.C require("memory_h") --- ### Chunks: Serve small allocations from memory allocated in bulk -- Table of {pointer, physical, size, used}. -- Extended each time a new chunk is allocated. chunks = {} -- Allocate DMA-friendly...
module(...,package.seeall) local lib = require("lib") local ffi = require("ffi") local C = ffi.C require("memory_h") --- ### Chunks: Serve small allocations from memory allocated in bulk -- Table of {pointer, physical, size, used}. -- Extended each time a new chunk is allocated. chunks = {} -- Allocate DMA-friendly...
memory.lua: Fixed bugs introduced in editing.
memory.lua: Fixed bugs introduced in editing.
Lua
apache-2.0
xdel/snabbswitch,kbara/snabb,dpino/snabb,heryii/snabb,mixflowtech/logsensor,pavel-odintsov/snabbswitch,kbara/snabb,aperezdc/snabbswitch,lukego/snabbswitch,mixflowtech/logsensor,aperezdc/snabbswitch,dpino/snabb,virtualopensystems/snabbswitch,pirate/snabbswitch,wingo/snabb,pirate/snabbswitch,wingo/snabb,snabbco/snabb,eug...
56a8c478e343042d90ef6f3fc719efd73a73d006
src/npge/block/excludeSelfOverlap.lua
src/npge/block/excludeSelfOverlap.lua
-- lua-npge, Nucleotide PanGenome explorer (Lua module) -- Copyright (C) 2014-2015 Boris Nagaev -- See the LICENSE file for terms of use. return function(block) local slice = require 'npge.block.slice' local hasSelfOverlap = require 'npge.block.hasSelfOverlap' if not hasSelfOverlap(block) then retu...
-- lua-npge, Nucleotide PanGenome explorer (Lua module) -- Copyright (C) 2014-2015 Boris Nagaev -- See the LICENSE file for terms of use. return function(block) local slice = require 'npge.block.slice' local hasSelfOverlap = require 'npge.block.hasSelfOverlap' if not hasSelfOverlap(block) then retu...
fix excludeSelfOverlap and use binary_search
fix excludeSelfOverlap and use binary_search excludeSelfOverlap used to return blocks with self-overlaps
Lua
mit
starius/lua-npge,npge/lua-npge,npge/lua-npge,starius/lua-npge,npge/lua-npge,starius/lua-npge
97690aebfbb082b5c51418f3ceedc6080a4495bc
src/python.lua
src/python.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 python path
Fix python path
Lua
mit
Zefiros-Software/ZPM
a78f60462583a108f6ca504bd42ad8392dc6ae41
modules/awesomejapan.lua
modules/awesomejapan.lua
local ev = require'ev' local _FLIGHT = ivar2.config.awesomejapan.flight local getDiff = function() local _END = os.date('*t', _FLIGHT) local _NOW = os.date('*t', os.time()) local flipped if(os.time(_END) < os.time(_NOW)) then flipped = true _END, _NOW = _NOW, _END end local _MAX = {60,60,24,os.date('*t',o...
local ev = require'ev' local _FLIGHT = ivar2.config.awesomejapan.flight local getDiff = function() local _END = os.date('*t', _FLIGHT) local _NOW = os.date('*t', os.time()) local flipped if(os.time(_END) < os.time(_NOW)) then flipped = true _END, _NOW = _NOW, _END end local _MAX = {60,60,24,os.date('*t',o...
awesomejapan: fix broken merge
awesomejapan: fix broken merge Former-commit-id: c17b5bc7c917846f353658dbfe09a4d887ba72c3 [formerly 19aa9008435513b5f4f7dec87ac50528e4397579] Former-commit-id: f763f979cddb55f45ecfb3494875fc27193bc7d7
Lua
mit
torhve/ivar2,torhve/ivar2,torhve/ivar2,haste/ivar2
f26bbca589b44aaba521ccdaf0c2a1032d42c406
kong/core/globalpatches.lua
kong/core/globalpatches.lua
return function(options) options = options or {} if options.cli then ngx.IS_CLI = true ngx.exit = function()end -- force LuaSocket usage to resolve `/etc/hosts` until -- supported by resty-cli. -- See https://github.com/Mashape/kong/issues/1523 for _, namespace in ipairs({"cassandra", "pg...
return function(options) options = options or {} if options.cli then ngx.IS_CLI = true ngx.exit = function()end -- force LuaSocket usage to resolve `/etc/hosts` until -- supported by resty-cli. -- See https://github.com/Mashape/kong/issues/1523 for _, namespace in ipairs({"cassandra", "pg...
fix(globalpatches) wanr log on randomseed attempt
fix(globalpatches) wanr log on randomseed attempt log the issues instead of erroring out to prevent `lua_code_cache=off` from being aborted when math.randomseed is called from defectuous modules. Fix #1716
Lua
apache-2.0
jebenexer/kong,li-wl/kong,icyxp/kong,ccyphers/kong,Kong/kong,akh00/kong,salazar/kong,Kong/kong,Mashape/kong,Kong/kong,shiprabehera/kong
0be32e82f2f2a1a3ea72d9f4f7987c0816809633
kong/tools/wrpc/message.lua
kong/tools/wrpc/message.lua
local pb = require "pb" local tonumber = tonumber local select = select local pb_decode = pb.decode local pb_encode = pb.encode local ngx_log = ngx.log local ERR = ngx.ERR local NOTICE = ngx.NOTICE -- utility functions --- little helper to ease grabbing an unspecified number --- of values after an `ok` flag local...
local pb = require "pb" local tonumber = tonumber local pb_decode = pb.decode local pb_encode = pb.encode local ngx_log = ngx.log local ERR = ngx.ERR local NOTICE = ngx.NOTICE local _M = {} local function send_error(wrpc_peer, payload, error) local ok, err = wrpc_peer:send_payload({ mtype = "MESSAGE_TYPE_ER...
fix(wrpc) incorrect encoding of response (#8915)
fix(wrpc) incorrect encoding of response (#8915)
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
befbb54ff9bd597724628c14e9ca7b55e5e6d2a0
torch7/imagenet_winners/googlenet.lua
torch7/imagenet_winners/googlenet.lua
-- adapted from nagadomi's CIFAR attempt: https://github.com/nagadomi/kaggle-cifar10-torch7/blob/cuda-convnet2/inception_model.lua local function inception(depth_dim, input_size, config, lib) local SpatialConvolution = lib[1] local SpatialMaxPooling = lib[2] local ReLU = lib[3] local depth_concat = nn.Conc...
-- adapted from nagadomi's CIFAR attempt: https://github.com/nagadomi/kaggle-cifar10-torch7/blob/cuda-convnet2/inception_model.lua local function inception(depth_dim, input_size, config, lib) local SpatialConvolution = lib[1] local SpatialMaxPooling = lib[2] local ReLU = lib[3] local depth_concat = nn.Conc...
fix googlenet first layer gradInput
fix googlenet first layer gradInput
Lua
mit
soumith/convnet-benchmarks,soumith/convnet-benchmarks,soumith/convnet-benchmarks,soumith/convnet-benchmarks,soumith/convnet-benchmarks
99495aaed43bb770804b46f2a186c471c79808ee
frontend/ui/font.lua
frontend/ui/font.lua
--[[-- Font module. ]] local is_android = pcall(require, "android") local FontList = require("fontlist") local Freetype = require("ffi/freetype") local Screen = require("device").screen local logger = require("logger") local Font = { fontmap = { -- default font for menu contents cfont = "NotoSans...
--[[-- Font module. ]] local is_android = pcall(require, "android") local FontList = require("fontlist") local Freetype = require("ffi/freetype") local Screen = require("device").screen local logger = require("logger") local Font = { fontmap = { -- default font for menu contents cfont = "NotoSans...
[Android, fix] Revert slightly more of the Noto business (#5463)
[Android, fix] Revert slightly more of the Noto business (#5463) Follow-up to #5458. Cf. https://github.com/koreader/koreader/issues/5381#issuecomment-539873843.
Lua
agpl-3.0
koreader/koreader,NiLuJe/koreader,mwoz123/koreader,poire-z/koreader,pazos/koreader,Frenzie/koreader,Markismus/koreader,koreader/koreader,NiLuJe/koreader,poire-z/koreader,mihailim/koreader,Frenzie/koreader,Hzj-jie/koreader
9cec98b7ed619883db9292667447f4afb6cf0869
modules/api_loader.lua
modules/api_loader.lua
local xml = require('xml') local module = { } module.classes = { String = { }, Integer = { }, Float = { }, Boolean = { }, Struct = { }, Enum = { } } module.enum = { } module.struct = { } local function loadEnums(api) local enums = api:xpath("//interface/enum") for _, e in ipairs(enums) do local e...
local xml = require('xml') local module = { } local function loadEnums(api, dest) local enums = api:xpath("//interface/enum") for _, e in ipairs(enums) do local enum = { } local i = 1 for _, item in ipairs(e:children("element")) do enum[item:attr("name")] = i i = i + 1 end dest.enum...
ATF fix: send 'SDL.GetUserFriendlyMessage' via hmiConnection. APPLINK-14546: ATF sometimes doesn't send HMI request.
ATF fix: send 'SDL.GetUserFriendlyMessage' via hmiConnection. APPLINK-14546: ATF sometimes doesn't send HMI request.
Lua
bsd-3-clause
aderiabin/sdl_atf,aderiabin/sdl_atf,aderiabin/sdl_atf
328911a2553d576543f5efc221bfee8887580b61
src/tie/src/Shared/Encoding/TieUtils.lua
src/tie/src/Shared/Encoding/TieUtils.lua
--[=[ @class TieUtils ]=] local TieUtils = {} --[=[ Encoding arguments for Tie consumption. Namely this will convert any table into a closure for encoding. @param ... any @return ... any ]=] function TieUtils.encode(...) local results = table.pack(...) for i=1, results.n do if type(results[i]) == "table" th...
--[=[ @class TieUtils ]=] local TieUtils = {} --[=[ Encoding arguments for Tie consumption. Namely this will convert any table into a closure for encoding. @param ... any @return ... any ]=] function TieUtils.encode(...) local results = table.pack(...) for i=1, results.n do if type(results[i]) == "table" or...
fix: Fix encoding functions in tie
fix: Fix encoding functions in tie
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
183e7c444df4b08274e7038a34992d18b175bef2
protocols/ipv6/luasrc/model/cbi/admin_network/proto_6in4.lua
protocols/ipv6/luasrc/model/cbi/admin_network/proto_6in4.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...
Fix the caption for HE.net Login ID
Fix the caption for HE.net Login ID
Lua
apache-2.0
gwlim/luci,gwlim/luci,gwlim/luci,gwlim/luci,gwlim/luci,gwlim/luci,gwlim/luci
7cacc1641ef316688ee92eb84d5d3934e1bbe48d
mstat.lua
mstat.lua
local dkim_space = 0 local from_space = 1 local envfrom_space = 2 local sender_ip_space = 3 local dkim_msgtype_ts_space = 4 local dkim_senderip_space = 5 local field_last = 4 local field_count = 10 local timeout = 0.006 local max_attempts = 5 local function increment_stat3(space, key, subject, timestamp) retry = ...
local dkim_space = 0 local from_space = 1 local envfrom_space = 2 local sender_ip_space = 3 local dkim_msgtype_ts_space = 4 local dkim_senderip_space = 5 local field_last = 4 local field_count = 10 local timeout = 0.006 local max_attempts = 5 local function increment_stat3(space, key, subject, timestamp) local re...
fix variable scoping in mstat.lua
fix variable scoping in mstat.lua
Lua
bsd-2-clause
BHYCHIK/tntlua,spectrec/tntlua,grechkin-pogrebnyakov/tntlua,mailru/tntlua,derElektrobesen/tntlua
ea15b7b9865b5f927e6fd176eb8202b130962f53
src/cosy/logger.lua
src/cosy/logger.lua
local Loader = require "cosy.loader" local I18n = require "cosy.i18n" local Logger = {} if _G.js then local logger = _G.window.console function Logger.debug (t) logger:log ("DEBUG: " .. I18n (t)) end function Logger.info (t) logger:log ("INFO: " .. I18n (t)) end function Logger.warning (t) ...
local Loader = require "cosy.loader" local I18n = require "cosy.i18n" local Logger = {} local i18n = I18n.load {} if _G.js then local logger = _G.window.console function Logger.debug (t) logger:log ("DEBUG: " .. i18n (t).message) end function Logger.info (t) logger:log ("INFO: " .. i18n (t).mes...
Fix logger with i18n.
Fix logger with i18n.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
f9ec9980b56d7165d83f048b928e5665f281bae3
Quadtastic/Window.lua
Quadtastic/Window.lua
local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or '' local Layout = require(current_folder .. ".Layout") local imgui = require(current_folder .. ".imgui") local Frame = require(current_folder .. ".Frame") local Window = {} local bordersize = 7 Window.start = function(gui_state, x, y, w, h, options) -- ...
local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or '' local Layout = require(current_folder .. ".Layout") local imgui = require(current_folder .. ".imgui") local Frame = require(current_folder .. ".Frame") local Window = {} local bordersize = 7 Window.start = function(gui_state, x, y, w, h, options) -- ...
Fix issue in Window where content could be drawn over border
Fix issue in Window where content could be drawn over border
Lua
mit
25A0/Quadtastic,25A0/Quadtastic
a7073f1d81bc28314d48255f0ca94a69f2c3eac9
share/lua/website/vimeo.lua
share/lua/website/vimeo.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: vimeo.lua: Title parsing
FIX: vimeo.lua: Title parsing JSON may contain escaped characters, e.g. double-quotation marks (").
Lua
agpl-3.0
legatvs/libquvi-scripts,DangerCove/libquvi-scripts,DangerCove/libquvi-scripts,hadess/libquvi-scripts-iplayer,alech/libquvi-scripts,hadess/libquvi-scripts-iplayer,alech/libquvi-scripts,legatvs/libquvi-scripts
83bd64d36dc5ce2853f236bd394f6375dfc61432
kong/plugins/session/storage/kong.lua
kong/plugins/session/storage/kong.lua
local singletons = require "kong.singletons" local concat = table.concat local tonumber = tonumber local setmetatable = setmetatable local floor = math.floor local now = ngx.now local kong_storage = {} kong_storage.__index = kong_storage function kong_storage.new(config) return setmetat...
local singletons = require "kong.singletons" local concat = table.concat local tonumber = tonumber local setmetatable = setmetatable local floor = math.floor local now = ngx.now local kong_storage = {} kong_storage.__index = kong_storage function kong_storage.new(config) return setmetat...
fix(session) add timers only in header_filter phase
fix(session) add timers only in header_filter phase
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
e0fff0f298e923133c1bbec78353833cd8c2aff0
lua/lualine/themes/hydrangea.lua
lua/lualine/themes/hydrangea.lua
-- Palette (LCH values were measured in GIMP 2.10.4) local base03 = ("#171c26", 235) -- L = 10, C = 8, H = 270 local base02 = ("#232833", 236) -- L = 16, C = 8, H = 270 local base01 = ("#303540", 238) -- L = 22, C = 8, H = 270 local base00 = ("#4b505d", 241) -- L = 28, C = 8, H = 270 local base0 ...
-- Palette (LCH values were measured in GIMP 2.10.4) local base03 = '#171c26' -- L = 10, C = 8, H = 270 local base02 = '#232833' -- L = 16, C = 8, H = 270 local base01 = '#303540' -- L = 22, C = 8, H = 270 local base00 = '#4b505d' -- L = 28, C = 8, H = 270 local base0 = '#465166' -- L = 34, C =...
Fix using Python tuple notation
Fix using Python tuple notation
Lua
mit
yuttie/hydrangea-vim
fc53fed6b2c64490f1f415f910ab96cf9e8cda74
trackedTurtle.lua
trackedTurtle.lua
-- dont let buggy robot escape you maxMoves=5000 local pos,dir function log(s) local file = fs.open("log", "a") local postxt="nopos" if (pos~=nil) then postxt=pos.x..","..pos.y..","..pos.z end local ls = postxt .. " " .. (" "):rep(stackDepthCurrent or 0)..textutils.serialize(s).."\n" write(ls) ...
-- dont let buggy robot escape you maxMoves=5000 local pos,dir function log(s) local file = fs.open("log", "a") local postxt="nopos" if (pos~=nil) then postxt=pos.x..","..pos.y..","..pos.z end local ls = postxt .. " " .. (" "):rep(stackDepthCurrent or 0)..textutils.serialize(s).."\n" write(ls) ...
gps locate code fix
gps locate code fix
Lua
mit
keneo/swarm
24487cf47dd161c9a06cfeefd66956bbaa9ae567
lua/conf/cmp.lua
lua/conf/cmp.lua
local ok, cmp, ls ok, cmp = pcall(require, "cmp") if not ok then return end ok, ls = pcall(require, "luasnip") if not ok then return end local utils = require("custom.utils") local function filtered_bufnrs() local ft = vim.bo.filetype local bufs = {} for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do if v...
local ok, cmp, ls ok, cmp = pcall(require, "cmp") if not ok then return end ok, ls = pcall(require, "luasnip") if not ok then return end local utils = require("custom.utils") local function filtered_bufnrs() local ft = vim.bo.filetype local bufs = {} for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do if v...
Fix lisp parinfer mappings
Fix lisp parinfer mappings
Lua
mit
monkoose/neovim-setup
fb3dd69f03eea0c828f6a2dcf91fbc17fb65dfc5
lualib/redis.lua
lualib/redis.lua
local skynet = require "skynet" local socket = require "socket" local config = require "config" local redis_conf = skynet.getenv "redis" local name = config (redis_conf) local readline = socket.readline local readbytes = socket.read local table = table local string = string local redis = {} local command = {} local m...
local skynet = require "skynet" local socket = require "socket" local config = require "config" local redis_conf = skynet.getenv "redis" local name = config (redis_conf) local readline = socket.readline local readbytes = socket.read local table = table local string = string local redis = {} local command = {} local m...
bugfix: don't use table.insert when nil can be insert
bugfix: don't use table.insert when nil can be insert
Lua
mit
sdgdsffdsfff/skynet,korialuo/skynet,togolwb/skynet,letmefly/skynet,iskygame/skynet,chfg007/skynet,KAndQ/skynet,vizewang/skynet,zhoukk/skynet,leezhongshan/skynet,plsytj/skynet,lawnight/skynet,cloudwu/skynet,xjdrew/skynet,catinred2/skynet,gitfancode/skynet,codingabc/skynet,plsytj/skynet,boyuegame/skynet,javachengwc/skyne...
d36f3b6376ffc0f85ad3244ca26d368184dc4572
plugins/mod_groups.lua
plugins/mod_groups.lua
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local groups; local members; local groups_file; local jid, datamanager = require "util.jid", require "...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local groups; local members; local groups_file; local jid, datamanager = require "util.jid", require "...
mod_groups: Fixes to make compatible with roster versioning - set version to 'true' to indicate that the roster is not being versioned
mod_groups: Fixes to make compatible with roster versioning - set version to 'true' to indicate that the roster is not being versioned
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
cadb311a0f9c2a72bd739c5953479d833eb4ad66
scen_edit/view/dialog/new_project_dialog.lua
scen_edit/view/dialog/new_project_dialog.lua
SB.Include(Path.Join(SB_VIEW_DIR, "editor.lua")) NewProjectDialog = Editor:extends{} function NewProjectDialog:init() self:super("init") self:AddField(StringField({ name = "projectName", title = "Project name:", width = 300, })) local items = VFS.GetMaps() table.insert(it...
SB.Include(Path.Join(SB_VIEW_DIR, "editor.lua")) NewProjectDialog = Editor:extends{} function NewProjectDialog:init() self:super("init") self:AddField(StringField({ name = "projectName", title = "Project name:", width = 300, })) local items = VFS.GetMaps() table.insert(it...
Prevent generating projets over existing ones Fix caching issue with generated maps
Prevent generating projets over existing ones Fix caching issue with generated maps
Lua
mit
Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core
8834ac200a4b8b728b28d958b291eb69014bc06b
scripts/tundra/syntax/native.lua
scripts/tundra/syntax/native.lua
-- Copyright 2010 Andreas Fredriksson -- -- This file is part of Tundra. -- -- Tundra is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version...
-- Copyright 2010 Andreas Fredriksson -- -- This file is part of Tundra. -- -- Tundra is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version...
Fixed PCH env data was not propagated.
Fixed PCH env data was not propagated. PCH env data was set up too late, so it had no effect on implicitly built object files as they are already set up before the create_dag function is called. The PCH env setup is now done in the customize_env function which was added for this purpose.. But I forgot to do it back t...
Lua
mit
deplinenoise/tundra,bmharper/tundra,deplinenoise/tundra,bmharper/tundra,deplinenoise/tundra,bmharper/tundra,bmharper/tundra
d66b08e0863383ec14c35ecc2556ca80054486a6
share/lua/meta/art/10_googleimage.lua
share/lua/meta/art/10_googleimage.lua
--[[ Gets an artwork from images.google.com $Id$ Copyright © 2007 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any la...
--[[ Gets an artwork from images.google.com $Id$ Copyright © 2007 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any la...
Fix GoogleImage warning. Close #3311
Fix GoogleImage warning. Close #3311 Patch by ale5000
Lua
lgpl-2.1
vlc-mirror/vlc-2.1,krichter722/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.1,krichter722/vlc,shyamalschandra/vlc,shyamalschandra/vlc,vlc-mirror/vlc,krichter722/vlc,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc,jomanmuk/vlc-2.2,shyamalschandra/vlc,jomanmuk/vlc-2.2,shyamalschandra/vlc,vlc-mirror/vlc-2.1,xkfz007/vlc,shyam...
e47a4921faaecbb1e2710e48bcb36c64221ad6a8
service/multicastd.lua
service/multicastd.lua
local skynet = require "skynet" local mc = require "multicast.core" local datacenter = require "datacenter" local harbor_id = skynet.harbor(skynet.self()) local command = {} local channel = {} local channel_n = {} local channel_remote = {} local channel_id = harbor_id local NORET = {} local function get_address(t, i...
local skynet = require "skynet" local mc = require "multicast.core" local datacenter = require "datacenter" local harbor_id = skynet.harbor(skynet.self()) local command = {} local channel = {} local channel_n = {} local channel_remote = {} local channel_id = harbor_id local NORET = {} local function get_address(t, i...
bugfix. remote publish first, see issue #391
bugfix. remote publish first, see issue #391
Lua
mit
sundream/skynet,cloudwu/skynet,bigrpg/skynet,liuxuezhan/skynet,MRunFoss/skynet,wangyi0226/skynet,liuxuezhan/skynet,xcjmine/skynet,sundream/skynet,icetoggle/skynet,bttscut/skynet,cdd990/skynet,fztcjjl/skynet,kyle-wang/skynet,cloudwu/skynet,jxlczjp77/skynet,bttscut/skynet,letmefly/skynet,hongling0/skynet,asanosoyokaze/sk...
8891d3f0c374c461939690a55ee33e1bf137be3b
admin.lua
admin.lua
--[[ This file is part of ClearTables @author Paul Norman <penorman@mac.com> @copyright 2015-2016 Paul Norman, MIT license ]]-- require "common" --- Normalizes admin tags -- @param v Admin tag value -- @return An integer as a string for the layer tag function admin_level (v) return v and string.find(v, "^%d%d?$"...
--[[ This file is part of ClearTables @author Paul Norman <penorman@mac.com> @copyright 2015-2016 Paul Norman, MIT license ]]-- require "common" --- Normalizes admin tags -- @param v Admin tag value -- @return An integer as a string for the layer tag function admin_level (v) return v and string.find(v, "^%d%d?$"...
Remove stray debug statements
Remove stray debug statements Fixes #52
Lua
mit
pnorman/ClearTables,ClearTables/ClearTables
fc1c3914daf83e5fad80f9d41e53c5e1f7109217
lib/zip.lua
lib/zip.lua
local Fs = require('meta-fs') local Path = require('path') local Zlib = require('../zlib') local band = require('bit').band -- -- walk over entries of a zipball read from `stream` -- local function walk(stream, options, callback) -- defaults if not options then options = {} end if not options.prefix then option...
local Fs = require('meta-fs') local Path = require('path') local Zlib = require('../zlib') local band = require('bit').band -- -- walk over entries of a zipball read from `stream` -- local function walk(stream, options, callback) -- defaults if not options then options = {} end -- data buffer and current posit...
unzip takes options. supported path prefix and number of path chunks to strip
unzip takes options. supported path prefix and number of path chunks to strip
Lua
mit
dvv/luvit-balls,dvv/luvit-balls
ed5466e5f0a229f40595480fd74a2fcaa75c3d8c
build/premake5.lua
build/premake5.lua
-- This is the starting point of the build scripts for the project. -- It defines the common build settings that all the projects share -- and calls the build scripts of all the sub-projects. include "Helpers.lua" include "Tests.lua" solution "MonoManagedToNative" configurations { "Debug", "Release" } architectu...
-- This is the starting point of the build scripts for the project. -- It defines the common build settings that all the projects share -- and calls the build scripts of all the sub-projects. include "Helpers.lua" include "Tests.lua" solution "MonoManagedToNative" configurations { "Debug", "Release" } architectu...
Fixed Windows build to generate x86 project files (since that's what Mono official releases provide).
Fixed Windows build to generate x86 project files (since that's what Mono official releases provide).
Lua
mit
mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,tritao/MonoManagedToNative,tritao/MonoManagedToNative,jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,tritao/MonoManagedToNative,jonathanpeppers/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,...
80d9304e0a9d56e34333fefba611dedccf17822a
src/nn-modules/BPRLoss.lua
src/nn-modules/BPRLoss.lua
-- -- User: pat -- Date: 1/15/16 -- local BPRLoss, parent = torch.class('nn.BPRLoss', 'nn.Criterion') function BPRLoss:__init() parent.__init(self) self.output = nil end function BPRLoss:updateOutput(input, y) local theta = input[1] - input[2] self.output = self.output and self.output:resizeAs(theta)...
-- -- User: pat -- Date: 1/15/16 -- local BPRLoss, parent = torch.class('nn.BPRLoss', 'nn.Criterion') function BPRLoss:__init() parent.__init(self) self.output = nil self.epsilon = .0001 end function BPRLoss:updateOutput(input, y) local theta = input[1] - input[2] self.output = self.output and se...
fix inf error in bpr loss
fix inf error in bpr loss
Lua
mit
patverga/torch-relation-extraction,patverga/torch-relation-extraction,patverga/torch-relation-extraction
47604fcf9b7801bc0f320eb29ed2b8e341a452f4
Tests/Bugs/3/manifest.lua
Tests/Bugs/3/manifest.lua
upper = getUpperLibrary(); id = { group=upper.Group, name= upper.Name .. ".3", version="0.1.0.14", author="Tim Simpson" } dependency {group="Macaroni", name="Boost-smart_ptr", version="1.46.1"} dependency {group="Macaroni", name="CppStd", version="2003"} description= [[ There is something wrong wi...
upper = getUpperLibrary(); id = { group=upper.Group, name= upper.Name .. ".3", version="0.1.0.14", author="Tim Simpson" } dependency {group="Macaroni", name="Boost-smart_ptr", version="1.46.1"} dependency {group="Macaroni", name="CppStd", version="2003"} description= [[ There is something wrong wi...
Added to Bugs-3 manifest.
Added to Bugs-3 manifest.
Lua
apache-2.0
TimSimpson/Macaroni,bowlofstew/Macaroni,TimSimpson/Macaroni,TimSimpson/Macaroni,bowlofstew/Macaroni,TimSimpson/Macaroni,bowlofstew/Macaroni,bowlofstew/Macaroni,TimSimpson/Macaroni,bowlofstew/Macaroni
697f909c0831b6f21b458f4cf68070935f524f87
tier/standard/generators.lua
tier/standard/generators.lua
local generator = require"tier.generator" local primitive = require"tier.primitive" local util = require"tier.util" local tags = require"tier.tags" local custom = require"tier.custom" local tagToLua = { [tags.UINT] = "number", [tags.UINT8] = "number", [tags.UINT16] = "number", ...
local generator = require"tier.generator" local primitive = require"tier.primitive" local util = require"tier.util" local tags = require"tier.tags" local custom = require"tier.custom" local tagToLua = { [tags.UINT] = "number", [tags.UINT8] = "number", [tags.UINT16] = "number", ...
Fixed a bug in generating unions.
Fixed a bug in generating unions.
Lua
mit
TheFlyingFiddle/TIER,TheFlyingFiddle/TIER
1fcfc1f8ab6cc972095ba710b01c192ea4ce714e
viewlog.lua
viewlog.lua
local ffi = require('ffi') local lgi = require('lgi') local Gio = lgi.require('Gio') local GLib = lgi.require('GLib') hexchat.register("viewlog", "1.1.0", "Open log file for the current context") --[=[ We would like to use Gio.AppInfo.get_recommended_for_type("text/plain"), but it doesn't work (on Windows)....
local lgi = require('lgi') local Gio = lgi.require('Gio') local GLib = lgi.require('GLib') hexchat.register("viewlog", "1.2.0", "Open log file for the current context") --[=[ We would like to use Gio.AppInfo.get_recommended_for_type("text/plain"), but it doesn't work (on Windows). Gio.AppInfo.launch_def...
Fix viewlog for Linux (and Lua 5.3, without ffi)
Fix viewlog for Linux (and Lua 5.3, without ffi)
Lua
mit
FichteFoll/hexchat-addons
9ad89e6942f1e18ce03b89b3cbdaa37dcaf822c7
nvim/nvim/lua/_/telescope.lua
nvim/nvim/lua/_/telescope.lua
local has_telescope, telescope = pcall(require, 'telescope') local M = {} local previewers = require('telescope.previewers') local builtin = require('telescope.builtin') local conf = require('telescope.config') local Job = require('plenary.job') -- Ignore binary files local new_maker = function(filepath, bufnr, opts...
local has_telescope, telescope = pcall(require, 'telescope') local M = {} local previewers = require('telescope.previewers') local builtin = require('telescope.builtin') local Job = require('plenary.job') -- Ignore binary files local new_maker = function(filepath, bufnr, opts) opts = opts or {} filepath = vim.f...
chore(nvim): minor adjustment
chore(nvim): minor adjustment diff --git a/nvim/nvim/lua/_/telescope.lua b/nvim/nvim/lua/_/telescope.lua index 161fad7..e2711d2 100644 --- a/nvim/nvim/lua/_/telescope.lua +++ b/nvim/nvim/lua/_/telescope.lua @@ -4,7 +4,6 @@ local M = {} local previewers = require('telescope.previewers') local builtin = require('tele...
Lua
mit
skyuplam/dotfiles,skyuplam/dotfiles
185c1fc400256458603e7d2734a5ea3742985495
premake/bgfx.lua
premake/bgfx.lua
-- -- Copyright 2010-2014 Branimir Karadzic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- project "bgfx" uuid "2dc7fd80-ed76-11e0-be50-0800200c9a66" kind "StaticLib" includedirs { BGFX_DIR .. "../bx/include", } defines { -- "BGFX_CONFIG_RENDERER_OPENGL=1", } configur...
-- -- Copyright 2010-2014 Branimir Karadzic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- project "bgfx" uuid "2dc7fd80-ed76-11e0-be50-0800200c9a66" kind "StaticLib" includedirs { BGFX_DIR .. "../bx/include", } defines { -- "BGFX_CONFIG_RENDERER_OPENGL=1", } configur...
Android: Fixed missing link dependencies when building shared library.
Android: Fixed missing link dependencies when building shared library.
Lua
bsd-2-clause
fluffyfreak/bgfx,elmindreda/bgfx,BlueCrystalLabs/bgfx,bkaradzic/bgfx,jpcy/bgfx,marco-we/bgfx,ocornut/bgfx,0-wiz-0/bgfx,jpcy/bgfx,mendsley/bgfx,ming4883/bgfx,cyndis/bgfx,bkaradzic/bgfx,mmicko/bgfx,MikePopoloski/bgfx,septag/bgfx,LSBOSS/bgfx,fluffyfreak/bgfx,0-wiz-0/bgfx,jpcy/bgfx,jdryg/bgfx,aonorin/bgfx,ktotheoz/bgfx,cua...
7a0c905dce9e470462ad07733dad1eacbbb473f6
kernel/turtle/ttl2flr.lua
kernel/turtle/ttl2flr.lua
-- convert turtle ontologies to F-Logic/Flora-2 local ttl2flr = {} local turtleparse = require("turtleparse") local __dump = require("pl.pretty").dump -- no default prefix support in Flora-2, so we save it here and -- substitute it upon encountering it local __DEFAULT_PREFIX_URI -- prefix index necessary to expand ...
-- convert turtle ontologies to F-Logic/Flora-2 local ttl2flr = {} local turtleparse = require("turtleparse") local __dump = require("pl.pretty").dump -- no default prefix support in Flora-2, so we save it here and -- substitute it upon encountering it local __DEFAULT_PREFIX_URI -- prefix index necessary to expand ...
hacky bnode support in ttl2flr and fix one part of string escaping
hacky bnode support in ttl2flr and fix one part of string escaping
Lua
mit
jbalint/banshee-sympatico,jbalint/banshee-sympatico,jbalint/banshee-sympatico,jbalint/banshee-sympatico,jbalint/banshee-sympatico,jbalint/banshee-sympatico,jbalint/banshee-sympatico,jbalint/banshee-sympatico
0804a0a91d76fed01db296f8a22771752ee5771a
openwrt/package/linkmeter/luasrc/controller/linkmeter/lm.lua
openwrt/package/linkmeter/luasrc/controller/linkmeter/lm.lua
module("luci.controller.linkmeter.lm", package.seeall) function index() local root = node() root.target = call("rootredirect") local page = entry({"lm"}, template("linkmeter/index"), nil, 10) page.sysauth = { "anon", "root" } page.sysauth_authenticator = function (validator, accs, default) local ...
module("luci.controller.linkmeter.lm", package.seeall) function index() local root = node() root.target = call("rootredirect") local page = entry({"lm"}, template("linkmeter/index"), nil, 10) page.sysauth = { "anon", "root" } page.sysauth_authenticator = function (validator, accs, default) local ...
[lm] Fix config's rawset double urldecoding values
[lm] Fix config's rawset double urldecoding values
Lua
mit
shmick/HeaterMeter,dwright134/HeaterMeter,shmick/HeaterMeter,kdakers80/HeaterMeter,kdakers80/HeaterMeter,dwright134/HeaterMeter,shmick/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,dwright134/HeaterMeter,dwright134/HeaterMeter,kdakers80/HeaterMeter,kdakers80/HeaterMeter,dwright134/HeaterMeter,dwright134/HeaterMet...
4895b7db7014afa1c1e25718248260a4c9455c8f
lua/plugins/telescope.lua
lua/plugins/telescope.lua
local nvim = require'nvim' local utils = require'utils' local executable = require'utils.files'.executable local load_module = require'utils.helpers'.load_module local set_autocmd = require'nvim.autocmds'.set_autocmd local set_mapping = require'nvim.mappings'.set_mapping local set_command = require'nvim.commands'.s...
local nvim = require'nvim' local utils = require'utils' local executable = require'utils.files'.executable local load_module = require'utils.helpers'.load_module local set_autocmd = require'nvim.autocmds'.set_autocmd local set_mapping = require'nvim.mappings'.set_mapping local set_command = require'nvim.commands'.s...
fix: Restore telescope dynamic find files
fix: Restore telescope dynamic find files
Lua
mit
Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim
8f5e105ee04692d8f6a23b3f9909cab25f39dad8
admin/server/player_admin.lua
admin/server/player_admin.lua
addCommandHandler( { "getpos", "pos", "getposition", "getxyz", "getloc", "loc", "getlocation" }, function( player, cmd, targetPlayer ) if ( exports.common:isPlayerServerTrialAdmin( player ) ) then if ( targetPlayer ) then targetPlayer = exports.common:getPlayerFromPartialName( targetPlayer, player ) ...
addCommandHandler( { "getpos", "pos", "getposition", "getxyz", "getloc", "loc", "getlocation" }, function( player, cmd, targetPlayer ) if ( exports.common:isPlayerServerTrialAdmin( player ) ) then if ( targetPlayer ) then targetPlayer = exports.common:getPlayerFromPartialName( targetPlayer, player ) ...
admin: fix issues with set admin
admin: fix issues with set admin
Lua
mit
smile-tmb/lua-mta-fairplay-roleplay
e4c3dc4b01ddaad24234f43db6a1cee0e63f1498
src/nodish/fs.lua
src/nodish/fs.lua
local S = require'syscall' local events = require'nodish.events' local stream = require'nodish.stream' local nextTick = require'nodish.nexttick'.nextTick local util = require'nodish._util' local ev = require'ev' local buffer = require'nodish.buffer' local loop = ev.Loop.default local createReadStream = function(path,...
local S = require'syscall' local events = require'nodish.events' local stream = require'nodish.stream' local nextTick = require'nodish.nexttick'.nextTick local util = require'nodish._util' local ev = require'ev' local buffer = require'nodish.buffer' local octal = require "syscall.helpers".octal local loop = ev.Loop.def...
fix mode, postpone resume and open event
fix mode, postpone resume and open event
Lua
mit
lipp/nodish
1bf1fc6311433afdae443d671e6a97437db328e4
modules/spotify.lua
modules/spotify.lua
-- http://developer.spotify.com/en/metadata-api/overview/ local simplehttp = require'simplehttp' local json = require'json' local utify8 = function(str) str = str:gsub("\\u(....)", function(n) n = tonumber(n, 16) if(n < 128) then return string.char(n) elseif(n < 2048) then return string.char(192 + ((n -...
-- http://developer.spotify.com/en/metadata-api/overview/ local simplehttp = require'simplehttp' local json = require'json' require'tokyocabinet' require'logging.console' local log = logging.console() local spotify = tokyocabinet.hdbnew() local utify8 = function(str) str = str:gsub("\\u(....)", function(n) n = to...
spotify: Respect the cache requirements.
spotify: Respect the cache requirements. This fixes #22.
Lua
mit
torhve/ivar2,haste/ivar2,torhve/ivar2,torhve/ivar2
f6c6042238789696f01831cfc53581990c00437b
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...
Fixed autocompletion reset in non-nim files
Fixed autocompletion reset in non-nim files
Lua
mit
xomachine/textadept-nim
c3dc712169391cd676ae56bbe6e4cdae472d4395
frontend/ui/reader/readerhighlight.lua
frontend/ui/reader/readerhighlight.lua
ReaderHighlight = InputContainer:new{} function ReaderHighlight:init() if Device:hasKeyboard() then self.key_events = { ShowToc = { { "." }, doc = _("highlight text") }, } end end function ReaderHighlight:initGesListener() self.ges_events = { Tap = { GestureRange:new{ ges = "tap", rang...
ReaderHighlight = InputContainer:new{} function ReaderHighlight:init() if Device:hasKeyboard() then self.key_events = { ShowToc = { { "." }, doc = _("highlight text") }, } end end function ReaderHighlight:initGesListener() self.ges_events = { Tap = { GestureRange:new{ ges = "tap", rang...
fix reader crash when hold pos is outside of page area
fix reader crash when hold pos is outside of page area
Lua
agpl-3.0
koreader/koreader,koreader/koreader,NiLuJe/koreader,apletnev/koreader,chrox/koreader,NickSavage/koreader,ashang/koreader,Markismus/koreader,ashhher3/koreader,poire-z/koreader,lgeek/koreader,Frenzie/koreader,robert00s/koreader,noname007/koreader,poire-z/koreader,chihyang/koreader,NiLuJe/koreader,Frenzie/koreader,pazos/k...
648504119ec0e31a1472606eabfb0004bb162ac8
lualib/http/sockethelper.lua
lualib/http/sockethelper.lua
local socket = require "socket" local skynet = require "skynet" local readbytes = socket.read local writebytes = socket.write local sockethelper = {} local socket_error = setmetatable({} , { __tostring = function() return "[Socket Error]" end }) sockethelper.socket_error = socket_error local function preread(fd, st...
local socket = require "socket" local skynet = require "skynet" local readbytes = socket.read local writebytes = socket.write local sockethelper = {} local socket_error = setmetatable({} , { __tostring = function() return "[Socket Error]" end }) sockethelper.socket_error = socket_error local function preread(fd, st...
bugfix: wakeup sleep
bugfix: wakeup sleep
Lua
mit
xcjmine/skynet,sundream/skynet,ag6ag/skynet,kyle-wang/skynet,korialuo/skynet,Ding8222/skynet,iskygame/skynet,jxlczjp77/skynet,pigparadise/skynet,jxlczjp77/skynet,icetoggle/skynet,jxlczjp77/skynet,QuiQiJingFeng/skynet,icetoggle/skynet,pigparadise/skynet,JiessieDawn/skynet,firedtoad/skynet,zhangshiqian1214/skynet,bttscut...
91807837046a4b4efcd09ddae9258deb6e5a115d
test_scripts/Polices/Policy_Table_Update/040_ATF_P_TC_PTU_Policies_Manager_Changes_Status_To_UPDATE_NEEDED.lua
test_scripts/Polices/Policy_Table_Update/040_ATF_P_TC_PTU_Policies_Manager_Changes_Status_To_UPDATE_NEEDED.lua
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [PolicyTableUpdate] PoliciesManager changes status to “UPDATE_NEEDED” -- -- Description: -- PoliciesManager must change the status to “UPDATE_NEEDED” and notify HMI with -- OnStatusUpdate(“UPDATE_NEE...
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [PolicyTableUpdate] PoliciesManager changes status to “UPDATE_NEEDED” -- -- Description: -- PoliciesManager must change the status to “UPDATE_NEEDED” and notify HMI with -- OnStatusUpdate(“UPDATE_NEE...
Fix issues
Fix issues
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
135effa830a7a5bd5b7f1c670de6a6a7876d7887
luci/model-scutclient.lua
luci/model-scutclient.lua
-- LuCI by libc0607 (libc0607@gmail.com) -- 华工路由群 262939451 scut = Map( "scutclient", translate("华南理工大学客户端 设置"), ' <a href="'..luci.dispatcher.build_url("admin/network/wireless/radio0.network1")..'">' ..translate("点此处去设置Wi-Fi") ..'</a>'.."<br />" ..' <a href="'..luci.dispatcher.build_url("admin/network/network/w...
-- LuCI by libc0607 (libc0607@gmail.com) -- 华工路由群 262939451 scut = Map( "scutclient", translate("华南理工大学客户端 设置"), ' <a href="'..luci.dispatcher.build_url("admin/network/wireless/radio0.network1")..'">' ..translate("点此处去设置Wi-Fi") ..'</a>'.."<br />" ..' <a href="'..luci.dispatcher.build_url("admin/network/network/w...
修正一些bug,mac双重获取,自动重连
修正一些bug,mac双重获取,自动重连
Lua
agpl-3.0
981213/scutclient,981213/scutclient,scutclient/scutclient,hanwckf/scutclient,scutclient/scutclient,hanwckf/scutclient
d326fe5f66becd014ca02a252739ef54007f8abb
premake5.lua
premake5.lua
local build_dir = "build/" .. _ACTION -------------------------------------------------------------------------------- solution "Libs" configurations { "Release", "Debug" } architecture "x64" location (build_dir) objdir (build_dir .. "/obj") warnings "Extra" configuration { "Debug" ...
local build_dir = "build/" .. _ACTION -------------------------------------------------------------------------------- solution "Libs" configurations { "Release", "Debug" } architecture "x64" location (build_dir) objdir (build_dir .. "/obj") warnings "Extra" configuration { "Debug" ...
Fix Windows build
Fix Windows build
Lua
mit
abolz/Format
584884deb8ac62ef49f7e11e1b893ff56369ea77
route.lua
route.lua
routes = {} routes['^/(.*).(jpg|gif|png|css|js|ico|swf|flv|mp3|mp4|woff|eot|ttf|otf|svg)'] = function() header('Cache-Control: max-age=864000') sendfile(headers.uri) end routes['^/user/:user_id'] = function(r) print('User ID: ', r.user_id) end routes['^/user/:user_id/:post'] = function(r) print('User ...
routes = {} routes['^/(.*).(jpg|gif|png|css|js|ico|swf|flv|mp3|mp4|woff|eot|ttf|otf|svg)'] = function() header('Cache-Control: max-age=864000') sendfile(headers.uri) end routes['^/user/:user_id'] = function(r) print('User ID: ', r.user_id) end routes['^/user/:user_id/:post(.+)'] = function(r) print('U...
fix router example
fix router example
Lua
mit
oneoo/alilua,tempbottle/alilua,tempbottle/alilua,zhangf911/alilua,oneoo/alilua,zhangf911/alilua,oneoo/alilua,zhangf911/alilua,tempbottle/alilua
4de63fc5e7e3d471188a2e67dc60a9f31b6eaa39
nvim/init.lua
nvim/init.lua
vim.cmd [[ source ~/.vimrc ]] -- === lspconfig === -- Mappings. -- See `:help vim.diagnostic.*` for documentation on any of the below functions local opts = { noremap=true, silent=true } vim.keymap.set('n', '<space>e', vim.diagnostic.open_float, opts) vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, opts) vim.keym...
vim.cmd [[ source ~/.vimrc ]] -- === lspconfig === -- Mappings. -- See `:help vim.diagnostic.*` for documentation on any of the below functions local opts = { noremap=true, silent=true } vim.keymap.set('n', '<space>e', vim.diagnostic.open_float, opts) vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, opts) vim.keym...
[nvim] Fix nvim-lspconfig
[nvim] Fix nvim-lspconfig
Lua
mit
raulchen/dotfiles,raulchen/dotfiles
dad568bea5ac767a8d7c2e0ee5df032d10651be1
test_scripts/RC/GetInteriorVehicleData/012_Transfering_of_isSubscribed_parameter_in_case_request_from_Mob_app_with_subscribe_parameter_but_response_from_HMI_without_isSubscribed.lua
test_scripts/RC/GetInteriorVehicleData/012_Transfering_of_isSubscribed_parameter_in_case_request_from_Mob_app_with_subscribe_parameter_but_response_from_HMI_without_isSubscribed.lua
--------------------------------------------------------------------------------------------------- -- Requirement summary: -- [SDL_RC] Current module status data GetInteriorVehicleData -- -- Description: -- In case: -- 1) RC app sends valid and allowed by policies GetInteriorVehicleData request with "subscribe" parame...
--------------------------------------------------------------------------------------------------- -- Requirement summary: -- [SDL_RC] Current module status data GetInteriorVehicleData -- -- Description: -- In case: -- 1) RC app sends valid and allowed by policies GetInteriorVehicleData request with "subscribe" parame...
Fix according to new req-t regarding 2nd subscribe/unsubscribe
Fix according to new req-t regarding 2nd subscribe/unsubscribe
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
8ee8b53efcd7d2d54819b9a2a2a8b2247cce1f6d
src/util.lua
src/util.lua
local Pkg = {} local std = _G local ipairs = ipairs local pairs = pairs local type = type local setmetatable = setmetatable local getmetatable = getmetatable local tostring = tostring local print = print local table = table local io = io local string = string local math = math setfenv(1, Pkg) local empty = {} functi...
local Pkg = {} local std = _G local ipairs = ipairs local pairs = pairs local type = type local setmetatable = setmetatable local getmetatable = getmetatable local tostring = tostring local print = print local table = table local io = io local string = string local math = math setfenv(1, Pkg) local empty = {} functi...
Add fixPad and levenstein to util
Add fixPad and levenstein to util
Lua
apache-2.0
witheve/Eve,shamrin/Eve,witheve/Eve,witheve/Eve,nmsmith/Eve,shamrin/Eve,witheve/lueve,shamrin/Eve,nmsmith/Eve,nmsmith/Eve,witheve/lueve
dbbe9bf5a67ddd17e3aa85e2384d4b4ea75120b3
commands/update.lua
commands/update.lua
local log = require('log') local updater = require('auto-updater') local uv = require('uv') local pathJoin = require('luvi').path.join local exec = require('exec') local prompt = require('prompt')(require('pretty-print')) local miniz = require('miniz') local binDir = pathJoin(uv.exepath(), "..") local function update...
local log = require('log') local updater = require('auto-updater') local uv = require('uv') local pathJoin = require('luvi').path.join local exec = require('exec') local prompt = require('prompt')(require('pretty-print')) local miniz = require('miniz') local binDir = pathJoin(uv.exepath(), "..") local function update...
Fix rest of update for windows
Fix rest of update for windows
Lua
apache-2.0
luvit/lit,squeek502/lit,kidaa/lit,1yvT0s/lit,DBarney/lit,lduboeuf/lit,kaustavha/lit,zhaozg/lit,james2doyle/lit
56f1edb675c55a4b4274dd4ca9fe2c815ebc9585
test_scripts/Polices/Policy_Table_Update/023_ATF_P_TC_PoliciesManager_changes_status_to_UP_TO_DATE.lua
test_scripts/Polices/Policy_Table_Update/023_ATF_P_TC_PoliciesManager_changes_status_to_UP_TO_DATE.lua
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] PoliciesManager changes status to “UP_TO_DATE” -- [HMI API] OnStatusUpdate -- [HMI API] OnReceivedPolicyUpdate notification -- -- Description: -- SDL must forward OnSystemRequest...
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] PoliciesManager changes status to “UP_TO_DATE” -- [HMI API] OnStatusUpdate -- [HMI API] OnReceivedPolicyUpdate notification -- -- Description: -- SDL must forward OnSystemRequest...
Fix issues in script
Fix issues in script
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
3e24780cfb5393356a2545efadffee1b269341c2
test_scripts/Polices/Policy_Table_Update/019_ATF_P_TC_Sending_PTS_to_app_OnSystemRequest_appID_default.lua
test_scripts/Polices/Policy_Table_Update/019_ATF_P_TC_Sending_PTS_to_app_OnSystemRequest_appID_default.lua
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] Sending PTS to mobile application on getting OnSystemRequest with appID "default" -- [HMI API] SystemRequest request/response -- -- Description: -- SDL must forward OnSystemReque...
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] Sending PTS to mobile application on getting OnSystemRequest with appID "default" -- [HMI API] SystemRequest request/response -- -- Description: -- SDL must forward OnSystemReque...
Fix issues
Fix issues
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
e483a53902a9621f95681bf0db4582be83d9e916
OS/DiskOS/terminal.lua
OS/DiskOS/terminal.lua
--The terminal !-- local PATH = "C://Programs/;" local curdrive, curdir, curpath = "C", "/", "C:///" local editor = require("C://Editors") local function nextPath(p) if p:sub(-1)~=";" then p=p..";" end return p:gmatch("(.-);") end printCursor(1,1,1) color(9) print("LIKO-12 V0.6.0 DEV") flip() sleep(0.5) color(8)...
--The terminal !-- local PATH = "C://Programs/;" local curdrive, curdir, curpath = "C", "/", "C:///" local editor = require("C://Editors") local function nextPath(p) if p:sub(-1)~=";" then p=p..";" end return p:gmatch("(.-);") end printCursor(1,1,1) color(9) print("LIKO-12 V0.6.0 DEV") flip() sleep(0.5) color(8)...
Bugfix
Bugfix
Lua
mit
RamiLego4Game/LIKO-12
1422c089c3c8a81cca0ab93684a22fd0445331b6
core/ext/find.lua
core/ext/find.lua
-- Copyright 2007 Mitchell Foral mitchell<att>caladbolg.net. See LICENSE. local find = textadept.find --- -- [Local table] Text escape sequences with their associated characters. -- @class table -- @name escapes local escapes = { ['\\a'] = '\a', ['\\b'] = '\b', ['\\f'] = '\f', ['\\n'] = '\n', ['\\r'] = '\r', ['\\...
-- Copyright 2007 Mitchell Foral mitchell<att>caladbolg.net. See LICENSE. local find = textadept.find --- -- [Local table] Text escape sequences with their associated characters. -- @class table -- @name escapes local escapes = { ['\\a'] = '\a', ['\\b'] = '\b', ['\\f'] = '\f', ['\\n'] = '\n', ['\\r'] = '\r', ['\\...
Fixed 'find previous' bug; core/ext/find.lua Changeset 15 introduced an 'increment' variable that is normally +/-1 for find next and find prev respectively. However instead of adding the increment for find prev, it subtracts it, effectively adding 1 which is not right.
Fixed 'find previous' bug; core/ext/find.lua Changeset 15 introduced an 'increment' variable that is normally +/-1 for find next and find prev respectively. However instead of adding the increment for find prev, it subtracts it, effectively adding 1 which is not right.
Lua
mit
jozadaquebatista/textadept,jozadaquebatista/textadept
2b4e4c3639b995662bc667f52ec249dce7df9fce
base/explosion.lua
base/explosion.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...
fix #10775: do not create flames on impassable fields. While here also fix some style
fix #10775: do not create flames on impassable fields. While here also fix some style
Lua
agpl-3.0
vilarion/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content,Baylamon/Illarion-Content
8c8d445cd99598caa7b497baec77946194cc490b
init.lua
init.lua
local init = {} local shell = require("shell") function init.getfiles() print("initializing files...") local repo for line in io.lines(os.getenv("PWD") .. "/init.files") do if repo == nil then repo = line print("repo " .. repo) else print("getting " .. line) os.execute("wget -f ht...
local init = {} local shell = require("shell") function init.getfiles(gotFilesList) print("initializing files...") local repo for line in io.lines(os.getenv("PWD") .. "/init.files") do if repo == nil then repo = line if not gotFilesList then -- restart, got file listing that may have chan...
fixes state init.files problem
fixes state init.files problem
Lua
apache-2.0
InfinitiesLoop/oclib
f5096bf55a684fd1dba9d68d1341521c9384aa00
modules/unicode.lua
modules/unicode.lua
local sql = require'lsqlite3' local util = require'util' -- utf-8 functions (C) Rici Lake -- http://luaparse.luaforge.net/libquery.lua.html local function X(str) return tonumber(str, 16) end local elevenBits = X"7FF" local sixteenBits = X"FFFF" local math = require 'math' local mod = math.mod local strchar = string.cha...
local sql = require'lsqlite3' local util = require'util' -- utf-8 functions (C) Rici Lake -- http://luaparse.luaforge.net/libquery.lua.html local function X(str) return tonumber(str, 16) end local elevenBits = X"7FF" local sixteenBits = X"FFFF" local math = require 'math' local mod = math.mod local strchar = string.cha...
unicode: Fix epic merge failure...
unicode: Fix epic merge failure...
Lua
mit
torhve/ivar2,haste/ivar2,torhve/ivar2,torhve/ivar2
28c2ce5a7d317d35b19d249ec4df4d2a296c5015
Hydra/repl.lua
Hydra/repl.lua
local Stdin = {} function Stdin.new() return setmetatable({pos = 1, chars = {}, cmds = {}, cmdpos = 1}, {__index = Stdin}) end function Stdin:tostring() return table.concat(self.chars) end function Stdin:reset() self.chars = {} self.pos = 1 end function Stdin:deletechar(dir) local delpos = self.pos if di...
local Stdin = {} function Stdin.new() return setmetatable({pos = 1, chars = {}, cmds = {}, cmdpos = 1}, {__index = Stdin}) end function Stdin:tostring() return table.concat(self.chars) end function Stdin:reset() self.chars = {} self.pos = 1 end function Stdin:deletechar(dir) local delpos = self.pos if di...
Fixing printing of tab char in REPL.
Fixing printing of tab char in REPL.
Lua
mit
cmsj/hammerspoon,lowne/hammerspoon,chrisjbray/hammerspoon,Habbie/hammerspoon,peterhajas/hammerspoon,kkamdooong/hammerspoon,emoses/hammerspoon,dopcn/hammerspoon,nkgm/hammerspoon,heptal/hammerspoon,Stimim/hammerspoon,CommandPost/CommandPost-App,lowne/hammerspoon,chrisjbray/hammerspoon,Habbie/hammerspoon,kkamdooong/hammer...
a989e9579fbe56f94fb7cc48334ab1d208c927b9
tests/test-dns.lua
tests/test-dns.lua
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
fix: remove duplicate dns test "resolve6"
fix: remove duplicate dns test "resolve6"
Lua
apache-2.0
zhaozg/luvit,luvit/luvit,luvit/luvit,zhaozg/luvit
97eeb9ff4cdd5b2c592bbb503837f9ea71a046b8
spec/unit/payload_spec.lua
spec/unit/payload_spec.lua
--- payload_spec.lua -- -- Copyright (c) 2013 Snowplow Analytics Ltd. All rights reserved. -- -- This program is licensed to you under the Apache License Version 2.0, -- and you may not use this file except in compliance with the Apache License Version 2.0. -- You may obtain a copy of the Apache License Version 2.0 at ...
--- payload_spec.lua -- -- Copyright (c) 2013 Snowplow Analytics Ltd. All rights reserved. -- -- This program is licensed to you under the Apache License Version 2.0, -- and you may not use this file except in compliance with the Apache License Version 2.0. -- You may obtain a copy of the Apache License Version 2.0 at ...
Fixed the references to config.encodeBase64
Fixed the references to config.encodeBase64
Lua
apache-2.0
snowplow/snowplow-lua-tracker
0d29892d2537bfdbb27f2a455bcd3edc2fa5a183
plugins/webshot.lua
plugins/webshot.lua
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param, psize) local response_body = { } local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(re...
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param, psize) local response_body = { } local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(re...
patterns fix
patterns fix
Lua
agpl-3.0
xsolinsx/AISasha
52fcdbf99071105f3a2c9221a406a05fec5d4692
Hydra/API/window.lua
Hydra/API/window.lua
--- window --- --- Functions for managing any window. --- --- To get windows, see `window.focusedwindow` and `window.visiblewindows`. --- --- To get window geometrical attributes, see `window.{frame,size,topleft}`. --- --- To move and resize windows, see `window.set{frame,size,topleft}`. --- --- It may be handy to get ...
--- window --- --- Functions for managing any window. --- --- To get windows, see `window.focusedwindow` and `window.visiblewindows`. --- --- To get window geometrical attributes, see `window.{frame,size,topleft}`. --- --- To move and resize windows, see `window.set{frame,size,topleft}`. --- --- It may be handy to get ...
Fixes window.orderedwindows(); closes #207.
Fixes window.orderedwindows(); closes #207.
Lua
mit
hypebeast/hammerspoon,Hammerspoon/hammerspoon,Stimim/hammerspoon,tmandry/hammerspoon,trishume/hammerspoon,wsmith323/hammerspoon,latenitefilms/hammerspoon,TimVonsee/hammerspoon,cmsj/hammerspoon,emoses/hammerspoon,peterhajas/hammerspoon,ocurr/hammerspoon,Hammerspoon/hammerspoon,junkblocker/hammerspoon,bradparks/hammerspo...
0df9649feb4417edf895a33bcfd25ec196a11f7e
scripts/example.lua
scripts/example.lua
function process(packet) if packet.size ~= 0 then -- skip the syn and ack local time_str = os.date('%Y-%m-%d %H:%M:%S', packet.tv_sec).."."..packet.tv_usec print(string.format("%s %s:%d=>%s:%d %s %u %u %d %u %s", time_str, packet.sip, -- source ip packet.sport, --...
function process(packet) if packet.size ~= 0 then -- skip the syn and ack local time_str = os.date('%Y-%m-%d %H:%M:%S', packet.tv_sec).."."..packet.tv_usec print(string.format("%s %s:%d=>%s:%d %s %u %u %d %u %s", time_str, packet.sip, -- source ip packet.sport, --...
FIX: remove non-exists from example.lua
FIX: remove non-exists from example.lua
Lua
mit
git-hulk/tcpkit,git-hulk/tcpkit
a0f4015f7d9e74762bc444ab405dbebba50326ed
frontend/ui/opdsparser.lua
frontend/ui/opdsparser.lua
--[[ This code is derived from the LAPHLibs which can be found here: https://github.com/Wiladams/LAPHLibs --]] local util = require("util") local luxl = require("luxl") local ffi = require("ffi") local OPDSParser = {} local unescape_map = { ["lt"] = "<", ["gt"] = ">", ["amp"] = "&", ["quot"]...
--[[ This code is derived from the LAPHLibs which can be found here: https://github.com/Wiladams/LAPHLibs --]] local util = require("util") local luxl = require("luxl") local ffi = require("ffi") local OPDSParser = {} local unescape_map = { ["lt"] = "<", ["gt"] = ">", ["amp"] = "&", ["quot"]...
Workaround luxl's issue with self-closing tags once and for all (#6994)
Workaround luxl's issue with self-closing tags once and for all (#6994) * luxl and self-closing tags, once more with feeling... Fix #6993 * More generic fix to the self-closing tag issue w/ luxl Re #6902 & co.
Lua
agpl-3.0
koreader/koreader,Frenzie/koreader,poire-z/koreader,koreader/koreader,Hzj-jie/koreader,NiLuJe/koreader,Frenzie/koreader,mwoz123/koreader,poire-z/koreader,pazos/koreader,NiLuJe/koreader,Markismus/koreader
4f784635da0ca1ada073894e9d771a56ec285f03
lib/redis/voncount.lua
lib/redis/voncount.lua
-------------- Function to simulate inheritance ------------------------------------- -- local function inheritsFrom( baseClass ) -- local new_class = {} -- local class_mt = { __index = new_class } -- if baseClass then -- setmetatable( new_class, { __index = baseClass } ) -- end -- return new_class -- e...
-------------- Function to simulate inheritance ------------------------------------- -- local function inheritsFrom( baseClass ) -- local new_class = {} -- local class_mt = { __index = new_class } -- if baseClass then -- setmetatable( new_class, { __index = baseClass } ) -- end -- return new_class -- e...
small fix for non existing variables
small fix for non existing variables
Lua
mit
FTBpro/count-von-count,FTBpro/count-von-count
d9df3871d45a23b87dfe39ecc1c03661f0115f41
src/lua-factory/sources/grl-guardianvideos.lua
src/lua-factory/sources/grl-guardianvideos.lua
--[[ * Copyright (C) 2014 Bastien Nocera * * Contact: Bastien Nocera <hadess@hadess.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 Free Software Foundation; version 2.1 of * the License, or (at you...
--[[ * Copyright (C) 2014 Bastien Nocera * * Contact: Bastien Nocera <hadess@hadess.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 Free Software Foundation; version 2.1 of * the License, or (at you...
guardianvideos: Fix parsing of metadata
guardianvideos: Fix parsing of metadata Closes #2 Signed-off-by: Victor Toso <39b7599ff73bbf5db531748ba5250f21fa7120ff@redhat.com>
Lua
lgpl-2.1
jasuarez/grilo-plugins,GNOME/grilo-plugins,jasuarez/grilo-plugins,grilofw/grilo-plugins,grilofw/grilo-plugins,GNOME/grilo-plugins
f0037bb50230e6350e10ad174233b12e4114d246
lualib/socket.lua
lualib/socket.lua
local core = require "silly.core" local ns = require "netstream" local nb_pool = {} local socket_pool = {} local socket = {} local EVENT = {} function EVENT.close(_, fd, _, _) local s = socket_pool[fd] if s == nil then return end ns.clear(s.sbuffer) if s.co th...
local core = require "silly.core" local ns = require "netstream" local nb_pool = {} local socket_pool = {} local socket = {} local EVENT = {} function EVENT.close(_, fd, _, _) local s = socket_pool[fd] if s == nil then return end ns.clear(s.sbuffer) if s.co th...
bug fix: wrong gc set when nb_pool's gc called before socket_pool[fd]'s gc, it will crash
bug fix: wrong gc set when nb_pool's gc called before socket_pool[fd]'s gc, it will crash
Lua
mit
findstr/silly