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
class Dog | |
constructor: (@name) -> | |
growl: -> console.log '*growl*' | |
class Yorkie extends Dog | |
constructor: (name, @tricks = []) -> | |
super name #expose name to/from parent (class Dog) | |
perform: (trick) -> console.log if trick in @tricks then "#{name} is doing #{trick}" else '*whining*' | |
growl: (person) -> | |
if person is @master |
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
module.exports = function(grunt) { | |
grunt.loadNpmTasks('grunt-exec'); | |
grunt.initConfig({ | |
exec: { | |
build: { | |
command: 'node node_modules/requirejs/bin/r.js -o require-config.js' | |
} | |
} | |
}); |
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 hawkApp = (function (internalApp) { | |
internalApp.initialize = function() { | |
loadBackstretch(), loadBody(); | |
}; | |
loadBody = function() { | |
return $('body').addClass('loaded'); | |
}, |
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
class hawk.router extends Backbone.Router | |
routes: | |
'': 'default' | |
'contact': 'openContact' | |
'work': 'openWork' | |
'work/:id': 'openProject' | |
'about': 'openAbout' | |
openContact: -> | |
console.log 'openContact' |
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
Modernizr.load [ | |
load: "//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" | |
complete: -> | |
Modernizr.load "js/vendor/jquery-1.9.1.min.js" unless window.jQuery | |
, | |
load: ["//use.typekit.net/iyl5mxg.js"] | |
complete: -> | |
try | |
Typekit.load() |
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
# loader.coffee | |
Modernizr.load [ | |
load: "//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" | |
complete: -> | |
Modernizr.load "js/vendor/jquery-1.9.1.min.js" unless window.jQuery | |
, | |
load: ["//use.typekit.net/iyl5mxg.js"] | |
complete: -> | |
try |
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
CPAR.ajaxSearch = CPAR.ajaxSearch || (CPAR.ajaxSearch = { | |
$searchResults: $('#search-results'), | |
$searchButton: $('#search-button'), | |
$searchInput: $('#searchText'), | |
$searchCountry: $('#countryCollection'), | |
loadingDiv: '.loading', | |
parseResults: function(data) { | |
var dataString = ''; |
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
CPAR.ajaxSearch = CPAR.ajaxSearch || (CPAR.ajaxSearch = { | |
$searchResults: $('#search-results'), | |
$searchButton: $('#search-button'), | |
$searchInput: $('#searchText'), | |
$searchCountry: $('#countryCollection'), | |
loadingDiv: '.loading', | |
parseResults: function(data) { | |
var dataString = ''; |
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
module.exports = function(grunt) { | |
output_dir = 'htdocs/', | |
source_dir = 'src/', | |
temp_dir = source_dir + 'temp/'; | |
grunt.loadNpmTasks('grunt-contrib'); | |
grunt.loadNpmTasks('grunt-image-embed'); | |
// Output dirs |
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
module.exports = function(grunt) { | |
output_dir = 'htdocs/', | |
source_dir = 'src/', | |
temp_dir = source_dir + 'temp/'; | |
grunt.loadNpmTasks('grunt-contrib'); | |
grunt.loadNpmTasks('grunt-image-embed'); | |
// Output dirs |
OlderNewer