Skip to content

Instantly share code, notes, and snippets.

[
{
"name":"New South Wales",
"abbreviation":"NSW"
},
{
"name":"Victoria",
"abbreviation":"VIC"
},
{
@johngerome
johngerome / cloudSettings
Last active February 20, 2020 10:17
VSCode Settings
{"lastUpload":"2020-02-20T10:17:23.142Z","extensionVersion":"v3.4.3"}
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@johngerome
johngerome / cache-fonts.js
Created February 13, 2017 02:10
non-blocking fonts by caching it.
// to encode a font into Base64 use this tool https://www.npmjs.com/package/font-store
(function (window, document) {
'use strict';
var isModernBrowser = (
'querySelector' in document &&
'localStorage' in window &&
'addEventListener' in window
),
key = 'font',
dd,form ol,form ul{margin-left:0}.breadcrumbs,.nav ul,.pagination,form ol,form ul,ol.list,ul.list{list-style:none}.main-navigation a,a{text-decoration:none}.block-thumb,table{border-collapse:collapse}.headline-list,.nav-footer,.post-list{list-style-type:none}.block,.block-thumb .b-inner,.breadcrumbs,.comment-container,.footer,.footer__location-map,.g,.header .lc,.is-vishidden,.main-navigation .menu-primary-container,.nav,.pagination,.search-form,.section-contact-us,.section-precontent,.section-s3-tech .section-row-2,.site-navigation-wrapper,.social-share,.tabs,.widget-area .widget,dl{overflow:hidden}@font-face{font-family:Roboto;font-style:normal;font-weight:100;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v15/Jzo62I39jc0gQRrbndN6nfesZW2xOQ-xsNqO47m55DA.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v15/Hgo13k-tfSpn0qi1SFdUfaCWcynf_cDxXwCLxiixG
```
ERROR: Error installing compass:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.1.0/gems/ffi-1.9.10/ext/ffi_c
/usr/bin/ruby2.1 -r ./siteconf20151118-18985-1l1bsx7.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
@johngerome
johngerome / SassMeister-input-HTML.html
Last active August 29, 2015 14:06
CLEANER WAY ON EXTENDING MULTIPLE PLACEHOLDERS (a.k.a Silent Classes) : Generated by SassMeister.com.
<div class="btn-default">Default</div>
<div class="btn-default--flat">Flat</div>
<div class="btn-default--circle">Circle</div>