| name | no-use-effect |
|---|---|
| description | Enforce the no-useEffect rule when writing or reviewing React code. ACTIVATE when writing React components, refactoring existing useEffect calls, reviewing PRs with useEffect, or when an agent adds useEffect "just in case." Provides the five replacement patterns and the useMountEffect escape hatch. |
This file contains hidden or 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
| #!/bin/bash | |
| # Uninstall Zsh + Oh My Zsh + Powerlevel10k theme (macOS & Linux) | |
| # To run this script: | |
| # 1. Execute: sh -c "$(curl -fsSL "$(curl -s "https://api.github.com/gists/254e58bd87009963b3f58405d75cbe6c" | grep -o '"raw_url": *"[^"]*"' | cut -d'"' -f4)")" | |
| # Colors | |
| GREEN='\033[0;32m' | |
| YELLOW='\033[1;33m' | |
| RED='\033[0;31m' |
This shows how to build a nontrivial program using Zig+Emscripten or C+Emscripten.
In both cases Emscripten is only used as a linker, that is the frontend is either zig or clang.
"Nontrivial" here means the program uses interesting Emscripten features:
- Asyncify
- Full GLES3 support
- GLFW3 support
This file contains hidden or 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
| # Generated by Powerlevel10k configuration wizard on 2021-06-26 at 20:58 CST. | |
| # Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 25238. | |
| # Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode, | |
| # 24h time, angled separators, sharp heads, round tails, 2 lines, dotted, no frame, | |
| # darkest-ornaments, sparse, many icons, concise, instant_prompt=verbose. | |
| # Type `p10k configure` to generate another config. | |
| # | |
| # Config for Powerlevel10k with powerline prompt style with colorful background. | |
| # Type `p10k configure` to generate your own config based on it. | |
| # |
This file contains hidden or 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
| chrome.action.onClicked.addListener((tab) => { | |
| chrome.scripting.executeScript({ | |
| target: { | |
| tabId: tab.id, | |
| }, | |
| files: ["content.js"], | |
| }); | |
| }); |
The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'instead ofconst foo = require('foo')to import the package. You also need to put"type": "module"in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)from CommonJS instead ofrequire(…). - Stay on the existing version of the package until you can move to ESM.
Free to read online: exploringjs.com/impatient-js/
- The exercises now run as native ESM modules on Node.js. Previously, they were run via the
esmpackage. - Material on new ES2021 features:
String.prototype.replaceAll()Promise.any()- Logical assignment operators
- Underscores (
_) as separators in number literals and bigint literals
Things I found myself researching over and over without taking the time to write them down. Until now.
Table of Contents
This file contains hidden or 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
| Installing older version of Gitkraken is the only solution I guess to work on private repo if you want it for free and without student developer pack. | |
| From the release notes, the last version to support private repo is v6.5.1. |
NewerOlder