Skip to content

Instantly share code, notes, and snippets.

View lulu-berlin's full-sized avatar
🏠

Lulu lulu-berlin

🏠
  • Berlin
View GitHub Profile
@lulu-berlin
lulu-berlin / index.html
Last active February 4, 2018 21:10
Fibonacci Sounds
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fibonacci Sounds</title>
</head>
<body>
<button id="play" tabindex="1">play</button>
<script type="text/javascript">
@lulu-berlin
lulu-berlin / index.html
Last active January 8, 2018 00:40
Cards with symbols
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Cards with symbols</title>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
</head>
<body>
<input type="number" value="3" step="1" min="3" max="30"></input>
<div id="result"></div>
<script>
<!DOCTYPE html>
<html>
<head>
<title>Functional Programming</title>
<meta charset="utf-8">
<style>
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);
#!/usr/bin/env bash
find ${HOME} -maxdepth 1 -type d -exec du -sh {} \; | sort -h
@lulu-berlin
lulu-berlin / .block
Last active November 12, 2017 01:03
Cheesie Cake v4.0
license: cc-by-4.0
border: no
height: 800
@lulu-berlin
lulu-berlin / .block
Created November 11, 2017 23:30
Cheese Cake 3.0
license: cc-by-4.0
border: no
height: 800
@lulu-berlin
lulu-berlin / .block
Created November 11, 2017 23:06
Cheese Cake v2.0
license: cc-by-4.0
border: no
height: 800
@lulu-berlin
lulu-berlin / .block
Last active November 11, 2017 22:59
A Cheesie Website for a Cheesie Mood
license: cc-by-4.0
border: no
height: 800
0xc5ef1bce57783.toString(36).replace(0, ' ').replace(/\b\w/g, s => s.toUpperCase())
@lulu-berlin
lulu-berlin / harmonic-numbers.js
Last active August 5, 2017 17:15
Harmonic numbers
/*
* A minimalist implementation of a harmonic number calculation function in ES6
*
* harmonicNumber(n: number) => number
*
* returns the sum of: 1 + 1/2 + 1/3 + ... + 1/n
*
* It assumes that n is an integer greater than zero.
*
* See: Donald E. Knuth, The Art of Programming, vol. 1, §1.2.7