Skip to content

Instantly share code, notes, and snippets.

;;; myelisp-prefix-helper.el --- A hack for namespace insertion -*- lexical-binding: t; coding: utf-8; lisp-indent-offset: nil; -*-
;; Copyright (C) 2018 Klaus-Dieter Bauer
;; Author: Klaus-Dieter Bauer <[email protected]>
;; Keywords: lisp, tools, convenience
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
@kbauer
kbauer / WindowsSpotlightViewImages.bash
Last active June 29, 2018 08:42
A bash script for extracting the full-resolution lock-screen spotlight images on Windows 10. Skips images whose size and layout indicate that they are thumbnails or cropped. Invokes itself recursively in parallel, in order to achieve reasonable performance. Intended for execution with Cygwin's bash shell; Requires ImageMagick.
#!/usr/bin/env bash
# -*- coding: iso-safe-unix -*-
set -e -E -u
#### SETTINGS
SPOTLIGHT_PATH="$(cygpath $LOCALAPPDATA)/Packages/Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy/LocalState/Assets"
OUTPUT_PATH='/tmp/SPOTLIGHT_DISPLAY'
#### CODE
<html>
<head><title>Hello world.</title></head>
<body><h1>Bye world.</h1></body>
</html>
! writerec.f90
program main
implicit none
print '(*(1x,G0))', 'x', getX(), 'x', getX()
contains
integer function getX()
getX = 1
print *, '(inside getX)'
end function getX
javascript: body.document.requestFullscreen(); undefined
// Bookmarklet, that allows triggering fullscreen mode in mobile browser/website combinations,
// that don't give the option explicitly. Useful when using webapps on mobile,
// e.g. Teams, lesen.amazon.de (read.amazon.com), ...
//
// Useless on desktop browsers, where the F11 key usually triggers full-screen.
//
// Does not work on iOS, because the iOS javascript engines do not implement any fullscreen API.
// Instead, a more limited