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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
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
| http://paletton.com/ | |
| (present = Full Colors) | |
| Lightest Lighter Base Darker Darkest Hue ~= | |
| #FF6363 #FF3939 #FF0000 #C50000 #9B0000 R 0 | |
| #FFA863 #FF9139 #FF7100 #C55700 #9B4500 RO 30 | |
| #FFCB63 #FFBD39 #FFAA00 #C58300 #9B6700 O 60 | |
| #FFE463 #FFDD39 #FFD300 #C5A300 #9B8000 OY 90 |
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
| var Pie = React.createClass({ | |
| defaultProps: { | |
| percentage: 0 | |
| }, | |
| calculateAngle: function(percentage) { | |
| return (percentage) * (360 / 100); | |
| }, | |
| render: function() { | |
| var angle = this.calculateAngle(this.props.percentage); |
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
| # see https://github.com/rightscale/right_aws/pull/47 for more details | |
| # Traditional way, without headers and response-* params | |
| s3instance.get_link('bucket_name', 'key/song.mp3', 86400) | |
| #=> https://bucket_name.s3.amazonaws.com:443/key%2Fsong.mp3?Signature=vIh5...&Expires=1296611902&AWSAccessKeyId=AK... | |
| # To generate url with response-* params, headers parameter must be specified, | |
| # and response-* params are in hash style | |
| s3instance.get_link('bucket_name', 'key/song.mp3', 86400, | |
| {}, # empty additional headers |
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
| # depends on oh-my-zsh | |
| # forked from macovsky-ruby theme | |
| local return_code="%(?..%{$bg[red]%}%{$fg[black]%}=%?%{$reset_color%})" | |
| function rvm_prompt_info { | |
| echo "$ZSH_THEME_RVM_PROMPT_PREFIX$(~/.rvm/bin/rvm-prompt i v g)$ZSH_THEME_RVM_PROMPT_SUFFIX" | |
| } | |
| function git_prompt_status_full { |
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
| { | |
| /* home */ | |
| "\UF729" = "moveToBeginningOfLine:"; | |
| "$\UF729" = "moveToBeginningOfLineAndModifySelection:"; | |
| /* end */ | |
| "\UF72B" = "moveToEndOfLine:"; | |
| "$\UF72B" = "moveToEndOfLineAndModifySelection:"; | |
| /* page up/down */ |
This Ruby 1.9.2-p320 is compiled with Clang compiler coming with Xcode 4.3, via RVM (specifying -C --with-gcc=clang).
It seems that errors happened mostly in Thread. Bad news for some Ruby programs.
I wrote a post on how to obtain a GNU C Compiler and compile Ruby 1.9.2 with GCC.
brew install cmake
brew link cmake
brew install libgit2
git clone git://github.com/rowanj/gitx.git
cd gitx
git submodule init
OlderNewer