This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>svg filter - night vision</title> | |
<style> | |
#tile{ | |
-webkit-filter : url(#nightVision); | |
filter : url(#nightVision); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
/* | |
// in html : | |
<link type="text/css" href="pikaday.css" /> | |
<script src="moment.js"></script> | |
<script src="pikaday.js"></script> | |
<script src="mx.pikaday.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "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" } | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.3.0" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ------- 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") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Current path on first line | |
# command on second line | |
# ~/Documents | |
# $ | |
# | |
# updatee promt line theme file | |
# nano .oh-my-zsh/themes/ys.zsh-theme | |
PROMPT=" |
OlderNewer