using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from 'axios'; | |
| import store from "@/data/state" | |
| class Http { | |
| constructor() { | |
| let service = axios.create({}); | |
| service.interceptors.request.use((config) => { | |
| config.headers.common['x-access-token'] = store.state.token | |
| return config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const Benchmark = require('benchmark'); | |
| const axios = require('axios'); | |
| const superagent = require('superagent'); | |
| var suite = new Benchmark.Suite; | |
| const targetUrl = 'http://httpbin.org/ip'; | |
| suite | |
| .add('axios', { |
Heil PR40 Package - http://www.bswusa.com/Dynamic-Microphones-Heil-Sound-PR40-Package-P7628.aspx
This is a great deal, and is a perfect mic for this stuff.
OC White Boom - http://www.ocwhite.com/broadcast-arms/proboomtm-elite-extended-reach-mic-arm-with-riser-45-reach-12-vertical-riser.html
The kit comes with a boom. It is decent, I guess, but this OC White boom is badass prostyle with a 4' reach and a 15" riser that lets it live behind my monitor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install git -y | |
| sudo apt-get install rake -y | |
| curl -Lo- http://bit.ly/janus-bootstrap | bash | |
| # finally worked then wanted to edit and enable a darker theme | |
| cd ~ | |
| echo 'color molokai' >> ~/.vimrc.after |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| var script, | |
| scripts = document.getElementsByTagName('script')[0]; | |
| function load(url) { | |
| script = document.createElement('script'); | |
| script.async = true; | |
| script.src = url; | |
| scripts.parentNode.insertBefore(script, scripts); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Simple algorithm to download all the egghead.io videos in highest-quality from YouTube. | |
| Run from the directory you want the videos to appear. Renames them so that they have the video number + omit the repetitive "Egghead.io - AngularJS -" text. | |
| Installing dependency: | |
| $ pip install git+https://github.com/NFicano/pytube#egg=pytube | |
| """ | |
| from pytube import YouTube #, exceptions as YTD_exceptions |
NewerOlder
