Skip to content

Instantly share code, notes, and snippets.

View vnglst's full-sized avatar
💭
Building 🪲

Koen van Gilst vnglst

💭
Building 🪲
View GitHub Profile
@vnglst
vnglst / Caddy.conf
Last active February 1, 2024 05:00
Caddy configuration files
# Upstart service for Caddy
# Save in /etc/init/caddy.conf
description "Caddy Server"
author "Koen van Gilst"
start on filesystem or runlevel [2345]
stop on shutdown
#not working yet, try again on 25/2
@vnglst
vnglst / destructuring.js
Last active February 15, 2016 10:38 — forked from mikaelbr/destructuring.js
Javascript examples
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => {
return [1, 2, 3];
@vnglst
vnglst / React-stateless.jsx
Last active February 15, 2016 10:38
React examples
// React stateless components examples
// Example based on egghead.io lesson 14
// https://egghead.io/lessons/react-building-stateless-function-components-new-in-react-0-14
// Stateless component definition as function
const UserList = ({users}) => (
<div>
{users.map(user => {
return <div>{user.name} - {user.type)</div>
})}

Keybase proof

I hereby claim:

  • I am vnglst on github.
  • I am ka (https://keybase.io/ka) on keybase.
  • I have a public key whose fingerprint is 0F3E FA52 69A4 48A9 2737 F0A2 7002 3488 303A CD6D

To claim this, I am signing this object: