This file contains hidden or 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
| # Replace Jekyll's handling of the Redcarpet code_block (which already adds | |
| # support for highlighting, but needs support for the very non-standard | |
| # "code fences with line highlights" extension). | |
| # Since this is currently depending on Redcarpet to cooperate, we are going to | |
| # be naive, and only allow line highlighting when a language is specified. If | |
| # you don't want any syntax highlighting but want to highlight lines, then you | |
| # need to specify text as your language (or it will break), like: | |
| # ```text{4} | |
| module Jekyll |
This file contains hidden or 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
| # HG changeset patch | |
| # Parent 18542ed8614b337f29235d846133d15be1f6f065 | |
| # User Paul O’Shannessy <[email protected]> | |
| diff --git a/browser/base/content/browser-sets.inc b/browser/base/content/browser-sets.inc | |
| --- a/browser/base/content/browser-sets.inc | |
| +++ b/browser/base/content/browser-sets.inc | |
| @@ -68,16 +68,17 @@ | |
| <command id="cmd_pageSetup" oncommand="PrintUtils.showPageSetup();"/> | |
| <command id="cmd_print" oncommand="PrintUtils.print();"/> |
This file contains hidden or 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
| require("request"); | |
| var bz = require("bz"); | |
| var bugzilla = bz.createClient(); | |
| function getRequests(email) { | |
| bugzilla.searchBugs({"flag.requestee": email}, function(err, bugs) { | |
| bugs.forEach(function(bug) { | |
| console.log(formatBugOutput(bug)); | |
| }) |
This file contains hidden or 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 request = require("request"); | |
| var csv = require("csv"); | |
| var growl = require("growl"); | |
| const URL = "http://earthquake.usgs.gov/earthquakes/catalogs/eqs1hour-M0.txt"; | |
| const INTERVAL = 20000; | |
| // this is what the keys map to | |
| var keys = ['Src', 'Eqid', 'Version', 'Datetime', 'Lat', 'Lon', 'Magnitude', 'Depth', 'NST', 'Region']; | |
| var quakes = {}; |
This file contains hidden or 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 coffee | |
| request = require "request" | |
| fs = require "fs" | |
| TARGET_DIR = "./_posts" | |
| PHOTO_SIZE = 1280 | |
| url = "http://blog.zpao.com/api/read?format=json&filter=none&num=50" |
This file contains hidden or 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 makeObj(freeze) { | |
| var o = { | |
| foo: "bar", | |
| doit: function() { | |
| console.log(this.foo); | |
| } | |
| } | |
| if (freeze) | |
| Object.freeze(o); |
This file contains hidden or 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
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| { | |
| self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
| // Override point for customization after application launch. | |
| if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { | |
| self.mainViewController = [[ZMainViewController alloc] initWithNibName:@"ZMainViewController_iPhone" bundle:nil]; | |
| } else { | |
| self.mainViewController = [[ZMainViewController alloc] initWithNibName:@"ZMainViewController_iPad" bundle:nil]; | |
| } | |
| self.window.rootViewController = self.mainViewController; |
This file contains hidden or 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/js/src/jsobj.cpp b/js/src/jsobj.cpp | |
| index afa2125..2afdbb8 100644 | |
| --- a/js/src/jsobj.cpp | |
| +++ b/js/src/jsobj.cpp | |
| @@ -7230,7 +7230,6 @@ dumpValue(const Value &v) | |
| fprintf(stderr, "false"); | |
| } else if (v.isMagic()) { | |
| fprintf(stderr, "<invalid"); | |
| -#ifdef DEBUG | |
| switch (v.whyMagic()) { |
This file contains hidden or 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 datediff(aDate1, aDate2) { | |
| var diff = Math.abs(aDate2 - aDate1); | |
| var milliseconds = diff % 1000; | |
| var seconds = Math.floor(diff / 1000 % 60); | |
| var minutes = Math.floor(diff / (1000 * 60) % 60); | |
| var hours = Math.floor(diff / (1000 * 60 * 60) % 24); | |
| var days = Math.floor(diff / (1000 * 60 * 60 * 24) % 365); | |
| return [ |
This file contains hidden or 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/js/src/jsobj.cpp b/js/src/jsobj.cpp | |
| index afa2125..2afdbb8 100644 | |
| --- a/js/src/jsobj.cpp | |
| +++ b/js/src/jsobj.cpp | |
| @@ -7230,7 +7230,6 @@ dumpValue(const Value &v) | |
| fprintf(stderr, "false"); | |
| } else if (v.isMagic()) { | |
| fprintf(stderr, "<invalid"); | |
| -#ifdef DEBUG | |
| switch (v.whyMagic()) { |