Skip to content

Instantly share code, notes, and snippets.

View mralexgray's full-sized avatar

Alex Gray mralexgray

View GitHub Profile
@mralexgray
mralexgray / Brewfile
Last active April 20, 2020 04:36 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
tap "caskroom/cask"
tap "denji/nginx"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/dupes"
tap "homebrew/services"
tap "mongodb/brew"
@mralexgray
mralexgray / gist:eac81b64f30d19ac2b0086fabe286f9b
Created November 10, 2019 00:14 — forked from howlingblast/gist:5814547
CoffeeScript: getter/setter example
Function::property = (prop, desc) ->
Object.defineProperty @prototype, prop, desc
class Person
constructor: (@firstName, @lastName) ->
@property 'fullName',
get: -> "#{@firstName} #{@lastName}"
set: (name) -> [@firstName, @lastName] = name.split ' '
p = new Person 'Leroy', 'Jenkins'
@mralexgray
mralexgray / css-starbursts.markdown
Created November 18, 2018 04:15
CSS Starbursts
@mralexgray
mralexgray / install.zsh
Last active July 2, 2017 13:26
my os x microcontroller setup
#!/usr/bin/env zsh
brew tap osx-cross/avr
brew tap homebrew/dupes
brew install gnu-sed --with-default-names
brew install gperf grep autoconf binutils gawk wget automake libtool help2man
brew cask install java arduino
@mralexgray
mralexgray / he-dns-update.sh
Created March 23, 2017 16:09 — forked from joemiller/he-dns-update.sh
script for updating dynamic DNS records on he.net (hurricane electric)
#!/bin/bash
#
# Script for updating DNS records on Hurricane Electirc's DNS system (https://dns.he.net).
#
# The record will be updated with the IP address that originates the request.
#
# Usage
# -----
#
# Create config file `/etc/he-dns-update.conf`:
@mralexgray
mralexgray / app-navigation.markdown
Created February 20, 2017 20:39
App Navigation
@mralexgray
mralexgray / .gitignore
Created February 16, 2017 20:52 — forked from bergie/.gitignore
Node.js email handling examples
config.json
reading-image.png
@mralexgray
mralexgray / trumpisms.json
Last active April 18, 2020 18:13
dumb things he says
{
"style": [
"Let me tell you something, this is one of the most pathetic, stupid questions I have ever seen on Quora! Sad! I kid you not, we need to report this person to Quora moderation, and no one does that better than me, believe me.",
"I have gotten so fed up with Quora lately, I kid you not. I tell you what, I’m going to make a new site. It will be a very good site, and I will deport people like you from that site. And honestly, if you don’t like it… I’m sorry. And quite frankly, Quirky Quorans like you are just as bad as Crooked Hillary.",
"I tell you what, if we can’t make Quora great again, I will make a new site. It will be so good -and let me tell you something- people will say it is a very good site. I will have the best site, I kid you not. It will be so good.",
"And you know what? I will build a great, great firewall around this site. It will keep all the hackers out – won’t even have to deport them! I tell you what, this site will be so amazing. It will be the best site. In fact- It w
@mralexgray
mralexgray / index.html
Created September 12, 2016 06:00
Vertical Layout with Navigation
<nav class="nav">
<div class="burger">
<div class="burger__patty"></div>
</div>
<ul class="nav__list">
<li class="nav__item">
<a href="#1" class="nav__link c-blue"><i class="fa fa-camera-retro"></i></a>
</li>
<li class="nav__item">
@mralexgray
mralexgray / index.html
Created September 12, 2016 03:18
Vertical Layout with Navigation
<nav class="nav">
<div class="burger">
<div class="burger__patty"></div>
</div>
<ul class="nav__list">
<li class="nav__item">
<a href="#1" class="nav__link c-blue"><i class="fa fa-camera-retro"></i></a>
</li>
<li class="nav__item">