Skip to content

Instantly share code, notes, and snippets.

ed5c6276b2a18cab80f118ecaa0f832d3a2224557e81fb84c7dd63498aabe042c87a8e478750d5a374a8e6ea127e95641bc53df75a02d0020d3d6676945aa0cf
@brandoncorbin
brandoncorbin / bootstrap-media-only.scss
Created December 4, 2019 23:06
Bootstrap media query SCSS only
@import "../../node_modules/bootstrap/scss/functions";
@import "../../node_modules/bootstrap/scss/variables";
@import "../../node_modules/bootstrap/scss/mixins";
@import "../../node_modules/bootstrap/scss/mixins/breakpoints";
@import "../../node_modules/bootstrap/scss/media";
@brandoncorbin
brandoncorbin / promise-step.js
Last active November 8, 2019 16:47
Brandon Corbin's PromiseStep - a bunch of promises one at a time
/**
* PromiseStep
* Like promise.all, but one at a time.
*
* - Basic
*
* PromiseStep([1,2,3], (row)=>{
* return Promise.resolve(row)
* }.then((finished)=>{
* console.log("All Done", finished);
@brandoncorbin
brandoncorbin / node-simple-storage.js
Created August 21, 2019 01:30
A simple storage solution in Node.
const fs = require('fs');
/**
* let store = new Storage('path/to/file')
* store.put('name', 'Brandon')
* store.put('config', { key: 1 })
* let obj = store.get('config'); // { key: 1 }
**/
module.exports = class Storage {
constructor(file) {
Verifying my Blockstack ID is secured with the address 14fxX865tdp5ShhqTpSqUTZGnT1546jHMk https://explorer.blockstack.org/address/14fxX865tdp5ShhqTpSqUTZGnT1546jHMk
/**
Intervals.js
A simple lib to manage multiple timers with different intervals.
let intervals = new Intervals();
intervals.create("check-5000", 5000);
intervals.add("check-5000", ()=>{
// do price lookup
});
intervals.add("check-5000", ()=>{

Keybase proof

I hereby claim:

  • I am brandoncorbin on github.
  • I am brandoncorbin (https://keybase.io/brandoncorbin) on keybase.
  • I have a public key whose fingerprint is DC4B 8D5C 8369 EE76 5B2C 72D5 EA54 71EB C1F4 EB7B

To claim this, I am signing this object: