Skip to content

Instantly share code, notes, and snippets.

# Make that Command Prompt look good
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWSTASHSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
usrcolor='\e[0;31m'
dircolor='\e[m:\e[1;34m'
gitcolor='\e[1;32m'
closer='\e[m'
gitstatus='$(__git_ps1 " %s")'
@curiouslychase
curiouslychase / changelog.sublime-snippet
Created August 15, 2014 14:21
A CHANGELOG snippet for all the content you'd type every time. Tabbing takes you to the next placeholder.
<snippet>
<content><![CDATA[
## ${1:Release Version}
### Added
${2:Added}
### Deprecated
${3:Deprecated}
@curiouslychase
curiouslychase / FlatLand.itermcolors
Created September 4, 2014 04:16
Flatland color scheme for iTerm2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.098313517868518829</real>
<key>Green Component</key>
<real>0.11400297284126282</real>
/**
* Usage:
* var q = new QueryParser();
*/
var QueryParser = function(option) {
var config = option || {};
var queriesMap = {};
var queryString = config.queryString !== undefined ? config.queryString : location.search;
return {
/**
@curiouslychase
curiouslychase / ga-grab.js
Created October 19, 2014 23:56
Quick snippet for getting google analytics urls from Behavior : Site Content : All Pages
Array.prototype.forEach.call(document.querySelectorAll("._GARL"),
function(i) {
console.log(i.innerHTML);
});
@curiouslychase
curiouslychase / coursera-to-todoist.js
Created December 13, 2014 19:40
Convert Coursera Lecture List to Todoist
var lectures = Array.prototype.slice.call(document.querySelectorAll('.lecture-link'));
var todoistCollection = [];
lectures.forEach(function(lecture) {
var todoistEntry = lecture.href + ' (' + lecture.innerHTML.replace('\n', '') + ')';
todoistCollection.push(todoistEntry);
});
todoistCollection.join("\n");
@curiouslychase
curiouslychase / mjs101.week1.txt
Created January 8, 2015 03:13
MongoJS 101 Week 1 Todoist Template
https://university.mongodb.com/courses/10gen/M101JS/2015_January/courseware/Week_1_Introduction/5245b269e2d42346975228c9/ (Week 1: Welcome to M101JS)
https://university.mongodb.com/courses/10gen/M101JS/2015_January/courseware/Week_1_Introduction/5245b269e2d42346975228c9/ (Week 1: Welcome to M101JS) @quiz
https://university.mongodb.com/courses/10gen/M101JS/2015_January/courseware/Week_1_Introduction/524af6b2e2d4235f73b619ee/ (Week 1: What is MongoDB?)
https://university.mongodb.com/courses/10gen/M101JS/2015_January/courseware/Week_1_Introduction/524af6b2e2d4235f73b619ee/ (Week 1: What is MongoDB?) @quiz
https://university.mongodb.com/courses/10gen/M101JS/2015_January/courseware/Week_1_Introduction/52530600e2d4237f053e42ad/ (Week 1: MongoDB Relative to Relational)
https://university.mongodb.com/courses/10gen/M101JS/2015_January/courseware/Week_1_Introduction/52530600e2d4237f053e42ad/ (Week 1: MongoDB Relative to Relational) @quiz
https://university.mongodb.com/courses/10gen/M101JS/2015_January/courseware/
@curiouslychase
curiouslychase / 7-habits-be-proactive.md
Created April 2, 2015 10:08
Thoughts about Habit 1: Be Proactive

To Live Proactively

I'm rereading 7 Habits of Highly Effective People and in reading the chapter on the first private victory habit (Be Proactive) I stumbled into a gold mine of excerpts that resonated with me where I am today.

Our unique human endowments lift us above the animal world. The extent to which we exercise and develop these endowments empowers us to fulfill our uniquely human potential. Between stimulus and response is our greatest power — the freedom to choose. (p 78)

Gut punch 1: stimulus and response are guaranteed, our response is a result of our freedom to choose.

It [proactivity] means that as human beings, we are responsible for our own lives. Our behavior is a function of our decisions, not our conditions (p 78)

@curiouslychase
curiouslychase / webpack.config.js
Created May 31, 2015 02:37
Sample webpack config
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var webpack = require('webpack');
module.exports = {
resolve: {
modulesDirectories: ['node_modules', 'sass'],
extensions: ['', '.json', '.jsx', '.js']
},
@curiouslychase
curiouslychase / .gitignore
Created July 22, 2015 13:01
My .gitignore
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover