Skip to content

Instantly share code, notes, and snippets.

View dylannnn's full-sized avatar
🌊

Yunfei Li dylannnn

🌊
View GitHub Profile
@dylannnn
dylannnn / JavaScript.md
Created November 26, 2015 09:01 — forked from aaronshaf/JavaScript.md
All Things JavaScript
import axios from 'axios'
let myData = [{id: 0}, {id: 1}, {id: 2}, {id: 3}]
async function fetchData(dataSet) {
const pokemonPromises = dataSet.map(entry => {
return axios.get(`https://ironhack-pokeapi.herokuapp.com/pokemon/${entry.id}`)
})
const results = await Promise.all(pokemonPromises)
@dylannnn
dylannnn / regex.sh
Created July 18, 2019 08:17
Useful one-line scripts for sed
# | Source : http://sed.sourceforge.net/sed1line.txt
# | -------------------------------------------------------------------------
# | USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor) Dec. 29, 2005
# | Compiled by Eric Pement - pemente[at]northpark[dot]edu version 5.5
# |
# | Latest version of this file (in English) is usually at:
# | http://sed.sourceforge.net/sed1line.txt
# | http://www.pement.org/sed/sed1line.txt
# |
# | This file will also available in other languages:
@dylannnn
dylannnn / ultimate-ut-cheat-sheet.md
Created September 18, 2020 10:13 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies