This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Fred Bergman | |
email = [email protected] | |
[core] | |
excludesfile = /Users/fred/.gitignore | |
[color] | |
ui = auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"auto_upgrade_last_run": null, | |
"installed_packages": | |
[ | |
"CoffeeScript", | |
"DocBlockr", | |
"EJS", | |
"Haml", | |
"LESS", | |
"Package Control", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
disableNegativeTouchScroll: function() { | |
var initialY = null; | |
var nodeStack = []; | |
var $window = $(window); | |
$window.bind('touchstart', function(e) { | |
initialY = e.originalEvent.pageY; | |
nodeStack = $(e.target).parents().andSelf().get().reverse(); | |
nodeStack = nodeStack.map(function(node) { | |
return $(node); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modified version of TryStatic, from rack-contrib | |
# https://github.com/rack/rack-contrib/blob/master/lib/rack/contrib/try_static.rb | |
# Serve static files under a `build` directory: | |
# - `/` will try to serve your `build/index.html` file | |
# - `/foo` will try to serve `build/foo` or `build/foo.html` in that order | |
# - missing files will try to serve build/404.html or a tiny default 404 page | |
module Rack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sv: | |
errors: | |
messages: | |
expired: "har löpt ut, var god begär en ny" | |
not_found: "hittades inte" | |
already_confirmed: "är redan bekräftad, vänligen logga in igen" | |
not_locked: "var inte låst" | |
not_saved: | |
one: "1 fel hindrade denna %{resource} från att sparas:" | |
other: "%{count} fel hindrade denna %{resource} från att sparas:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function levenshtein(s1, s2) { | |
// http://kevin.vanzonneveld.net | |
// + original by: Carlos R. L. Rodrigues (http://www.jsfromhell.com) | |
// + bugfixed by: Onno Marsman | |
// + revised by: Andrea Giammarchi (http://webreflection.blogspot.com) | |
// + reimplemented by: Brett Zamir (http://brett-zamir.me) | |
// + reimplemented by: Alexander M Beedie | |
// * example 1: levenshtein('Kevin van Zonneveld', 'Kevin van Sommeveld'); | |
// * returns 1: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function number_with_delimiter(number, delimiter) { | |
number = number + '', delimiter = delimiter || ','; | |
var split = number.split('.'); | |
split[0] = split[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1' + delimiter); | |
return split.join('.'); | |
}; | |
// Test drive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jQuery.support.transition | |
// to verify that CSS3 transition is supported (or any of its browser-specific implementations) | |
$.support.transition = (function(){ | |
var thisBody = document.body || document.documentElement, | |
thisStyle = thisBody.style, | |
support = thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.OTransition !== undefined || thisStyle.transition !== undefined; | |
return support; | |
})(); |