npx create-react-app my_app --template typescript
Replace versions with following...
"dependencies": {
...
.surligne-effet{ | |
background-color: 'red'; | |
color: 'white'; | |
font-size: 18px; | |
} |
# Current path on first line | |
# command on second line | |
# ~/Documents | |
# $ | |
# | |
# updatee promt line theme file | |
# nano .oh-my-zsh/themes/ys.zsh-theme | |
PROMPT=" |
// ------- HOW DEFINE A SINGLETON FOR VOLLEY REQUEST ------- | |
// original source in Java: https://developer.android.com/training/volley/requestqueue.html | |
object MySingleton { | |
val TAG:String = "MySingleton" | |
var mRequestQueue:RequestQueue? = null | |
init { | |
Log.d(TAG, "init") | |
} |
{ | |
"version": "1.3.0" | |
} |
#get list of installed app | |
adb shell pm list packages | |
# ... with filter | |
adb shell pm list packages | grep facebook # return package:com.facebook.orca | |
# get apk path | |
adb shell pm path com.facebook.orca # return /mnt/asec/com.facebook.orca-2/base.apk | |
# get apk |
[ | |
{ "key": "cmd+d", "command": "editor.action.copyLinesDownAction", | |
"when": "editorTextFocus" }, | |
{ "key": "ctrl+cmd+down", "command": "editor.action.moveLinesDownAction", | |
"when": "editorTextFocus" }, | |
{ "key": "ctrl+cmd+up", "command": "editor.action.moveLinesUpAction", | |
"when": "editorTextFocus" } | |
] |
#just for local dev | |
open -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --disable-web-security --user-data-dir="" | |
# if use a proxy and issue with https | |
open -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --disable-web-security --user-data-dir="" --ignore-certificate-errors |
<script src="vendors/raphael-min.js"></script> | |
<script> | |
var playFeedback = function () { | |
var posX = document.body.clientWidth / 2 - 250, | |
posY = document.body.clientHeight / 2 - 250, | |
paper = Raphael(posX, posY, 500, 500); | |
var circle = paper.circle(210, 195, 0).attr({"fill" : "#4caf50", "stroke": 0}); |
<!DOCTYPE html> | |
<html lang="en" ng-app="focusDemo"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body ng-controller="mainController as mainCtrl"> | |
<h1>{{mainCtrl.title}}</h1> | |
<div> |