Skip to content

Instantly share code, notes, and snippets.

@kmichel
kmichel / gist:ca8b8239944c8221d87d
Created April 20, 2015 13:38
The Power Of Love: Cupid's Revenge - List of events
- Lucky guys : two people ascending to hapiness, the worst !
- Looked the wrong way: falling in the endless pit while searching for a potential lover
- Lack of priorities : falling in the endless pit while already in love
- Good bye, my love: one of two mutual lovers falls in the endless pit
- Love triangle : someones loves someone who loves someone else who loves the first
- The third wheel : someone loves one of the two people ascending to hapiness
- Schadenfreude : someone loves someone who loves someone else who dies, well deserved !
- The enemy of my enemy : someone loves someone who loves someone else who loves someone else who dies
- Forever alone : the last one alive
@kmichel
kmichel / dot.cpp
Created January 26, 2014 21:57
Ugly custom operator
#include <iostream>
class DotOp {
};
class LhsDotOp {
public:
int value;
explicit LhsDotOp(int value) : value(value) {}
@kmichel
kmichel / install_google_cloud.sh
Created February 26, 2013 06:56
OSX setup script for Google Cloud for Data Crunchers tutorial at StrataConf
#!/usr/bin/env bash
set -e
echo '****** Installing BigQuery ******'
sudo easy_install bigquery
echo '****** Installing gcutil ******'
curl https://google-compute-engine-tools.googlecode.com/files/gcutil-1.7.1.tar.gz | tar xvzpf -
echo "export PATH=\${PATH}:${PWD}/gcutil-1.7.1" >> ~/.bash_profile
source ~/.bash_profile
gcutil help
echo '****** Installing gsutil ******'
import java.io.*;
import java.net.*;
import java.util.*;
import com.sun.net.httpserver.*;
public class Reddit implements Serializable {
public String title;
public URL url;
public int rating;
public int id;
public static String htmlentities(String s) {