Skip to content

Instantly share code, notes, and snippets.

View zacck-zz's full-sized avatar
Lemur Heavy

Zacck Osiemo zacck-zz

Lemur Heavy
View GitHub Profile
{
"name": "----frontend",
"version": "2.12.0",
"private": true,
"engines": {
"node": "11.15.0"
},
"scripts": {
"build": "npx elm-app build",
"start": "standard && npx elm-app start",
{
"name": "----frontend",
"version": "2.12.0",
"private": true,
"engines": {
"node": "11.15.0"
},
"scripts": {
"build": "npx elm-app build",
"start": "standard && npx elm-app start",
{
"name": "----frontend",
"version": "2.12.0",
"private": true,
"engines": {
"node": "11.15.0"
},
"scripts": {
"build": "npx elm-app build",
"start": "standard && npx elm-app start",
{
"name": "----frontend",
"version": "2.12.0",
"private": true,
"engines": {
"node": "11.15.0"
},
"scripts": {
"build": "npx elm-app build",
"start": "standard && npx elm-app start",
EnteredAccount str ->
let
newProblems =
model.problems
|> List.filter (\p ->
case p of
InvalidEntry Account _ ->
False
_ -> True
const AbsintheSocket = require("@absinthe/socket");
const {Socket: PhoenixSocket} = require("phoenix");
// establish a connection
const conSock = new PhoenixSocket("ws://localhost:4000/socket");
//build an absinthe socket
const abSocket = AbsintheSocket.create(conSock);
00:00:16.707 [info] WiFiManager(wlan0): udhcp bound
00:00:17.318 [info] bus names: ["i2c-1"]
00:00:17.318 [info] starting Loop
00:00:17.845 [info] Reading x axis
00:00:17.846 [info] Result from write :ok
@chars "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-_?" |> String.split("", trim: true)
@spec generate_hash(integer()) :: String.t()
def generate_hash(length) do
Enum.reduce((1..length), [], fn (_i, acc) ->
[Enum.random(@chars) | acc]
end) |> Enum.join("")
end
  • Hide all the details that aren't in the core set of what you want to highlight
  • Demo everything in Graphiql (or GraphQL Playground). No Elm code to keep it simple and focused on the server-side framework.
  • Write down a concise list of the main things you want to highlight about the framework. Share that at the beginning of your demo ("I'm going to be showing off how X framework does these things in an interesting/important/unusual way"). Then craft your entire demo around that list, and make sure you're laser focused on those points.
  • Have a demo which you can build up incrementally to show off each of the features in your list. For example, if you're going to show off Subscriptions, then show how to make a basic query with an example that would also be interesting for the Subscriptions demo.
  • Remember that 10 minutes goes by super fast when you're doing a demo. Keep it really simple and really focused on the things you want to highlight. Remember that you have a lot of context that the audience won't

Getting Up and Running

Getting Up and Running

This guide assumes you Elixir and Erlang set up on your machine If not follow the installation instructions for your system.

  1. Clone the development branch using git clone repo
  2. Follow this guide to setup postgres on your system if you haven't already
  3. From the downloaded qb_backend folder run the following
  4. Run mix deps.get to install dependecies