- https://www.docker.com/toolbox
docker-machine create --driver virtualbox dev
docker-machine env dev
(add values to~/.zshrc
)- e.g.
echo eval "$(docker-machine env dev)" >> ~/.zshrc
- e.g.
docker-machine ls
docker ps
(might need to re-source.zshrc
file; e.g.. ~/.zshrc
)docker run hello-world
docker-machine ip dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {random} from 'lodash-es'; | |
/** | |
* This is a command to draw a random signature on the canvas of signature_pad | |
* (https://github.com/szimek/signature_pad) during Cypress tests. | |
* | |
* Put the present into `<project root>/cypress/support/commands/signature.commands.ts`. | |
* Add `import './commands/signature.commands';` in `<project root>/cypress/support/index.ts`. | |
* | |
* After, you will be able to draw random signatures with: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Add React in One Minute</title> | |
</head> | |
<body> | |
<h2>Add React in One Minute</h2> | |
<p>This page demonstrates using React with no build tooling.</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <img id="myimage" src="http://placecage/1280/720"> | |
var image = document.getElementById('myimage'); | |
var mc = new Hammer.Manager(image); | |
var pinch = new Hammer.Pinch(); | |
var pan = new Hammer.Pan(); | |
pinch.recognizeWith(pan); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
username: vagrant | |
password: vagrant | |
sudo apt-get update | |
sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev | |
sudo aptitude install mysql-server mysql-client | |
sudo nano /etc/mysql/my.cnf |