Skip to content

Instantly share code, notes, and snippets.

DDFS_BLOB_REPLICAS = 1
DDFS_DATA = /opt/disco/ddfs
DDFS_GC_INITIAL_WAIT =
DDFS_GET_MAX = 3
DDFS_PARANOID_DELETE =
DDFS_PUT_MAX = 3
DDFS_PUT_PORT = 8990
DDFS_READ_TOKEN = None
DDFS_ROOT = /opt/disco/ddfs
DDFS_TAG_MIN_REPLICAS = 1
-define(SECOND, 1000).
-define(MINUTE, (60 * ?SECOND)).
-define(HOUR, (60 * ?MINUTE)).
-define(DAY, (24 * ?HOUR)).
-define(MB, (1024 * 1024)).
% Maximum length of tag/blob prefix
-define(NAME_MAX, 511).
App.FilterController = Em.ArrayController.extend({
loadNextPage: function() {
this.addObjects(App.Url.find({interval:'day'}))
}
});
{
"provider_url": "http://arstechnica.com",
"description": "No foolin'-Tesla Motors says it's now in the black. Since its initial public offering in 2010, the company has yet to turn a profit. But as of this writing, Tesla's stock price is up nearly 20 percent. It's currently hovering around $45 per share, which helped lead to this 2013 Q1 of profit.",
"safe": true,
"provider_display": "arstechnica.com",
"related": [{
"score": 0.942794919013977,
"description": "March 31, 2013 Tesla Motors announced today that sales of its Model S vehicle exceeded the target provided in the mid-February shareholder letter. As customers who note their Model S serial number this weekend will realize, vehicle deliveries (sales) exceeded 4,750 units vs. the 4,500 unit prior outlook.",
"title": "Tesla Model S Sales Exceed Target | Press Releases | Tesla Motors",
"url": "http://www.teslamotors.com/about/press/releases/tesla-model-s-sales-exceed-target",
@JohnEmhoff
JohnEmhoff / demo.py
Last active December 15, 2015 16:09
Quick demo of some new NLP features in the Embedly API
import sys
import json
import urllib
import requests
def reddit(sub):
"""
Retrieve the json representation of the given subreddit
@JohnEmhoff
JohnEmhoff / gist:5591773
Created May 16, 2013 13:35
Full Contact example call
{
"status": 200,
"likelihood": 0.89,
"requestId": "87a2942c-73db-4c04-bb0a-d243d824c2c8",
"photos": [{
"typeName": "Twitter",
"type": "twitter",
"typeId": "twitter",
"url": "https://d2ojpxxtu63wzl.cloudfront.net/static/c9084e23b4f398c7b95d384e220d94e3_80648ca870dd5e8371f1f1ad3eea30e26588792d325f50a98598ece0c04d4478",
"isPrimary": true
cqlsh> ALTER KEYSPACE "Analytics" WITH strategy_class = NetworkTopologyStrategy;
Invalid syntax at line 1, char 16
ALTER KEYSPACE "Analytics" WITH strategy_class = NetworkTopologyStrategy;
^
// colorwheel demo for RGBmatrixPanel library.
// Renders a nice circle of hues on a 32x32 RGB LED matrix.
#include <Adafruit_GFX.h> // Core graphics library
#include <RGBmatrixPanel.h> // Hardware-specific library
// If your 32x32 matrix has the SINGLE HEADER input,
// use this pinout:
#define CLK 8 // MUST be on PORTB!
#define OE 9
// colorwheel demo for RGBmatrixPanel library.
// Renders a nice circle of hues on a 32x32 RGB LED matrix.
#include <Adafruit_GFX.h> // Core graphics library
#include <RGBmatrixPanel.h> // Hardware-specific library
// If your 32x32 matrix has the SINGLE HEADER input,
// use this pinout:
#define CLK 8 // MUST be on PORTB!
#define OE 9
[{
"url": "www.liveleak.com",
"media": {},
"actions": {
"load": 379201,
"progress": null,
"play": null,
"hover": 117909,
"view": null
},