All of the following information is based on go version go1.17.1 darwin/amd64.
| GOOS | Out of the Box |
|---|---|
aix |
✅ |
android |
✅ |
| I'm told that there are people claiming to "tokenize" my git repositories with my approval. | |
| I just want to clarify that that is not the case. I do not believe in monetizing my repositories. | |
| If you believe crypto-currencies are anything but a scam, I have a bridge to sell you. | |
| But I'm not selling source code. |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| badger "github.com/dgraph-io/badger/v2" | |
| "github.com/dgraph-io/badger/v2/pb" | |
| ) |
| import { createSelector } from 'reselect' | |
| const shopItemsSelector = state => state.shop.items | |
| const taxPercentSelector = state => state.shop.taxPercent | |
| const subtotalSelector = createSelector( | |
| shopItemsSelector, | |
| items => items.reduce((acc, item) => acc + item.value, 0) | |
| ) |
According to the MDN reference, it is:
ECMAScript 5's strict mode is a way to opt in to a restricted variant of JavaScript [sic].
It goes on to say:
| this._panResponder = PanResponder.create({ | |
| // ----------- NEGOTIATION: | |
| // A view can become the touch responder by implementing the correct negotiation methods. | |
| // Should child views be prevented from becoming responder on first touch? | |
| onStartShouldSetPanResponderCapture: (evt, gestureState) => () => { | |
| console.info('onStartShouldSetPanResponderCapture'); | |
| return true; | |
| }, |
| package main | |
| import ( | |
| "io/ioutil" | |
| "log" | |
| "strings" | |
| "net/http" | |
| "encoding/json" | |
| "fmt" | |
| "time" |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParentUse these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.