Skip to content

Instantly share code, notes, and snippets.

Myles O'Connor mocon

Block or report user

Report or block mocon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View snippets.cson
# JavaScript
'prefix': 'cl'
'body': 'console.log(\'$1 👉\', $1)$2'
'console.log JSON':
'prefix': 'clj'
'body': 'console.log(\'$1 👉\', JSON.stringify($1, null, 2))$2'
mocon /
Last active May 1, 2019
Install Node.js on Raspberry Pi, set up SSH keys for GitHub, clone the project repo

Install node and npm

wget -O - | sudo bash

Confirm that they are installed

node -v
mocon / test.scpt
Created Feb 20, 2019
iTerm2 example script (save in `~/Library/Application Support/iTerm2/Scripts/test.scpt`, trigger with `Scripts --> test.scpt` in iTerm2)
View test.scpt
tell application "iTerm"
tell current session of current window
split vertically with default profile
split vertically with default profile
end tell
tell first session of current tab of current window
write text "cd ~/somewhere"
write text "run some command"
end tell
tell second session of current tab of current window
mocon / styles.less
Created Feb 5, 2019
Atom stylesheet
View styles.less
* {
font-family: 'Monoid';
atom-panel .title,
atom-pane .title,
atom-panel-container.footer {
font-size: 80%;
View index.html
<!doctype html>
<html lang="en"
<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="">
mocon / package.json
Created Feb 16, 2018
Simple `browser-sync` setup
View package.json
"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",
View prices.js
'use strict';
const fetch = require('node-fetch');
const moment = require('moment');
const QUANDL_API_KEY = process.env.QUANDL_API_KEY;
mocon / google-news-styles.css
Created Dec 3, 2017
Paste these into your StyleBot Chrome extension to change the styling on
View google-news-styles.css
/* Make main column full width */
main > div:nth-child(1) {
max-width: none;
/* Hide right sidebar */
main > div:nth-child(2) {
display: none;
You can’t perform that action at this time.