- 管理多个 JDK, JRE 以及 build tools ( Maven, Gradle, 等) , 还有 Groovy 等
- Github: https://github.com/sdkman/sdkman-cli
- Notes:
- Windows OS 上不太好用, 因为依赖 cygwin 基本可放弃
- 中国区注意修改 CURL 的设置来适应特殊网络环境
- curl 的 proxy 可以从
$http_proxy
&$https_proxy
读入
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
Show hidden characters
{ | |
"curly": true, | |
"eqeqeq": true, | |
"immed": true, | |
"latedef": true, | |
"newcap": true, | |
"noarg": true, | |
"sub": true, | |
"undef": true, | |
"unused": "vars", |
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
/* Dump the NODE V8 heap to a file | |
* Usage: | |
* 1. Install the node-heapdump: npm install node-heapdump | |
* 2. call below code when you need dump the heap. | |
* require('./dump.js')('test'); | |
*/ | |
'use strict'; | |
var path = require('path'), | |
util = require('util'); |
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
/* async test - It's a bad .JS. Don't use this scenario in a real server. | |
* 1. The function1 saved the 'callback' and call it when the 'connect' is emitted | |
* 2. The function3 will be triggered again when the connect event happended. | |
*/ | |
'use strict'; | |
var events = require("events"), | |
servEvt = new events.EventEmitter(); | |
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
/** | |
* Tests for singly linked list | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stddef.h> | |
#include <assert.h> | |
/* singly link list node */ |
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
/** | |
* Parse the "argv" via the Boost.program_options | |
* (get the number, string and array from command line) | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <boost/program_options.hpp> |
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
#!/usr/bin/env python | |
import sys, os | |
# The test function for VIM plugin | |
def my_test(vim, vim_ver): | |
buf = vim.current.buffer | |
# append process id & python version info to the buffer | |
buf.append("VIM process %d; vim version: %s\n" % (os.getpid(), vim_ver)) | |
buf.append("Py version: %s\n" % sys.version_info) |
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
/** | |
* A simple sample of Boost unit test | |
*/ | |
#define BOOST_TEST_MAIN | |
#include <boost/test/unit_test.hpp> | |
#include <string> | |
#include "my_lib.hxx" |