One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#!/usr/bin/env bash | |
set -e | |
cd ~ | |
sudo -v | |
# Make sure system is in a good, updated, clean, state. | |
sudo apt-get -y update |
blueprint: | |
name: Low battery level detection & notification for all battery sensors | |
description: Regularly test all sensors with 'battery' device-class for crossing | |
a certain battery level threshold and if so execute an action. | |
domain: automation | |
input: | |
threshold: | |
name: Battery warning level threshold | |
description: Battery sensors below threshold are assumed to be low-battery (as | |
well as binary battery sensors with value 'on'). |
//CC2018 | |
document.addEventListener('paste', function(evt) { | |
//Import SVG copied to clipboard from Illustrator | |
//remove last hidden character that will otherwise break the import | |
if(document.activeElement.nodeName!="TEXTAREA"){ | |
var str=evt.clipboardData.getData('text/plain').slice(0, -1); | |
var svg=project.importSVG(str) | |
svg.clipped=false; | |
svg.children[0].remove() | |
svg.parent.insertChildren(svg.index,svg.removeChildren()); |
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
THIS ARE MY NOTES OF BUILDING AN INSTALLING XORGXRDP AND XRDP WITH GPU ACCELERATION | |
TESTED ON UBUNTU 20.04.2 with amdgpu (all-open variant) driver and FirePro W4100 GPU | |
-- Build XorgXrdp with GPU acceleration ("script" - to be adjusted to your needs) : -- | |
## << BUILD AND INSTALL SCRIPT START >> ## | |
#!/bin/bash | |
# Install Latest XRDP with XORGXRDP | |
# README |
THIS ARE MY NOTES OF BUILDING AN INSTALLING XORGXRDP AND XRDP WITH GPU ACCELERATION | |
TESTED ON DEBIAN 9.13 | |
-- Build XorgXrdp with GPU acceleration ("script" - to be adjusted to your needs) : -- | |
## << BUILD AND INSTALL SCRIPT START >> ## | |
#!/bin/bash | |
# Install Latest XRDP with XORGXRDP | |
# README |
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- | |
Copyright (c) 2014-2017, Jan Bösenberg & Jürg Lehni | |
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 |
Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Shape selection</title> | |
<!-- Vue for doing stuff--> | |
<script src="https://unpkg.com/vue/dist/vue.js"></script> | |
<!-- Paper for handling graphics --> | |
<script src="https://unpkg.com/paper@0.11.3/dist/paper-full.min.js"></script> | |
<!-- Axios for making API calls --> |