Skip to content

Instantly share code, notes, and snippets.

View mocon's full-sized avatar

Myles O'Connor mocon

View GitHub Profile
@mocon
mocon / package.json
Created February 16, 2018 18:26
Simple `browser-sync` setup
{
"name": "example",
"version": "0.1.0",
"main": "index.js",
"license": "UNLICENSED",
"dependencies": {
"browser-sync": "2.23.6"
},
"scripts": {
"start": "browser-sync start --server --files '**/*.css, **/*.html, **/*.js' --directory --port 7777",
'use strict';
const fetch = require('node-fetch');
const moment = require('moment');
const QUANDL_API_BASE_URL = 'https://www.quandl.com/api/v3';
const QUANDL_API_KEY = process.env.QUANDL_API_KEY;
/*
checkStockPrice()
@mocon
mocon / google-news-styles.css
Created December 3, 2017 04:19
Paste these into your StyleBot Chrome extension to change the styling on news.google.com
/* Make main column full width */
main > div:nth-child(1) {
max-width: none;
}
/* Hide right sidebar */
main > div:nth-child(2) {
display: none;
}
@mocon
mocon / styles.css
Last active December 3, 2017 20:50
Stylebot Chrome extension CSS rules
/*
URL pattern: news.google.com
----------------------------
*/
/* Make main column full width */
main > div:nth-child(1) {
max-width: none;
}
@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)
@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 / 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 / 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 / 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