Skip to content

Instantly share code, notes, and snippets.

Nathan Farrar nfarrar

Block or report user

Report or block nfarrar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nfarrar / 0_reuse_code.js
Created Jun 26, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View htpc-lshw.txt
description: Desktop Computer
product: DS61 (1.0)
vendor: Shuttle Inc.
version: V1.0
serial: To be filled by O.E.M.
width: 64 bits
capabilities: smbios-2.7 dmi-2.7 vsyscall32
configuration: boot=normal chassis=desktop family=D sku=1.0 uuid=00020003-0004-0005-0006-000700080009
View .vimrc
" Author: Nathan Farrar
" Email:
" Website:
" This file is utf-8. Ensure we read it correctly.
scriptencoding utf-8
" If we're running vim-tiny or vim-small stop sourcing the vim configuration.
if !1 | finish | endif
nfarrar /
Last active Aug 29, 2015
... teaching my daughter about science, electronics, robotics, computers and programming.

Science for Children

Learning with style.

Note: Also using this as gift-tracker idea for family.


Movies & shows she likes, related to science.

View gist:849b619c7d464a84e5c0
# Author: Nathan Farrar
# Email:
# Website:
# Updated: 2014-10-10 08:50:00
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
nfarrar / main.less
Created Feb 10, 2015
Playing with Less
View main.less
// jellybeans
@opacity: 1;
@black-jellybeans: rgba(59,59,59,@opacity); // #3b3b3b
@red-jellybeans: rgb(207,106,76,@opacity); // #cf6a4c
@green-jellybeans: rgba(153,173,106,@opacity); // #99ad6a
@yellow-jellybeans: rgba(216,173,76,@opacity); // #d8ad4c
@blue-jellybeans: rgba(89,123,197,@opacity); // #597bc5
@magenta-jellybeans: rgba(160,55,176,@opacity); // #a037b0

Keybase proof

I hereby claim:

  • I am nfarrar on github.
  • I am nfarrar ( on keybase.
  • I have a public key whose fingerprint is B743 226C 28B5 6031 FD0D DCB5 3E15 F07F C918 704E

To claim this, I am signing this object:

nfarrar /
Last active Aug 29, 2015
Python Colored Logging
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Nathan Farrar"
__website__ = ""
__email__ = ""
__version__ = 0.1
import logging
import sys
nfarrar / heygirl.bash
Last active Aug 29, 2015
WIP: Configuration mangement ... in bash.
View heygirl.bash
#!/usr/bin/env bash
# Author: Nathan Farrar <>
# Website:
#/ Usage: source _lib.bash
#/ bash _lib.bash
#/ This script is required by all the other scripts in bootstrap & modules
#/ directories. It provides a set of reusable 'library' functions for building
#/ small, cross-platform scripts (bundled as modules) that install & configure
nfarrar / gitio
Created Sep 12, 2015
bash script for shortening urls with
View gitio
#!/usr/bin/env bash
# Author: Nathan Farrar <>
# Website:
# Description: Command-line shortner script, in bash.
#/ Usage: gitio [options] <url>
#/ Shortens github URLs using The generated URL is automatically
#/ copied to the clipboard (requires xclip on linux platforms).
#/ -c <code> Specify an optional code to be used as a 'vanity' URL.
#/ -v Display verbose messages.
You can’t perform that action at this time.