How many times do you empty your trash?
If you are like me, sometimes a lot, sometimes never.
It really depends on how long you tend to keep certain files in your system.
I wanted to automate the emptying of the trash.
I hereby claim:
To claim this, I am signing this object:
# 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 |
$('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')) | |
} | |
}) |
{ | |
"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", |
grep --include=\*.php -rnw '../themes/' -e 'cat' > results.txt |
$('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')) | |
} |
using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<pre> | |
=================== |
function validateInput(a) { | |
var valid = a >= 0 ? a : false; | |
return valid; | |
} | |
function doIt(a, b) { | |
var arr = [], | |
i = 0, | |
x = parseInt(a, 10), |