One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Typing vagrant
from the command line will display a list of all available commands.
Be sure that you are in the same directory as the Vagrantfile when running these commands!
vagrant init
-- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.vagrant init <boxpath>
-- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64
.vagrant up
-- starts vagrant environment (also provisions only on the FIRST vagrant up)# useful for running ssl server on localhost | |
# which in turn is useful for working with WebSocket Secure (wss) | |
# copied from http://www.piware.de/2011/01/creating-an-https-server-in-python/ |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Here's what I did to get things working.
Yep, over at: https://developer.apple.com
WITH table_scans as ( | |
SELECT relid, | |
tables.idx_scan + tables.seq_scan as all_scans, | |
( tables.n_tup_ins + tables.n_tup_upd + tables.n_tup_del ) as writes, | |
pg_relation_size(relid) as table_size | |
FROM pg_stat_user_tables as tables | |
), | |
all_writes as ( | |
SELECT sum(writes) as total_writes | |
FROM table_scans |
require 'benchmark' | |
iterations = 1_000_000 | |
words = 'foo, bar, test, boo'.split(',').map(&:strip) | |
string = 'this is going foo be awesome~!' | |
Benchmark.bmbm do |bm| | |
bm.report do | |
iterations.times do | |
words.any? { |s| string.include?(s) } | |
end |
function! ConvertShouldToExpect() | |
let rspec_conversions = { | |
\ 'should': 'to', | |
\ 'should_not': 'not_to', | |
\ 'should_receive': 'to receive', | |
\ 'should_not_receive': 'not_to receive', | |
\ } | |
for [old, new] in items(rspec_conversions) | |
execute "normal! " . ':%s/\v^(\s+)(.+)\.' . old . '>/\1expect(\2).' . new . '/ge' . "\<CR>" |
@import "chosen"; | |
.chosen-container { | |
font-size: inherit; | |
margin-bottom: $form-spacing; | |
.chosen-single div { | |
background: none; | |
border-left: none; | |
position: absolute; |