Skip to content

Instantly share code, notes, and snippets.

View polowis's full-sized avatar
🐮
I ❤️ Cow

Polowis polowis

🐮
I ❤️ Cow
  • localhost
View GitHub Profile
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)),
import random
from itertools import groupby
player_score = 0
turn = 1
dice = []
def checkPrimeNumber(dice):
async function f() {
return 1;
}
Number.prototype.addOne = function(){
return this + 1;
}
const n = 2;
console.log(n.addOne());
//output 3
function person(name, age, year){
this.name = name;
this.age = age;
this.year = year;
this.fullName = function(){
return this.name;
}
}
person.prototype.getAge = function(){
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);
function add(a, b){
return a + b;
}
console.log(add(1, 2));
let newString = 'string';
console.log(newString.split(''));
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/", "")}`)
const fetch = require('node-fetch');
//
if(!args[0]){
return message.channel.send("You need to supply a search term");
}
const question = args.join(' ');