Skip to content

Instantly share code, notes, and snippets.

View lekankoku's full-sized avatar

Olamilekan(Lekan) Koku lekankoku

  • Berlin,Germany
View GitHub Profile
@richard-flosi
richard-flosi / star-wars-planets.html
Last active June 26, 2024 14:46
Web Component using Custom Element, Shadow DOM, fetch, async/await, and the Star Wars API
<html>
<head>
<script>
customElements.define("star-wars-planets", class extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: "open" });
}
static get observedAttributes() { return ["loading", "planets"]; }
@tegansnyder
tegansnyder / Preventing-Puppeteer-Detection.md
Created February 23, 2018 02:41
Preventing Puppeteer Detection

I’m looking for any tips or tricks for making chrome headless mode less detectable. Here is what I’ve done so far:

Set my args as follows:

const run = (async () => {

    const args = [
        '--no-sandbox',
        '--disable-setuid-sandbox',
        '--disable-infobars',
@kaveet
kaveet / selectionSort.hs
Created November 21, 2016 15:03
Haskell Selection Sort
module SelectionSort where
selSort :: (Ord a) => [a] -> [a]
selSort [] = []
selSort xs = let x = maximum xs in selSort (remove x xs) ++ [x]
where remove _ [] = []
remove a (x:xs)
| x == a = xs
| otherwise = x : remove a xs