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
| //Async/await implementation via generators | |
| function continueFlow(value) { | |
| generator.next(value); | |
| } | |
| function* createFlow() { | |
| console.log('First'); | |
| const apiResponse = yield fetch('https://api.github.com/users/github'); | |
| console.log('Third'); |
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
| <h2>Currently available:</h2> | |
| <div class="applicaker_photo"> | |
| <% for (member in applicakers) { %> | |
| <!-- Comparing the current time with the last time we captured his packets --> | |
| <% if (((current_time - applicakers[member].time)/60000) < 15) { %> | |
| <img height="125" src="<%= applicakers[member].photo %>" width="250" /> | |
| <% } %> | |
| <% } %> | |
| </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
| var http = require('http'), | |
| sys = require("sys"), | |
| pcap = require("pcap"), | |
| ejs = require("ejs"), | |
| fs = require('fs'), | |
| pcap_session; | |
| //It's just a simple code. For a long term solution you should use db storage. | |
| var team = { | |
| rodzyn: { |
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 aspect = { | |
| checkConditions: function (obj) { | |
| //Object existance checking | |
| if (obj === null || typeof(obj) === "undefined") { | |
| obj = function(){ return this; }.call(); | |
| } | |
| //Type checking | |
| if (typeof(obj) !== "object" ) { | |
| throw new TypeError(); |
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
| //Fake logging function - aspect function | |
| var loggingFunction = function() { /* implementation */ } | |
| //Object with method | |
| var foo = { | |
| bar: function() { /* implementation */ } | |
| } | |
| //Aspect wrapper | |
| var aspect = { |