This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A clipping object is a JavaScript object that contains the following properties. Properties values may be null. | |
// title - String | |
// text - String | |
// url - String | |
// saveDate - Date | |
// Merge function receives an array of clipping objects and returns the merged string | |
function merge(clippings) { | |
var footnoteString = '\n', footnoteCounter = 1, merged = clippings.reduce(function(string, clipping) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A clipping object is a JavaScript object | |
// that contains the following properties. | |
// Properties values may be null. | |
// title (String) | |
// text (String) | |
// url (String) | |
// saveDate (Date) | |
// Return true if the clipping can be reformatted with this script. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------------------- | |
-- -- | |
-- _| _| _| _| _| -- | |
-- _| _| _|_| _|_| _|_| _|_|_| _|_|_| _|_|_| -- | |
-- _| _| _| _| _| _| _| _| _| _| _| _| -- | |
-- _| _| _| _| _| _| _| _| _| _| _| _| -- | |
-- _| _| _| _| _|_| _| _| _|_|_| _|_|_| -- | |
-- -- | |
--------------------------------------------------------------------------- | |
-- Ethan Schoonover <[email protected]> @ethanschoonover -- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
setopt EXTENDED_GLOB NO_UNSET | |
unsetopt NO_MATCH | |
# launch different browser profiles automatically on any named i3 workspace | |
# plain numbered workspaces (or those listed in DEFAULT_WS) launch the normal | |
# browser profile | |
# expected names for chromium/google-chrome executable | |
#browsers=(chromium google-chrome google-chrome-${^=:-stable unstable beta dev}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:if(document.getSelection){s=document.getSelection();}else{s='';};document.location='https://pinboard.in/add?later=yes&noui=yes&jump=close&next=same&url='+encodeURIComponent(location.href)+'&description='+encodeURIComponent(s)+'&title='+encodeURIComponent(document.title) |