duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
| After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
| The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
| Database files have to be updated before starting the server, here are the steps that had to be followed: | |
| # need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
| brew unlink postgresql | |
| brew install [email protected] | |
| brew unlink [email protected] | |
| brew link postgresql |
| diff --git a/plugin/fireplace.vim b/plugin/fireplace.vim | |
| index 6c32caa..a415bf8 100644 | |
| --- a/plugin/fireplace.vim | |
| +++ b/plugin/fireplace.vim | |
| @@ -232,7 +232,9 @@ function! s:repl.piggieback(arg, ...) abort | |
| else | |
| let arg = ' :repl-env ' . a:arg | |
| endif | |
| - let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')') | |
| + "let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')') |
This list is based on aliases_spec.rb.
You can see also Module: RSpec::Matchers API.
| matcher | aliased to | description |
|---|---|---|
| a_truthy_value | be_truthy | a truthy value |
| a_falsey_value | be_falsey | a falsey value |
| be_falsy | be_falsey | be falsy |
| a_falsy_value | be_falsey | a falsy value |
| #!/usr/bin/env ruby | |
| require 'flickraw' | |
| require 'json' | |
| CREATE_API_KEY = 'https://secure.flickr.com/services/apps/create/apply' | |
| CONFIG_FILE = File.expand_path '~/.config/2flickr.json' | |
| def init |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| # Mac | |
| IO.popen('pbcopy', 'r+') { |clipboard| clipboard.puts html_out } | |
| # Linux | |
| IO.popen(’xsel –clipboard –input’, ‘r+’) { |clipboard| clipboard.puts html_out } |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| # Work with Roman numerals just like normal Integers. | |
| class RomanNumeral < Numeric | |
| include Comparable | |
| # The largest integer representable as a roman | |
| # numerable by this module. | |
| MAX = 3999 | |
| # Taken from O'Reilly's Perl Cookbook 6.23. Regular Expression Grabbag. | |
| REGEXP = /^M*(D?C{0,3}|C[DM])(L?X{0,3}|X[LC])(V?I{0,3}|I[VX])$/i |