I tried to build Ceph with the Clang (3.4) compiler. The only issue preventing the build to finish was a "VLA of non-POD type" usage which I fixed here:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.6 | |
import pycurl, json | |
user = "YOURTWITTERNAME" | |
password = "YOURTWITTERPASSWORD" | |
streamurl = "https://stream.twitter.com/1/statuses/filter.json" | |
track = "locations=-74,40,-73,41" # nyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stddef.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "dablooms.h" | |
int main() { | |
counting_bloom_t* bloom = NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns leap-clojure.core | |
(:import (com.leapmotion.leap Controller Listener Pointable)) | |
(:gen-class)) | |
(defn frame-handler | |
"Decides what to do with new frame data from the device" | |
[^Controller controller] | |
(let [frame (.frame controller) | |
box (.interactionBox frame) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns nlp.core | |
(:require [opennlp.nlp :as nlp] | |
[opennlp.tools.filters :as filters] | |
[net.cgrand.enlive-html :as html])) | |
(def ^:dynamic *base-url* "https://news.ycombinator.com") | |
;; get models from http://opennlp.sourceforge.net/models-1.5/ | |
(def tokenize (nlp/make-tokenizer "models/en-token.bin")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Given a collection of numbers, find the longest monotonic prefix (ascending or descending); | |
* e.g.: l-m-prefix [3 2 1 2 3 4] => [3 2 1] | |
*/ | |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <functional> | |
#include <iterator> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstddef> | |
#include <functional> | |
#include <algorithm> | |
#include <iterator> | |
#include <limits> | |
#include <iostream> | |
#include <string> | |
// g++ -Wall -Wextra -pedantic -std=c++11 count_min.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <iterator> | |
#include <algorithm> | |
#include <fstream> | |
#include <functional> | |
#include "tbb/task_scheduler_init.h" | |
#include "tbb/blocked_range.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <iterator> | |
#include <algorithm> | |
#include <mutex> | |
#include <thread> | |
#include "tbb/task_scheduler_observer.h" | |
#include "tbb/task_scheduler_init.h" | |
#include "tbb/blocked_range.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef BLOCKING_QUEUE_H | |
#define BLOCKING_QUEUE_H | |
#include <list> | |
#include <mutex> | |
#include <condition_variable> | |
#include <iterator> | |
template <typename T> |
OlderNewer