Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| getReferrerTraits = function() { | |
| // Requires: jQuery, jQuery.cookie, segment.io | |
| // TODO: Update referralHost:blackList with your domain, so we only track external referrers. | |
| var analytics_args = [], | |
| analytics_traits, | |
| acquisitionSource, | |
| firstReferrer, | |
| firstCampaign, |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
A timeline of the last four years of detecting good old window.localStorage.
October 2009: 5059daa
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| #!/usr/bin/env bash | |
| if [[ ! ( # any of the following are not true | |
| # 1st arg is an existing regular file | |
| -f "$1" && | |
| # ...and it has a .ipa extension | |
| "${1##*.}" == "ipa" && | |
| # 2nd arg is an existing regular file | |
| -f "$2" && | |
| # ...and it has an .mobileprovision extension |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
This script installs a patched version of ruby 1.9.3-p125 with patches to make ruby-debug work again (#47) and boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84).
Huge thanks to funny-falcon for the performance patches.
This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.
| require 'handlebars' | |
| module HBSTemplateHandler | |
| def self.call(template) | |
| if template.locals.include? :hbs | |
| <<-TEMPLATE | |
| template = Handlebars.compile #{template.source.inspect} | |
| template.call(hbs || {}).html_safe | |
| TEMPLATE | |
| else |