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){ | |
// instead of grunt.loadNpmTask one by one , use | |
require('matchdep').filterDev("grunt-*").forEach(grunt.loadNpmTask); | |
} |
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
Modernizr.mq("only all") |
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
part of main.min.js | |
// adds Trumba spud to Homepage events <div> | |
$Trumba.addSpud({ | |
webName: "msudenver-events-calendars", | |
spudType : "upcoming" , | |
teaserBase : "http://www.trumba.com/calendars/msudenver-events-calendars", | |
spudId : "homepage_events" | |
}) |
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
// modernizr check | |
// for localStorage support | |
// if (Modernizr.localstorage){ | |
// log("localStorage is available"); | |
// }else{ | |
// log("No native support for localStorage, load dojox.storage solution ..."); | |
// } |
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
# first ln -s ~/.bashrc ~/.bash_profile | |
# then | |
#Git tab completion | |
# source ~/git-completion.bash | |
# Show branch in status line | |
# PS1='[\W$(__git_ps1 " (%s)")]\$ ' | |
# export PROMPT_COMMAND='echo -ne "\033]0;${PWD/#$HOME/~}\007"' | |
# Git branch in prompt. | |
parse_git_branch() { |
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
diff --git a/server/package.json b/server/package.json | |
index e8da09d..37ff4ef 100644 | |
--- a/server/package.json | |
+++ b/server/package.json | |
@@ -5,7 +5,7 @@ | |
"main": "index.js", | |
"scripts": { | |
"test": "grunt", | |
- "start": "node app/app.js" | |
+ "start": "node app.js" |
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
window.parent.$("body").animate({scrollTop:0}, 'slow'); |
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
function createCORSRequest(method, url) { | |
var xhr = new XMLHttpRequest(); | |
if ("withCredentials" in xhr) { | |
// Check if the XMLHttpRequest object has a "withCredentials" property. | |
// "withCredentials" only exists on XMLHTTPRequest2 objects. | |
xhr.open(method, url, true); | |
} else if (typeof XDomainRequest != "undefined") { |
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
d = Drums("xooxox",1/6); |
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
/* apply a natural box layout model to all elements */ | |
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } | |
@paulirish | |
/* | |
recommendation for | |
IE8 and up | |
*/ |