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 i in *.mov; do ffmpeg -i "$i" -vcodec h264 -acodec mp2 "${i%.*}.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
{ | |
"[javascript]": { | |
"editor.tabSize": 2, | |
}, | |
"[json]": { | |
"editor.tabSize": 2 | |
}, | |
"[css]": { | |
"editor.tabSize": 4 | |
}, |
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
body { | |
background-color: black !important; | |
color: white !important; | |
} | |
span, tt, tt.calibre_4 > span, .calibre_12, .calibre_15 { | |
background-color: black !important; | |
color: red !important; | |
/*font-size: 1.2em !important;*/ |
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
-Eyevinn On-boarding (highly recommended, with many of the links presented here) | |
https://www.eyevinntechnology.se/#/onboarding | |
- Intro video concepts and ffmpeg (until Bonus Round: Adaptive Streaming) | |
https://github.com/leandromoreira/ffmpeg-libav-tutorial | |
- Digital Video Introduction | |
https://github.com/leandromoreira/digital_video_introduction | |
- Falsehoods Programmers believe about video |
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
const spawn = require('child_process').spawn | |
const path = require('path') | |
const spawnPromise = (command, args, options) => new Promise( | |
(resolve, reject) => { | |
const task = spawn(command, args, options) | |
const { stdout } = task | |
stdout.on('data', (data) => { | |
resolve(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
k2pdfopt -nl2e- -nr3o- [source] [dest] |
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
// Overwrite key bindings by placing them into your key bindings file. | |
[ | |
{ | |
"key": "escape escape", | |
"command": "workbench.action.exitZenMode", | |
"when": "inZenMode" | |
}, | |
{ | |
"key": "shift+escape", | |
"command": "closeReferenceSearchEditor", |
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
import React from 'react' | |
import Counter from '../Counter' | |
import {shallow} from 'enzyme' | |
import { wrap } from 'module'; | |
describe('<Counter />', () => { | |
it('should start with zero', () => { | |
const wrapper = shallow(<Counter />) | |
expect(wrapper.state().counter).toBe(0) |
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
"scripts": { | |
"lint": "eslint src/**", | |
"test": "jest src", | |
"coverage": "jest --collectCoverageFrom=src/**.js --collectCoverageFrom=!src/index.js --coverage src" | |
}, |
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
const slowFib = (n) => { | |
if (n < 2) { | |
return n | |
} | |
return slowFib(n — 1) + slowFib(n — 2) | |
} | |
export default slowFib |
NewerOlder