Skip to content

Instantly share code, notes, and snippets.

View Boo-urns's full-sized avatar

Corey Burns Boo-urns

View GitHub Profile
@Boo-urns
Boo-urns / .migrate-repo.sh
Created March 17, 2023 17:27
migrate-repo.sh
#!/bin/bash
echo "Let's migrate a package! Make sure this is running in the root of your monorepo."
read -p "Package name: " name
read -p "Repo URL (ssh://git...): " repo
# Setup the remote git repo
git remote add $name $repo
git fetch $name
read -p "Which branch should we merge? " branch
@Boo-urns
Boo-urns / rollup.config.js
Created October 18, 2018 14:32
Multiple output files with rollup
import babel from 'rollup-plugin-babel';
import commonjs from 'rollup-plugin-commonjs';
import external from 'rollup-plugin-peer-deps-external';
import postcss from 'rollup-plugin-postcss';
import resolve from 'rollup-plugin-node-resolve';
import url from 'rollup-plugin-url';
import autoprefixer from 'autoprefixer';
import json from 'rollup-plugin-json';
import filesize from 'rollup-plugin-filesize';
import globby from 'globby';
@Boo-urns
Boo-urns / flatten_arr.js
Created December 2, 2016 05:10
Flatten an array of nested arrays
/*
* flatten_arr(array)
* Purpose: Flatten an array of nested arrays
*
* Usage:
* var arrayToFlatten = flatten_arr([[1,2,[3]],4]); // [1,2,3,4]
*
* // If not passing an array it returns the initial value
* var notArray = flatten_arr('5'); // '5' returns initial value
*/
@Boo-urns
Boo-urns / .gitignore
Last active August 29, 2015 14:08 — forked from octocat/.gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #