This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| <?php | |
| /** | |
| * | |
| * Gmail attachment extractor. | |
| * | |
| * Downloads attachments from Gmail and saves it to a file. | |
| * Uses PHP IMAP extension, so make sure it is enabled in your php.ini, | |
| * extension=php_imap.dll |
| function exportSpreadsheet() { | |
| //All requests must include id in the path and a format parameter | |
| //https://docs.google.com/spreadsheets/d/{SpreadsheetId}/export | |
| //FORMATS WITH NO ADDITIONAL OPTIONS | |
| //format=xlsx //excel | |
| //format=ods //Open Document Spreadsheet | |
| //format=zip //html zipped | |
If you're trying to do this, you came to the right place!
Watch this code work in real time: https://twitter.com/CodingDoug/status/940022568089554944
See also this gist for copying in the other direction: https://gist.github.com/CodingDoug/44ad12f4836e79ca9fa11ba5af6955f7
| <?php | |
| # Cron job command for Laravel 4.2 | |
| # Inspired by Laravel 5's new upcoming scheduler (https://laravel-news.com/2014/11/laravel-5-scheduler) | |
| # | |
| # Author: Soren Schwert (GitHub: sisou) | |
| # | |
| # Requirements: | |
| # ============= | |
| # PHP 5.4 |
| function getOrCreateSubFolder(childFolderName, parentFolderName) { | |
| var parentFolder, parentFolders; | |
| var childFolder, childFolders; | |
| // Gets FolderIterator for parentFolder | |
| parentFolders = DriveApp.getFoldersByName(parentFolderName); | |
| /* Checks if FolderIterator has Folders with given name | |
| Assuming there's only a parentFolder with given name... */ | |
| while (parentFolders.hasNext()) { | |
| parentFolder = parentFolders.next(); | |
| } |
| /* | |
| * Copyright 2017 Mohsen Mesgarpour | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |