Skip to content

Instantly share code, notes, and snippets.

View philippkeller's full-sized avatar

Philipp Keller philippkeller

View GitHub Profile

Getting Started With Superset: Airbnb’s data exploration platform

These instructions are for Amazon Linux Version 2

Update Python and PIP versions on EC2 (Amazon AMI)

sudo yum update -y
sudo yum install python3 -y
@philippkeller
philippkeller / merge-slice-itertools.rs
Last active September 14, 2016 13:36 — forked from anonymous/playground.rs
Rust code shared from the playground
/// merges an array with ordinal numbers into a string
extern crate itertools;
use itertools::Itertools;
fn join_int_slice(slice:&[u8]) -> String {
slice.iter().map(|&a| a as char).join("")
}
@philippkeller
philippkeller / array-join.rs
Created September 13, 2016 20:45 — forked from anonymous/playground.rs
Rust code shared from the playground
use std::fmt;
pub trait Join {
fn join(&self) -> String;
}
impl<T: fmt::Display> Join for [T] {
fn join(&self) -> String {
self.iter()
.map(|a| format!("{}", a))
@philippkeller
philippkeller / private.xml
Last active September 12, 2018 19:48 — forked from behrends/private.xml
Karabiner Umlauts (alt+u ⇒ ü, etc.)
<?xml version="1.0"?>
<root>
<item>
<name>Easy access for Umlauts</name>
<identifier>private.easy_umlaut_access</identifier>
<autogen>
--KeyToKey--
KeyCode::A, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L,
KeyCode::U, ModifierFlag::OPTION_L, KeyCode::A, ModifierFlag::SHIFT_L
</autogen>
@philippkeller
philippkeller / Gruntfile.coffee
Last active August 29, 2015 14:02 — forked from blockloop/Gruntfile.js
Setup for auto reload (livereload) changes of coffeescript in hexo
module.exports = ->
@initConfig
watch:
sourceFiles:
options:
livereload: true
files: ['themes/**','scaffolds/**','scripts/**','source/**','!source/**/site.coffee','app.js']
tasks: ['shell:hexoGen']