This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | |
sudo apt-get update | |
sudo apt-get install google-chrome-stable | |
export CHROME_BIN=chromium-browser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export DISPLAY=:99.0 | |
sh -e /etc/init.d/xvfb start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let map; | |
function setup(phone1, phone2) { | |
map[phone1] = phone2; | |
map[phone2] = phone1; | |
} | |
function teardown(phone1, phone2) { | |
delete map[phone1]; | |
delete map[phone2]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="http://cdn.snex.io/snex.latest.min.js"></script> | |
<script type="text/javascript"> | |
snex.createSession() | |
.then(session => { | |
session.on('connection', conn => { | |
console.log('Player joined!'); | |
conn.on('data', data => { | |
console.log('Player signal', data); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for CRF in 20 21 22 23 24 25 26 27 28; | |
do ffmpeg -i original.mov \ | |
-vf scale=1280:800 \ | |
-c:v libx264 \ | |
-preset veryslow -crf $CRF \ | |
-movflags faststart \ | |
-pix_fmt yuv420p \ | |
output_1280_crf$CRF.mp4 | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="testimonials"> | |
<template> | |
<div class="photo swiper-container"> | |
/* | |
All the carousel HTML. | |
Abridged for brevity. | |
*/ | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
function wait() { | |
if (window.Swiper) { | |
clearInterval(timer); | |
var swiper = new Swiper ('.swiper-container', { | |
direction: 'horizontal', | |
loop: true, | |
pagination: '.swiper-pagination', | |
nextButton: 'nav .next', | |
prevButton: 'nav .prev', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<scene name="Intro"> | |
<audio> | |
<music src="./intro/intro.ogg" id="intro"/> | |
</audio> | |
<events> | |
<after> | |
<action type="goto-scene" id="StageSelect"/> | |
</after> | |
<event name="create"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir distributable-react-component | |
cd distributable-react-component | |
git clone https://github.com/meth-meth-method/react-package-boilerplate.git my-component | |
create-react-app react-app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd react-app | |
yarn link my-component | |
yarn start |