Skip to content

Instantly share code, notes, and snippets.

@nrn
nrn / phx-food.md
Last active January 7, 2020 08:19
Food I recommend checking out if you're visiting Phoenix.

Some truly great food in Phoenix:

Pizzeria Bianco (http://www.pizzeriabianco.com/) - Should make anyone's shortlist for best pizza in the US. This place lead the resurgence of woodfired pizza made with care. It's a pain to get into during normal dinner times, a great choice if you're going early, or have time to hang at the bar next door waiting for a table. iirc they take reservations only for parties of 6 or more. Check out the fennel sausage pizza, and if you're looking for something particularly decadent the prosciutto wrapped fontina appetizer. There are several excellent sister restaurants around town too, Trotto if you're looking for upscale Italian, and Pane Bianco to grab a salad/sandwich.

Tacos Chiwas (http://www.tacoschiwas.com) - Maybe the best Mexican food in a city full of good Mexican food, not a lot else to say. Low prices, counter service, can get packed inside, but usually room to sit outside. Everything here is good, getting hungry just thinking about it. Has a slightly m

Keybase proof

I hereby claim:

  • I am nrn on github.
  • I am nrn (https://keybase.io/nrn) on keybase.
  • I have a public key whose fingerprint is 80EB F551 B567 7B4B 228B EC36 6EBC 4B37 EDEE 8C71

To claim this, I am signing this object:

@nrn
nrn / gist:f818fa7decfd910362b7
Last active September 18, 2016 04:53
Wiki setup for empty ubuntu 14.04 box.
initscript="
start on started networking
stop on stopping networking
respawn
env HOME='/root'
exec wiki -f -p 80
"
@nrn
nrn / react-internals.md
Last active April 1, 2018 18:02
Notes for react internals discussion.

react internals discussion

React: a robust functional view layer.

View code and templating are combined as JavaScript.

In JavaScript you create a virtual DOM, react diffs changes between the last virtual DOM and the next, mutating the real DOM only as necessary to reflect the changes. This has huge implications for cognitive

The current schedule for the completion of ECMAScript 6, the next version of JavaScript, dictates that the language specification be finished by the end of the second quarter of 2014, and most browser vendors have made informal commitments to have ES6 implemented by the end of the year. Over the last couple years, we've heard a lot about the many new features in ES6, excitement, fear, and the inevitable bickering that comes with change. ES6 stands to be the most substantial change to JavaScript since ES4 (which didn't work out that great, as most users of ES5 are aware).

With this much change comes a lot of complexity. Many of the new features (like generators or proxies) are powerful, basic abstractions, and as such combine in complex (and potentially unexpected) ways. In many ways, it offers the possibility of returning us to the wild frontier days that JavaScript only recently left behind, with library and framework vendors each choosing their own combinations of features to build powerful (and complicate

@nrn
nrn / delete.sh
Created August 3, 2013 17:34
Delete extra files
rm client/plugins/activity/activity.js \
client/plugins/bars/bars.js \
client/plugins/bytebeat/bytebeat.js \
client/plugins/calculator/calculator.js \
client/plugins/calendar/calendar.js \
client/plugins/calendar/test.js \
client/plugins/changes/changes.js \
client/plugins/changes/test.js \
client/plugins/chart/chart.js \
client/plugins/code/code.js \
@nrn
nrn / mailTo.js
Created December 25, 2012 21:12
Bookmarklet to mail a link/selected text
javascript:(function () {
var selected = getSelection().toString();
if (selected !== "") selected = '"...\n'+selected+'\n..."\n';
location.href = 'mailto:?SUBJECT='+encodeURIComponent(document.title)+'&BODY='+encodeURIComponent('\n'+location.href+'\n'+selected);
})()
@nrn
nrn / gist:3669857
Created September 7, 2012 21:32
Smallest Federated Wiki bookmarklet
javascript:
(function (main) {
var host = document.location.host
, home = window.prompt('Open these pages from what origin server:', main)
;
if (!home) return;
document.location = 'http://' + home + document.location.pathname.split('/').map(
function (i) {
if (i === 'view') return host;
if (i === home) return 'view';