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 lt IE9]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> |
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
$(document).ready(function() { | |
$('table.tracks tbody').makeSortable({ url: "<%= sort_my_mix_tracks_path(mix) -%>" }); | |
}); |
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
web: bundle exec rails server thin -p $PORT |
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
// Install express with: npm install express. | |
var express = require('express'), | |
app = express(); | |
// Before any request console.log all requests. | |
app.use(function(req, res, next){ | |
console.log('Intercepted request from: ' + req.url); | |
next(); | |
}); |
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
/* ========================== | |
@mixin font-rem | |
============================= | |
Convert px units to rems with fallback to older browsers. | |
Sample: | |
h1 { @include font-rem(16px, 24px) }; | |
Compiles to no CSS: | |
h1 { |
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 | |
# Execution: | |
# Without arguments the script will copy everythin on the $path | |
# ~ sh deploy.sh | |
# | |
# Or you can especify files or folders to copy via arguments. | |
# ~ sh deploy.sh index.html styles myfile.txt | |
# Folder: |
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
// Add method contains to Array Prototype. | |
Array.prototype.contains = function(obj) { | |
var i = this.length; | |
while (i--) { | |
if(this[i] === obj) { return true; } | |
} | |
return false; | |
} |
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
var NavBarHeight = 70 // Change this variable to controll the top of the scroll. | |
$('a[href*=#]').each(function() { | |
var target; | |
target = $(this).attr('href'); | |
return $(this).on('click', function(e) { | |
e.preventDefault(); | |
setToActive($(this)); | |
// Google Analitycs event tracking. |
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
angular.module('app').filter('humanizeConstant', function(){ | |
return function(text) { | |
if(text) { | |
var string = text.split("_").join(" ").toLowerCase(); | |
var string = string.charAt(0).toUpperCase() + string.slice(1); | |
return string | |
}; | |
}; | |
}); |
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
web: node server |
OlderNewer