Skip to content

Instantly share code, notes, and snippets.

View zhisme's full-sized avatar
:shipit:

Evgeny Zhdanov zhisme

:shipit:
View GitHub Profile
@zhisme
zhisme / develop-3rd-party.sh
Created January 23, 2020 15:54
how to develop locally 3rd party library with node fucking js
#!/usr/bin/env bash
cd path/to/lib
yarn build 2&>1
cd path/to/your/project
rm -rf node_modules/lib_name
yarn add ../path/to/lib
yarn
yarn server
@zhisme
zhisme / us-street-types.json
Last active April 27, 2018 09:17
Mapping from abbreviation to full street type.
{
"ALY": "Alley",
"AVE": "Avenue",
"BLVD": "Boulevard",
"CSWY": "Causeway",
"CIR": "Circle",
"CT": "Court",
"CV": "Cove",
"CRES": "CRES",
"DR": "Drive",
@zhisme
zhisme / number-to-human-size-converter.js
Last active April 16, 2018 19:58
Implementation of Ruby on Rails ActiveSupport::NumberHelper::NumberToHumanSizeConverter in javascript < ES5
var NumberToHumanSizeConverter = {
STORAGE_UNITS: ['bytes', 'kb', 'mb', 'gb', 'tb', 'pb', 'eb'],
base: 1024,
parsedNum: null,
defaults: {
delimeter: '.',
precision: '2'
},
convert: function(number) {