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
| calender = [('January', range(1, 31 + 1)), | |
| ('Feburary', range(1, 28 + 1)), | |
| ('March', range(1, 31 + 1)), | |
| ('April', range(1, 30 + 1)), | |
| ('May', range(1, 31 + 1)), | |
| ('June', range(1, 30 + 1)), | |
| ('July', range(1, 31 + 1)), | |
| ('August', range(1, 31 + 1)), | |
| ('September', range(1, 30 + 1)), | |
| ('October', range(1, 31 + 1)), |
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
| import random | |
| from itertools import groupby | |
| player_score = 0 | |
| turn = 1 | |
| dice = [] | |
| def checkPrimeNumber(dice): |
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 function f() { | |
| return 1; | |
| } |
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
| Number.prototype.addOne = function(){ | |
| return this + 1; | |
| } | |
| const n = 2; | |
| console.log(n.addOne()); | |
| //output 3 |
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 person(name, age, year){ | |
| this.name = name; | |
| this.age = age; | |
| this.year = year; | |
| this.fullName = function(){ | |
| return this.name; | |
| } | |
| } | |
| person.prototype.getAge = function(){ |
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 person(name, age, year){ | |
| this.name = name; | |
| this.birthday = age; | |
| this.year = year; | |
| this.fullName = function(){ | |
| return this.name; | |
| } | |
| } | |
| const friend = new person('John', 14, 1996); |
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 add(a, b){ | |
| return a + b; | |
| } | |
| console.log(add(1, 2)); |
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 newString = 'string'; | |
| console.log(newString.split('')); |
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 fetch = require('node-fetch'); | |
| const msg = await message.channel.send("Checking out.. please wait"); | |
| const body = await fetch("https://rra.ram.moe/i/r?type=potato").then(res => res.json()); | |
| msg.delete(); | |
| const embed = new Discord.RichEmbed() | |
| .setTitle("Click here if the image failed to load") | |
| .setURL(`https://cdn.ram.moe/${body.path.replace("/i/", "")}`) |
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 fetch = require('node-fetch'); | |
| // | |
| if(!args[0]){ | |
| return message.channel.send("You need to supply a search term"); | |
| } | |
| const question = args.join(' '); | |
NewerOlder