upgrading chromedriver on macos catalina v10.15.4
brew cask reinstall chromedriver
xattr -d com.apple.quarantine /usr/local/Caskroom/chromedriver/$VERSION/chromedriver
upgrading chromedriver on macos catalina v10.15.4
brew cask reinstall chromedriver
xattr -d com.apple.quarantine /usr/local/Caskroom/chromedriver/$VERSION/chromedriver
| #!/bin/bash | |
| # This has to be run from master | |
| git checkout master | |
| # Update our list of remotes | |
| git fetch | |
| git remote prune origin | |
| # Remove local fully merged branches | |
| git branch --merged master | grep -v 'master$' | xargs git branch -d |
| function willThereEverBeARainbow(string) { | |
| const rainbow = ['Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Indigo', 'Violet'].join('').toUpperCase(); | |
| const characterFrequencyMap = (str) => str.split('').reduce((acc, letter) => { | |
| return Object.assign({}, acc, { | |
| [letter]: acc[letter] ? acc[letter] + 1 : 1 | |
| }); | |
| }, {}); | |
| const expectedLettersMap = characterFrequencyMap(rainbow); // => { R: 3, E: 7, D:2, ... } | |
| const inputLettersMap = characterFrequencyMap(string); | |
brew install ImageMagick
ffmpeg -ss 14:55 -i video.mkv -t 5 -s 480x270 -f image2 %04d.png
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
| =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') |
| PATH := $(PATH):./node_modules/.bin/ | |
| JS = ./app/assets/javascripts | |
| APP = $(JS)/legacy | |
| SOURCE = $(wildcard $(APP)/common.js.coffee $(APP)/controllers/**/*.js.coffee) | |
| TARGET = $(patsubst %.js.coffee,%.js,$(SOURCE)) | |
| LIBS = $(shell find $(APP)/{controllers,modules,utils} -name '*.js.coffee' -print) | |
| VENDOR = $(shell find ./vendor/assets/javascripts -name '*.js' -print) | |
| PKG = $(wildcard package.json) | |
| FLAGS = -t browserify-shim -t coffeeify --extension='.js.coffee' |
# Ubuntu
sudo apt-get install gpa seahorse
# Mac
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');Those suck for maintenance and they're ugly.