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
{ | |
"id": "/my-app", | |
"groups": [{ | |
"id": "databases", | |
"apps": [{ | |
"id": "redis", | |
"container": { | |
"type": "DOCKER", | |
"docker": { | |
"image": "dockerfile/redis", |
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
# Add optional parameters to a decorator. | |
# | |
# Usage: | |
# | |
# Start with a normal decorator without parameters, e.g. | |
# | |
# def decorator(f): | |
# ... | |
# | |
# Add additional parameters with default value and use @optionally_parametrized_decorator, e.g. |
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
var _ = require("underscore/underscore.js"); | |
replicas=3; | |
seedlist=_.range(replicas) | |
.map(function(r) {return r+1}) | |
.map(function(r) {return "r" + r + ".tweventy.mongo.service.dc1.consul"}) | |
.join() | |
console.log(JSON.stringify({ | |
"id": "/mongo", |
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
"use strict"; | |
/** @jsx React.DOM */ | |
var React = require("react/addons"); | |
module.exports = React.createClass({displayName: "Pie", | |
propTypes: { | |
data : React.PropTypes.array.isRequired, | |
innerRadius: React.PropTypes.number, |
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
-----BEGIN PGP MESSAGE----- | |
owF1Un1QVFUUX1ilhREwIEsQpIVKa1vefZ/3Mc4QEmQzNBEgCSHr+7iPfXzswnu7 | |
wA4BJYzgCEj4UTalTWkRWjFGmZoI0kQIQiUjTIOGZiFREDkhtc3YewxN1kz3r3vu | |
+Z3f/f3OOS2BRoPJJ9U+MXdo30+Ez8AUb9gcGfZypZl3ih5zfKVZKJKRw6XfHFwx | |
MsebC5GH51RklZ3RDqeIrAVq9BLGYi5Diio7HRoKszJWxlxl0eF6sSQ78pFSosg6 | |
lxlQJEMjBuI0LgBECDzBYCwlIlKgIcIkwEoshQSC0CjtTtX1r1/Ni5w2WdReySQa | |
JmMpgE1hqeSkRbx7MYFDgcYoiDMizzIEEgSMxBiJ5wDFYTq/DlSRsmRJdblcqi62 | |
GCmFRcimOJ2LjgWXrOcBiTMszQKAaXI41a4bwFkERcBDHEcSoHmIeElEHA4gTUAc | |
sTggJYqDmAAxHGAQYwmRIAQoMEggSZLDaAmQCNfawCOC5hkgiiLAOUaQKMRINMEB |
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 _XSERVER64 | |
#include <X11/X.h> | |
#include <X11/Xproto.h> | |
#include <xorg/misc.h> | |
#include <xorg/extnsionst.h> | |
#include <xorg/dixstruct.h> | |
int main(int argc, char **argv) { | |
printf("%d\n", sizeof(Mask)); |
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
goroutine 29 [running]: | |
main.func·005() | |
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/contrib/mesos/cmd/km/km.go:36 +0x1d2 | |
created by main.main | |
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/contrib/mesos/cmd/km/km.go:39 +0x34 | |
goroutine 1 [select (no cases), 2 minutes]: | |
k8s.io/kubernetes/cmd/kubelet/app.(*KubeletServer).Run(0xc208298700, 0xc208298a80, 0x0, 0x0) | |
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubelet/app/server.go:487 +0x94d | |
k8s.io/kubernetes/contrib/mesos/pkg/executor/service.(*KubeletExecutorServer).runKubelet(0xc20829c240, 0xc208041d40, 0xc208290230, 0xc208041ce0, 0xc208035110, 0xcd, 0xc20810bf60, 0x0, 0x0) |
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
Build 'OSS :: Kubernetes Mesos :: 5 - Conformance Tests' #768 | |
Started 'Fri Nov 27 16:00:14 UTC 2015' on 'EC2-i-4d9265fb-1' by 'Stefan Schimanski (sttts)' | |
Finished 'Fri Nov 27 16:42:06 UTC 2015' with status 'NORMAL Tests passed: 72, ignored: 102' | |
TeamCity URL https://teamcity.mesosphere.io/viewLog.html?buildId=82134&buildTypeId=Oss_KubernetesMesos_ConformanceTests | |
TeamCity server version is 9.1.4 (build 37293) | |
[16:00:12]i: TeamCity server version is 9.1.4 (build 37293) | |
[16:00:12]W: bt377 (41m:53s) | |
[16:00:13] : Collecting changes in 1 VCS root | |
[16:00:13] : [Collecting changes in 1 VCS root] VCS Root details |
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
tell application id "OFOC" | |
tell default document | |
set today to current date | |
set lstTasks to flattened tasks where ((flagged is true and blocked is false) or (due date is not missing value and due date < today)) and completed is false | |
repeat with oTask in lstTasks | |
set theName to name of oTask | |
set theId to id of oTask | |
my notify(theName, "", "omnifocus:///task/" & theId, theId) | |
end repeat | |
end tell |
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
tell application "OmniFocus" | |
if quick entry of front document is visible then | |
set theSelectedItems to selected trees of quick entry | |
else | |
tell front document | |
tell (first document window whose index is 1) | |
set theSelectedItems to selected trees of content | |
if ((count of theSelectedItems) ≠ 1) then | |
-- try sidebar selection | |
set theSelectedItems to selected trees of sidebar |
OlderNewer