Skip to content

Instantly share code, notes, and snippets.

Avatar
❤️
Playing With Life Since 2002

Abhishek Chaudhary theabbie

❤️
Playing With Life Since 2002
View GitHub Profile
View resume.json
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Abhishek Chaudhary",
"label": "Web Developer",
"image": "https://theabbie.github.io/blog/assets/abhishek-chaudhary.jpg",
"email": "abhishek7gg7@gmail.com",
"phone": "+918928412138",
"url": "https://theabbie.github.io",
"summary": "a pseudo-introvert, a web developer, and a maker",
@theabbie
theabbie / filepicker.js
Created Dec 24, 2020
Promise-based File Picker in Javascript
View filepicker.js
// opens file dialog waits till user selects file and return dataurl of uploaded file
async function pick() {
var filepicker = document.createElement("input");
filepicker.setAttribute("type","file");
filepicker.click();
return new Promise((resolve,reject) => {
filepicker.addEventListener("change", e => {
var reader = new FileReader();
reader.addEventListener('load', file => resolve(file.target.result));
@theabbie
theabbie / key.txt
Created Dec 8, 2020
Giphy Unlimited Requests API Key
View key.txt
rAH4QJLLegtCle6OFGslQTOKNmWytVup
@theabbie
theabbie / index.md
Created Dec 8, 2020
wallpaperscraft.com API
View index.md

The following API endpoints can be used to access wallpaperscraft.com API

https://api.wallpaperscraft.com/images/shuffle?screen[width]=1080&screen[height]=1920&offset=0&types[]=free&types[]=private

https://api.wallpaperscraft.com/images?sort=date&screen[width]=1080&screen[height]=1920&offset=0&types[]=free&types[]=private

Sample Output

{
@theabbie
theabbie / index.js
Last active Nov 23, 2020
Make A Meme
View index.js
var axios = require("axios")
var rgag = require("random-gag");
var fs = require("fs");
var dl = require("dlurl");
var gag = await rgag();
var img = fs.createReadStream(await dl(gag.images.image460.url));
var meme = await axios({
url: 'https://makeameme.org/ajax/uploader.php?qqfile=meme.jpg',
@theabbie
theabbie / index.js
Last active Nov 23, 2020
Urban Dictionary Vote Spammer
View index.js
var axios = require("axios");
var def_id = 14870296; //Find your Definition ID
(async function() {
var cookie = await axios({
url: 'https://api.urbandictionary.com/v0/uncacheable?ids='+def_id,
withCredentials: true
});
@theabbie
theabbie / index.js
Created Nov 18, 2020
URL unshortener
View index.js
var axios = require("axios");
var cheerio = require("cheerio");
async function unshorten(url) {
var page = await axios({
url: "https://unshorten.it/",
withCredentials: true
});
var $ = cheerio.load(page.data);
var token = $("input[name='csrfmiddlewaretoken']")[0].attribs.value;
@theabbie
theabbie / index.js
Created Nov 16, 2020
BuzzFeed Spammer
View index.js
var axios = require("axios")
(async function () {
while (true) {
await axios({
url: "https://pixiedust.buzzfeed.com/events",
method: "POST",
headers: {
Host: "pixiedust.buzzfeed.com",
Connection: "keep-alive",
@theabbie
theabbie / index.js
Last active Nov 17, 2020
Mute All DevRant Notifications
View index.js
var axios = require('axios');
var FormData = require('form-data');
var username = 'username';
var password = 'password';
(async function() {
var data = new FormData();
data.append("app",3);
data.append("username",username);
@theabbie
theabbie / index.js
Last active Oct 23, 2020
DevRant Trivia Bot
View index.js
var app = require('express')();
var Bot = require('devrant-bot');
var axios = require("axios");
var encryptor = require('simple-encryptor')(process.env.quizkey);
app.get("/*", async function (req, res) {
try {
var bot = new Bot();
await bot.login("trivia", process.env.devpass);
var mentions = await bot.get();