Ctrl+Cmd+↑
Show Document Items ^6
Hyper-V disable | |
bcdedit /set hypervisorlaunchtype off | |
Hyper-V enable | |
bcdedit /set hypervisorlaunchtype auto |
# packer https://www.packer.io/ | |
# update pakcer before run | |
# get token token | |
https://app.vagrantup.com/settings/security | |
VAGRANT_CLOUD_TOKEN= | |
VUSER= | |
BOX_NAME=ubuntu2104-lubuntu |
public class VersionHelper { | |
/** | |
* Compares one version string to another version string by dotted ordinals. | |
* eg. "1.0" > "0.09" ; "0.9.5" < "0.10", | |
* also "1.0" < "1.0.0" but "1.0" == "01.00" | |
* | |
* ref: https://stackoverflow.com/questions/6701948/efficient-way-to-compare-version-strings-in-java | |
* | |
* @param left the left hand version string |
TodoTxtJs.TodoManager._compareDueDate = function (left, right) { | |
if (left.dueDate() || right.dueDate()) { | |
if (!left.dueDate()) | |
return 1; | |
if (!right.dueDate()) | |
return -1; | |
if (left.dueDate().getFullYear() !== right.dueDate().getFullYear() | |
|| left.dueDate().getMonth() !== right.dueDate().getMonth() | |
|| left.dueDate().getDay() !== right.dueDate().getDay()) { | |
return left.dueDate() < right.dueDate() ? -1 : 1; |
sudo apt-get install python-dev | |
env LC_ALL=C pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl \ | |
--user |
# check dependency | |
# mvn dependency:tree | |
# run test server | |
mvn spring-boot:run | |
# make destributable package | |
mvn package |
g clone https://github.com/ruby/ruby.git | |
cd ruby | |
autoconf | |
./configure --enable-shared --prefix=${HOME}/ruby-build/ | |
make | |
make test |
$ mongo | |
use sample1 | |
db.unicorns.insert({name: 'Aurora', gender: 'f', weight: 450}) | |
db.unicorns.find() | |
db.system.indexes.find() | |
db.unicorns.insert({name: 'Leto', gender: 'm', home: 'Arrakeen', worm: false}) |
テスト https://www.npmjs.org/package/mocha | |
BDD https://www.npmjs.org/package/should | |
カバレッジ計測 https://www.npmjs.org/package/istanbul | |
Redisモック https://www.npmjs.org/package/node-redis-mock | |
モジュール読み込みをスタブする https://www.npmjs.org/package/sandboxed-module | |
スタブ・モック https://www.npmjs.org/package/sinon | |
自動化(いろいろ) https://www.npmjs.org/package/grunt |