Skip to content

Instantly share code, notes, and snippets.

View cblavier's full-sized avatar

Christian Blavier cblavier

View GitHub Profile
@Nezteb
Nezteb / elixir-language-server-comparison.md
Last active May 2, 2024 04:21
Elixir Language Server Comparisons

Elixir Language Server Implementation Comparison

We'll be comparing the following:

Disclaimers:

@nicolasblanco
nicolasblanco / many_to_many_helper.ex
Created May 3, 2021 18:47
many_to_many_helper.ex
defmodule ManyToManyHelper do
defmacro __using__(_opts) do
quote do
import Ecto.Query, only: [from: 2]
import unquote(__MODULE__)
end
end
defmacro many_to_many_params(opts) do
association = Keyword.fetch!(opts, :association)
@cblavier
cblavier / embedded_findable.rb
Last active April 8, 2017 14:30
Helps to override find method for a Mongoid embedded document.
module Mongoid
# Helps to override find method in an embedded document.
# Usage :
# - add to your model "include Mongoid::EmbeddedFindable"
# - override find method with:
# def self.find(id)
# find_through(Book, 'chapter', id)
# end
module EmbeddedFindable
@lulalala
lulalala / ffmpeg_compile.sh
Created October 17, 2013 16:33
compile options for minial ffmpeg which can encode/decode from images to h264
# for x264
./configure --enable-static \
--disable-opencl \
--disable-avs \
--disable-cli \
--disable-ffms \
--disable-gpac \
--disable-lavf \
--disable-swscale \
--prefix=/usr/local/