No - not charts! Graphs are a data structure that are more than just the nodes and edges they contain: from mapping networks to representing arithmetic, writing chat-bots to inferring relationships, applying graphs to a problem can quite often provide an elegant solution. In this talk, Christopher will cover the basics of graphs as well as go over a few simple but fun examples of this versatile concept.
(echo "/^" && cat /etc/dictionaries-common/words | sed ':a;N;$!ba;s/\n/\|/g' && echo "$/") | sed ':a;N;$!ba;s/\n//g' |
function respond(array $data = null, $code, $message, array $headers = array()) { | |
header('HTTP/1.1 ' . $code . ' ' . $message); | |
header('Content-type: application/json'); | |
foreach ($headers as $k => $v) { | |
header("$k: $v"); | |
} | |
print json_encode($data, JSON_NUMERIC_CHECK); | |
exit; | |
} |
Verifying that +choult is my blockchain ID. https://onename.com/choult |
<?php | |
/** | |
* {@inheritdoc} | |
*/ | |
public function selectOption($select, $option) | |
{ | |
$session = $this->getSession(); | |
$page = $session->getPage(); | |
$field = $page->findField($select); |
<?php | |
class Word | |
{ | |
private $word = ''; | |
private $links = []; | |
public function __construct($word) { | |
$this->word = $word; | |
} |
Whether we’re an industry veteran or a newbie to a company, we all have to deal with the legacy system that No-one Knows, Just Works and Ain’t Broke so Don’t Fix It. But what happens when it does go wrong, or the server falls over, and suddenly that old single point of failure becomes a business priority? In this talk, Christopher will cover a variety of techniques to help you understand the cruft and ensure you can modernize it efficiently and without (much) fear.
Running throughout our code, from high level language through machine code and right down to the very silicon it runs on, the basic building blocks of our world are the humble 'true' and 'false'. But how much do you really know about what are essentially the atoms of computing? In this talk aimed at new and experienced developers alike, Christopher will uncover the truth of the simple boolean, from its history and application in computer science to techniques for simplifying and clarifying your logic to make your code more understandable and efficient.
NB: I'll submit with 'I' instead of 'Christopher' but I prefer the third person for published text
<?php | |
class Timeout extends \RuntimeException { | |
} | |
function setRequestTimeout($timeout) { | |
$start = microtime(true); | |
register_tick_function(function () use ($start, $timeout) { | |
print microtime(true) - $start . " "; |
input: | |
broker: | |
copies: 1 | |
inputs: | |
- http_client: | |
url: "https://mas.to/api/v1/streaming/public" | |
stream: | |
enabled: true | |
reconnect: true | |
codec: lines |