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
var todo = items.concat(); //create a clone of the original array | |
setTimeout(function(){ | |
//get next item in the array and process it | |
process(todo.shift()); | |
//if there's more items to process, create another timer | |
if(todo.length > 0){ | |
setTimeout(arguments.callee, 25); // arguments.callee = anonymous function where the code is executing | |
} else { |
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
<!DOCTYPE html> | |
<!--[if IEMobile 7 ]> <html class="no-js iem7"> <![endif]--> | |
<!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="HandheldFriendly" content="True"> | |
<meta name="MobileOptimized" content="320"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
/* | |
A slightly more automated approach to BEM modifier classes: | |
using '&' parent selector interpolation, modifiers extend their bases, | |
so that HTML markup requires only the modifier class not the base *and* modifier | |
*/ |
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
// Copyright 2007. Adobe Systems, Incorporated. All rights reserved. | |
// This script will export each layer in the document to a separate file. | |
// Written by Naoki Hada | |
// ZStrings and auto layout by Tom Ruark | |
/* | |
@@@BUILDINFO@@@ Export Layers To Files.jsx 1.0.0.17 | |
*/ | |
/* |
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
//////////////////////////////////////////////////////////// english // | |
// ------------------------------- | |
// -=> WR-reversePathDirection <=- | |
// ------------------------------- | |
// | |
// A Javascript for Adobe Illustrator | |
// by Wolfgang Reszel ([email protected]) | |
// | |
// Version 0.2 from 1.12.2004 | |
// |
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
var path = require('path'); | |
var autoprefixer = require('autoprefixer'); | |
var postcssFlexbugsFixes = require('postcss-flexbugs-fixes'); | |
var webpack = require('webpack'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); | |
var WatchMissingNodeModulesPlugin = require('../scripts/utils/WatchMissingNodeModulesPlugin'); | |
var CopyWebpackPlugin = require('copy-webpack-plugin'); | |
var paths = require('./paths'); |
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
ffmpeg -i video.mp4 -vf scale=1280x720 -b:v 1024k \ | |
-minrate 512k -maxrate 1485k -tile-columns 2 -g 240 -threads 8 \ | |
-quality good -crf 33 -c:v libvpx-vp9 \ | |
-pass 1 -speed 4 -strict -2 video.webm && \ | |
ffmpeg -i video.mp4 -vf scale=1280x720 -b:v 1024k \ | |
-minrate 512k -maxrate 1485k -tile-columns 2 -g 240 -threads 8 \ | |
-quality good -crf 33 -c:v libvpx-vp9 \ | |
-pass 2 -speed 4 -strict -2 -y video.webm |
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
var fs = require('fs'); | |
var dirPath = './imports'; | |
var lang = 'de-de'; | |
var files = fs.readdirSync(dirPath).filter(item => !(/(^|\/)\.[^\/\.]/g).test(item)); | |
files.forEach(function(file) { | |
fs.readFile(dirPath + '/' + file, function(error, data) { | |
if (error) { |
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
{ | |
"editor.minimap.enabled": false, | |
"workbench.editor.labelFormat": "short", | |
"workbench.editor.tabSizing": "shrink", | |
"workbench.editor.enablePreview": false, | |
"editor.formatOnPaste": true, | |
"workbench.editor.showIcons": false, | |
} |
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
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const cssLoaderConfig = require('@zeit/next-css/css-loader-config'); | |
const commonsChunkConfig = (config, test = /\.css$/) => { | |
config.plugins = config.plugins.map(plugin => { | |
if ( | |
plugin.constructor.name === 'CommonsChunkPlugin' && | |
// disable filenameTemplate checks here because they never match | |
// (plugin.filenameTemplate === 'commons.js' || | |
// plugin.filenameTemplate === 'main.js') |
OlderNewer