sudo apt-get install python3-pip
sudo pip3 install virtualenv
// Usage: | |
// | |
// function loader() { | |
// return new Promise((resolve) => { | |
// if (process.env.LAZY_LOAD) { | |
// require.ensure([], (require) => { | |
// resolve(require('./SomeComponent').default); | |
// }); | |
// } | |
// }); |
while(true) { | |
console.log('blah'); | |
} |
<?php | |
require_once __DIR__.'/vendor/autoload.php'; | |
use Aws\Lambda\LambdaClient; | |
$client = LambdaClient::factory([ | |
'version' => 'latest', | |
// The region where you have created your Lambda | |
'region' => 'eu-west-1', |
import { FieldProps } from 'formik' | |
import React from 'react' | |
import Select, { Option, ReactSelectProps } from 'react-select' | |
export const SelectField: React.SFC<ReactSelectProps & FieldProps> = ({ | |
options, | |
field, | |
form, | |
}) => ( | |
<Select |
Steps to publish a npm package to beta that won't be available via latest and won't auto install on ncu updates etc
npm run dist
etc"version": "0.1.120-beta.1"
where beta.x is the number of those betasnpm publish --tag beta
There are two options for install:
npm install packagename@beta
npm install package@0.1.120-beta.1
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)