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
let user = client.users.get("id") | |
client.on("message", msg => { | |
if(!msg.guild) { | |
let embed = new Discord.MessageEmbed() | |
embed.setTitle("Message Log") | |
embed.setDescription(msg.content) | |
user.send(embed) | |
} | |
}) |
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 $ = document.querySelectorAll.bind(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
app.use((req, res, next) => { | |
if (req.headers['x-forwarded-proto'] === 'http') | |
res.redirect(`https://${req.headers.host}${req.url}`); | |
else next(); | |
}); |
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 download = (url, filename) => { | |
fetch(url).then(res => { | |
return res.blob().then(b => { | |
const a = document.createElement('a') | |
a.href = URL.createObjectURL(b) | |
a.setAttribute('download', filename) | |
a.click() | |
}) | |
}) | |
} |
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
window.location.href.match("https")||(window.location.href=window.location.href.replace("http","https")); |
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
class Main { | |
public static void main(String args[]) { | |
System.out.println("Hello World"); | |
} | |
} |