This file contains hidden or 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
| from __future__ import division | |
| from __future__ import absolute_import | |
| from __future__ import print_function | |
| import numpy as np | |
| import tensorflow as tf | |
| from PIL import Image | |
| import cv2 | |
| import os | |
| import math |
This file contains hidden or 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
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\SESSION_NAME] | |
| ; Default Foreground | |
| "Colour0"="217,216,216" | |
| ; Default Bold Foreground | |
| "Colour1"="217,216,216" | |
| ; Default Background | |
| "Colour2"="28,28,28" |
This file contains hidden or 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
| env_source=$(ping `hostname` -c 1 |grep "gramws.com ping statistics") | |
| is_cq=$(echo $env_source |grep "cq-core" -c) | |
| is_dev=$(echo $env_source |grep "dev-core" -c) | |
| is_prod=$(echo $env_source |grep "prod-core" -c) | |
| if [ "$is_cq" == "1" ] | |
| then | |
| ENV="CQ" | |
| CPCODE=$CQ_CPCODE |
This file contains hidden or 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
| public class DFS2 { | |
| int[] numbers = {2,3,4,5,6}; | |
| boolean[] book = new boolean[numbers.length]; | |
| int[] answers = new int[numbers.length]; | |
| public static void main(String[] args) { | |
| DFS2 dfs = new DFS2(); | |
| dfs.dfs(0); | |
| } |
This file contains hidden or 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
| curl -XDELETE localhost:9200/test | |
| curl -XPUT localhost:9200/test -d '{ | |
| "index.mapper.dynamic": false | |
| }' | |
| #{"ok":true,"acknowledged":true} | |
| curl -XPUT localhost:9200/test/test/1 -d '{"foo":"bar"}' | |
| #{"error":"TypeMissingException[[test] type[test] missing: trying to auto create mapping, but dynamic mapping is disabled]","status":404} |
This file contains hidden or 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
| System.currentMiliseconds//毫秒 | |
| System.nanoTime//纳秒 (1/1000微秒) | |
| 但通常用于计算时间间隔,对于时间间隔过久的,可能导致问题 | |
This file contains hidden or 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
| 增加plugin | |
| see http://www.juvenxu.com/2010/09/01/maven-javac-warning/ | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <version>2.3.2</version> | |
| </plugin> |
This file contains hidden or 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
| checkbox will not be submitted to server despite whether withing "value" attribute or not. | |
| the difference is if not value attribute the value will be "on" |
This file contains hidden or 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
| var objectA = {}; | |
| var arrayA = []; | |
| //non-ie(<8) | |
| JSON.stringfy(objectA); | |
| $.ajaxStart/ $.ajaxStop fires every time (may be several request per time) request start/stop | |
| $.ajaxSend/ $.ajaxComplete fires every request were send/complete |
This file contains hidden or 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
| vim ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.compare.prefs | |
| reset every value with "SystemDefault" to "true" |
NewerOlder