> sanity documents get document-id | pbcopy
First make sure to define your editor using EDITOR=code
(for vscode).
> sanity documents create --id documentId --watch --replace
// 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 | |
*/ | |
/* |
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 { |
<!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"> |
//////////////////////////////////////////////////////////// english // | |
// ------------------------------- | |
// -=> WR-reversePathDirection <=- | |
// ------------------------------- | |
// | |
// A Javascript for Adobe Illustrator | |
// by Wolfgang Reszel (ai-js@rumborak.de) | |
// | |
// Version 0.2 from 1.12.2004 | |
// |
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'); |
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 |
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) { |
{ | |
"editor.minimap.enabled": false, | |
"workbench.editor.labelFormat": "short", | |
"workbench.editor.tabSizing": "shrink", | |
"workbench.editor.enablePreview": false, | |
"editor.formatOnPaste": true, | |
"workbench.editor.showIcons": false, | |
} |
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') |