Ensure you have raf installed: npm install --save raf
This is the code for the component.
import raf from 'raf';
export default class ScrollInNav extends Component {
static propTypes = {
scrollInHeight: React.PropTypes.number| echo "Creating an SSH key for you..." | |
| ssh-keygen -t rsa | |
| echo "Please add this public key to Github \n" | |
| echo "https://github.com/account/ssh \n" | |
| read -p "Press [Enter] key after this..." | |
| echo "Installing xcode-stuff" | |
| xcode-select --install |
| const createCloudinary = (cloudName, unsignedUploadPreset) => ({ | |
| process: (fieldName, file, metadata, load, error, progress, abort) => { | |
| // `fieldName` and `meta` are not used for now | |
| const url = `https://api.cloudinary.com/v1_1/${cloudName}/upload`; | |
| const xhr = new XMLHttpRequest(); | |
| const formData = new FormData(); |
| { | |
| "parser": "@typescript-eslint/parser", | |
| "parserOptions": { | |
| "project": "./tsconfig.json", | |
| "tsconfigRootDir": "." | |
| }, | |
| "env": { | |
| "browser": true, | |
| "jest/globals": true | |
| }, |
| { | |
| "projects": { | |
| "default": "project-name" | |
| }, | |
| "targets": { | |
| "project-name": { | |
| "hosting": { | |
| "production": [ | |
| "project-name" | |
| ], |
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
| (function() { | |
| function status(response) { | |
| if (response.ok) { | |
| return response | |
| } else { | |
| var error = new Error(response.statusText || response.status) | |
| error.response = response | |
| throw error | |
| } | |
| } |
| .next | |
| out |
| /* | |
| * From the article "The Art of Error" | |
| * http://dailyjs.com/2014/01/30/exception-error/ | |
| */ | |
| /* node example */ | |
| var assert = require('assert'); | |
| var util = require('util'); | |
| function NotFound(message) { |
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Moby VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).
docker run -it --rm --privileged --pid=host justincormack/nsenter1
more info: https://github.com/justincormack/nsenter1