Skip to content

Instantly share code, notes, and snippets.

View cortesben's full-sized avatar

Ben cortesben

View GitHub Profile
@cortesben
cortesben / getColorNewTab
Created April 11, 2018 10:39
get the colors from pallet lab tab in chrome
var colors = document.querySelectorAll('.sweet-color');
colors.forEach(e => {
let styles = window.getComputedStyle(e);
console.log(styles["background-color"]);
});
syntax on
set number
filetype plugin indent on
set tabstop=2 shiftwidth=2 expandtab
set backspace=indent,eol,start
@cortesben
cortesben / preparePackageForNPM.js
Last active December 2, 2019 21:00
Prepare for npm publish
const path = require('path');
const fs = require('fs');
const file = path.join(__dirname, '../' + process.argv[2]);
const fileJSON = require(file);
delete fileJSON.dependencies;
delete fileJSON.eslintConfig;
delete fileJSON.devDependencies;
delete fileJSON.scripts;