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
{% if app.user %} | |
<script> | |
window.intercomSettings = { | |
app_id: "bananas", | |
name: "{% autoescape 'js' %}{{ app.user.UserMentionName }}{% endautoescape %}", // Full name | |
email: "{{ app.user.email }}", // Email address | |
created_at: {{ app.user.createdDate | date('U') }} // Signup date as a Unix timestamp | |
}; | |
</script> | |
<script>(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/t2nl581y';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()</script> |
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
#!/bin/bash -ex | |
# -ex = e: fail if any non zero, x: print commands prior to running | |
# This script ensures that the development branch and all release branches are up to date with the branches that preceed it. master is first, then release-X in order by name, followed by development. | |
# How it works: | |
# | |
# 1. Strip the current branch to its raw form. (origin/master -> master, origin/release-2.5.3 -> release-2.5.3) | |
# 2. If the current branch is master, set the START_MERGING variable to true. | |
# 3. Get all the current release branches, ordered by name ascending (so 2.5.3 comes before 2.5.4 and 2.5.5) |
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
.DS_Store | |
Gemfile.lock | |
*.pem | |
node.json | |
tmp/* | |
!tmp/.gitignore |
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
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
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
exports.parseRange = function(size, str){ | |
var valid = true; | |
console.log('Requested range: ' + str); | |
var arr = str.substr(6).split(',').map(function(range){ | |
console.log(range); | |
var range = range.split('-') | |
, start = parseInt(range[0], 10) | |
, end = parseInt(range[1], 10); | |
// -500 |