Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View johnantoni's full-sized avatar

John Griffiths johnantoni

View GitHub Profile
@johnantoni
johnantoni / 0_reuse_code.js
Created January 29, 2014 19:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@johnantoni
johnantoni / mythbusters.md
Created January 30, 2014 20:51
mythbusters.md

Mythbusters 101

Headaches, vomiting makes you feel better

Vomiting may make you feel better as you'll stop trying to will yourself not to throw up but it's a vicious circle.

Also it seems drinking plain water with an agressive migrane will actually help trigger vomiting, so best to sip sweet tea or herbal tea to calm yourself and help rehydrate.

@johnantoni
johnantoni / html2slim-1.html
Created February 1, 2014 19:46
html to slim example
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”utf-8”>
<title>Awesome HTML5 Webpage</title>
<meta name=”description” content=”An awesome HTML5 page YOU built from scratch!”>
<meta name=”author” content=”Udemy”>
<link rel=”stylesheet” href=”style.css”>
</head>
<body>
@johnantoni
johnantoni / html2slim-2.html
Created February 1, 2014 19:49
html to slim example 2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../assets/ico/favicon.ico">
@johnantoni
johnantoni / pmenu.vim
Created February 14, 2014 23:46
pmenu for vim solarized light
" set dropdown to match solarized light
highlight Pmenu ctermfg=254 ctermbg=241
highlight PmenuSel ctermfg=254 ctermbg=136 cterm=bold
@johnantoni
johnantoni / retina.css.scss
Last active August 29, 2015 13:56
retina-ready sass mixin
/*
* Retina helper mixins for Compass
*/
@import "compass/css3/background-size";
@mixin background-image-retina($file, $type) {
$image: ($file + '.' + $type);
background-image: image-url($image);
height: image-height($image);
@johnantoni
johnantoni / errbit.doc.md
Last active August 29, 2015 13:56
errbit install guide

errbit-docs

install guide/script for errbit

prep

ssh root@ip-address
apt-get update

apt-get upgrade

@johnantoni
johnantoni / locale.md
Last active August 29, 2015 13:57
set locale (ubuntu)

ubuntu

apt-get install language-pack-en-base
dpkg-reconfigure locales

debian

dpkg-reconfigure locales

debian/ubuntu

@johnantoni
johnantoni / raspberrypi.md
Created March 6, 2014 04:13
raspberry pi config tool
Memory split is now set in /boot/config.txt.
You may want to use raspi-config to set it

sudo raspi-config

@johnantoni
johnantoni / recipe-enery-bars.md
Last active August 29, 2015 13:57
Morning Energy Bars

Morning Energy Bars

From: Eat Raw, Eat Well p. 35

Ingredients:

  • 2 cups Chopped pitted dates
  • 2 tbsp Raw cacao powder
  • 3 tbsp Raw agave nectar
  • 2 tbsp Water