minimal example of using [phantomjs] with [qunit]
$ phantomjs run-qunit.js file://`pwd`/test.html
'waitFor()' finished in 200ms.
Tests completed in 21 milliseconds.
5 tests of 5 passed, 0 failed.
@mixin box-shadow($top, $left, $blur, $color, $inset: false) { | |
@if $inset { | |
-webkit-box-shadow:inset $top $left $blur $color; | |
-moz-box-shadow:inset $top $left $blur $color; | |
box-shadow:inset $top $left $blur $color; | |
} @else { | |
-webkit-box-shadow: $top $left $blur $color; | |
-moz-box-shadow: $top $left $blur $color; | |
box-shadow: $top $left $blur $color; | |
} |
/* | |
* Updated to use the function-based method described in http://www.phpied.com/social-button-bffs/ | |
* Better handling of scripts without supplied ids. | |
* | |
* N.B. Be sure to include Google Analytics's _gaq and Facebook's fbAsyncInit prior to this function. | |
*/ | |
(function(doc, script) { | |
var js, | |
fjs = doc.getElementsByTagName(script)[0], |
go to https://github.com/maxogden/art-of-node#art-of-node to view the newer versions of this document
var gulp = require('gulp'); | |
var browserify = require('gulp-browserify'); | |
var concat = require('gulp-concat'); | |
var styl = require('gulp-styl'); | |
var refresh = require('gulp-livereload'); | |
var lr = require('tiny-lr'); | |
var server = lr(); | |
var paths = { | |
js: 'src/**/*.js', |
I've known people at nodejitsu for years, since before the company even existed. I still consider many of them friends. That said, somebody over there has lost their mind.
Trademarks are an important part of open source. They protect the integrity of the trust that is built by any project. A classic example of why this is the case is Firefox. Suppose that a malware producer takes the Firefox codebase, which is free and open source, packages up their malware with it and then releases it as "Firefox". Then they buy search advertising and suddenly their bad and malicious version of Firefox is the first result on search engines across the web. This is clearly a bad thing for Firefox and open source everywhere, but what can Mozilla do to protect their community of users?
They can't enforce a software license since the use is permitted under the Mozilla Public License. They can, however, enforce on these hypothetical bad actors using their trademark on the word "Fi
// When a jQuery deferred is resolved with a single value, the arguments to | |
// the .then callback are the same as when .then is called directly on the | |
// deferred or on $.when(deferred) AND ALSO $.when(deferred, deferred). | |
var dfd = $.Deferred().resolve([1, 2, 3]); | |
dfd.then(function(a) { | |
console.log('[1a]', a); // [1, 2, 3] | |
}); | |
$.when(dfd).then(function(a) { | |
console.log('[2a]', a); // [1, 2, 3] | |
}); |
function pause(){ | |
rc=$? | |
if [[ $rc != 0 ]] | |
then | |
calcTimeLoss | |
read -p "Press [Enter] to continue, there are build errors above." | |
else | |
echo $(date +%m" "%_d" "%T" "%Y) > "$LASTBUILD" | |
fi | |
} |
Please find below links to slides from our speakers. |