Skip to content

Instantly share code, notes, and snippets.

View mocon's full-sized avatar

Myles O'Connor mocon

View GitHub Profile
@mocon
mocon / git-completion.bash
Created May 4, 2017 16:00
Store in `~/`, and reference in `~/.bash_profile`
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
@mocon
mocon / atom-react.sh
Created May 7, 2017 02:06
Atom React setup
apm install atom-beautify autoclose-html highlight-selected language-babel react linter linter-eslint minimap minimap-highlight-selected pigments seti-ui monokai-seti
@mocon
mocon / .bash_profile
Created May 31, 2017 16:06
Example `.bash_profile` file
# Edit this file
alias aliases="nano ~/.bash_profile" # usage: type `aliases` in Terminal
# Navigate to location
alias home="cd ~"
alias desktop="cd ~/Desktop/"
alias repos="cd ~/Documents/Repos/"
# Navigate to project directory
alias ds="clear && cd ~/Documents/Repos/design-system"
@mocon
mocon / shortcuts.md
Last active September 6, 2017 17:03
My favorite Chrome shortcuts on macOS

Chrome keyboard shortcuts

Here are some of my most-used Chrome shortcuts on macOS.

Tabs

Shortcut Action
⌘ T Open new tab
⌘ ⇧ N Open new Incognito tab
@mocon
mocon / bitcoin_practice_app.md
Created September 9, 2017 22:57
Description of my Bitcoin testing app

Bitcoin practice

A simple Node.js server, as well as React UI used for testing Bitcoin payments.

  1. Users log in with their Google or Facebook account, all requests are tied to their unique ID.
  2. The home page is a simple dashboard of basic user information, user transaction history and account balance.
  3. If there are pending payments, there will be a red notification icon

Workflow for a user sending money:

@mocon
mocon / r_homework.md
Last active September 20, 2017 05:17
Learning some R

Lab 1

# Clear console
cat("\014")

(5/9)*(52.7-32)
2^3
2**3
pi*6^2
@mocon
mocon / install_dae-gltf_converter_mac.md
Last active September 27, 2017 01:11
How to install Khronos Group's COLLADA to glTF converter on macOS

Overview

How to install Khronos Group's COLLADA to glTF CLI converter on macOS:

1. Clone repo

From your Repos directory, or wherever you keep your local repos:

git clone --recursive https://github.com/KhronosGroup/COLLADA2GLTF.git
@mocon
mocon / dockerfile_basics.md
Last active October 13, 2017 18:34
Dockerfile basics

Node.js on Docker

Dockerfile basics

A Dockerfile is a simple set of instructions that describe how to run an application on a specific operating system (such as Ubuntu). The Dockerfile allows you to package up the following items into a self-contained package called a container:

  • A base image of the preferred operating system (using FROM)
  • Your application code
  • Dependencies
  • Other files
@mocon
mocon / atom_packages.sh
Last active July 12, 2019 02:39
Install all my Atom packages with `apm`
apm install autoclose-html busy-signal flatwhite-syntax highlight-selected intentions language-babel language-docker language-groovy linter linter-eslint linter-ui-default minimap minimap-highlight-selected monokai-seti pigments seti-ui language-graphql
@mocon
mocon / notes.md
Last active November 10, 2017 00:03
Off-site meeting notes

Mobile-first video ads (Charlie)

  • $18B opportunity
  • Video inventory is scarce
  • Longer formats are less appealing
  • We have 70% viewability

Our units

  • In-Image Embedded Video (desktop only)