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 * as colors from "https://deno.land/std/fmt/colors.ts"; | |
const BASE_PATH = "https://hacker-news.firebaseio.com/v0/"; | |
const get_top_stories = async () => { | |
console.info( | |
` | |
/$$ /$$ /$$ /$$ /$$ | |
| $$ | $$ | $$ | $$$ | $$ | |
| $$ | $$ /$$$$$$ /$$$$$$$| $$ /$$ /$$$$$$ /$$$$$$ | $$$$| $$ /$$$$$$ /$$ /$$ /$$ /$$$$$$$ |
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
#!/usr/bin/env bash | |
echo " | |
██████╗ ██╗ █████╗ ███╗ ██╗ ██████╗ ██████╗ ██████╗ | |
██╔══██╗ ██║██╔══██╗████╗ ██║██╔════╝ ██╔═══██╗██╔══██╗ | |
██║ ██║ ██║███████║██╔██╗ ██║██║ ███╗██║ ██║██████╔╝ | |
██║ ██║██ ██║██╔══██║██║╚██╗██║██║ ██║██║ ██║██╔══██╗ | |
██████╔╝╚█████╔╝██║ ██║██║ ╚████║╚██████╔╝╚██████╔╝██║ ██║ | |
╚═════╝ ╚════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ |
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-07-01T16:16:29.144Z","extensionVersion":"v3.4.3"} |
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
.type.storage,.type.storage.declaration, .storage.class.modifier { | |
font-family: 'Operator Mono Book'; | |
} | |
.type.storage.arrow.function { | |
font-family: 'Fira Code' | |
} | |
.token.keyword.operator { | |
font-family: 'Fira Code' |
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
/** | |
* First letter of a string converted into uppercase | |
*/ | |
String.prototype.capitalizeFirstLetter = function () { | |
return this | |
.charAt(0) | |
.toUpperCase() + this.slice(1); | |
} | |
/** |
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
var pr1 = new Promise((resolve, reject) => { | |
setTimeout(function () { | |
resolve([1,3,4,46,234,33,4,536]); | |
}, 500); | |
}) | |
var pr2 = new Promise((resolve, reject) => { | |
setTimeout(function () { | |
resolve(20); | |
}, 1000); |
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, { Component } from 'react'; | |
import { createStore, combineReducers, applyMiddleware, bindActionCreators } from 'redux'; | |
import { provide, connect } from 'react-redux'; | |
import thunk from 'redux-thunk'; | |
const AVAILABLE_SUBREDDITS = ['apple', 'pics']; | |
// ------------ | |
// reducers | |
// ------------ |
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
Show hidden characters
{ | |
"presets": ["react", "es2015", "stage-0"] | |
} |
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
/** | |
* Basic proof of concept. | |
* - Hot reloadable | |
* - Stateless stores | |
* - Stores and action creators interoperable with Redux. | |
*/ | |
import React, { Component } from 'react'; | |
export default function dispatch(store, atom, action) { |
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
To install virtualenv via pip | |
$ pip3 install virtualenv | |
Note that virtualenv installs to the python3 directory. For me it's: | |
$ /usr/local/share/python3/virtualenv | |
Create a virtualenvs directory to store all virtual environments | |
$ mkdir somewhere/virtualenvs | |
Make a new virtual environment with no packages |
NewerOlder