mkdir output
ffmpeg -i Untitled.mov -vf scale=640:-1 -r 3 output/ffout%3d.png
convert -delay 1 -loop 0 output/ffout*.png output/output.gif
convert output/output.gif -fuzz 10% -layers Optimize output/result.gif
This file contains 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
// Copyright 2019 the Dart project authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license | |
// that can be found in the LICENSE file. | |
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_hooks/flutter_hooks.dart'; | |
void main() => runApp(const MyApp()); |
This file contains 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 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: ListViewBuilder(), | |
); |
This file contains 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 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: MyWidget(), | |
); |
This file contains 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
var ws = new WebSocket('ws://localhost:8080'); | |
var videoInput; | |
var videoOutput; | |
var webRtcPeer; | |
var state = null; | |
const I_CAN_START = 0; | |
const I_CAN_STOP = 1; | |
const I_AM_STARTING = 2; |
This file contains 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
{ | |
"parser": "babel-eslint", | |
"plugins":[ | |
"flowtype" | |
], | |
"extends": [ | |
"airbnb", | |
"plugin:flowtype/recommended" | |
], | |
"rules": { |
This file contains 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
// Place your settings in this file to overwrite the default settings | |
{ | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 16, | |
"editor.fontWeight": "400", | |
"editor.renderControlCharacters": false, | |
"editor.renderWhitespace": "all", | |
"editor.rulers": [100], | |
"editor.scrollBeyondLastLine": false, |
This file contains 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
display4: 7rem 112px light 300 | |
display3: 3.5rem 56px regular 400 | |
display2: 2.813rem 45px regular 400 | |
display1: 2.215rem 34px regular 400 | |
headline: 1.5rem 24px regular 400 | |
title: 1.25rem 20px medium 500 | |
subheading2: 1rem 16px regular 400 | |
subheading1: .938rem 15px regular 400 | |
body2: .875rem 14px medium 500 | |
body1: .875rem 14px regular 400 |
This file contains 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
.elevation-2 { | |
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), | |
0px 2px 2px 0px rgba(0, 0, 0, 0.14), | |
0px 1px 5px 0px rgba(0, 0, 0, 0.12); | |
} | |
.elevation-3 { | |
box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), | |
0px 3px 4px 0px rgba(0, 0, 0, 0.14), | |
0px 1px 8px 0px rgba(0, 0, 0, 0.12); |
This file contains 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
#!/bin/sh | |
base=$1 | |
if [ -z $base ] | |
then | |
echo No argument given | |
else | |
## | |
## iOS files | |
convert "$base" -resize 20x20! "Icon-20.png" |
NewerOlder