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
| Utils.sendPost({ | |
| 'host': 'www.google.pl', | |
| 'port': 80, | |
| 'host_name': 'www.google.pl', | |
| 'path': '/typing' | |
| },{ | |
| 'klucz': 'wartosc', | |
| 'klucz2': 'wartosc2' | |
| },function(err, response) { | |
| if(err) return false; |
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 obiekt = {'1':'ala','2':'basia','3':'zosia'}; | |
| var ile = Object.keys(obiekt).length; | |
| console.log(ile); |
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 dt = Math.round(new Date().getTime() / 1000); |
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 qs = require('querystring'); | |
| req.on('end', function () { | |
| var url = req.url.substr(1), qmPos = url.indexOf('?'), getParams = {}; | |
| if(qmPos > 0) { | |
| getParams = qs.parse(url.substr(qmPos+1)); | |
| url = url.substr(0, qmPos); | |
| } | |
| console.log(url); | |
| console.log(getParams); |
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 tablica = ["ala", "basia", "zosia"]; | |
| var nowaTablica = tablica.slice(); | |
| console.log(nowaTablica); |
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
| sudo hdparm -t /dev/sda | |
| /dev/sda: | |
| Timing buffered disk reads: 52 MB in 3.02 seconds = 17.19 MB/sec |
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
| npm view nodemon | |
| { | |
| name: 'nodemon', | |
| description: 'Simple monitor script for use during development of a node.js app.' | |
| } |
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
| <? | |
| $this->_helper->layout->disableLayout(); | |
| $this->_helper->viewRenderer->setNoRender(); |
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
| mongo.getCollection('Users').findOne({sid : "a5bfc9a44b917a6ebaf794293062abea"}, function(err, data) { | |
| console.log(data); | |
| }); |
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
| this.disconnect = function() { | |
| socket.disconnect(); | |
| socket.removeAllListeners('connect'); | |
| io.sockets = {}; | |
| }; |