Skip to content

Instantly share code, notes, and snippets.

View hoanbka's full-sized avatar
💭
while I < YOU: I++

Hoan Nguyen hoanbka

💭
while I < YOU: I++
  • Hanoi, Vietnam
View GitHub Profile
@hoanbka
hoanbka / timer_with_javascript.js
Created November 11, 2016 10:39 — forked from dineshsprabu/timer_with_javascript.js
[JAVASCRIPT] Timer with javascript.
<script>
function pretty_time_string(num) {
return ( num < 10 ? "0" : "" ) + num;
}
var start = new Date;
setInterval(function() {
var total_seconds = (new Date - start) / 1000;
@hoanbka
hoanbka / start_monogd_in_ubuntu_server.sh
Created November 11, 2016 10:38 — forked from dineshsprabu/start_monogd_in_ubuntu_server.sh
[Mongodb] Starting MongoDB as a service with wiredTiger, default DBPath and LogPath
sudo mongod --dbpath="/var/lib/mongodb" --fork --logpath /var/log/mongodb.log --storageEngine "wiredTiger"