Installation
gem install rmagick # you'll need ImageMagick & Ruby first
gem install colormath
gem install micro-optparse
# This file is blank, but here in order to have more clear view of the gist from within github. |
The following instructions will get you setup to run Dropbox at system start. Below, also find instructions on how to install the Dropbox CLI.
# Login as root and go into home dir.
sudo su && cd ~
# Download Dropbox depending on architecture (uname -a) and unpack.
# You will need to repeat this "download and unpack" step for all users
const checkAndReport (token, correct, context) { | |
if (token.toLowerCase().includes(correct.toLowerCase()) && !token.includes(correct))) { | |
context.report(node, `The standard variable casing is "${correct}", not ${node.id.name}`); | |
} | |
} | |
module.exports.rules = { | |
"paypal-casing": context => ({ | |
VariableDeclarator: (node) => { | |
checkAndReport(node.id.name, 'Paypal', context) |
activate application "Reminders" | |
tell application "Finder" | |
set _b to bounds of window of desktop | |
set _width to item 3 of _b | |
set _height to item 4 of _b | |
end tell | |
tell application "System Events" | |
const Promise = require('bluebird'); | |
const getResponses = async (urls) => { | |
const requests = urls.map(u => fetch /* fetch is a newish builtin API */) | |
const responses = await Promise.all(requests) | |
return responses | |
} | |
const urls = [ | |
'https://foo.com/bar.json', |
git checkout master | |
git pull | |
git checkout my-branch | |
git rebase master | |
# Get conflicts, flip a table. | |
# (╯°□°)╯︵ | |
git checkout . --theirs # we don't care about what's in master, we just want our files and we'll fix eslint errors ourselves | |
./node_modules/.bin/eslint . --fix |
// | |
// A user has purchased products from Dollar Shave Club, | |
// noted below in the `purchased` array. When these products | |
// came out of our database, they were unsorted. | |
// | |
// Write the method below, `sortProducts`, to obtain a sorted | |
// array of the items purchased. | |
// | |
const sortedReference = [ |
eggplanet is an LA-based development shop started by two of the early engineers of Dollar Shave Club. We have experience building and optimizing apps as well helping teams grow and become more efficient.