Skip to content

Instantly share code, notes, and snippets.

View Greg-Johns's full-sized avatar

Greg Johns Greg-Johns

View GitHub Profile
@Greg-Johns
Greg-Johns / .block
Last active November 15, 2016 17:37 — forked from mbostock/.block
Relative presidential voting power
license: gpl-3.0
@Greg-Johns
Greg-Johns / vim
Last active December 29, 2015 14:16 — forked from athieriot/vim
Vim
--------------------------------
BASICS
--------------------------------
i / insert
u / Undo
<ctrl-r> / Redo
:q / quit
:q! / force
@Greg-Johns
Greg-Johns / dabblet.css
Last active November 27, 2015 22:43 — forked from anonymous/dabblet.css
Attempt for Chrome-style gears with SVG and CSS animations
/**
* Attempt for Chrome-style gears with SVG and CSS animations
*/
body {
background-color: #ccc;
}
@keyframes spin {
to {
stroke-dashoffset: -100;
@Greg-Johns
Greg-Johns / my-git-log.sh
Created October 16, 2015 19:45 — forked from ZeroBugBounce/my-git-log.sh
Various git log techniques
$ git log -80 --pretty=format:'%C(yellow)%h%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --no-merges | grep -v 'chef'
@Greg-Johns
Greg-Johns / dabblet.css
Created June 18, 2013 21:05 — forked from LeaVerou/dabblet.css
Pounding heart animation
/* Pounding heart animation */
@keyframes pound {
to { transform: scale(1.4); }
}
.heart {
display: inline-block;
font-size: 150px;
color: #e00;
@Greg-Johns
Greg-Johns / dabblet.css
Created April 5, 2013 15:43 — forked from LeaVerou/dabblet.css
Switch-style checkboxes.
/**
* Switch-style checkboxes.
* Inspired by Espresso’s “Tools” switch
*/
input[type="checkbox"]:not(:checked),
input[type="checkbox"]:checked { /* :checked here acting as a filter for older browsers */
position: absolute;
opacity: 0;
}
@Greg-Johns
Greg-Johns / dabblet.css
Created March 27, 2013 12:17 — forked from LeaVerou/dabblet.css
Failed attempt at gracefully degrading switch-style checkboxes
/**
* Failed attempt at gracefully degrading switch-style checkboxes
* without pseudoelements (which shouldn’t exist on replaced elements) and extra elements.
* Inspired by Espresso’s “Tools” switch
* DO NOT USE. Currently only works properly in WebKit :(
*/
input[type="checkbox"]:not(:checked),
input[type="checkbox"]:checked { /* :checked here acting as a filter for older browsers */
appearance: none;
@Greg-Johns
Greg-Johns / gist:3133931
Created July 18, 2012 03:12 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt