Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
#!/usr/bin/env ruby | |
require_relative '../../spec/support/simple_cov_helper.rb' | |
SimpleCovHelper.report_coverage('integration') | |
load "#{Gem::Specification.find_by_name('knapsack_pro').gem_dir}/lib/tasks/queue/rspec.rake" | |
Rake::Task['knapsack_pro:queue:rspec'].invoke('--format doc --format RSpec::Instafail --tag ~skip --format RspecJunitFormatter --out tmp/test_results/spec/integration.xml') |
Basics of Unix philosophy: | |
- Use simple algorithms as well as simple data structures | |
- Data structures, not algorithms are central to programming - organise it well | |
- Fancy algorithms are buggier than simple ones | |
Rules: | |
Modularity - build out simple parts connected by well defined interfaces. Be able to update/upgrade the part without breaking the whole. |
#!/bin/sh | |
############################################################################### | |
# Setup # | |
############################################################################### | |
# Use global hooks directory for each existing and new repository: | |
# $ git config --global core.hooksPath '~/.git-hooks' | |
# $ mkdir ~/.git-hooks | |
# $ chmod a+x ~/.git-hooks/prepare-commit-msg |
UPDATE 2021: I wrote this long before I wrote my book Functional Programming Made Easier: A Step-by-step Guide. For a much more in depth discussion on Monads see Chapter 18.
Initially, Monads are the biggest, scariest thing about Functional Programming and especially Haskell. I've used monads for quite some time now, but I didn't have a very good model for what they really are. I read Philip Wadler's paper Monads for functional programming and I still didnt quite see the pattern.
It wasn't until I read the blog post You Could Have Invented Monads! (And Maybe You Already Have.) that I started to see things more clearly.
This is a distillation of those works and most likely an oversimplification in an attempt to make things easier to understand. Nuance can come later. What we need when first le
# frozen_string_literal: true | |
require 'httparty' | |
REQUESTED_BUILDS = ARGV[0].to_i || 10 | |
SPEC_FILES = {} | |
def get(url, options = {}) | |
headers = { | |
'cache-control': 'no-cache', |
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 postgresql@9.6 | |
brew unlink postgresql@9.6 | |
brew link postgresql |
From time to time, Musk will send out an e-mail to the entire company to enforce a new policy or let them know about something that's bothering him. One of the more famous e-mails arrived in May 2010 with the subject line: Acronyms Seriously Suck:
There is a creeping tendency to use made up acronyms at SpaceX. Excessive use of made up acronyms is a significant impediment to communication and keeping communication good as we grow is incredibly important. Individually, a few acronyms here and there may not seem so bad, but if a thousand people are making these up, over time the result will be a huge glossary that we have to issue to new employees. No one can actually remember all these acronyms and people don't want to seem dumb in a meeting, so they just sit there in ignorance. This is particularly tough on new employees.
That needs to stop immediately or I will take drastic action - I have given enough warning over the years. Unless an acronym is approved by me, it should not enter the SpaceX glossary.
Recreates the Capybara Screenshot bug.
Note: this can be fixed by switching to mattheworiordan/capybara-screenshot#205
-gem 'capybara-screenshot'
+gem 'capybara-screenshot', git: 'https://github.com/ArturT/capybara-screenshot.git',
+ branch: 'fix-reporter_module-loaded-twice'