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
Template.registerHelper('getStars', function(rating) { | |
var str = ''; | |
var rating = rating.toString(); | |
var substr = rating.split('.'); | |
var decimal = substr[1]; | |
// put full stars for whole number before the decimal | |
for(i = 0; i < substr[0]; i++) { | |
str += '<i class="icon ion-ios-star"></i>'; | |
count++; |
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
html { | |
font-size: 62.5%; | |
} | |
body { | |
font-size: 1.6em; | |
line-height: 1.625; | |
} | |
h1 { font-size: 6.777rem; } | |
h2 { font-size: 5.483rem; } |
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
// BREAKPOINTS | |
@mixin bp($break) { | |
@if $break == xlarge { | |
@media (min-width: 1700px) { @content; } | |
} | |
@if $break == large { | |
@media (min-width: 1200px) { @content; } | |
} | |
@else if $break == medium { | |
@media (min-width: 992px) { @content; } |
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
/* Set up Grids */ | |
$susy: ( | |
container: 100%, | |
columns: 16, | |
column-width: 50px, | |
gutters: 1/2, | |
gutter-position: inside | |
); | |
@mixin clearfix { |
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 truncate(str, length) { | |
if (str.length > length + 3) { /* there needs to be some room for the ellipses */ | |
str = str.substring(0, length); | |
lastChar = str.substring(str.length - 1); | |
// while lastChar is period or space, chop string more | |
while (lastChar === "." || lastChar === " ") { | |
str = str.substring(0, str.length - 1); | |
lastChar = str.substring(str.length - 1); | |
} |
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
/*============================================================================ | |
Dependency-free breakpoint mixin | |
- http://blog.grayghostvisuals.com/sass/sass-media-query-mixin/ | |
==============================================================================*/ | |
$min: min-width; | |
$max: max-width; | |
$small: 480px; | |
$medium: 768px; | |
$large: 1200px; |
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
/* Bootstrap Clearfix */ | |
/* Tablet */ | |
@media (min-width:767px){ | |
/* Column clear fix */ | |
.col-lg-1:nth-child(12n+1), | |
.col-lg-2:nth-child(6n+1), | |
.col-lg-3:nth-child(4n+1), | |
.col-lg-4:nth-child(3n+1), |
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 composer on Mavericks | |
curl -sS https://getcomposer.org/installer | php | |
sudo mv composer.phar /usr/bin/composer | |
composer | |
// upgrade php on mac os x | |
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0 | |
sudo mv /usr/bin/php /usr/bin/php5424 | |
sudo ln -s /usr/local/php5/bin/php /usr/bin/php |
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
/** | |
* | |
* Bootstrap Overrides | |
* | |
*/ | |
.col-centered{ | |
float: none; | |
margin: 0 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
#!/bin/sh | |
daemon=beanstalkd | |
executable=/usr/local/bin/$daemon | |
port=11300 | |
waldir=/usr/local/var/beanstalkd | |
logfile=/usr/local/var/log/beanstalkd.log | |
interface="127.0.0.1" | |
params="-l $interface -p $port -b $waldir" |
OlderNewer