This file contains hidden or 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
#!/bin/sh -x | |
# git name-rev is fail | |
CURRENT=`git branch | grep '\*' | awk '{print $2}'` | |
git checkout master || exit 1 | |
git pull origin master || exit 1 | |
git checkout ${CURRENT} || exit 1 | |
git rebase master || exit 1 |
This file contains hidden or 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
#!/bin/sh -x | |
# git name-rev is fail | |
CURRENT=`git branch | grep '\*' | awk '{print $2}'` | |
git checkout master || exit 1 | |
git merge ${CURRENT} || exit 1 | |
git push origin master | |
git checkout ${CURRENT} || exit 1 |
This file contains hidden or 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
require 'rubygems' | |
require 'twitter' | |
h = Twitter::HTTPAuth.new 'username', 'password' | |
twitter = Twitter::Base.new(h) | |
source_user = 'username' | |
source_slug = 'list-name' | |
target_user = 'username' | |
target_slug = 'list-name' |
This file contains hidden or 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
// config file: nodejuice.js | |
// Example StaticMatic configuration. | |
// -> http://localhost:3010 | |
exports.sidekick = { | |
host : null, // Leave 'null' to listen on all hosts. | |
port : 3010, // access your server from this port. | |
fetch : { // point to your web server. | |
host : 'localhost', | |
port : 3000 |
This file contains hidden or 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
// Modified, cleaner Haml syntax. | |
// First link works, second does not. | |
// First link | |
%ul | |
%li.arrow= link_to "Search/Add Customer", new_customer_path | |
// Second link | |
- form_for :reservation do |form| | |
%ul |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml: lang="en"> | |
<head> | |
<title>vectoredink</title> | |
<metta http-equiv="Content-Type" content="text/html; chartset=utf-8" /> | |
<style type="text/css"> | |
html { |
This file contains hidden or 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
#!/bin/bash | |
if [ -z "$1" ]; then | |
wdir="." | |
else | |
wdir=$1 | |
fi | |
for f in $( ls $wdir/*.erb ); do | |
out="${f%.erb}.haml" | |
if [ -e $out ]; then |
This file contains hidden or 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
[07:37][adamstacoviak:~]$ gem list | |
*** LOCAL GEMS *** | |
aasm (2.1.4) | |
acl9 (0.12.0) | |
actionmailer (2.3.5) | |
actionpack (2.3.5) | |
activerecord (2.3.5) | |
activeresource (2.3.5) |
This file contains hidden or 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
.ipad-only, | |
.iphone-only, | |
.retina-only, | |
.non-retina-only, | |
.retina-iphone-only, | |
.non-retina-iphone-only | |
display: none | |
// iPad Only | |
@media only screen and (device-width: 768px) |
This file contains hidden or 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
@mixin hires-graphic($file, $type, $width, $height) | |
$file-name: $file + "." + $type | |
$retina-name: $file + "-retina." + $type | |
@media (-webkit-min-device-pixel-ratio: 2) | |
& | |
background-image: image-url($retina-name) | |
-webkit-background-size: $width $height |
OlderNewer