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
https://unsplash.com/ | |
https://www.pexels.com/ | |
https://bootstrapbay.com/blog/free-stock-photos/ | |
Free stock images. |
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
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<script src="bundle.js"></script> | |
</body> | |
</html> |
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
FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd default') DO %i |
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 React, { Component } from 'react'; | |
class App extends Component { | |
render() { | |
return ( | |
<div> | |
<p>Header here</p> | |
<div className="container"> | |
{this.props.children} |
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
Run docker-machine env to get docker-machine host | |
psql -h [docker-machine host] -U youruser | |
psql -h 192.168.99.100 -U admin | |
psql -h 172.17.0.1 -U admin |
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
FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd default') DO %i | |
# Install | |
docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=password -d mysql:tag | |
# Go to bash | |
docker exec -it some-mysql bash | |
# mysql |
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
https://jsfiddle.net/3L140cg3/16/ |
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
upstream app_www { | |
server 127.0.0.1:3000; | |
} | |
# the nginx server instance | |
server { | |
listen 80; | |
server_name www.www; | |
return 301 http://www.www.www; |
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
var tests = [234534534234]; | |
tests.forEach(function (t) { | |
Test(t); | |
}); | |
function Test(N) { | |
var bin = N.toString(2); | |
var b = 0; | |
var col = bin.split("1").filter(function (val) { |
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, delay } from 'lodash'; | |
export const interval = (fn) => { | |
fn(); | |
delay(() => { interval(fn); }, randomNumber()); | |
}; | |
var randomNumber = () => { | |
return random(1000, 10000) | |
}; |