Skip to content

Instantly share code, notes, and snippets.

@bFraley
bFraley / keybase.md
Created February 8, 2017 23:36
keybase

Keybase proof

I hereby claim:

  • I am bFraley on github.
  • I am brettfraley (https://keybase.io/brettfraley) on keybase.
  • I have a public key whose fingerprint is 7287 D7E9 5FA1 E952 A830 96FF FA72 3599 7A82 F012

To claim this, I am signing this object:

@bFraley
bFraley / php_mac_setup.md
Created December 7, 2016 13:48
PHP Mac Setup
function mainController() {
$scope.people = [
{
firstName: "Matt",
lastName: "Smith"
},
{
firstName: "Drew",
lastName: "House"
}
@bFraley
bFraley / logo-example.py
Created September 9, 2016 17:04
ascii logo in python
# Logo is a list of lines used in print_logo below.
logo = [
' _ _ _ ',
'| | _____ ___ __ (_)_ __ (_) __ _ ',
'| |/ _ \ \/ / `_ \| | `_ \ | |/ _` |',
'| | __/> <| | | | | | | || | (_| |',
'|_|\___/_/\_\_| |_|_|_| |_|/ |\__,_|',
' |__/'
]
@bFraley
bFraley / roman.py
Created September 7, 2016 14:04
Roman Numerial conversion in Python
def solution(n):
roman_numerals = {1000:'M',
900: 'CM',
500: 'D',
400: 'CD',
100: 'C',
90: 'XC',
50: 'L',
40: 'XL',
10: 'X',
@bFraley
bFraley / upgrade-nodejs.txt
Created November 1, 2015 01:44
upgrade nodejs from npm
This came from here: http://davidwalsh.name/upgrade-nodejs
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
/*
This should compile using:
gcc X11_testAPI.c-o X11_test -I /usr/include/X11 -L /usr/X11/lib -lX11
*/
// X11 header files.
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>