interface ZendeskWidget { | |
( | |
type: 'webWidget:on' | 'webWidget' | 'webWidget:get', | |
command: string, | |
payload?: any, | |
): void; | |
( | |
type: 'webWidget', | |
command: 'updateSettings', | |
payload: ZendeskSettings, |
function validVideoId(id) { | |
var img = new Image(); | |
img.src = "http://img.youtube.com/vi/" + id + "/mqdefault.jpg"; | |
img.onload = function () { | |
checkThumbnail(this.width); | |
} | |
} | |
function checkThumbnail(width) { | |
//HACK a mq thumbnail has width of 320. |
#include <ESP8266WiFi.h> | |
#include <WiFiUdp.h> | |
#include <OSCMessage.h> | |
#include <OSCBundle.h> | |
#include <OSCData.h> | |
#include "FastLED.h" | |
// How many leds in your strip? | |
#define NUM_LEDS 8 | |
#define DATA_PIN 2 |
For users who prefer working with a command line or need to access advanced encoding settings for Hap the popular FFmpeg library can be used to work with Hap movies.
-
If this is your first time using FFmpeg you may need to install it on your system, or compile it from source. In either case be sure that Snappy is enabled as part of the binary. If you already have FFmpeg on your system with Snappy enabled, you can skip this step.
You can check that your version of FFmpeg can encode Hap using
ffmpeg -encoders | grep hap
// check version | |
node -v || node --version | |
// list locally installed versions of node | |
nvm ls | |
// list remove available versions of node | |
nvm ls-remote | |
// install specific version of node |
MSYS2 is a minimalist linux/unix shell environment for Windows.
Quote: "A modern replacement for MSYS bringing recent versions of the GNU toolchains, Git and other common Unix command line tools to the Windows platform"
Do all the steps listed here: http://msys2.github.io/
(troubleshooting guide here: https://github.com/msys2/msys2/wiki/MSYS2-installation )
- A short compilations of hybrid files I've used/modifies whats out there for my use.
What do I mean by hybrid files? A file that can be parsed by two or more scripting lanauges and run (without or minimal error messages)
I copied this from here There are many different versions out there, of varying degrees of difficulty out there. However this is my favorite
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |