Environment: Ubuntu 16.04, Nginx 1.10.3
Append the following to your site's .gitignore file so that you don't accidentally commit your environment variables.
/.env
/.env.nginx
| const fs = require('fs') | |
| const ffmpeg = require('fluent-ffmpeg') | |
| const path = require('path') | |
| const FRAMES_PER_SECOND = 30 | |
| const framesFolder = path.resolve('myfolder', 'videos', 'frames') | |
| function getAllFilesFromFolder(folderPath, extension) { | |
| return new Promise((resolve, reject) => { |
| <link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.css" rel="stylesheet"> | |
| <link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.print.css" rel="stylesheet" media="print"> | |
| <script src="https://momentjs.com/downloads/moment.min.js"></script> | |
| <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> | |
| <script type='text/javascript' src='//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.js'></script> | |
| <script type='text/javascript' src='//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/gcal.min.js'></script> | |
| <script type='text/javascript'> | |
| // posting this because the following is a poor example https://fullcalendar.io/docs/google_calendar/ | |
| // This was used to wrap google calendar in squarespace and make it look tremendously better | |
| $(document).ready(function() { |
| ffmpeg -re -f concat -i <(for i in {1..9999}; do printf "file '%s'\n" input.mp4; done) -f v4l2 /dev/video1 && !! |
| <html> | |
| <head> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
| <title>Google Sheets as a Database – Authenticated INSERT with Apps Script using Execution API - Working Example</title> | |
| <script type="text/javascript"> | |
| // Your Client ID can be retrieved from your project in the Google | |
| // Developer Console, https://console.developers.google.com | |
| var CLIENT_ID = '<INSERT_YOUR_CLIENT_ID>'; | |
| var SCRIPT_ID = '<INSERT_YOUR_SCRIPT_ID>'; |
| <?php | |
| /** | |
| * All custom functions should be defined in this class | |
| * and tied to WP hooks/filters w/in the constructor method | |
| */ | |
| class Custom_Functions { | |
| // Custom metaboxes and fields configuration |