This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>All Subscribers</h1> | |
<ul> | |
<li> | |
<strong>Mike Tierney</strong> | |
<span class="sub-since">Subscriber Since 2012/11/04</span> | |
</li> | |
<li> | |
<strong>Martin Arrowsmith</strong> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! MyFoldText() " {{{ | |
let line = getline(v:foldstart) | |
" so that it works when relativenumber has been set | |
if (&relativenumber) | |
let nucolwidth = &fdc + &relativenumber * &numberwidth | |
else | |
let nucolwidth = &fdc + &number * &numberwidth | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* A simple `content_for` and `yield` function to make it easier to run custom JS and CSS | |
* in the context of templates. Works like the Rails methods of the same name. | |
* | |
* Requires PHP 5.3 or higher (it uses closures, which were added in 5.3) | |
* Original Source: http://autonomousmachine.com/posts/2010/6/4/a-simple-content_for-in-php | |
* | |
* Usage: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Takes a string and capitalizes the first letter. | |
* | |
* @example | |
* "this is an all lower-case string".capitalize(); | |
* // => "This is an all lower-case string" | |
* | |
* @return String | |
**/ | |
String.prototype.capitalize = function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
skip_vim_plugin "taglist" | |
vim_plugin_task "zencoding", "https://github.com/mattn/zencoding-vim.git" | |
vim_plugin_task "tagbar", "https://github.com/majutsushi/tagbar.git" | |
vim_plugin_task "scratch", "https://github.com/vim-scripts/scratch.vim.git" | |
vim_plugin_task "easymotion", "https://github.com/Lokaltog/vim-easymotion.git" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim color file | |
" Converted from Textmate theme Clouds using Coloration v0.2.5 (http://github.com/sickill/coloration) | |
set background=dark | |
highlight clear | |
if exists("syntax_on") | |
syntax reset | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.desktopservices DSDontWriteNetworkStores true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Original credit goes to Aaron Patterson (@tenderlove) for posting the following to Twitter (http://pnpnt.me/2m): | |
# i = 0; while i <= 15; print "[#{'=' * i}#{' ' * (15 - i)}] #{((i/15.0) * 100).round}%\r"; i += 1; sleep 0.2; end; puts | |
# Apparently he borrowed this from Yehuda Katz (@wycats) -- http://pnpnt.me/2n. | |
# And then to Magnus Holm (@judofyr) for pointing out that Range#each could work (he actually references Range#map, too, but I'm not using that here). -- http://pnpnt.me/2o | |
# | |
# TODO: Figure out a more succinct way of doing this (more Ruby-esque, less JS-esque). | |
(0..15).each { |i| print "[#{'=' * i}#{' ' * (15 - i)}] #{((i/15.0) * 100).round}%\r"; sleep 0.2; }; puts |