output of under command is your server ip address
if output is not ip address; create mx record
MX RECORD
indicates hostname pointing to your mail server ip address
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
| # ##### ##### ###### ####### ##### # ####### ####### # | |
| # # # # # # # # # # # # # # # ## | |
| # # # # # # # # # # # # # # | |
| # # # #### # #### ###### ##### # #### # # # ##### # | |
| ####### # # # # # # # # # ####### # # # | |
| # # # # # # # # # # # # # # # # | |
| # # ##### ##### # # ####### ##### # # # ####### ##### | |
| //example object of document |
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
| YOURMODEL | |
| { | |
| _id | |
| process : [{ | |
| _id : //mongo generate automatic | |
| title : {type: Schema.Types.Mixed, default: {}}, | |
| description : {type: Schema.Types.Mixed, default: {}}, | |
| image : {type: String}, | |
| order : {type: Number} | |
| }] |
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
| create .ssh/config file | |
| write in to | |
| Host * | |
| ServerAliveInterval 60 |
#VIM
kntrl + o //open command line in vim
:colorschema =>press tab and select something
:syntax enable
:set number => show line number
if you want new schema
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 Huffman(text){ | |
| this.text = text; | |
| this.coded = {}; | |
| this.node = { | |
| right: null, | |
| left: null, | |
| freq: 0, | |
| code:"" | |
| }; |
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
| var instance = " abcdefgğhıijklmnoöpqrsştuüvyzwx".split(""); | |
| function encrypt(message, key){ | |
| message = message.split(""); | |
| for(var i = 0 ;i< message.length ; i++){ | |
| var index = instance.indexOf(message[i].toLowerCase()); | |
| message[i] = instance[ (index + key) % instance.length ]; | |
| } |
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
| var array = []; | |
| function addElement(element){ | |
| for(var i = array.length ; i>0 && element <= array[i-1] ; --i){ | |
| array[i] = array[i-1]; | |
| } | |
| array[i] = element; | |
| } | |
| addElement(5);// array => [5] | |
| addElement(2);// array => [2,5] |
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
| var EventEmitter = require('events').EventEmitter; | |
| EventEmitter.prototype.emit = function(type){ | |
| console.log(type);//output : end | |
| var handler = this._events[type]; | |
| /** | |
| *output: function(r, callback){ | |
| callback(r); | |
| } |
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
| <html> | |
| <head></head> | |
| <body> | |
| <% var queue = [],l=null,r=null; %> | |
| <% queue.push(btree) %> | |
| <% while(queue.length > 0){ %> | |
| <% var s = queue.shift() %> |