- That working with a group of smart and well-informed developers is really enjoyable, but not sufficient to reliably make high-quality software (i don't know why not).
- How modern system administration is done, and a little about how it ought to be done.
- That large-scale automated CI, with dozens and dozens of slaves testing every conceivable aspect of the software in a short space of time, is possible and awesome.
- That if one day you don't feel like doing a proper job of something, or perhaps even finishing it at all, you can just tell everyone you're "focusing on delivering the business value", and it's fine.
- That the financial industry really is run just as badly as you feared.
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 python | |
""" | |
Conceptual complexity: the incidental complexity of the code is low, | |
because it directly realises the mathematical algorithm, whose intrinsic | |
complexity is, for the non-mathematical layman, about a cup of tea's | |
worth of scribbling on a notepad | |
Time complexity: you know, i have no idea; it's probably related to the | |
number of factors in the inputs, and the number of factors in common |
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 python | |
import sys | |
import itertools | |
def recording_in(d): | |
def recording(f): | |
def recording_f(*args): | |
result = f(*args) | |
d[args] = result |
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 python | |
import sys | |
labels = sys.argv[1:] | |
rows = map(lambda strings: map(int, strings), map(str.split, map(str.rstrip, sys.stdin.readlines()))) | |
def vote(row): | |
assert len(row) == len(labels) |
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
module Dollars where | |
import Test.HUnit | |
----------------------------------------------------- | |
-- parsing dollars | |
----------------------------------------------------- | |
parseDigit '0' = 0 | |
parseDigit '1' = 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
package com.youdevise; | |
import com.youdevise.Firmament.Air.Earth; | |
import java.io.Serializable; | |
public class Firmament { | |
public static class Air implements Serializable { | |
public static class Earth {} | |
} |
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
SUFFIXES = {1000: ['KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], | |
1024: ['KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']} | |
def approximate_size(size, a_kilobyte_is_1024_bytes=True): | |
"""Convert a file size to human-readable form. | |
Keyword arguments: | |
size -- file size in bytes | |
a_kilobyte_is_1024_bytes -- if True (default), use multiples of 1024, | |
if False, use multiples of 1000 |
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
2015-01-15 18:28:09.984 ERROR 18560 --- [ main] o.s.boot.SpringApplication : Application startup failed | |
java.lang.IllegalStateException: Error processing condition on org.springframework.boot.actuate.autoconfigure.ManagementServerPropertiesAutoConfiguration.managementServerProperties | |
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:185) | |
at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:58) | |
at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:102) | |
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:185) | |
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:148) | |
a |
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
diff --git a/commands/execute.go b/commands/execute.go | |
index d1a30ca..9d51506 100644 | |
--- a/commands/execute.go | |
+++ b/commands/execute.go | |
@@ -96,8 +96,8 @@ func Execute(c *cli.Context) { | |
signal.Notify(terminate, syscall.SIGINT, syscall.SIGTERM) | |
eventSource := &sse.EventSource{ | |
- Client: atcRequester.httpClient, | |
- CreateRequest: func() *http.Request { |
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
± |master ✗| → fly --atcURL=http://ci.initech.com:8080/ execute -c deploy.yml | |
2015/02/02 17:57:41 bad response when creating pipe: &{301 Moved Permanently 301 HTTP/1.1 1 1 map[Content-Length:[0] Content-Type:[text/plain; charset=utf-8] Location:[/api/v1/pipes] Date:[Mon, 02 Feb 2015 17:57:40 GMT]] 0xc208036e80 0 [] false map[] 0xc2080352b0 <nil>} | |
HTTP/1.1 301 Moved Permanently | |
Content-Length: 0 | |
Content-Type: text/plain; charset=utf-8 | |
Date: Mon, 02 Feb 2015 17:57:40 GMT | |
Location: /api/v1/pipes |
OlderNewer