Skip to content

Instantly share code, notes, and snippets.

View pomle's full-sized avatar

Pontus Alexander pomle

View GitHub Profile
cd react-app
yarn link my-component
yarn start
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
<?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">
(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',
<section class="testimonials">
<template>
<div class="photo swiper-container">
/*
All the carousel HTML.
Abridged for brevity.
*/
</div>
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
@pomle
pomle / snex.html
Last active August 29, 2017 20:12
<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);
});
let map;
function setup(phone1, phone2) {
map[phone1] = phone2;
map[phone2] = phone1;
}
function teardown(phone1, phone2) {
delete map[phone1];
delete map[phone2];
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
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