Skip to content

Instantly share code, notes, and snippets.

View bahmutov's full-sized avatar
🍺
on a roll

Gleb Bahmutov bahmutov

🍺
on a roll
View GitHub Profile
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active November 11, 2024 22:46
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@elijahmanor
elijahmanor / conferences.md
Last active August 29, 2015 14:20
Conferences

Conferences

Larger Events (Single City)

Large (Multiple Cities)

  • Breaking Development (nashville, atlanta, washington dc, orlando, san diego, dallas) http://bdconf.com/
  • An Event Apart (atlanta, seattle, boston, san diego, washington dc, chicago, austin, san francisco) http://aneventapart.com/
@btroncone
btroncone / rxjs_operators_by_example.md
Last active November 7, 2024 09:19
RxJS 5 Operators By Example
@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active November 3, 2024 17:14
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@mikeal
mikeal / r2.js
Last active April 21, 2023 17:13
HTTP Client Comparison
const r2 = require('r2')
let doJsonThing = async (path, propname) => {
let res = await r2(`http://api.com${path}`).json
return res[propname]
}
// Take string and get words as an array. Valid split characters are `,` `.` `\s` `/` `\n`
// words :: String -> [String]
export const words = str =>
(str ? str.split(/[\s\n.,/]+/) : []) // split on whitespace
.filter(Boolean);
@msabramo
msabramo / Dockerfile
Created July 26, 2019 21:13
Cypress test Dockerfile
# use Cypress provided image with all dependencies included
FROM cypress/base:10
RUN node --version
RUN npm --version
RUN apt-get update && \
apt-get install -y locales && \
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && \
locale-gen
ENV LC_ALL=en_US.UTF-8
@joegaudet
joegaudet / cypress-ember-data-hooks.js
Created July 8, 2020 00:14
Some cypress commands to work with ember-data
// use ember-expose-global and replace MyAppName with you
Cypress.Commands.add("getStore", () => {
return cy
.window()
.then((win) => cy.wrap(win.MyAppName.__container__.lookup('service:store')));
});
/**
* Create Record
* @param {string} Record Name