Thinking of using diff
? Try comm
, its sole purpose is to compare 2 sorted files line by line.
Show lines in A.txt but NOT in B.txt:
comm -2 -3 A.txt B.txt
If the files aren’t sorted, use:
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
/** | |
* Optimize WooCommerce Scripts | |
* Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages. | |
*/ | |
add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 ); | |
function child_manage_woocommerce_styles() { | |
//remove generator meta tag | |
remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); |
(function(){ //Self executing, anonymous function | |
//Leave out above if including in already existing script | |
function Swipe(){ | |
var firstX, lastX; | |
function swipeRight(){ | |
<p>The proposed (but human unreadable) WHATWG syntax:<p> | |
<pre> | |
<img src="face-600-200@1.jpg" alt="" | |
set="face-600-200@1.jpg 600w 200h 1x, | |
face-600-200@2.jpg 600w 200h 2x, | |
face-icon.png 200w 200h"> | |
</pre> | |
<p>The propposed RICG syntax (that WHATWG rejects):</p> |
var fs = require('fs'); | |
var path = require('path'); | |
function cssIncImages(cssFile) { | |
var imgRegex = /url\s?\(['"]?(.*?)(?=['"]?\))/gi; | |
var css = fs.readFileSync(cssFile, 'utf-8'); | |
while (match = imgRegex.exec(css)) { | |
var imgPath = path.join(path.dirname(cssFile), match[1]); | |
try { | |
var img = fs.readFileSync(imgPath, 'base64'); |
app.use(express.methodOverride()); | |
// ## CORS middleware | |
// | |
// see: http://stackoverflow.com/questions/7067966/how-to-allow-cors-in-express-nodejs | |
var allowCrossDomain = function(req, res, next) { | |
res.header('Access-Control-Allow-Origin', '*'); | |
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE'); | |
res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization'); | |