Skip to content

Instantly share code, notes, and snippets.

View kw217's full-sized avatar

Keith Wansbrough kw217

View GitHub Profile
[package]
name = "repro"
version = "0.1.0"
authors = ["Keith Wansbrough <Keith.Wansbrough@metaswitch.com>"]
[dependencies]
error-chain = "0.10"
@kw217
kw217 / lib.rs
Created June 2, 2017 11:09
Failing example - error_chains can't cope with doc comments on links
//! Test crate
#![warn(missing_docs)]
#[macro_use]
extern crate error_chain;
/// Root errors
pub mod errors {
error_chain!{
links {
@kw217
kw217 / nullsinmv.txt
Last active April 3, 2018 12:33
Odd behaviour of Cassandra MVs in Cassandra 3.0.7.1159
# Output of DESCRIBE for the relevant view:
CREATE MATERIALIZED VIEW edison.lus_subscriber_phone AS
SELECT phone, id, n, revision
FROM edison.scs_subscriber
WHERE phone IS NOT NULL AND id IS NOT NULL AND n IS NOT NULL
PRIMARY KEY (phone, id, n)
WITH CLUSTERING ORDER BY (id ASC, n ASC)
AND bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'NONE', 'rows_per_partition': 'NONE'}
@kw217
kw217 / AidanBirthday10.ino
Created September 16, 2013 21:55
Happy 10th birthday Aidan!
// Arduino Uno simulator with Morse Code.
// for Aidan's birthday party September 2013.
// http://gurunoia.lochan.org/blog/2013/09/arduino-cake/
// Keith Wansbrough <keithw@lochan.org>
// Dot length in milliseconds.
const int dot = 120;
// Pins of various LEDs.
const int pinpower = 3;