Skip to content

Instantly share code, notes, and snippets.

View line-o's full-sized avatar
🌱
weeding the garden

Juri Leino line-o

🌱
weeding the garden
View GitHub Profile

Keybase proof

I hereby claim:

  • I am line-o on github.
  • I am line0 (https://keybase.io/line0) on keybase.
  • I have a public key whose fingerprint is 9620 445B D7C6 7742 66CD 11C5 FDF1 76EB 91B4 4D74

To claim this, I am signing this object:

@line-o
line-o / flatten-multi.php
Last active August 29, 2015 13:57
flatten multi-dimensional array in PHP
<?php
$multiDim = array(
array('one', 'two', 'three'),
array('four', 'five', 'six'),
);
$flatten = function ($list, $next) use (&$flatten) {
if (is_array($next)) {
return array_reduce($next, $flatten, $list);
}
@line-o
line-o / salmiakki.md
Last active August 29, 2015 14:12
Salmiakki Recipe

Salmiakki

Licorice Liquor

Ingredients

  • Kossu, Vodka, Klarer or any other clear, neutral tasting liquor
  • Hot Turkish Pepper candy ("Tyrkisk Pejber" or "Turkin Pippuri")
  • A clean, empty bottle with an opening large enough that your candy can be dropped in

Try to get a hand on the original scandinavian, hot version ("Tyrkisk Pejber" or "Turkin Pippuri" with three flames on the packaging).

@line-o
line-o / index.html
Last active August 29, 2015 14:15 — forked from jsundram/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>dc.js multi-line chart attempt</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/dc/1.7.3/dc.css"/>
</head>
@line-o
line-o / index.html
Last active August 29, 2015 14:15 — forked from jrideout/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>dc.js multi-line chart attempt</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/dc/1.7.3/dc.css"/>
</head>
@line-o
line-o / config.json
Last active August 29, 2015 14:20
Example Player Configuration
{
"sources": [
{
"src": "http://feeds.soundcloud.com/stream/198668812-thoughtworks-growing-technology-in-africa.mp3",
"type": "audio/mpeg"
}
],
"poster": "http://cdn.thoughtworks.com/profiles/profile_image_profile-avatar-577f12c1518b903d8a2a2e1f020f2595.jpeg",
"title": "The Growth of Technology in Africa",
"permalink": "http://www.thoughtworks.com/de/insights/blog/podcast-growth-technology-africa",
@line-o
line-o / config.json
Created June 7, 2015 16:07
Beispielkonfiguration für ZfW_015 - Mensch-Tier-Beziehungen
{
"poster": "http://www.uibk.ac.at/podcast/zeit/poster/zfw.png",
"title": "ZfW_015 – Mensch-Tier-Beziehungen",
"permalink": "",
"sources": [
{
"type": "audio/mp4", "src":"http://www2.uibk.ac.at/downloads/c115/zeit/mp4/zfw015.m4a"
},
{
"type":"audio/mpeg", "src":"http://www2.uibk.ac.at/downloads/c115/zeit/2015/zfw015.mp3"
@line-o
line-o / config.json
Created September 16, 2015 14:24
Example Podcast Episode Configuration for mirash.herokuapp.com
{
"poster": "https://mirash.herokuapp.com/static/img/coverimage.png",
"title": "Feb. 12, morning",
"permalink": "https://mirash.herokuapp.com/examples/which-format/index.html",
"subtitle": "Mehr text zu dieser Episode",
"publicationDate": "2004-02-12T15:19:21+00:00",
"license": {
"name": "Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Germany License",
"url": "http:\/\/creativecommons.org\/licenses\/by-nc-sa\/3.0\/de\/deed.en"
},
@line-o
line-o / node-ASCIIp.js
Created May 25, 2011 07:48
tiny (nano) module for ASCII pattern output
/**
* node-ASCIIp
* @author: contact@line-o.de
*
* Example:
* var write = require('./node-ASCIIp');
* console.log(write(' _.*._ ',12,5));
*/
module.exports = ASCIIp;
@line-o
line-o / fi.json
Created August 30, 2011 09:29 — forked from cramforce/de.json
lang.json
{
"locale": "fi",
"text": {
"#authors": [
{
"name": "Juri Leino",
"screen-name": "line-o"
}
],
"tweet": {