Skip to content

Instantly share code, notes, and snippets.

Avatar

Philip Poots pootsbook

  • ClubCollect
  • Alphen aan den Rijn, NL
View GitHub Profile
@nicholasjhenry
nicholasjhenry / .gitpod.apt.Dockerfile
Last active December 15, 2022 00:12
Gitpod (don't do this, use asdf)
View .gitpod.apt.Dockerfile
FROM gitpod/workspace-full
USER gitpod
# Erlang: https://computingforgeeks.com/how-to-install-latest-erlang-on-ubuntu-linux/
RUN wget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -
RUN echo "deb https://packages.erlang-solutions.com/ubuntu focal contrib" | sudo tee /etc/apt/sources.list.d/rabbitmq.list
RUN sudo apt-get update && \
sudo apt-get install inotify-tools -y && \
@kofigumbs
kofigumbs / elm_converter.rb
Last active March 30, 2019 19:58
Compile Elm files and include the JavaScript output in a Jekyll site
View elm_converter.rb
# Initially based on https://github.com/sonnym/jekyll_elm
#
# USAGE:
# Copy/paste this file into the `_plugins` directory of your Jekyll project.
# For every .elm file in your project, it will generate a .js file in your site
# using the same name and relative path.
#
# As-is, the converter expects the following directory structure:
#
# your-jekyll-project/
View react-firebase-setup.md

React && Firebase Workshop

Contact Information

Prequisite Setup

  • A recent version of Node.js
  • npm install -g create-react-app
@jessejanderson
jessejanderson / the_abcs_of_otp.md
Last active October 16, 2022 09:53
The ABCs of OTP
View the_abcs_of_otp.md
@simonh1000
simonh1000 / DragTable.elm
Last active June 29, 2017 12:53
Draggable table
View DragTable.elm
module DragTable exposing (..)
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import Json.Decode as Json exposing (Decoder, Value)
import Dict exposing (Dict)
import List as L exposing (drop, take)
import Tuple
View Effective_Engineer.md

FWIW: I (@Rondy) am not the author of the content presented here, which is an outline from Edmond Lau's book. I've just copy-pasted it from somewhere and saved as a personal gist, before it got popular on newsnews.ycombinator.com. I don't remember where exactly the original source is from and neither could find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

@avh4
avh4 / RichText.elm
Last active October 14, 2016 18:49 — forked from Janiczek/RichText.elm
View RichText.elm
-- the type aliases would be private
type RichText
= RichText (List Line)
type alias Line =
{ left : List (Attributes, String)
, center : List (Attributes, String)
, right : List (Attributes, String)
@chalmagean
chalmagean / onSelect.elm
Last active December 22, 2016 06:21
Elm onSelect decoder
View onSelect.elm
-- Assuming we have a list of items in the model (type alias Model = { items : List Item }
-- where Item is a record like { id : Int, name : String }
-- this goes in the view and generates an html dropdown
select
[ onSelect ValueSelectedMsg ]
(List.map (\item -> option [ value (toString item.id) ] [ text item.name ]) model.items)
targetSelectedIndex : Json.Decoder Int
@klaftertief
klaftertief / reactiveconf-2016-lightning-talk.md
Last active December 7, 2017 21:17
An API search engine in Elm for Elm, proposal for a Lightning Talk at ReactiveConf 2016
View reactiveconf-2016-lightning-talk.md

An API search engine in Elm for Elm

Elm is a statically typed functional language that compiles to JavaScript. It's well-known for its developer experience: the compiler provides nice error messages, the package system enforces semantic versioning for all published packages and makes sure every exposed value or type has some documentation and type annotations.

View types.markdown

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.