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
/** | |
* Removes baseball-y things. | |
* @param {FeedItem} item | |
* @return {Boolean} true if we should mark this item as read, false if not | |
*/ | |
module.exports = function ExcludeBaseball(item) { | |
return (item.content.toLowerCase().indexOf('baseball') >= 0); | |
} |
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
// List of URLs we've seen this session | |
// TODO: persist this to disk somewhere so we do a better job of de-duping | |
const seenUrls = []; | |
/** | |
* Removes duplicate links to the same item. | |
* @param {FeedItem} item | |
* @return {Boolean} true if we should mark this item as read, false if not | |
*/ | |
module.exports = function DedupeLinks(item) { |
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
# | |
# To use this Makefile with your version of magic-cli, change the value of | |
# PREFIX to whatever you have renamed the main command to. | |
# | |
PREFIX = magic-cli | |
# | |
# Where to install the tools | |
# |
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
oh hi @group <!group> <!group|@group> |
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 ruby | |
remote_url = `git config --get remote.origin.url`.strip | |
matches = remote_url.match(/github\.com:(.+)\/(.+)\.git/) | |
if matches | |
branch_name = `git rev-parse --abbrev-ref HEAD`.strip | |
exec "open https://github.com/#{matches[1]}/#{matches[2]}/compare/#{branch_name}?expand=1" | |
end | |
# Save this file as ~/bin/git-pr and then `chmod +x ~/bin/git-pr`. |
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
diff --git a/thirdparties/hogan-3.0.1.js b/thirdparties/hogan-3.0.1.js | |
index ebdcf43..a184136 100644 | |
--- a/thirdparties/hogan-3.0.1.js | |
+++ b/thirdparties/hogan-3.0.1.js | |
@@ -15,737 +15,729 @@ | |
-var Hogan = {}; | |
- |
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
expect(x).toEqual(y); compares objects or primitives x and y and passes if they are equivalent | |
expect(x).toBe(y); compares objects or primitives x and y and passes if they are the same object | |
expect(x).toMatch(pattern); compares x to string or regular expression pattern and passes if they match | |
expect(x).toBeDefined(); passes if x is not undefined | |
expect(x).toBeUndefined(); passes if x is undefined |
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
2013 Canada Day | |
by Mark Christian and 4 collaborators | |
All Canadian tweeps are welcome to edit. | |
Add Playlist Edit Share Buy MP3s 68 songs (4:26:26) | |
1 | |
4:46 CLEAN | |
Take Off | |
Doug McKenzie, Bob McKenzie - Great White North |
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
var fallbacks = {} | |
, networks = {} | |
, cacheName = "OldSchoolAppCache" | |
, settings = {} | |
; | |
this.onmessage = function (e) { | |
var msg = e.data; | |
if (msg.type && msg.type === "manifest") { | |
var lines = msg.manifest.split(/\n+/) |
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
(function(){ | |
$('link[rel="stylesheet"]').each(function(i, elem) { | |
// Make an anchor tag with the stylesheet's href -- this is a weird/handy way of | |
// working with URLs in the browser. | |
var anchorTag = $('a').attr('href', elem.getAttribute('href'))[0]; | |
// Rewrite the URL to have a cache busting parameter. This assumes | |
// that any query params weren't significant. | |
anchorTag.search = "ts=" + (+new Date); | |
NewerOlder