I hereby claim:
- I am irstacks on github.
- I am isaacardis (https://keybase.io/isaacardis) on keybase.
- I have a public key whose fingerprint is C6D5 ED06 A932 3F4E 0889 B265 7130 F47A 206E 470C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Every time I start a new project, I want to pull in a log
function that allows the same functionality as the console.log
, including the full functionality of the Console API.
There are a lot of ways to do this, but many are lacking. A common problem with wrapper functions is that the line number that shows up next to the log is the line number of the log function itself, not where log
was invoked. There are also times where the arguments get logged in a way that isn't quite the same as the native function.
This is an attempt to once and for all document the function that I pull in to new projects. There are two different options:
# This is not the default .slate file. | |
# This is my .slate file. | |
# There are many like it, | |
# but this one is mine. | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
config orderScreensLeftToRight false |
[user] | |
name = Mr. Mister | |
email = | |
[core] | |
excludesfile = /Users/mh/.gitignore_global | |
[alias] | |
recent-branches = for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname)' refs/heads refs/remotes | |
changes = diff --name-status -r | |
diffstat = diff --stat -r | |
recent = for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))' |
A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.
On a mac you can use homebrew by running the command brew install pandoc
.
# Compile nginx standalone without root access | |
mkdir ~/installed | |
mkdir ~/installed/nginx | |
mkdir ~/src | |
cd ~/src | |
# PCRE dependency - we'll compile against this statically | |
wget http://kent.dl.sourceforge.net/sourceforge/pcre/pcre-7.8.tar.gz | |
tar -xzvf pcre-7.8.tar.gz |
var express = require('express'), | |
path = require('path'), | |
fs = require('fs'); | |
var app = express(); | |
var staticRoot = __dirname + '/'; | |
app.set('port', (process.env.PORT || 3000)); | |
app.use(express.static(staticRoot)); |
{ | |
"vars": { | |
"@gray-darker": "lighten(#000, 13.5%)", | |
"@gray-dark": "lighten(#000, 20%)", | |
"@gray": "lighten(#000, 33.5%)", | |
"@gray-light": "lighten(#000, 46.7%)", | |
"@gray-lighter": "lighten(#000, 93.5%)", | |
"@brand-primary": "#428bca", | |
"@brand-success": "#5cb85c", | |
"@brand-info": "#5bc0de", |
#!/bin/bash | |
# | |
# Author: SuperPaintman <SuperPaintmanDeveloper@gmail.com> | |
# | |
### | |
# Constants | |
### | |
RETVAL=0 |
# http://stackoverflow.com/questions/866218/git-how-to-rebase-many-branches-with-the-same-base-commit-at-once | |
for branch in topic1 topic2 topic3;do git rebase master $branch;done |