Skip to content

Instantly share code, notes, and snippets.

View BestSonny's full-sized avatar
🤡
Focusing

Pan He BestSonny

🤡
Focusing
View GitHub Profile
@BestSonny
BestSonny / metis.cc
Created September 20, 2019 19:06 — forked from erikzenker/metis.cc
Metis usage example
#include <cstddef> /* NULL */
#include <metis.h>
#include <iostream>
// Install metis from:
// http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz
// Build with
// g++ metis.cc -lmetis
@BestSonny
BestSonny / metis.cc
Created September 20, 2019 19:06 — forked from erikzenker/metis.cc
Metis usage example
#include <cstddef> /* NULL */
#include <metis.h>
#include <iostream>
// Install metis from:
// http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz
// Build with
// g++ metis.cc -lmetis
defmodule App.SignupChannel do
use App.Web, :channel
alias App.User
import Ecto.Changeset
require Logger
def join("signup", _params, socket) do
send self(), {:sign_up, _params}
{:ok, socket}
end