Skip to content

Instantly share code, notes, and snippets.

@cipheos
cipheos / .gitconfig
Last active August 13, 2017 12:00
.gitconfig
[user]
name = Samuel Willems
email = [email protected]
[alias]
st = status
ci = commit
co = checkout
di = diff
dc = diff --cached
@cipheos
cipheos / jQuery.selectRange.js
Last active March 1, 2017 10:20 — forked from beiyuu/select-text-range.js
jQuery:Select a text range (input/textarea)
$.fn.selectRange = function(start, end) {
this.each(function() {
var el = this[0];
if (el) {
el.focus();
if (el.setSelectionRange) {
el.setSelectionRange(start, end);