Skip to content

Instantly share code, notes, and snippets.

View ncksllvn's full-sized avatar
☮️

Nick Sullivan ncksllvn

☮️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ncksllvn on github.
  • I am nicksullivan (https://keybase.io/nicksullivan) on keybase.
  • I have a public key ASBhF4aqqSxnc5a7WByvKwz-29SWicEnClWT_LTJNXRPkQo

To claim this, I am signing this object:

Async/Await

Allows you to write asynchronous code that appears synchronous.

Callbacks to Promises to Async/Await

Callbacks

Needs no introduction, because every JS developer knows the pain of trying to cleanly manage a series of async operations via callbacks alone.

Desired Enhancements:

  • Mobile-First Gride System
  • Responsive Utilities

Follow-up to uswds/uswds#2173.

Mobile-First Grid System

Current Limitations

The current 12-column grid system works very well on large screens but is limited when developing layouts that require more granular control for smaller devices.

@ncksllvn
ncksllvn / index.js
Created August 28, 2017 20:51
Array to dom
/**
* Nick Sullivan
* [email protected]
* Translates an array into a DOM string.
* Example:
*
* arrayToDom(['a', ['b', 'More'], ' Text']) // => "<a><b>More</b> Text</a>"
*
*/
@ncksllvn
ncksllvn / index.html
Created August 14, 2014 19:52
email test
<a>tell a friend</a>
<script>
window.onload = function(){
var html = ('<html><body><h1>This is a test</h1></body></html>')
var a = document.getElementsByTagName('a')[0]
a.setAttribute( 'href', REF="mailto:?subject=look at this website&body=" + html )