Skip to content

Instantly share code, notes, and snippets.

This will be used to store a logo
gmail.com
blueprint:
name: Cast to Google Hub
description: Cast a lovelace view to a Google Hub. This tries to bypass the 10 min
timeout for the picture frame by re-casting every 9 min
domain: automation
input:
player:
name: Google Hub
description: Google Hub or Chromecast device to cast to
selector:
@iiLaurens
iiLaurens / Images
Last active March 4, 2022 15:30
Images
hello world
@iiLaurens
iiLaurens / gist:ba794b40cd3cde72fdf52d2ebf05a95c
Last active September 22, 2020 19:01
Conda list compare
# Name Version Build Channel
_libgcc_mutex 0.1 main
backcall 0.2.0 py_0
blas 1.0 mkl
ca-certificates 2020.7.22 0
certifi 2020.6.20 py37_0
cudatoolkit 10.1.243 h6bb024c_0
decorator 4.4.2 py_0
freetype 2.10.2 h5ab3b9f_0
intel-openmp 2020.2 254
@iiLaurens
iiLaurens / Dockerhub-version
Last active September 22, 2020 18:55
Conda list comparison
# Name Version Build Channel
_libgcc_mutex 0.1 main
backcall 0.2.0 py_0
blas 1.0 mkl
ca-certificates 2020.7.22 0
certifi 2020.6.20 py37_0
cudatoolkit 10.1.243 h6bb024c_0
decorator 4.4.2 py_0
freetype 2.10.2 h5ab3b9f_0
intel-openmp 2020.2 254
@iiLaurens
iiLaurens / cascade_mask_rcnn_hrnetv2p_w32_20e_2x.py
Last active September 8, 2020 21:05
CasdecadeTabNet config file for mmdetection 2.x
model = dict(
type='CascadeRCNN',
pretrained='open-mmlab://msra/hrnetv2_w32',
backbone=dict(
type='HRNet',
extra=dict(
stage1=dict(
num_modules=1,
num_branches=1,
block='BOTTLENECK',
@iiLaurens
iiLaurens / code.js
Last active April 22, 2024 12:36
Get all clickable elements on a page
window.scrollTo(0, 0)
var bodyRect = document.body.getBoundingClientRect();
var items = Array.prototype.slice.call(
document.querySelectorAll('*')
).map(function(element) {
var rect=element.getBoundingClientRect();
return {
element: element,
include: (element.tagName === "BUTTON" || element.tagName === "A" || (element.onclick != null) || window.getComputedStyle(element).cursor == "pointer"),
@iiLaurens
iiLaurens / generate.py
Last active November 2, 2022 16:17
Blackjack Markov Decision Process generator for python MDPToolBox
import numpy as np
import pandas as pd
from itertools import product
from functools import reduce
ACTIONLIST = {
0: 'skip',
1: 'draw'
}
@iiLaurens
iiLaurens / fot bootloader.sh
Last active July 8, 2017 20:35
Spinning and installing Ubuntu flavour on Intel Atom device
sudo -i
# create mountpoints for the EFI partitions of the harddisk and USB
# Note that your USB device might have a different reference (but generally something like /dev/sdX1)
mkdir /mnt/bootusb
mkdir /mnt/bootdisk
mount /dev/sda1 /mnt/bootusb
mount /dev/mmcblk1p1 /mnt/bootdisk
# Remove the existing bootloader from the hard drive