Skip to content

Instantly share code, notes, and snippets.

View p-mylecharane's full-sized avatar

Paul Mylecharane p-mylecharane

View GitHub Profile
@EdwardGoomba
EdwardGoomba / SANITYIMPORT.md
Created September 7, 2020 17:07
Format and Import Content into Sanity

Format and Import Content into Sanity

The following is a quick guide on how to format json data into ndjson and import the resulting data into sanity studio using the sanity cli.

Sanity

Sanity is a structured content platform that is incredibly fast and flexible.

NDJSON

NDJSON is a convenient format for storing or streaming structured data that may be processed one record at a time.

  • Each line is a valid JSON value
@adaptivegarage
adaptivegarage / theme-detect.css
Last active January 17, 2023 06:04
Pure CSS ePub theme detection (White / Sepia / Night) in iBooks (Mac OS and iOS included)
/*
Pure CSS ePub theme detection (White / Sepia / Night) in iBooks (Mac OS and iOS included)
Version 1.1
Note that iBooks actually uses internal JavaScript to set the "__ibooks_internal_theme" attribute on :root (html) element
every time the theme is changed, but this happens independently of whether your epub html markup is scripted or not.
Discovered and tested in iBooks on Mac, iPhone and iPad by
https://twitter.com/adaptivegarage
*/
@agendor
agendor / hapijs-rest-api-tutorial.md
Last active August 31, 2021 08:31
A practical introduction to building a RESTful API with the hapi.js server framework for Node.js
@joyrexus
joyrexus / README.md
Last active May 3, 2024 10:41 — forked from liamcurry/gist:2597326
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})