Skip to content

Instantly share code, notes, and snippets.

Dawson Botsford dawsbot

Block or report user

Report or block dawsbot

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
@dawsbot
dawsbot / OSXShortcutDecoder.md
Created Aug 20, 2016
They're difficult to remember
View OSXShortcutDecoder.md

( ^ ) The caret symbol is the control key.
( ⇧ ) The single arrow up is the shift key.
( ⇪ ) The arrow up with the line under it is the caps lock key.
( ⌘ ) Most people don’t miss the command key since the symbol is on the keyboard.

( ⌥ ) The upper right to lower left slash with the line above it is the alt/option key. One hint to remembering this key is the symbol has two parts and the print on the keyboard has two words.

@dawsbot
dawsbot / istanbulReporters.md
Created Aug 15, 2016
Because they're easy to forget
View istanbulReporters.md
  • clover
  • cobertura
  • html
  • json
  • json-summary
  • lcov
  • lcovonly
  • teamcity
  • text
  • text-lcov
@dawsbot
dawsbot / safpmInstall.json
Last active May 2, 2016
Use this to add to your shell rc in seconds.
View safpmInstall.json
{
"files": [
"https://gist.githubusercontent.com/dawsonbotsford/6ef9850d1140dfc7f0cc7d80ac2f8485/raw/ded5c8b1749abcef297cbf031c08a962ee1f4cb9/zadd"
],
"scripts": [
"mv zadd /usr/local/bin",
"chmod +x /usr/local/bin/zadd"
]
}
View safpm.txt
Thanks for trying safpm!
Hopefully this was the fastest experience you've ever had setting up a package manager.
If it was, let me know at dawsonbotsford AT Gmail DOT com.
@dawsbot
dawsbot / countLicenses.sh
Created Feb 23, 2016
shell script to count the amount of license files in your
View countLicenses.sh
# in an empty project
npm install --save gulp
cd node_modules
ls **/LICENSE **/LICENSE.md **/license.md **/LICENSE | wc -l
View init.coffee
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@dawsbot
dawsbot / thanks.js
Created Jan 29, 2016
You read my blog, and that makes you great
View thanks.js
console.log(‘Thank you for reading, keep in touch below!’);
@dawsbot
dawsbot / gitBackup.sh
Created Jan 29, 2016
Always have your code in two git servers by backing up with Bitbucket
View gitBackup.sh
#Enter this as one line
git remote set-url — add — push origin git@bitbucket.org:dawsonbotsford/vimrcbuilder.git
#Re-add the original URL as well. Again do this with one line
git remote set-url — add — push origin git@github.com:dawsonbotsford/vimrcBuilder.git
#Verify everything worked
git remote -v
@dawsbot
dawsbot / bootstrapStarter.html
Last active Feb 13, 2016
Barebones html file for starting a new bootstrapped html file
View bootstrapStarter.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title></title>
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
View thing.js
var express = require('express');
var http = require('https');
var app = express();
function getUSD(callback) {
http.get('https://blockchain.info/ticker', function(res) {
var body = '';
res.setEncoding('utf8');
res.on('data', function(data) {
You can’t perform that action at this time.