using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
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
$('iframe').each(function() | |
{ | |
if ($(this).attr('src').indexOf('matterport.com') > -1) | |
{ | |
console.log($(this).attr('src')) | |
} | |
if ($(this).attr('src').indexOf('wellcomemat.com') > -1) | |
{ | |
console.log($(this).attr('src')) | |
} |
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
grep --include=\*.php -rnw '../themes/' -e 'cat' > results.txt |
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
{ | |
"name": "my-app", | |
"version": "1.0.0", | |
"description": "My test app", | |
"main": "src/js/index.js", | |
"scripts": { | |
"jshint:dist": "jshint src/js/*.js", | |
"jshint": "npm run jshint:dist", | |
"jscs": "jscs src/*.js", | |
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.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
$('a').each(function () { | |
if ($(this).attr('target')) { | |
console.log($(this).attr('target')) | |
console.log('target set', $(this).attr('href')) | |
} else { | |
console.log('no target set', $(this).attr('href')) | |
} | |
}) |
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
# To make sure | |
mod_gzip_on Yes | |
# Optional | |
AddDefaultCharset UTF-8 | |
# BEGIN ADD MIME TYPES | |
<IfModule mod_mime.c> | |
AddType text/css .css | |
AddType text/x-component .htc |
I hereby claim:
- I am alvin-milton on github.
- I am alvinmilton (https://keybase.io/alvinmilton) on keybase.
- I have a public key ASBc8LD_tFR31Tov53qdJRDI1ykSc2bhrMN_bgPnEc_IDgo
To claim this, I am signing this object:
OlderNewer