Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
- ⌘ : Command key
- ⌃ : Control key
- ⌫ : Delete key
- ← : Left arrow key
- → : Right arrow key
- ↑ : Up arrow key
package main | |
import ( | |
"io/ioutil" | |
"log" | |
"strings" | |
"net/http" | |
"encoding/json" | |
"fmt" | |
"time" |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
// [B](f: (A) ⇒ [B]): [B] ; Although the types in the arrays aren't strict (: | |
Array.prototype.flatMap = function(lambda) { | |
return Array.prototype.concat.apply([], this.map(lambda)); | |
}; |
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) | |
) |