This file contains hidden or 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
var fs = require('fs'); | |
var im = require('imagemagick'); | |
var async = require('async'); | |
var widths = ['270', '590', '910', '1230']; | |
var source_dir = process.cwd()+'/source/'; | |
var output_dir = process.cwd()+'/output/'; | |
fs.readdir(source_dir, function(err, files){ | |
if (err) throw err; |
This file contains hidden or 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
var fs = require('fs'); | |
var im = require('imagemagick'); | |
// define source of pictures: | |
var source_dir = '/source' | |
// define output of resized pictures: | |
var output_dir = '/output' | |
//define image sizes |
This file contains hidden or 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
#!/bin/bash | |
LESSFILE=$1 | |
CSSFILE=`basename $1 .less`.css | |
while true; do | |
inotifywait -e modify -e move -e close $LESSFILE && \ | |
date && echo "compiling LESS" && \ | |
lessc $LESSFILE> $CSSFILE | |
done |
This file contains hidden or 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
<?php | |
/** | |
** A base module for [text], [text*], [email], and [email*] | |
**/ | |
/* Shortcode handler */ | |
wpcf7_add_shortcode( 'text', 'wpcf7_text_shortcode_handler', true ); | |
wpcf7_add_shortcode( 'text*', 'wpcf7_text_shortcode_handler', true ); | |
wpcf7_add_shortcode( 'email', 'wpcf7_text_shortcode_handler', true ); |
NewerOlder