I hereby claim:
- I am sam1902 on github.
- I am samuelprevost (https://keybase.io/samuelprevost) on keybase.
- I have a public key whose fingerprint is 9788 786C 7774 B243 A037 2C8F 190F A963 37B3 CCE0
To claim this, I am signing this object:
""" | |
From Appendix D in the Neural ODE paper | |
Implementation of autograd | |
""" | |
import scipy.integrate | |
import autograd.numpy as np | |
from autograd.extend import primitive, defvjp_argnums | |
from autograd import make_vjp |
#!/bin/bash | |
#set -x | |
# Found in the description of https://www.youtube.com/watch?v=c0Qsmgvj_oo | |
# Hosted originaly on https://www.lostserver.com/static/nfc-cloner.sh | |
# This is not mine, I'm just making sure it doesn't disappear from the web. | |
# If you're the author and want to remove it, contact me. | |
# I slightly modified it to work with non GNU/Linux installations (adding $(which) in the defs) | |
#------------------------------------------------------ | |
# Keld Norman, Dubex A/S, Sep, 2018 - CLONE ID CARD POC | |
#------------------------------------------------------ |
I hereby claim:
To claim this, I am signing this object:
/* | |
* Author: Samuel Prevost <[email protected]> | |
* Date: 2020-08-24 | |
* | |
* WIRING: | |
* A two way switch is wired onto pin SWITCH_PIN: | |
* - either pin SWITCH_PIN is linked to ground (default position) | |
* - or pin SWITCH_PIN is linked to VCC (pressed switch position) | |
* If pin SWITCH_PIN is connected to neither, it's an anomaly and will result in random behaviour. | |
* |
#!/usr/bin/env bash | |
# You need to run | |
# sudo apt install v4l2loopback-utils v4l2loopback-dkms | |
# And restart your computer after that so that it reloads the kernel (just in case) | |
# Creates a dummy device | |
sudo modprobe v4l2loopback devices=1 exclusive_caps=1 | |
# Find the dummy device file path | |
V4LOOP=$(v4l2-ctl --list-devices | grep Dummy -A 1 | tail -n 1 | tr -d '\t') |
#!/usr/bin/env bash | |
# Released under MIT License | |
# Copyright (c) 2020 Samuel Prevost. | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
# software and associated documentation files (the "Software"), to deal in the Software | |
# without restriction, including without limitation the rights to use, copy, modify, merge, | |
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
# to whom the Software is furnished to do so, subject to the following conditions: |
from collections import Counter | |
from typing import Tuple, Dict | |
from os import PathLike | |
from pathlib import Path | |
from os.path import isdir, join as join_paths | |
from tensorflow.python.keras.preprocessing.image import ( | |
ImageDataGenerator, | |
DirectoryIterator, | |
) | |
from tensorflow.python.keras.applications.vgg19 import ( |
#!/usr/bin/env python3 | |
""" | |
Checks for the validity of an IBAN number | |
You can either pipe IBANS into it, provide it a file directly, | |
or provide it a single IBAN. In the case of a single IBAN, it'll | |
show you the steps to verify it. | |
Samuel Prevost 2021-03-19 | |
""" |
import re | |
from tempfile import mkstemp | |
from shutil import move | |
from os import remove, close | |
class LiveMap(object): | |
def __init__(self, livePoints, pathToLive = "live.kml"): | |
super(LiveMap, self).__init__() | |
self.livePoints = livePoints | |
self.pathToLive = pathToLive |
#!/usr/bin/env python3 | |
"""Module doc""" | |
import numpy as np | |
from sys import argv | |
def residual_size(values, axis=None): | |
# shape: (4, 3, 5, 2, 3) | |
# axis: (0, 2) |