This file contains 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
// This example illustrates how a synchronous method from the "fs" module could be promisified. | |
// Note that Node provides a built-in promisified fs module itself out of the box, and this snippet is just for illustration purposes. | |
const fs = require("fs"); | |
// Non-promisified (async using callbacks, which can lead to callback hell... 👿🔥) | |
fs.readFile("./package.json", function callback(err, data) { | |
const package = JSON.parse(data.toString("utf8")); | |
console.log(package.name); |
This file contains 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
/* | |
0-0-0-0-1-1-1-1 | |
0-0-1-1-0-0-1-1 | |
0-1-0-1-0-1-0-1 | |
—-1-1-c-1-c-c-1c | |
*/ | |
void addFast(){ | |
repeat(8){ |
This file contains 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 React from 'react'; | |
import DataTableField from './DataTableField.js'; | |
import { groupBy } from './helpers'; | |
class DataTable extends React.Component { | |
constructor(props) { | |
super(props); | |
this.data = this.props.data; | |
this.categorizedData = groupBy(this.data, "category"); | |
console.log(this.categorizedData); |
This file contains 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
====== IRC Intro: ====== | |
An IRC Cheat Sheet: https://gist.github.com/xero/2d6e4b061b4ecbeb9f99 | |
Terminology: | |
In IRC, there are "Networks", and then each network is available on a "server" (usually on | |
multiple servers, but one of them is used more often, so we can simplify things by thinking of | |
networks and servers as one-to-one mappings), and then each network(server) has several "Channels". | |
"Users" connect to networks first, using "IRC clients"(e.g. Irssi, mIRC, etc.), and then join channels. |
This file contains 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
{"lastUpload":"2021-02-07T13:21:29.612Z","extensionVersion":"v3.4.3"} |