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
<FlexGrid limitWidth gutter={false}> | |
<FlexGrid.Col span={12}> | |
<Box horizontal={3}> | |
<Paragraph>{text}</Paragraph> | |
</Box> | |
</FlexGrid.Col> | |
<FlexGrid.Col span={columns}> | |
<Box horizontal={3} vertical={3}> | |
<Card>{text}</Card> |
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
var size = { | |
width: window.innerWidth || document.body.clientWidth, | |
height: window.innerHeight || document.body.clientHeight | |
} |
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
require 'bundler/setup' | |
require 'fileutils' | |
def copy_compiled_css_to_docs(version) | |
Dir.glob('./css/dist/**/*.css').each do |file| | |
dir, filename = File.dirname(file).sub('./',''), File.basename(file) | |
dest = File.join('docs/src/v'+version+'/hydra', dir) | |
FileUtils.mkdir_p(dest) | |
FileUtils.cp(file, File.join(dest,filename)) |
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
#!/bin/bash | |
BRANCH=`git rev-parse --abbrev-ref HEAD` | |
if [[ "$BRANCH" == "master" ]]; then | |
echo "Call grunt docs to update style guide" | |
cd build | |
echo $($pwd) | |
grunt docs | |
fi |
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
*Download the reference codebase* | |
$ git clone https://code.google.com/p/font-compression-reference/ | |
*Build the project* | |
cd font-compression-reference/woff2 | |
make clean all | |
*Run the tool over a given font* | |
$ ./woff2_compress telusdings.ttf |
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
]$ git checkout feature-branch | |
]$ git rebase develop | |
]$ git checkout develop | |
]$ git merge feature-branch | |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
before_validation | |
after_validation | |
before_save | |
after_save | |
before_create | |
after_create | |
before_update |
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
rails g migration Add[*]And[#]To[TableName] *:string #:boolean | |
rails g migration Remove[*]From[TableName] *:integer | |
rake db:migrate | |
rake db:rollback | |
rake db:schema:dump | |
rake db:setup | |
# Migration commands | |
add_column |
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
# list all available versions: | |
$ rbenv install -l | |
# install a Ruby version: | |
$ rbenv install 2.0.0-p247 | |
# set/unset local | |
$ rbenv local 1.9.3-p327 | |
$ rbenv local --unset |
NewerOlder