Skip to content

Instantly share code, notes, and snippets.

View paulolieuthier's full-sized avatar

Paulo Lieuthier paulolieuthier

  • Incognia
  • Recife, Brazil
View GitHub Profile

Keybase proof

I hereby claim:

  • I am paulolieuthier on github.
  • I am paulolieuthier (https://keybase.io/paulolieuthier) on keybase.
  • I have a public key ASBgLLncHiICDE7ruNnlpEZHh4PQ6rLuaif-PtMAXsBCdgo

To claim this, I am signing this object:

@paulolieuthier
paulolieuthier / words.hs
Last active September 17, 2015 14:13
Haskell: break a list into sublists using a split element
--
-- Break a list into sublists using a split element
-- Author: Paulo Lieuthier
--
wordss :: Eq a => a -> [a] -> [[a]] -> [a] -> [[a]]
wordss _ [] acc word = acc ++ [word]
wordss sp (x:xs) acc word
| x == sp = wordss sp xs (acc ++ [word]) []
| otherwise = wordss sp xs acc (word ++ [x])
@paulolieuthier
paulolieuthier / camera.sh
Created December 18, 2014 15:36
Get video from RPi Camera
#!/usr/bin/env sh
ip="192.168.42.1"
port="5000"
gst-launch-1.0 -v tcpclientsrc host=$ip port=$port ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false