JSConf.eu opening song - JavaScript Will Listen - Bella Morningstar
- Plask - Dean McNamee
- Plask
| { | |
| "passfail": false, | |
| "maxerr": 100, | |
| "browser": true, | |
| "node": true, | |
| "rhino": false, | |
| "couch": true, | |
| "wsh": true, | |
| "jquery": true, |
| // Iterate over a bunch of elements. | |
| $(":header, p, li").each(function() { | |
| // The current element. | |
| var elem = $(this); | |
| // A copy of the current element that will take its place in the DOM during | |
| // the animation. | |
| var copy = elem.clone().replaceAll(elem); | |
| // The element's text content. To be animated, character-by-character. | |
| var text = copy.text(); | |
| // Copyright 2006-2008 the V8 project authors. All rights reserved. | |
| // Redistribution and use in source and binary forms, with or without | |
| // modification, are permitted provided that the following conditions are | |
| // met: | |
| // | |
| // * Redistributions of source code must retain the above copyright | |
| // notice, this list of conditions and the following disclaimer. | |
| // * Redistributions in binary form must reproduce the above | |
| // copyright notice, this list of conditions and the following | |
| // disclaimer in the documentation and/or other materials provided |
| // Source: http://www.google.com/codesearch#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/platform/ColorData.gperf&exact_package=chromium&type=cs | |
| // There's also an RGB one defined here: http://www.google.com/codesearch#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/inspector/front-end/Color.js&exact_package=chromium&q=indianred&l=393 | |
| var CSS_NAMED_COLORS = { | |
| aliceblue: "#f0f8ff", | |
| antiquewhite: "#faebd7", | |
| aqua: "#00ffff", | |
| aquamarine: "#7fffd4", | |
| azure: "#f0ffff", | |
| beige: "#f5f5dc", |
| app.get('/help', function(req, res){ | |
| res.send('some help'); | |
| }); | |
| app.get('/search/:query/p:page', function(req, res){ | |
| var query = req.params.query | |
| , page = req.params.page; | |
| res.send('search "' + query + '", page ' + (page || 1)); | |
| }); |
| # Patterns matching CSS files that should be minified. Files with a -min.css | |
| # suffix will be ignored. | |
| CSS_FILES = $(filter-out %-min.css,$(wildcard \ | |
| public/css/*.css \ | |
| public/css/**/*.css \ | |
| )) | |
| # Patterns matching JS files that should be minified. Files with a -min.js | |
| # suffix will be ignored. | |
| JS_FILES = $(filter-out %-min.js,$(wildcard \ |
| # http://rspec.info/ | |
| # http://peepcode.com/products/rspec-user-stories | |
| # http://dannorth.net/whats-in-a-story | |
| # http://www.lukeredpath.co.uk/2006/8/29/developing-a-rails-model-using-bdd-and-rspec-part-1 | |
| # http://www.benmabey.com/2008/05/19/imperative-vs-declarative-scenarios-in-user-stories/ | |
| # http://www.benmabey.com/2008/02/04/rspec-plain-text-stories-webrat-chunky-bacon/ | |
| # http://www.chariotsolutions.com/slides/pdfs/ete2008-IntegrationTestingWithRSpec.pdf | |
| # http://www.joesniff.co.uk/ruby/telling-a-good-story-rspec-stories-from-the-trenches.html | |
| # How does using stories help testing? |
| function t(s,d,p){for(p in d)s=s.replace(new RegExp('{'+p+'}','g'),d[p]);return s;} | |
| /* | |
| String templating engine: | |
| t("Hello {name}!, It is {date}!", { name: "Thomas", date: function(){ return new Date }}); | |
| // = "Hello Thomas!, It is Sun May 08 2011 15:15:33 GMT-0400 (EDT)!" | |
| */ |
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!