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",
<!doctype html>
<html lang="en"
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<title>GumGum Design System</title>
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" href="https://assets.ggops.com/stable/theme-blue.css">
</head>
'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 / 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 / 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 / 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-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 / 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