Skip to content

Instantly share code, notes, and snippets.

View hickscorp's full-sized avatar
🎯
Focusing

Pierre Martin hickscorp

🎯
Focusing
View GitHub Profile
@hickscorp
hickscorp / ffcast
Created September 24, 2018 15:59 — forked from jeanparpaillon/ffcast
ffmpeg screen casting
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
exec sudo $0 $*
exit 0
fi
function at_exit {
echo "Removing capture module..."
rmmod v4l2loopback 2> /dev/null
// See the updated gist at https://gist.github.com/hickscorp/08b0c945e7d3a5879a6b7924c6a44628
// Make sure you install the ANSIEscape package if you want color support.
//
// Just drop this file in your elixir project root folder, and rename it to
// match it, eg `whatever.sublime-project`.
// Then open sublime like so: `subl whatever.sublime-project`
// The build command will become available by pressing `Ctrl+Shift+B`.
//
// It's also recommended to install those two packages:
// - Elixir for syntax coloring: https://packagecontrol.io/packages/Elixir

Keybase proof

I hereby claim:

  • I am hickscorp on github.
  • I am doodloo (https://keybase.io/doodloo) on keybase.
  • I have a public key ASDMcLLGwj533JxZdlts5hviu-Fh8K9rs4wIoKLU57WD5Ao

To claim this, I am signing this object:

defmodule GraphqlHelpers do
import Ecto.Query
@doc """
## example
field :storages, list_of(:storage), do: has_many(:storages)
"""
defmacro has_many(model) do
quote do
resolve fn subject, _, _ ->