Skip to content

Instantly share code, notes, and snippets.

View lap00zza's full-sized avatar

Jewel Mahanta lap00zza

View GitHub Profile
@lap00zza
lap00zza / Abstract Equality Algorithm.md
Last active November 11, 2017 19:04
Javascripts Abstract Equality Algorithm in tabular form

Abstract Equality Comparison

Consider this expression:

x == y

Then,

@lap00zza
lap00zza / scrapper.js
Last active October 16, 2017 17:27
Scrape anime info from MAL
const h2 = document.querySelectorAll("h2");
const infoH2 = (() => {
for (let i = 0; i < h2.length; i++) {
if (h2[i].innerText === "Information") return h2[i];
}
})();
// holds the elements between the Information (H2) and the next H2
const elList = [];
// start from the element after the H2
let now = infoH2.nextElementSibling;
@lap00zza
lap00zza / lapzbotAPI.py
Last active July 9, 2016 20:24
lapzbotAPI
# coding=utf-8
"""
LAPZBOT Restful
Handles the inter process communications between Lapzbot and the Console, without having to rely on the database
for Server / User information. This is intended to be run in a thread.
Typical UseCase:
----------------
import lapzbotAPI