Skip to content

Instantly share code, notes, and snippets.

562a9-5f11d
e089e-94edc
855ee-92872
fefaa-a869b
6128d-8091d
b2d8c-88087
160dd-6b745
6e4db-4af3f
070e3-85b6c
e263d-11175
# 1. Install Python
# Linux: apt-get install python3 (python should already be installed)
# MacOS: brew install python3 (check homebrew if you do not have it yet)
# Windows: download Python from Microsoft Store (you can try with chocolatey package manager also)
# 2. Install PIP, Python package manager
# Linux: apt-get install pip3
# MacOS: brew install pip3 (should be installed with Python3 normally, run it in any case)
# Windows:
# 3. Install script dependencies
# pip3 install pygsheets pandas
@florentroques
florentroques / encoding-video.md
Created July 12, 2018 14:27 — forked from Vestride/encoding-video.md
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@florentroques
florentroques / ffmpeg-install.md
Last active April 27, 2020 15:31
Install FFMPEG with all flags on OS X with HomeBrew
brew install ffmpeg $(brew options ffmpeg | grep -vE '\s' | grep -- '--with-' | tr '\n' ' ')
import React, { Component } from 'react';
import { Text, FlatList, View, StyleSheet, Button } from 'react-native';
import { Constants } from 'expo';
const TouchableTextConst = props => {
console.log(`TouchableTextConst${props.id} rendered, callback (re)created :(`);
const textPressed = () => {
props.onPressItem(props.id);
};
ffmpeg -i video.MOV -acodec copy -f segment -segment_time 10 -vcodec copy -reset_timestamps 1 -map 0 video-part%d.MOV
import Expo from 'expo';
// We will refer to assets by a 'friendly name' such as 'splash-sound' or
// 'player-sprite', offering an additional level of indirection over the
// actual file paths.
// Map of asset names to modules. List your assets here.
const modules = {
'player-sprite': require('./floaty.png'),
'pipe-top': require('./pillar-2.png'),
@florentroques
florentroques / index.html
Created January 15, 2017 15:28 — forked from jazzido/index.html
Webcam barcode reading (zbar, emscripten)
<!DOCTYPE html>
<html>
<head>
<title>JS in-browser barcode reader</title>
<style type="text/css">
body > div {
position: relative;
width: 320px; height: 240px;
}
video { position: absolute; top: 0; left: 0; width: 320px; height: 240px; }

https://medium.com/@derrickburns/building-a-modern-scalable-backend-modernizing-monolithic-applications-15fc3b8101fa#.eod0571mn

Building A Modern, Scalable Backend: Modernizing Monolithic ApplicationsOne year ago my consultancy was hired to construct a modern backend for a travel site that serves millions of unique visitors each month after the previous team had failed. This is the story of our success.The ProblemIf your business is based on content, then you must solve two separate problems: 1) how to create new content and 2) how to serve content via your web site, via your mobile applications, and perhaps via third parties. If your business has tenure, then your content creation suite