Skip to content

Instantly share code, notes, and snippets.

View danawesome's full-sized avatar

D. Awesome danawesome

  • Orion Media
  • Idaho, USA
View GitHub Profile
@mjackson
mjackson / fetchJSON.js
Created February 23, 2016 22:23
fetch JSON with a callback
function fetchJSON(url, options, callback) {
if (typeof options === 'function') {
callback = options
options = {}
}
options = options || {}
const headers = (options.headers || (options.headers = {}))
headers.Accept = 'application/json'
@wpsmith
wpsmith / sharepoint-style.css
Created January 20, 2015 17:04
CSS: Bootstrap fixes for SharePoint
/*bootstrap resets for SharePoint*/
*, *:before, *:after {
-moz-box-sizing: content-box; /*border-box causes many issues with SP*/
}
* [class^="span"], * [class^="span"]:before, * [class^="span"]:after {
-moz-box-sizing: border-box;
}
img {