pinboard-elinks

Check-in [fc0e0c9425]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:It wasn't an off by one error, think was rounding error instead

*think*. Still don't know for sure. Perhaps was a different in Lua
versions after all.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256: fc0e0c942561931c430af90387409f6459cdc61413a865f13eda4687b21cfbdc
User & Date: atomicules@lavabit.com 2013-06-21 08:56:18
Context
2014-03-07
10:12
Minor change - keybinding for read later

Realised it was conflicting with redrawing the elinks window. check-in: ce00796b89 user: base@atomicules.co.uk tags: master, trunk

2014-02-11
11:50
Add license check-in: 31c581828a user: atomicules@users.noreply.github.com tags: master, trunk
2013-06-21
08:56
It wasn't an off by one error, think was rounding error instead

*think*. Still don't know for sure. Perhaps was a different in Lua
versions after all. check-in: fc0e0c9425 user: atomicules@lavabit.com tags: master, trunk

2013-05-27
14:51
Change keybindings in README.

Related to commit: 496ab7012455fdbf88e5129613d69c0289591c36 check-in: 4cdaa96f7d user: atomicules@lavabit.com tags: master, trunk

Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to pinboard.lua.

99
100
101
102
103
104
105
106
107
108
109
110
111
112

--The following taken from the contrib hooks.lua sample
function hx (c)
    return string.char((c >= 10 and (c - 10) + string.byte ('A')) or c + string.byte ('0'))
end

function char2hex (c)
    return '%'..hx ((string.byte (c) / 16)-1)..hx (math.mod(string.byte (c), 16))
end

function escape (str)
    return string.gsub (str, "(%W)", char2hex)
end
--end stealing







|






99
100
101
102
103
104
105
106
107
108
109
110
111
112

--The following taken from the contrib hooks.lua sample
function hx (c)
    return string.char((c >= 10 and (c - 10) + string.byte ('A')) or c + string.byte ('0'))
end

function char2hex (c)
    return '%'..hx (math.floor(string.byte (c) / 16))..hx (math.mod(string.byte (c), 16))
end

function escape (str)
    return string.gsub (str, "(%W)", char2hex)
end
--end stealing