This file contains 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
class Department { | |
name; | |
printName() { | |
console.log("Department name: " + this.name); | |
} | |
printMeeting() { | |
console.log("The Accounting Department meets each Monday at 10am."); | |
} |
This file contains 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
class Department { | |
name; | |
printName() { | |
console.log("Department name: " + this.name); | |
} | |
} | |
class AccountingDepartment extends Department { | |
printMeeting() { |
This file contains 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 Discord = require("discord.js"); | |
const bot = new Discord.Client(); | |
const TOKEN = "NOPE" | |
var color = require('chalk'); | |
var fs = require('fs'); | |
bot.on("ready", function(message) { | |
console.log(color.green("Online")) | |
}) | |
bot.on("message", function(message){ |
This file contains 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
if(userEndDate.getTime() != null | |
&& userEndDate.getTime() > today.getTime() | |
&& endDateFromRequest != null ? endDateFromRequest.getTime() !== userEndDate.getTime() : true){ | |
//some code | |
} |
This file contains 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'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/html'}); | |
res.end('Hello World!'); | |
}).listen(8080); |
This file contains 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
# Install git | |
sudo apt-get install git | |
sudo mkdir ~/github/ | |
# Uninstall all previous copies of vim | |
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common | |
sudo apt-get build-dep vim-gnome | |
sudo apt-get install python-dev libncurses5-dev | |
sudo rm -rf /usr/local/share/vim | |
sudo rm /usr/bin/vim |