Skip to content

Instantly share code, notes, and snippets.

View mocon's full-sized avatar

Myles O'Connor mocon

View GitHub Profile
@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;
}
'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 / 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>
@mocon
mocon / styles.less
Created February 5, 2019 02:57
Atom stylesheet
* {
font-family: 'Monoid';
}
atom-panel .title,
atom-pane .title,
.tree-view,
atom-panel-container.footer {
font-size: 80%;
}
@mocon
mocon / test.scpt
Created February 20, 2019 20:39
iTerm2 example script (save in `~/Library/Application Support/iTerm2/Scripts/test.scpt`, trigger with `Scripts --> test.scpt` in iTerm2)
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
mocon / commands.md
Last active May 1, 2019 20:22
Install Node.js on Raspberry Pi, set up SSH keys for GitHub, clone the project repo

Install node and npm

wget -O - https://raw.githubusercontent.com/audstanley/NodeJs-Raspberry-Pi/master/Install-Node.sh | sudo bash

Confirm that they are installed

node -v