This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
Code Name | |
af Afrikaans | |
af-ZA Afrikaans (South Africa) | |
ar Arabic | |
ar-AE Arabic (U.A.E.) | |
ar-BH Arabic (Bahrain) | |
ar-DZ Arabic (Algeria) | |
ar-EG Arabic (Egypt) | |
ar-IQ Arabic (Iraq) | |
ar-JO Arabic (Jordan) |
/* Basic example of saving cookie using axios in node.js and session's recreation after expiration. | |
* We have to getting/saving cookie manually because WithCredential axios param use XHR and doesn't work in node.js | |
* Also, this example supports parallel request and send only one create session request. | |
* */ | |
const BASE_URL = "https://google.com"; | |
// Init instance of axios which works with BASE_URL | |
const axiosInstance = axios.create({ baseURL: BASE_URL }); |
.ReactTable { | |
position: relative; | |
display: -webkit-box; | |
display: -ms-flexbox; | |
display: flex; | |
-webkit-box-orient: vertical; | |
-webkit-box-direction: normal; | |
-ms-flex-direction: column; | |
flex-direction: column; | |
border: 1px solid rgba(0, 0, 0, 0.1); |
const crypto = require('crypto') | |
const sha1 = path => new Promise((resolve, reject) => { | |
const hash = crypto.createHash('sha1') | |
const rs = fs.createReadStream(path) | |
rs.on('error', reject) | |
rs.on('data', chunk => hash.update(chunk)) | |
rs.on('end', () => resolve(hash.digest('hex'))) | |
}) |
This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps
Steps from scratch:
1.react-native init GoogleMapPlayground
export class SyncPath { | |
constructor(rootRef, path) { | |
this._rootRef = rootRef; | |
this.user = this._rootRef.getAuth(); | |
this._userDataRef = this._rootRef.child(path).child(this.user.uid); | |
this.data = {}; | |
this._userDataRef.on('value', (snap) => this.data = snap.val() || {}); | |
} | |
keys() { | |
return Object.keys(this.data); |