Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jksk on github.
  • I am skrufve (https://keybase.io/skrufve) on keybase.
  • I have a public key ASDXDkExrkUFlHEXmxPtYkqtAheyeu5tOtT_xMudHpB13wo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am jksk on github.
* I am jesper (https://keybase.io/jesper) on keybase.
* I have a public key whose fingerprint is E371 5C65 12C9 B10B 5A4F 49D0 D8C1 BF20 71FA 5595
To claim this, I am signing this object:
@jksk
jksk / css-touch-delay.md
Created April 22, 2013 08:38 — forked from Integralist/css-touch-delay.md
CSS touch delay3

Although it's possible to extend the above optimisation approach to checknavigator.maxTouchPoints and to then hook up our listener to pointerup rather than click, there is a much simpler way: setting the touch-action CSS property of our element to none eliminates the delay.

/* suppress default touch action like double-tap zoom */
a, button {
    -ms-touch-action: none;
        touch-action: none;
}
@jksk
jksk / fish.config
Created June 9, 2012 19:04 — forked from Pallinder/fish.config
Add current git branch to fish
set fish_git_dirty_color red
function parse_git_dirty
git diff --quiet HEAD ^&-
if test $status = 1
echo (set_color $fish_git_dirty_color)"Δ"(set_color normal)
end
end
function parse_git_branch
# git branch outputs lines, the current branch is prefixed with a *
set -l branch (git rev-parse --abbrev-ref HEAD)