Skip to content

Instantly share code, notes, and snippets.

Avatar

Philipp Keller philippkeller

View GitHub Profile
View getting-started-with-superset-airbnb-data-exploration-platform.md

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 Sep 14, 2016 — forked from anonymous/playground.rs
Rust code shared from the playground
View merge-slice-itertools.rs
/// 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 Sep 13, 2016 — forked from anonymous/playground.rs
Rust code shared from the playground
View array-join.rs
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 Sep 12, 2018 — forked from behrends/private.xml
Karabiner Umlauts (alt+u ⇒ ü, etc.)
View private.xml
<?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 Aug 29, 2015 — forked from blockloop/Gruntfile.js
Setup for auto reload (livereload) changes of coffeescript in hexo
View Gruntfile.coffee
module.exports = ->
@initConfig
watch:
sourceFiles:
options:
livereload: true
files: ['themes/**','scaffolds/**','scripts/**','source/**','!source/**/site.coffee','app.js']
tasks: ['shell:hexoGen']
You can’t perform that action at this time.