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
{ | |
"env": { | |
"browser": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"ecmaVersion": 2020 | |
}, |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
import { INestApplication } from '@nestjs/common'; | |
import { Test } from '@nestjs/testing'; | |
import * as request from 'supertest'; | |
import { AppModule } from '../src/app.module'; | |
import { AppService } from '../src/app.service'; | |
import { UserModule } from '../src/users/users.module'; | |
import { UsersService } from '../src/users/users.service'; | |
import { TypeOrmModule } from '@nestjs/typeorm'; | |
import { UserEntity } from '../src/models/users/user.entity'; |
function deg2rad (angle) { | |
return angle * .017453292519943295; | |
} | |
function distance($lat1,$lng1,$lat2,$lng2) | |
{ | |
$lat1=deg2rad($lat1); | |
$lng1=deg2rad($lng1); | |
$lat2=deg2rad($lat2); | |
$lng2=deg2rad($lng2); |