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
| I would really like to have several repositories for an application to store the various design and development resources. A project directory typically has the following subdirectories: | |
| project-name/ | |
| artwork/ # logos, etc... | |
| mockups/ # mockups of application screens | |
| prototype/ # raw html and css | |
| application/ # the rails application | |
| So for "project-name" I'd have repositories for artwork, mockups, etc... The problem with this approach on Github is that for one project it will consume 4 slots. If I do this for every project I'll bump over my current plan's repository limits rather quickly. |
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
| jlong@rhyddid:~/Workspaces/memberhub/mockups$ usage | |
| 201M ./.git | |
| 16M ./avatars | |
| 2.0M ./buttons | |
| 4.2M ./icons | |
| 79M ./website | |
| 304K ./wireframes | |
| 364M . | |
| jlong@rhyddid:~/Workspaces/memberhub/mockups$ git gc --aggressive | |
| Counting objects: 545, done. |
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
| # disk usage per directory | |
| usage () | |
| { | |
| if [ $1 ] | |
| then | |
| du -hd $1 | |
| else | |
| du -hd 1 | |
| fi | |
| } |
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
| #head | |
| background: #c2e5f4 | |
| padding: 1.5em 0 | |
| margin: 1.5em 0 | |
| +round-corners |
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 'active_support' | |
| def ok_failed(condition) | |
| if (condition) | |
| puts "OK" | |
| else | |
| puts "FAILED" | |
| end | |
| end |
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
| !default_rounded_amount ||= 5px | |
| // Round corner at position by amount. | |
| // values for position: "top-left", "top-right", "bottom-left", "bottom-right" | |
| =round-corner(!position, !amount = !default_rounded_amount) | |
| border-#{!position}-radius= !amount | |
| -moz-border-#{!position}-radius= !amount | |
| -webkit-border-#{!position}-radius= !amount | |
| // Round left corners by amount |
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
| set runtimepath+=,/usr/share/vim/vimfiles | |
| set backspace=indent,eol,start | |
| if has("vms") | |
| set nobackup " do not keep a backup file, use versions instead | |
| else | |
| set backup " keep a backup file | |
| endif | |
| " Switch syntax highlighting on, when the terminal has colors |
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
| $ tweettail -f railsconf | |
| /Library/Ruby/Gems/1.8/gems/tweettail-1.0.0/lib/tweet-tail/tweet_poller.rb:28:in `initial_json_data': uninitialized constant TweetTail::TweetPoller::Net (NameError) | |
| from /Library/Ruby/Gems/1.8/gems/tweettail-1.0.0/lib/tweet-tail/tweet_poller.rb:10:in `refresh' | |
| from /Library/Ruby/Gems/1.8/gems/tweettail-1.0.0/lib/tweet-tail/cli.rb:30:in `execute' | |
| from /Library/Ruby/Gems/1.8/gems/tweettail-1.0.0/bin/tweettail:10 | |
| from /usr/bin/tweettail:19:in `load' | |
| from /usr/bin/tweettail:19 | |
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
| [user] | |
| email = me@....com | |
| name = John W. Long | |
| [alias] | |
| br = branch | |
| ci = commit | |
| cia = commit -a | |
| co = checkout | |
| df = diff | |
| lg = log |
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
| case | |
| when expression_1 | |
| ... | |
| when expression_2 | |
| ... | |
| when expression_3 | |
| ... | |
| else | |
| ... | |
| end |