Skip to content

Instantly share code, notes, and snippets.

@abernier
abernier / index.html
Last active August 8, 2016 17:31
Email CSS direction obfuscation -- with progressive enhancement
<!DOCTYPE html>
<meta charset=utf-8>
<title>Email CSS direction obfuscation -- with progressive enhancement</title>
<span style="display:inline-block; unicode-bidi:bidi-override; direction:rtl;" onmouseover="this.innerText=this.innerText.split('').reverse().join(''); this.style.unicodeBidi='';this.style.direction=''; this.removeAttribute('onmouseover');">
moc.liamg@reinreb.eniotna
</span>
@sanderhouttekier
sanderhouttekier / name.sublime-project
Last active September 26, 2016 21:07
Sublime Project File #snippet #sublimetext
{
"folders":
[
// add paths per directory you want to show
{
// relative paths to the root
"path": "/",
// optionally give it a different name
"name": "My Project",
// possible folders to exclude
@peterjs
peterjs / gist:8041753
Last active March 18, 2018 09:53
Change keyboard layout on getting/losing focus
;========================================================================
;
; Template: WinTrigger (former OnOpen/OnClose)
; Description: Act upon (de)activation/(un)existance of programs/windows
; Online Ref.: http://www.autohotkey.com/forum/viewtopic.php?t=63673
;
; Last Update: 15/Mar/2010 17:30
;
; Created by: MasterFocus
; http://www.autohotkey.net/~MasterFocus/AHK/
@strayge
strayge / shortcuts.ahk
Last active March 18, 2018 10:19
windows shortcuts
; # - win, ! - alt, ^ - ctrl, + - shift
#MaxHotkeysPerInterval 200
global en := DllCall("LoadKeyboardLayout", "Str", "00000409", "Int", 1)
ChangeActiveLayoutToEng()
{
WinGet, window_id, ID, A
pid := DllCall("GetWindowThreadProcessId", "UInt", window_id, "Ptr", 0)
@zed9h
zed9h / pangram-ligatures-and-other-font-stress-tests.txt
Last active May 17, 2018 07:55
text to speech pronunciation challenge. speech synthesis test sample. font stress test sample.
Panagrams, ligatures and other font stress tests
Hamburgefonstiv
#123,456.7890mph
1lIi, 2z, 3E, 4yuA, 5sS, 6bG, 7L, 8B, 9g, 0Oo
bdpq
"…", “…”, ‘…’,:;.!? () {} []
- hyphen, – en dash, — em dash
SAMPLE KERNING PAIRS
AT AV AW AY Av Aw Ay Fa Fe Fo Kv Kw Ky LO LV LY PA Pa Pe Po TA
@cameronhunter
cameronhunter / responsive-abbreviations.html
Created October 2, 2012 12:31
Responsive abbreviations in HTML using CSS
<!doctype html>
<html>
<head>
<title>Responsive Abbreviations</title>
<style type="text/css">
/* Show "U.K." */
abbr {cursor:default; border:none;}
/* Show "United Kingdom" */
@media (min-width: 481px) {
@SeriouslyMoe
SeriouslyMoe / fb2k-scripts.md
Last active March 18, 2019 12:20
foobar2000 Scripts

Foobar2000 scripts

Personal scripts deviating from the defaults provided by foobar2000 out of the box. Curated for my own directory setup and tags, but feel free to use.

Window Title

Playing: ▶ Catch Us by Odyssey (feat. Mortimer)

Paused: Various Artists | foobar2000

@dwendt
dwendt / soundcloud-scrobbler.js
Last active June 9, 2019 19:28
A fix for the soundcloud -> lastfm greasemonkey scrobbler. Updated to take advantage of soundcloud's pageless navigation.
// ==UserScript==
// @name SoundCloud Last.fm Scrobbler
// @namespace http://userscripts.org/users/266001
// @description SoundCloud Last.fm Scrobbler is a JS/Greasemonkey-based Last.fm scrobbler for SoundCloud with support for loving tracks. Based on Bandcamp Last.fm Scrobbler 0.9.4 GGS-0.9.3.
// @require http://userscripts-mirror.org/scripts/source/85398.user.js
// @include http://soundcloud.com/*
// @include https://soundcloud.com/*
// @version 0.1.6 GGS-0.9.5-Dv6
// @license FreeBSD License (see source code). Portions dual-licensed under the MIT (Expat) License and GPLv2.
// @grant GM_log
@marcus-at-localhost
marcus-at-localhost / bookmarklet.js
Last active November 9, 2019 01:51
[Markdown Quote from Website - Bookmarklet] Select text, click the bookmarklet, get an overlay with the selection styled as Markdown quote with source, click "copy" to get the selection copied to your clipboard.Uses https://github.com/zenorocha/clipboard.js
/**
* Markdown Quote to Clipboard
*/
var mo = {
version: 1,
btnId: 'clipboard-btn-dceaeae8-1557-4454-883c-05ae99312192',
id:'clipboard-dceaeae8-1557-4454-883c-05ae99312192',
textareaId: 'clipboard-textarea-dceaeae8-1557-4454-883c-05ae99312192',
uniqueId: 'clipboard-script-dceaeae8-1557-4454-883c-05ae99312192',
# Lines starting with # are comments
--ignore-errors
# --socket-timeout SECONDS
--socket-timeout 60
--retries 8
--output "%(uploader)s/[%(playlist_id)s] %(playlist)s/%(playlist_index)s %(upload_date)s [%(id)s] - %(title)s.%(ext)s"