Skip to content

Instantly share code, notes, and snippets.

@alvinthen
alvinthen / settings.json
Last active February 20, 2018 08:46
VSCode config
// 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,
@alvinthen
alvinthen / .eslintrc
Created October 25, 2017 06:21
eslint config
{
"parser": "babel-eslint",
"plugins":[
"flowtype"
],
"extends": [
"airbnb",
"plugin:flowtype/recommended"
],
"rules": {
@alvinthen
alvinthen / index.js
Created April 2, 2018 15:39
Kurento browser
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;
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MyWidget(),
);
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: ListViewBuilder(),
);