Skip to content

Instantly share code, notes, and snippets.

View paularmstrong's full-sized avatar
🐈‍⬛
Codes with cats

Paul Armstrong paularmstrong

🐈‍⬛
Codes with cats
View GitHub Profile

Keybase proof

I hereby claim:

  • I am paularmstrong on github.
  • I am paularmstrong (https://keybase.io/paularmstrong) on keybase.
  • I have a public key ASBFEf8k-OMRv7mD5wCCWTGMs7hwhdni7EO1LxPII3dnPwo

To claim this, I am signing this object:

const state = {
timelines: {
home: {
tweets: [
'123',
'456',
'789',
'012'
]
}
@paularmstrong
paularmstrong / ignore.txt
Last active August 26, 2016 00:52 — forked from dapperfu/pia.sh
.Spotlight*
.Trash*
.AppleDouble*
Thumbs.db
.DocumentRevisions*
.AppleDB*
.AppleDesktop*
.apdisk*
.TemporaryItems*
@paularmstrong
paularmstrong / rm-branch_alias.sh
Created July 28, 2016 20:27
Because sometimes everything you wrote was bad.
# Completely remove the current branch from a git repo
function rm-branch() {
branch="$(git branch --no-color | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')"
git checkout master
git branch -D $branch
}
@paularmstrong
paularmstrong / tdf2016.css
Last active July 6, 2016 14:12
Tour de France 2016 custom stylesheet for NBC Sports streams.
body {
background: #000 !important;
}
div#nbc-header {
display: none !important;;
}
div#player-wrapper + div,
div#player-wrapper + div + div {
@paularmstrong
paularmstrong / Safari GC Repro
Last active March 30, 2016 16:33 — forked from alunny/bundle.js
Safari GC Issue: Normalizr + Lodash
.

Non-HTML:

$ ./bin/swig.js render ./test1 -j ./data.json
onclick="pictureInsert(1, foo)"

HTML:

$ ./bin/swig.js render ./test2 -j ./data.json
, . .
. _.-=~~~--._
.+'#### ***#'+. . .
. .'/#######/ ; # ##'.
. / |###### ######\ .
.' \### \\ # ^ ###'.
(; |## . ___ ##) .
'. ## #####.#.'
. \ : #### #### / . .
'. ## ## .'
.row {
width: 100%;
padding: 0;
clear: both;
height: 1%;
}
.row:after {
display: block;
height: 0;
clear: both;
diff --git a/tests/variables.test.js b/tests/variables.test.js
index fc7cc70..162dc11 100644
--- a/tests/variables.test.js
+++ b/tests/variables.test.js
@@ -61,6 +61,9 @@ var cases = {
{ c: '{{ food.a }}', e: 'tacos' },
{ c: '{{ food["a"] }}', e: 'tacos' },
{ c: '{{ g[0][h.g.i]["c"].b[i] }}', e: 'hi!' },
+ ],
+ 'getters work just fine': [