$ rails g model User
belongs_to
has_one
$ rvm use system | |
$ brew install macvim # remove old version first | |
$ cd ~/.vim/bundle/command-t/ruby/command-t # using pathogen to manage plugins | |
$ ruby extconf.rb && make # configure and build |
sass-convert -F scss -T sass application_styles.css.scss application_styles.css.sass |
Note: Some of these keymapping are specific to IdeaVim plugin. If you don't use IdeaVim (what' wrong with you :)), I've tried to point out where they differ, but I could have missed a few
Ctrl-P
- Popup parameter documentation for method callspackage httpclient | |
import ( | |
"net" | |
"net/http" | |
"time" | |
) | |
type Config struct { | |
ConnectTimeout time.Duration |
require 'aws' | |
AWS.config(:access_key_id => 'XXXXX', :secret_access_key => 'XXXXX') | |
pipeline_id = 'XXXXXXX' | |
preset_id = 'XXXXXX' | |
s3 = AWS::S3.new | |
bin = s3.buckets['XXXXXX-in'] | |
bout = s3.buckets['XXXXXX-out'] |
ActiveAdmin.register Project do | |
# Don't forget to add the image attribute (here thumbnails) to permitted_params | |
controller do | |
def permitted_params | |
params.permit project: [:title, :summary, :description, :thumbnail, :date, :url, :client_list, :technology_list, :type_list] | |
end | |
end | |
form do |f| |
http://speakmy.name/2013/04/02/concurrent-programming-and-threads-in-ruby-reading-list/ | |
Concurrent Programming and Threads in Ruby - a reading list | |
02 April 2013 | |
Many rubyists consider threads in Ruby as somewhat of an arcane knowledge, though in reality they’re a very well researched and understood concept. Of course, writing effective multithreaded concurrent programs requires certain amount of knowledge and discipline from the programmer, but there’s nothing that a smart one can’t learn if he wants to. | |
To help with the task, awesome @brainopia compiled a list of recommended reading on the topic of concurrency and threads. All kudos go to @brainopia, and the original list in Russian as available as a gist here: |
git fetch --all | |
git reset --hard origin/master | |
git pull origin master |