Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

doublnt doublnt

🎯
Focusing
View GitHub Profile
@doublnt
doublnt / index.html
Last active Jan 15, 2018
Window on and focus demo
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Window Focus Example</title>
</head>
<body>
<p>Click anywhere in the browser's viewport to trigger the <code>focus</code> event.</p>
<p>Click on something other than the browser's viewport to trigger the <code>blur</code> event.</p>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
@doublnt
doublnt / git-mv-with-history
Created Aug 24, 2017 — forked from emiller/git-mv-with-history
git utility to move/rename file or folder and retain history with it.
View git-mv-with-history
#!/bin/bash
#
# git-mv-with-history -- move/rename file or folder, with history.
#
# Moving a file in git doesn't track history, so the purpose of this
# utility is best explained from the kernel wiki:
#
# Git has a rename command git mv, but that is just for convenience.
# The effect is indistinguishable from removing the file and adding another
# with different name and the same content.
You can’t perform that action at this time.