These are all the JSConf 2014 slides, codes, and notes I was able to cull together from twitter. Thanks to the speakers who posted them and thanks to @chantastic for posting his wonderful notes.
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
| if (!window.localStorage || !window.sessionStorage) (function () { | |
| var Storage = function (type) { | |
| function createCookie(name, value, days) { | |
| var date, expires; | |
| if (days) { | |
| date = new Date(); | |
| date.setTime(date.getTime()+(days*24*60*60*1000)); | |
| expires = "; expires="+date.toGMTString(); |
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
| /* some suggestions on implementing hyperlinks in json */ | |
| // 5988-style (http://tools.ietf.org/html/rfc5988) | |
| { "link" : | |
| { | |
| "href" : "...", | |
| "rel" : "...", | |
| "hreflang" : "...", | |
| "media" : "...", | |
| "title" : "...", |
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
| body { | |
| white-space: pre; | |
| font-family: monospace; | |
| font-family: inconsolata; | |
| background: #042029; | |
| color: #819090; | |
| } | |
| .property { | |
| font-weight: normal; |
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
| body { | |
| background-color: #fdf6e3; | |
| color: #657b83; | |
| font-size: 16px; | |
| white-space: pre; | |
| font-family: "Source Code Pro", monospace; | |
| } | |
| .property { | |
| font-weight: bold; |
I commonly need to get a big list of all the stuff people think of when they think new and shiny these days. This list is for that.
I take a very inclusionist approach to it. 1
- Web Storage (localStorage, sessionStorage)
- Web SQL Database
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
| // 1: how could you rewrite the following to make it shorter? | |
| if (foo) { | |
| bar.doSomething(el); | |
| } else { | |
| bar.doSomethingElse(el); | |
| } | |
#!/usr/bin/env bash
# Assuming OS X Yosemite 10.10.4
# Install XCode and command line tools
# See https://itunes.apple.com/us/app/xcode/id497799835?mt=12#
# See https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
xcode-select --install
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
| " Vim syntax file | |
| " Language: HTML (version 5) | |
| " Maintainer: Rodrigo Machado <rcmachado@gmail.com> | |
| " URL: http://gist.github.com/256840 | |
| " Last Change: 2010 Aug 26 | |
| " License: Public domain | |
| " (but let me know if you liked it :) ) | |
| " | |
| " Note: This file just adds the new tags from HTML 5 | |
| " and don't replace default html.vim syntax file |
Random query recipes of JMESPath for the AWS CLI tools that I might have written or stumbled upon.
OlderNewer