View meu_tema.R
require(ggplot2); require(RColorBrewer); require(scales); require(grid)
cinza <- brewer.pal("Greys", n=9)[6]
meu_tema <- function() {
# Generate the colors for the chart procedurally with RColorBrewer
palette <- brewer.pal("Greys", n=9)
color.background = palette[2]
color.grid.major = palette[3]
View ffmpeg-desktop-livestreaming-nvenc-and

Low-Latency Live Streaming for your Desktop using ffmpeg and netcat


In this post I will explore how to stream a video and audio capture from one computer to another using ffmpeg and netcat, with a latency below 100ms, which is good enough for presentations and general purpose remote display tasks on a local network.

The problem:

View p7.exs
defmodule P7 do
# public function that calls a private one with accumulator
def flatten(list), do: do_flatten(list, [])
# base case - empty list
defp do_flatten([], result), do: result
# next two clauses are for lists with only one element - either a list or value
defp do_flatten([head], result) when is_list(head), do: do_flatten(head, result)
defp do_flatten([head], result), do: [head | result]
View .block
license: gpl-3.0
height: 2910
border: no
View gist:976172

Header 1

Header 2

Header 3 ### (Hashes on right are optional)

Header 4

Header 5

Markdown plus h2 with a custom ID ## {#id-goes-here}

Link back to H2

This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one

  • A Trip to the Moon (Le Voyage Dans La Lune) (1902)
  • The Great Train Robbery (1903)
  • The Birth of a Nation (1915)
  • Les Vampires (1915)
  • Intolerance (1916)
  • The Cabinet of Dr. Caligari (Das Kabinett des Doktor Caligari) (1920)
  • Broken Blossoms (1919)
  • Within Our Gates (1920)
  • Way Down East (1920)
  • Orphans of the Storm (1921)
View Error Message Better
public enum Error {
DATABASE(0, "A database error has occured."),
DUPLICATE_USER(1, "This user already exists.");
private final int code;
private final String description;
private Error(int code, String description) {
this.code = code;
this.description = description;
View feed.json
{"updated":"2016-07-23 23:04:33 +0000","articles":[{"title":"– Tim Kaine er alt Trump ikke er","link":""},{"title":"«Kan styrke inntrykket av Hillary som arrogant»","link":""},{"title":"– Som å bli trener for Man. United","link":""},{"title":"Norge fikk bank av OL-motstanderen","link":""},{"title":"Feiret Widvey fire uker før toppjobben","link":""},{"title":"– Det blør inni hele meg","link":""},{"title":"Slik husker vi 22. juli","link":""},{"titl