This content moved here: https://exploringjs.com/impatient-js/ch_arrays.html#quickref-arrays
| // Component.js | |
| const Component = props => ( | |
| <MyContext.Consumer> | |
| {(context) => ( | |
| <Foo | |
| bar={props.bar} | |
| baz={context.baz} | |
| /> | |
| )} | |
| </MyContext.Consumer> |
| import produce from 'immer'; | |
| import {createStore} from 'redux'; | |
| const handleActions = (actionsMap, defaultState) => ( | |
| state = defaultState, | |
| {type, payload} | |
| ) => | |
| produce(state, draft => { | |
| const action = actionsMap[type]; | |
| action && action(draft, payload); |
| import React from 'react'; | |
| const ConditionalWrap = ({condition, wrap, children}) => condition ? wrap(children) : children; | |
| const Header = ({shouldLinkToHome}) => ( | |
| <div> | |
| <ConditionalWrap | |
| condition={shouldLinkToHome} | |
| wrap={children => <a href="/">{children}</a>} | |
| > |
This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x
The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/
| 'use strict'; | |
| exports.handler = (event, context, callback) => { | |
| // Get request and request headers | |
| const request = event.Records[0].cf.request; | |
| const headers = request.headers; | |
| // Configure authentication | |
| const authUser = 'user'; | |
| const authPass = 'pass'; |
Last updated March 13, 2024
This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
| import { IntlProvider } from 'react-intl'; | |
| const language = 'en'; | |
| // Usually messages is declared in another file. | |
| const messages = { | |
| greeting: 'Hello' | |
| } | |
| export const mesg = defineMessages({ | |
| greeting: { | |
| id: 'greeting', |
- https://authenticjobs.com/#category=4&onlyremote=1
- http://www.workingnomads.co/jobs
- https://remoteok.io/remote-jobs
- https://weworkremotely.com/jobs/search?term=front
- https://hn.algolia.com/?dateRange=custom&page=0&prefix=false&query=ask%20hn%3A%20who%20is%20hiring%3F&sort=byDate&type=ask_hn
- http://jobs.remotive.io/
- https://remoteintech.company/
- https://jobspresso.co/browsejobs/#s=1
- https://remoteleaf.com/
- https://dailyremote.com/
| import React, { Component } from 'react'; | |
| import { | |
| View, | |
| Text, | |
| TouchableHighlight, | |
| NetInfo, | |
| } from 'react-native'; | |
| export default class ConnectionInfo extends Component { | |
| state = { |