Skip to content

Instantly share code, notes, and snippets.

View theabbie's full-sized avatar
❤️
Playing With Life Since 2002

Abhishek Choudhary theabbie

❤️
Playing With Life Since 2002
View GitHub Profile

Keybase proof

I hereby claim:

  • I am theabbie on github.
  • I am theabbie (https://keybase.io/theabbie) on keybase.
  • I have a public key ASCFVfM5X3QlT3kzUtRjDAHPmDO2gjhQde0Kw3kUQWL-8Qo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am theabbie on github.

  • I am theabbie (https://keybase.io/theabbie) on keybase.

  • I have a public key ASC48kHwNzQ0ZXr8Y8ZBzNSMJdAcI1uhhT32oKaQ8exCeAo

var fs = require("fs");
var scores = {};
var days;
var libs = [];
var lib_app = [];
var file = 'f_libraries_of_the_world.txt';
fs.readFile(file,'utf8', function(err, data) {
var lines = data.split("\n");
var fs = require("fs");
var file = 'b_dream.txt';
fs.readFile(file,'utf8', function(err, data) {
var w = parseInt(data.split("\n")[0].split(" ")[0]);
var h = parseInt(data.split("\n")[0].split(" ")[1]);
var devlen = parseInt(data.split("\n")[h+1]);
var devs = data.split("\n").slice(h+2,h+2+devlen).map(function(x) {return {"company": x.split(" ")[0],"bonus": parseInt(x.split(" ")[1]),"skills": x.split(" ").splice(3),"dev": true}});
var pmlen = parseInt(data.split("\n")[h+2+devlen]);
var pms = data.split("\n").slice(h+3+devlen,h+3+devlen+pmlen).map(function(x) {return {"company": x.split(" ")[0],"bonus": parseInt(x.split(" ")[1]),"dev": false}})
@theabbie
theabbie / index.html
Created June 11, 2020 08:23
TheAbbie Story
<!doctype html>
<html ⚡ lang="en">
<head>
<title>
TheAbbie: Story
</title>
<meta charset="utf-8" />
<link rel="canonical" href="/story">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@theabbie
theabbie / theabbie.md
Last active July 27, 2020 20:17
a pseudo-introvert, a web developer, and a maker
@theabbie
theabbie / index.js
Created September 13, 2020 20:51
Devrant Rant Generator
var app = require('express')();
var axios = require("axios");
var cheerio = require("cheerio");
var mkvtext = require("theabbie").text;
app.get("/*", async function(req,res) {
var $ = cheerio.load((await axios("https://devrant.com/search?term="+req.query.id)).data);
var data = $('.rantlist-title-text').map((i,el)=>$(el).text()).get().join(" ").toLowerCase().replace(/[^a-zA-Z0-9\s\:]*/g,"").replace(/\r\n/g, '\n').replace(/\t+/g,"").split('\n').filter(x => /\w/.test(x)).join(' ');
@theabbie
theabbie / index.js
Last active September 22, 2020 15:06
Bot that searches and posts memes for you
var app = require('express')();
var devRant = require("rantscript");
const Fs = require('fs')
const Path = require('path')
const Axios = require('axios')
const cheerio = require("cheerio")
async function load(url) {
const writer = Fs.createWriteStream("meme.jpg")