BASE_URL_8=http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144
JDK_VERSION=`echo $BASE_URL_8 | rev | cut -d "/" -f1 | rev`
echo ${JDK_VERSION}
declare -a PLATFORMS=("-linux-x64.tar.gz")
for platform in "${PLATFORMS[@]}"
do
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
(function () { | |
let scene = new THREE.Scene(); | |
let camera, | |
renderer = new THREE.WebGLRenderer(); | |
var MARGIN = 100, | |
AMOUNTX = 100, | |
AMOUNTY =50; | |
var particles = [] | |
var particle; | |
var seed=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
function BMH(text, pattern) { | |
const patternLen = pattern.length; | |
let offSetTable = {}; | |
for (let i = 0; i < patternLen - 1; i++) { | |
offSetTable[pattern[i]] = patternLen - i - 1; | |
} | |
let mainCursor = 0; | |
let compareCursor; | |
while (mainCursor < text.length) { | |
compareCursor = patternLen - 1; |
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
// โโโโโโโโโโโโโโโโโโโโโโโโโ | |
// โโ>โ timers โ | |
// โ โโโโโโโโโโโโฌโโโโโโโโโโโโโ | |
// โ โโโโโโโโโโโโดโโโโโโโโโโโโโ | |
// โ โ I/O callbacks โ | |
// โ โโโโโโโโโโโโฌโโโโโโโโโโโโโ | |
// โ โโโโโโโโโโโโดโโโโโโโโโโโโโ | |
// โ โ idle, prepare โ | |
// โ โโโโโโโโโโโโฌโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ | |
// โ โโโโโโโโโโโโดโโโโโโโโโโโโโ โ incoming: โ |
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
// โโโโโโโโโโโโโโโโโโโโโโโโโ | |
// โโ>โ timers โ | |
// โ โโโโโโโโโโโโฌโโโโโโโโโโโโโ | |
// โ โโโโโโโโโโโโดโโโโโโโโโโโโโ | |
// โ โ I/O callbacks โ | |
// โ โโโโโโโโโโโโฌโโโโโโโโโโโโโ | |
// โ โโโโโโโโโโโโดโโโโโโโโโโโโโ | |
// โ โ idle, prepare โ | |
// โ โโโโโโโโโโโโฌโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ | |
// โ โโโโโโโโโโโโดโโโโโโโโโโโโโ โ incoming: โ |
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
class Node { | |
constructor(data, left = null, right = null, height = 1) { | |
this.data = data | |
this.left = left | |
this.right = right | |
this.height = height | |
} | |
} | |
class AVLTree { | |
constructor() { |
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
// name=sa&age=12&address=qwe&address=poi&kaka | |
var regex=/([^\s&]+)(=([^\s&])+)?/ |
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
## mongodbๅๅปบๅฎๅ จ้ช่ฏ | |
### ๅฏๅจ้ช่ฏๅนถ่ฟๆฅ | |
``` | |
mongod --dbpath ./data | |
mongo | |
``` | |
### ๅๅปบ่ถ ็บง็จๆท | |
``` | |
use admin | |
db.createUser( |