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
| const b = "name" | |
| const person = {[b] : "Anwesh"} | |
| console.log("PERSON:", person) |
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 createTHead(keys) { | |
| const tRow = keys.map((key) => `<th>${key}</th>`).join("") | |
| return `<thead><tr>${tRow}</tr></thead>` | |
| } | |
| function createRow(obj) { | |
| return Object.values(obj).map((ob) => `<td>${ob}</td>`).join("") | |
| } | |
| function createTable(jsonArray) { |
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
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func otherRoutine(channel chan int, n int) { | |
| for i := 0; i < n; i++ { | |
| time.Sleep(time.Second) |
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 teamAndCohortPeerLevels = ['DOA - MONTH ONE','D0B - SIMULATIONS','D0C - SIMULATIONS']; | |
| var peerLevels = ['D1 Jr Consultant','D2 Consultant','D2 Consultant','D2 Consultant']; | |
| var handleError = function(err,res) { | |
| logger.error(err); | |
| res.status(500).json(err); | |
| }; | |
| var createPeersFromFellows = function(fellows,peers,fellow) { | |
| _.each(fellows, function(peer) { | |
| if (peer.uid !== fellow.uid) { | |
| peers.push(peer); |
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 teamAndCohortPeerLevels = ['DOA - MONTH ONE','D0B - SIMULATIONS','D0C - SIMULATIONS']; | |
| var peerLevels = ['D1 Jr Consultant','D2 Consultant','D2 Consultant','D2 Consultant']; | |
| var handleError = function(err,res) { | |
| logger.error(err); | |
| res.status(500).json(err); | |
| }; | |
| var createPeersFromFellows = function(fellows,peers,fellow) { | |
| _.each(fellows, function(peer) { | |
| if (peer.uid !== fellow.uid) { | |
| peers.push(peer); |