Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.
[Brief description ]
- [more description]
- [more description]
- [more description]
| const puppeteer = require('puppeteer'); | |
| const imagemin = require('imagemin'); | |
| const imageminPngquant = require('imagemin-pngquant'); | |
| // Get the URL and the slug segment from it | |
| const url = process.argv[2]; | |
| const segments = url.split('/'); | |
| const slug = segments[segments.length-2]; | |
| (async () => { |
| brew uninstall --force --ignore-dependencies ffmpeg | |
| brew install --ignore-dependencies chromaprint | |
| brew install amiaopensource/amiaos/decklinksdk | |
| brew cask install xquartz | |
| options=$(brew options homebrew-ffmpeg/ffmpeg/ffmpeg | grep -vE '\s' | grep -- '--with-' | grep -vi game-music-emu | tr '\n' ' ') | |
| brew install homebrew-ffmpeg/ffmpeg/ffmpeg ${options} |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This is an example of how to use the Google Drive file picker and Google Drive API to retrieve files from Google Drive using pure JavaScript. At the time of writing (14th July 2013), Google have good examples for using these two APIs separately, but no documentation on using them together.
Note that this is just sample code, designed to be concise to demonstrate the API. In a production environment, you should include more error handling.
See a demo at http://stuff.dan.cx/js/filepicker/google/