Headings from h1
through h6
are constructed with a #
for each level:
# h1 Heading
## h2 Heading
### h3 Heading
rake -T -A
Run from your Rails home directory to see all the tasks that rake knows about. Yours must be in that list for rake to run it.bundle exec rake assets:clean && bundle exec rake assets:precompile && bundle exec rails s -e production_local
rake time:zones:all
- all available time zonesgit reset HEAD --hard
then clean out everything untracked git clean -fd
git ls-files --deleted -z | xargs -0 git rm
Rocky Mountain Ruby 2012 - Go Ahead, Make a Mess by Sandi Metz
Aloha Ruby Conf 2012 Refactoring from Good to Great by Ben Orenstein
Each item in the following list matches a code smell and contains a list of possible refactoring patterns to solve it.
updated to work with ruby 2.2.0
Copied from https://github.com/nslocum/design-patterns-in-ruby
Examples from the book Design Patterns in Ruby by Russ Olsen
This book covers 14 of the original 23 GoF design patterns.
function countCSSRules() { | |
var results = '', | |
log = ''; | |
if (!document.styleSheets) { | |
return; | |
} | |
for (var i = 0; i < document.styleSheets.length; i++) { | |
countSheet(document.styleSheets[i]); | |
} | |
function countSheet(sheet) { |
## Refer to http://caffe.berkeleyvision.org/installation.html | |
# Contributions simplifying and improving our build system are welcome! | |
# cuDNN acceleration switch (uncomment to build with cuDNN). | |
# USE_CUDNN := 1 | |
# CPU-only switch (uncomment to build without GPU support). | |
# CPU_ONLY := 1 | |
# uncomment to disable IO dependencies and corresponding data layers |
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
""" | |
Скрипт для скачивания музыки с сайта vkontakte.ru (vk.com) | |
Запуск: | |
python vkcom_audio_download.py | |
Принцип работы: | |
Скрипт проверяет сохраненный access_token. Если его нет или срок истек, |