Help with SQL commands to interact with a MySQL database
- Mac /usr/local/mysql/bin
- Windows /Program Files/MySQL/MySQL version/bin
- Xampp /xampp/mysql/bin
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb | |
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb |
const translate = new Translate(); | |
const text = ["这是一个非常好的API", "to jest bardzo dobre API"]; | |
async function detectLanguage() { | |
let [detections] = await translate.detect(text); | |
detections = Array.isArray(detections) ? detections : [detections]; | |
console.log("Detections:"); | |
detections.forEach((detection) => { | |
console.log(detection); |
import React, { Component } from 'react'; | |
import ReactSelect, { components } from 'react-select'; | |
const TextOption = props => ( | |
components.Option && ( | |
<components.Option { ...props }> | |
... | |
</components.Option> | |
) | |
); |
open terminal: Ctrl+Alt+T
Ctrl + C is used to kill a process with signal SIGINT , in other words it is a polite kill .
Ctrl + Z is used to suspend a process by sending it the signal SIGTSTP , which is like a sleep signal, that can be undone and the process can be resumed again.
Usage | |
Hello world: | |
$ pm2 start app.js | |
Raw Examples | |
# Fork mode | |
$ pm2 start app.js --name my-api # Name process |
/** | |
* @name MarkerClustererPlus for Google Maps V3 | |
* @version 2.1.2 [May 28, 2014] | |
* @author Gary Little | |
* @fileoverview | |
* The library creates and manages per-zoom-level clusters for large amounts of markers. | |
* <p> | |
* This is an enhanced V3 implementation of the | |
* <a href="http://gmaps-utility-library-dev.googlecode.com/svn/tags/markerclusterer/" | |
* >V2 MarkerClusterer</a> by Xiaoxi Wu. It is based on the |
<script src="http://maps.google.com/maps/api/js?sensor=false&libraries=geometry" type="text/javascript"></script> | |
<script type="text/javascript"> | |
function calcDistance (fromLat, fromLng, toLat, toLng) { | |
return google.maps.geometry.spherical.computeDistanceBetween( | |
new google.maps.LatLng(fromLat, fromLng), new google.maps.LatLng(toLat, toLng)); | |
} | |
</script> |