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
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 |
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
-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). |
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
App.FilterController = Em.ArrayController.extend({ | |
loadNextPage: function() { | |
this.addObjects(App.Url.find({interval:'day'})) | |
} | |
}); |
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
{ | |
"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", |
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
import sys | |
import json | |
import urllib | |
import requests | |
def reddit(sub): | |
""" | |
Retrieve the json representation of the given subreddit |
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
{ | |
"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 |
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
cqlsh> ALTER KEYSPACE "Analytics" WITH strategy_class = NetworkTopologyStrategy; | |
Invalid syntax at line 1, char 16 | |
ALTER KEYSPACE "Analytics" WITH strategy_class = NetworkTopologyStrategy; | |
^ |
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
// 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 |
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
// 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 |
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
[{ | |
"url": "www.liveleak.com", | |
"media": {}, | |
"actions": { | |
"load": 379201, | |
"progress": null, | |
"play": null, | |
"hover": 117909, | |
"view": null | |
}, |
OlderNewer