Skip to content

Instantly share code, notes, and snippets.

View ftalbrecht's full-sized avatar

Felix Schindler ftalbrecht

View GitHub Profile
#!/bin/bash
# The display of the device needs to be turned on during the backup:
# System > Advanced > Developer options > Stay awake
# We require the position of the "Backup my data" button, find it with
# System > Advanced > Developer options > Input: Show taps + Pointer location
# and a manual data backup triggered by something like
# export APP=$(adb shell cmd package list packages -3 | tail -1)
# adb backup -f /tmp/to_be_removed ${APP:8}
#!/usr/bin/env python2
# ================ settings ============
disable_touchpads = False
blacklist = [
# this is a keyboard, not a pointer
'Wacom Pen and multitouch sensor Pen',
]
# ======================================
@ftalbrecht
ftalbrecht / watch_and_notify.py
Created August 11, 2020 09:08
watch_and_notify.py
#!/usr/bin/env python
from subprocess import CalledProcessError, DEVNULL, PIPE, run
import sys
import time
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
def notify(msg):
template< class GridViewImp, class RangeImp, class SourceImp = RangeImp, class FieldImp = typename RangeImp::RangeFieldType >
class LocalizableProductBase
: public LocalizableProductInterface< GridViewImp, RangeImp, SourceImp, FieldImp >
{
// not all types and methods shown ...
public:
LocalizableProductBase(GridViewType grid_view, const RangeType& range, const SourceType& source)
: BaseType(grid_view)
, range_(range)
, source_(source)
template< class GridViewImp, class RangeImp, class SourceImp = RangeImp, class FieldImp = typename RangeImp::RangeFieldType >
class LocalizableProductInterface
: public Stuff::Grid::Walker< GridViewImp >
{
// not all methods an types shown ...
public:
LocalizableProductInterface(GridViewType grd_vw)
: BaseType(grd_vw)
{}
```c++
template< class R, int rT, int rCT, int rA, int rCA >
static size_t order(const LocalfunctionTupleType& localFunctionsEntity,
const LocalfunctionTupleType& localFunctionsNeighbor,
const Stuff::LocalfunctionSetInterface< EntityType, DomainFieldType, dimDomain
, R, rT, rCT >& testBaseEntity,
const Stuff::LocalfunctionSetInterface< EntityType, DomainFieldType, dimDomain
, R, rA, rCA >& ansatzBaseEntity,
const Stuff::LocalfunctionSetInterface< EntityType, DomainFieldType, dimDomain
, R, rT, rCT >& testBaseNeighbor,