I hereby claim:
- I am flavioespinoza on github.
- I am flavioespinoza (https://keybase.io/flavioespinoza) on keybase.
- I have a public key ASBKDaHpFFevPWKGy02d_aXuckg7e5X90k8q4fC9wCQ5uAo
To claim this, I am signing this object:
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<title>d3 depth chart</title> | |
<script type="text/javascript" src="https://d3js.org/d3.v4.min.js"></script> | |
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js"></script> | |
<style> |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Node.js example | |
* https://github.com/Bittrex/beta | |
* | |
* By Flavio Espinoza | |
* | |
* Expanding on example from Adrian Soluch | |
* | |
* prerequisites: | |
* npm i signalr-client crypto lodash ololog |
{"lastUpload":"2019-10-29T05:50:52.835Z","extensionVersion":"v3.4.3"} |
{"lastUpload":"2020-02-10T18:33:23.976Z","extensionVersion":"v3.4.3"} |
simple contact form with html5 & css3
A Pen by ssbalakumar on CodePen.
export type Int = number & { __int__: void } | |
export const roundToInt = (num: number): Int => Math.round(num) as Int | |
export const toInt = (value: string): Int => { | |
return Number.parseInt(value) as Int | |
} | |
export const checkIsInt = (num: number): num is Int => num % 1 === 0 |
if (typeof WebSocket !== 'function') { | |
// for node.js install ws package | |
WebSocket = require('ws'); | |
} | |
const logger = { | |
debug: (...arg) => { | |
// console.log((new Date).toISOString(), 'DEBUG', ...arg) | |
}, | |
info: (...arg) => { |
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works | |
const axios = require('axios'); // promised based requests - like fetch() | |
function getCoffee() { | |
return new Promise(resolve => { | |
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee | |
}); | |
} |