I hereby claim:
- I am redopop on github.
- I am redopop (https://keybase.io/redopop) on keybase.
- I have a public key whose fingerprint is BD5E 80B7 1064 E817 8170 6D51 CF73 4474 7775 9DD1
To claim this, I am signing this object:
function onPointerDownHandler (event) { | |
if (event.pointerType === 'touch') { | |
// Equivalent to a touchstart on MS Surface | |
} | |
} | |
// For IE 10 | |
element.addEventListener('MSPointerDown', onPointerDownHandler); | |
// For IE 11+ |
on alfred_script() | |
-- Replace with path to dir where your nvALT notes are kept as individual files | |
set nvFolder to "/Users/redoPop/Dropbox/Notes" | |
set docPath to false | |
try | |
tell application "System Events" | |
set frontApp to (name of first process whose frontmost is true) | |
end tell |
<!doctype html> | |
<html class=" webkit safari mobile iphone js"> | |
<head> | |
<meta name="viewport" content="width=device-width;"> | |
<style id="ss"></style> | |
<style> | |
body { | |
text-align: center; | |
font-size: 1em; | |
-webkit-transform: translate3d(0,0,0); |
I hereby claim:
To claim this, I am signing this object:
At the time of writing, Hazel's default date attributes all refer to an image file's creation date rather than the date on which the photo was originally taken. The two dates may differ.
This script provides a custom date attribute reflecting the time the photo was actually taken. As written, it's intended to be added as an embedded script in a "Run JavaScript" rule action, so that it's custom attribute can be used in subsequent "Sort into subfolder" patterns.
The date this script exposes is obtained via sips -g creation [filename]
. It's not clear to me exactly which EXIF attribute the sips "creation" property comes from, but it seems reasonable to assume it's either DateTimeOriginal
or DateTimeDigitized
.
#!/bin/sh | |
say -v cello i am a cat and i\'m small very small oh so small i am a cat and i\'m probably eating pancakes om nom nom nom nom nom nom om nom nom nom nom nom om nom nom nom nom nom nom nom om nom nom nom nom |
I get sentimentally attached to technology. These are some of the mechanical friends I've made over the years:
Name | Service | Details |
---|---|---|
2-XL | 2004-2016 | iPod (Click Wheel Gen 4, 40 GB) |
Eddie | 2005-2008 | PowerBook G4 (12" 1.5 GHz) |
K9 | 2008-2009 | MacBook Pro (15" Early 2008) |
EVE | 2009-2012 | MacBook Pro (13" Mid 2009) |
#!/bin/bash | |
# Bash script to generate and open Sublime Text Projects | |
# | |
# If the current directory is part of a git repo, this script will | |
# look for a .sublime-project file in that repo root and open it. | |
# If no such file exists, it'll generate one based on the dir name. | |
# | |
# If the current directory is _not_ a git repo, no .sublime-project | |
# will be generated and if none is found in the current directory then |
function streamFile(path: string) { | |
let file: Deno.File, | |
iter: AsyncIterableIterator<Uint8Array>; | |
return new ReadableStream({ | |
async start() { | |
file = await Deno.open(path); | |
iter = Deno.iter(file); | |
}, |
import * as React from 'react'; | |
type ElRef = React.RefCallback<HTMLElement>; | |
/** | |
* Uses content height to determine if an element has been clamped. | |
* | |
* Useful for creating "Read more" buttons with CSS line-clamp. | |
* | |
* #### Example: |