This file contains hidden or 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
# daemonize by default | |
processManagement: | |
fork: true | |
systemLog: | |
destination: file | |
path: "/usr/local/var/log/mongodb/mongo.log" | |
logAppend: true | |
# Only accept local connections |
This file contains hidden or 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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
// concatenates all your js files | |
concat: { | |
js: { | |
src: ['app/app.js', 'app/js/**/**.js'], | |
dest: 'tmp/app.js' | |
} | |
}, | |
// minifies your js files |
This file contains hidden or 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
# Extensions to the String class | |
class String | |
# converts a string to a symbol with spaces converted to underscores | |
def symbolize | |
self.downcase.gsub(/[^0-9A-Za-z ]/, '').gsub(" ", "_").to_sym | |
end | |
# converts a string to a machine-safe version | |
def machinize | |
self.downcase.gsub(/[^0-9A-Za-z ]/, '').gsub(" ", "_") |
This file contains hidden or 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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
// concatenates all your js files | |
concat: { | |
js: { | |
src: ['app/app.js', 'app/js/**/**.js'], | |
dest: 'tmp/app.js' | |
} | |
}, | |
// minifies your js files |
This file contains hidden or 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
/** | |
* Creates responsive media query styles for a particular media size | |
* Media type codes are: phone, subtablet, tablet, desktop, large-desktop | |
* | |
* Example usage: | |
* | |
* .header { | |
* @include responsify(phone) { | |
* width: 200px; | |
* } |
This file contains hidden or 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
<?php | |
array( | |
'AB' => "Alberta", | |
'BC' => "British Columbia", | |
'MB' => "Manitoba", | |
'NB' => "New Brunswick", | |
'NL' => "Newfoundland", | |
'NT' => "Northwest Territories", | |
'NS' => "Nova Scotia", | |
'NU' => "Nunavut", |
This file contains hidden or 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
// à la http://flatuicolors.com | |
// greens | |
$turquoise: #1abc9c; | |
$greensea: #16a085; | |
$emerald: #2ecc71; | |
$nephritis: #27ae60; | |
// yellows/oranges/reds | |
$sunflower: #f1c40f; |