Skip to content

Instantly share code, notes, and snippets.

@heaven00
heaven00 / .env
Created March 28, 2024 23:14 — forked from tenekev/.env
Setting up Excalidraw with a Collaboration server
DOMAIN_NAME=yourdomain.tld
TZ=Europe/London
09:25:04.561 -> i GPIO GPIO Float P.Up P.Down status
09:25:04.561 -> 0 2 P0.2 0 1 0 .
09:25:04.561 -> 1 3 P0.3 0 1 0 .
09:25:04.561 -> 2 4 P0.4 0 1 0 .
09:25:04.561 -> 3 5 P0.5 0 1 0 .
09:25:04.561 -> 4 6 P0.6 0 1 0 .
09:25:04.561 -> 5 7 P0.7 0 1 0 .
09:25:04.561 -> 6 8 P0.8 0 1 0 .
09:25:04.561 -> 7 9 P0.9 0 1 0 . NFC1
09:25:04.561 -> 8 10 P0.10 0 1 0 . NFC2
# errors.py
class NotPDFLinkError(Exception):
def __str__(self):
return "The Link Provided does not end with type `.pdf`"
class NotAnURLError(Exception):
def __str__(self):
@heaven00
heaven00 / check_apple_refurb_ca.py
Last active September 13, 2020 04:24
something
import requests
from bs4 import BeautifulSoup
def fetch_products_from_html(html):
soup = BeautifulSoup(html, features="html.parser")
refurb_div = soup.find('div', {'class': 'refurbished-category-grid-no-js'})
return refurb_div.findAll('li')
(ns dactyl-keyboard.dactyl
(:refer-clojure :exclude [use import])
(:require [clojure.core.matrix :refer [array matrix mmul]]
[scad-clj.scad :refer :all]
[scad-clj.model :refer :all]
[unicode-math.core :refer :all]))
(defn deg2rad [degrees]
(* (/ degrees 180) pi))
{
"match_id":4222181801,
"barracks_status_dire":0,
"barracks_status_radiant":0,
"chat":null,
"cluster":232,
"cosmetics":null,
"dire_score":16,
"dire_team_id":null,
"draft_timings":null,
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@heaven00
heaven00 / Improving MNIST score.ipynb
Created October 18, 2018 10:22
EIP - assignment 3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets