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
<div class="wrapper"> | |
<div class="details"> | |
<div class="wrap header"> | |
Create new Project | |
</div> | |
<div class="wrap"> | |
<div class="project-name"> | |
<label for="">Project Name</label> | |
<input type="text" /> | |
</div> |
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
console.time('Operation1') | |
for (var i = 0; i < 1000000000; i++) { | |
} | |
console.timeEnd('Operation1') | |
/// following is outout | |
// $ node app.js | |
// Operation1: 507ms |
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
$ openssl version | |
OpenSSL 0.9.8zh 14 Jan 2016 | |
$ openssl dgst -h | |
unknown option '-h' | |
options are | |
-c to output the digest with separating colons | |
-d to output debug info | |
-hex output as hex dump | |
-binary output in binary form |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
ul { | |
box-shadow: 1px 1px 3px #555; | |
margin:50px auto; |
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
$> mongod --dbpath I:\Servers\data --port 27017 --logpath I:\Servers\logs\mongod.log | |
all output going to: I:\Servers\logs\mongod.log |
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
mongod -f I:\Servers\mongodb\config\mongodb.conf | |
or | |
mongod --config I:\Servers\mongodb\config\mongodb.conf |
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
# note that following should go only in only one line | |
$> mongod -f "I:\Servers\mongodb\config\mongodb.conf" | |
--install --serviceName mdb27017 | |
--serviceDisplayName "MongoDB Server Instance 27017" | |
--serviceDescription "MongoDB Server Instance running on 27017" |
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
# note that following should go only in only one line | |
mongod -f "I:\Servers\mongodb\config\mongodb.conf" | |
--remove --serviceName mdb27017 | |
--serviceDisplayName "MongoDB Server Instance 27017" | |
--serviceDescription "MongoDB Server Instance running on 27017" |
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
fs=require('fs'); | |
fs.stat(path, function(err, stat){ | |
console.log(stat); | |
console.log(stat.isDirectory()); | |
console.log(stat.isFile()); | |
}) |
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
fs = require('fs'); | |
path = 'data/myfile.txt'; | |
fs.exists(path, function(exists){ | |
if(exists){ | |
console.log('yes file exists...'); | |
} else { | |
console.log('It doesnt exists'); | |
} | |
}) |
NewerOlder