Skip to content

Instantly share code, notes, and snippets.

@roblund
roblund / .gitconfig
Last active August 29, 2015 14:27
Garrick's git alias list
[alias]
co = checkout
s = status
b = branch
a = add
c = commit
d = diff --ignore-space-at-eol --ignore-blank-lines
ec = config --global -e
up = !git pull --prune $@ && git submodule update --init --recursive
cob = checkout -b
@roblund
roblund / test.html
Last active December 22, 2015 06:19
Chrome/Webkit Bug - Explained with YUI example
<!DOCTYPE html>
<html>
<head>
<!-- Serving the page with `python -m SimpleHTTPServer` -->
<!-- Comment out the base tag and you're fine. -->
<base href="/test3.html">
<title>test</title>
</head>
<body>
<a href="/test2.html">some link</a>

Problem

Writing HTML or creating DOM elements in our JavaScript

task_div.html('<span class="editable">' + data.task.htmlName + '</span>');
for(var tagIndex in data.task.tags)
{
    if(!task_li.hasClass('tag-' + data.task.tags[tagIndex]['name']))
    {
        task_li.addClass('tag-' + data.task.tags[tagIndex]['name']);
@roblund
roblund / newpost.rb
Last active December 12, 2015 09:19 — forked from codykrieger/newpost.rb
#!/usr/bin/env ruby
# *********************************************
# Jekyll Post Generator Awesomeness
# by Cody Krieger (http://codykrieger.com)
# forked by Rob Lund
# *********************************************
# Usage:
# % ./newpost.rb POST NAME
@roblund
roblund / gist:3932413
Created October 22, 2012 16:40
sublime prefs
{
"auto_complete_commit_on_tab": true,
"auto_complete_with_fields": true,
"color_scheme": "Packages/User/Railscasts.tmTheme",
"file_exclude_patterns":
[
"optimized_includes.php",
".#*",
"optimizedWidget.php",
"optimizedWidget.js"
@roblund
roblund / gist:3923304
Created October 20, 2012 13:43
ctrlp configs
set runtimepath^=~/.vim/bundle/ctrlp.vim
let g:ctrlp_clear_cache_on_exit=0 " keep cache files across multiple session - remember to use F5 to refresh as needed
let g:ctrlp_working_path_mode=0 " don't manage
@roblund
roblund / gist:3923301
Created October 20, 2012 13:42
Multimarkdown Sublime Text
{
"shell": "true",
"cmd": ["multimarkdown", "-b", "$file", "&&", "chrome.exe", "${file/\\.md/\\.html/}"]
}