Skip to content

Instantly share code, notes, and snippets.

View neoPix's full-sized avatar
👨‍💻
Coding.

David B. neoPix

👨‍💻
Coding.
View GitHub Profile
@neoPix
neoPix / babelio.js
Last active November 16, 2023 15:50
Babelio Node Scraper
import { gotScraping } from "got-scraping";
import { CookieJar } from "tough-cookie";
import { URLSearchParams, parse as parseUrl } from "url";
import { parse as parseHtml } from "node-html-parser";
const parse = (body) => parseHtml(new TextDecoder("windows-1252").decode(body));
const BASE_URL = "https://www.babelio.com";
/**
@neoPix
neoPix / README.md
Last active May 20, 2021 07:28
covidcheck

CovidCheck

Trouve un rendez-vous covid près de chez vous et vous notifie via PushBullet.

Une version améliorée de ce script est disponible ici : https://github.com/neoPix/covid-check

Required

  • Node 12
const { promisify } = require("util");
const jwtVerify = promisify(require("jsonwebtoken").verify);
const httpGet = promisify(require("request"));
/**
* Use the result of a function to maintain a cached state
* @param {Function} fn The function to call to hydrate the cache
*/
const cache = fn => {
let cache = undefined;
@neoPix
neoPix / link.txt
Created September 14, 2018 18:59
Code chalenge
@neoPix
neoPix / index.html
Created March 19, 2017 13:16
Slider
<style>
.gallery {
list-style: none;
padding: 0;
}
.gallery li {
display: inline-block;
}
.gallery li img {
max-width: 120px;