A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
Copy this to roam/js page, including the "{{[[roam/js]]}}" node: | |
- {{[[roam/js]]}} | |
- ```javascript | |
/* | |
* Roam template PoC by @ViktorTabori | |
* 0.1alpha | |
* | |
* How to install it: | |
* - go to `roam/js` page` |
const NoChildrenAllowed: ReactFC<NoChildren> = () => null | |
const RequireSingleChild: ReactFC<Required<SingleChild>> = () => null | |
type TProps = Required<SomeChildren> & { | |
otherProp: number | |
} | |
const RequireMoreChildrenAndOtherProps: ReactFC<TProps> = () => null |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
tl;dr I built a demo illustrating what it might look like to add async rendering to Facebook's commenting interface, while ensuring it appears on the screen simultaneous to the server-rendered story.
A key benefit of async rendering is that large updates don't block the main thread; instead, the work is spread out and performed during idle periods using cooperative scheduling.
But once you make something async, you introduce the possibility that things may appear on the screen at separate times. Especially when you're dealing with multiple UI frameworks, as is often the case at Facebook.
How do we solve this with React?
/** | |
* @providesModule ReactConsole | |
*/ | |
'use strict'; | |
const colors = require('colors'); | |
const ReactDOMFrameScheduling = require('ReactDOMFrameScheduling'); | |
const ReactFiberReconciler = require('ReactFiberReconciler'); |
#!/usr/bin/env python | |
import os | |
import pprint | |
import subprocess | |
import sys | |
from optparse import make_option | |
from urllib import quote_plus | |
from urlparse import urljoin | |
import dateutil.parser |
The standard names for indexes in PostgreSQL are:
{tablename}_{columnname(s)}_{suffix}
where the suffix is one of the following:
pkey
for a Primary Key constraint;key
for a Unique constraint;excl
for an Exclusion constraint;idx
for any other kind of index;
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |