var foldersStream = function(){
return Q.fcall(function () {
return globby.sync(path.join(config.imgs.src, 'sprites', '*')).filter(function(src) {
return fs.lstatSync(src).isDirectory();
});
});
});
foldersStream().then(function(folders) {
return Q.all(folders.map(function(folder) {
var q = Q.defer();
var spriteFile = path.basename(folder) + '-sprite.png';
var spriteData = gulp.src(path.join(folder, '*.*')).pipe($.spritesmith({
imgName: spriteFile,
cssName: path.basename(folder) + '.scss',
padding: 5,
cssFormat: 'scss',
imgPath: '/source/i/' + spriteFile,
cssTemplate: './source/scss.template.handlebars',
cssVarMap: function(sprite) {
if (sprite.name.substr(-6) === '-hover') {
sprite.name = sprite.name.substr(0, sprite.name.length - 6) + ':hover';
}
}
}));
var imgStream = spriteData.img
.pipe(buffer())
.pipe($.imagemin({
progressive: true,
svgoPlugins: [{removeViewBox: false}],
use: [pngquant()]
}))
.pipe(gulp.dest(config.imgs.src));
var cssStream = spriteData.css
.pipe(gulp.dest(path.join(config.sass.base, 'sprites')));
es.merge(imgStream, cssStream)
.on('end', function() {
$.gutil.log(
$.gutil.colors.bold('Sprite'),
$.gutil.colors.yellow(path.join(config.imgs.src, spriteFile)),
$.gutil.colors.bold('generated')
);
q.resolve();
});
return q.promise;
}));
With a transaction through Paypal goods and services, the fee is lower for selling the laptop compared to Ebay's 10% fee. So by selling through Paypal goods and services, I can discount the price and we will both save more money. I can only offer the discount with Paypal goods and services, which I guarantee will be as safe as through Ebay. I would still be happy with a sale through Ebay, but only for the original price
$(document).on('click', '#create', function(e) {
$.when(app.create(e)).done(function(data){
new jBox('Notice', $.extend(noticeOptions, {title: data.title, content: data.content}));
app.add(data.id, data.fields);
});
});
$cache->startDataCache($cacheLifeTime, $cacheID, $cachePath);
$cache->endDataCache(['selected' => $selected]);
$obCache = new \CPHPCache();
$cacheLifeTime = 3600;
$cacheID = 'selected';
$cachePath = '/'.$moduleId.'/'.$cacheID;
if ($cacheLifeTime > 0 && $obCache->InitCache($cacheLifeTime, $cacheID, $cachePath)) {
$vars = $obCache->GetVars();
extract($vars);
}
if ($cacheLifeTime > 0 && $obCache->StartDataCache()) {
$selected['sd'] = 13456;
$obCache->EndDataCache(['selected' => $selected]);
}