start new:
tmux
start new with session name:
tmux new -s myname
/** | |
* ECMA2015 | |
*/ | |
function convertHex(hexCode, opacity = 1){ | |
var hex = hexCode.replace('#', ''); | |
if (hex.length === 3) { | |
hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2]; | |
} |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: redis-config | |
data: | |
redis.conf: | | |
# Redis configuration file example. | |
# | |
# Note that in order to read the configuration file, Redis must be | |
# started with the file path as first argument: |
{ | |
"New York": [ | |
"New York", | |
"Buffalo", | |
"Rochester", | |
"Yonkers", | |
"Syracuse", | |
"Albany", | |
"New Rochelle", | |
"Mount Vernon", |
Or open the terminal and try this script:
flutter clean
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
function deg2rad (angle) { | |
return angle * .017453292519943295; | |
} | |
function distance($lat1,$lng1,$lat2,$lng2) | |
{ | |
$lat1=deg2rad($lat1); | |
$lng1=deg2rad($lng1); | |
$lat2=deg2rad($lat2); | |
$lng2=deg2rad($lng2); |
// takes a {} object and returns a FormData object | |
var objectToFormData = function(obj, form, namespace) { | |
var fd = form || new FormData(); | |
var formKey; | |
for(var property in obj) { | |
if(obj.hasOwnProperty(property)) { | |
if(namespace) { |
FROM mysql:5.6 | |
MAINTAINER Your Name <[email protected]> | |
COPY wait-for-mysql.sh / | |
CMD /wait-for-mysql.sh |