Real unit test (isolation, no children render)
Calls:
- constructor
- render
import * as fs from 'fs'; | |
import * as path from 'path'; | |
// https://gist.github.com/lovasoa/8691344 | |
async function* walk(dir) { | |
for await (const d of await fs.promises.opendir(dir)) { | |
const entry = path.join(dir, d.name); | |
if (d.isDirectory()) { | |
yield* walk(entry); | |
} else if (d.isFile()) { |
npm users sorted by the monthly downloads of their modules, for the range May 6, 2018 until Jun 6, 2018.
Metrics are calculated using top-npm-users.
# | User | Downloads |
---|
# PKGW customizations | |
# Greek ambiguities: epsilon/eta, theta/tau, pi/phi/psi, omega/omicron | |
<Multi_key> <backslash> <comma> : " " U202F # thin nonbreaking space | |
<Multi_key> <g> <a> : "α" | |
<Multi_key> <g> <b> : "β" | |
<Multi_key> <g> <g> : "γ" | |
<Multi_key> <g> <d> : "δ" | |
<Multi_key> <g> <3> : "ε" # note! |
Kris Nuttycombe asks:
I genuinely wish I understood the appeal of unityped languages better. Can someone who really knows both well-typed and unityped explain?
I think the terms well-typed and unityped are a bit of question-begging here (you might as well say good-typed versus bad-typed), so instead I will say statically-typed and dynamically-typed.
I'm going to approach this article using Scala to stand-in for static typing and Python for dynamic typing. I feel like I am credibly proficient both languages: I don't currently write a lot of Python, but I still have affection for the language, and have probably written hundreds of thousands of lines of Python code over the years.
# Instructions for 4.14 and cuda 9.1 | |
# If upgrading from 4.13 and cuda 9.0 | |
$ sudo apt-get purge --auto-remove libcud* | |
$ sudo apt-get purge --auto-remove cuda* | |
$ sudo apt-get purge --auto-remove nvidia* | |
# also remove the container directory direcotory at /usr/local/cuda-9.0/ | |
# Important libs required with 4.14.x with Cuda 9.X | |
$ sudo apt install libelf1 libelf-dev |
Skyrim mods are why the game is alive eight years after it was launched. They’re amazing and fantastic and disturbing and inspiring. They fix game bugs, add new features, and make the game look fresh.
I am happily role-playing my way through my social distancing 2020 playthrough, posting ridiculous screenshots. Sometimes people on Twitter ask me for a modlist. My modlist is on Modwatch. But... I'm not sure this helps anyway. This list is names of plugin files, not mod names, so it can be super-confusing to read. Also, let’s be honest: this list of mods is bewildering to the newcomer. If you wanted to mod Skyrim so it looks and plays wonderfully, my modlist would not help you get started.
So what would help you get started? Well, how about Ceejbot’s introduction to Skyrim modding?
This is not a modding guide. A modding guide sets out to help you build a specific modlist that works well together, without bugs. I'
A lot of people mentioned other immutable JS libraries after reading my post. I thought it would be good to make a list of available ones.
There are two types of immutable libraries: simple helpers for copying JavaScript objects, and actual persistent data structure implementations. My post generally analyzed the tradeoffs between both kinds of libraries and everything applies to the below libraries in either category.
Libraries are sorted by github popularity.
export default class Input extends React.Component { | |
static defaultProps = { | |
onChange() {}, | |
onFocus() {}, | |
onBlur() {} | |
}; | |
constructor(props) { | |
super(); | |
this.state = { |