Skip to content

Instantly share code, notes, and snippets.

@cleishm
cleishm / income_vs_expenditure.cyp
Last active August 29, 2015 13:56
Import Data from City of Oakland Financial Disclosures
MATCH (f:Candidate)
MATCH (f)<-[n:CONTRIBUTED_TO]-()
WITH f, sum(n.amount) AS received WHERE received > 0
MATCH (f)-[n:PAYED]->()
WITH f, received, sum(n.amount) AS spent
RETURN f.name AS candidate, spent, received
@cleishm
cleishm / neoites_wanting_atom.cyp
Last active August 29, 2015 13:56
Neoites who'd like Atom Editor invites
= Neoites who'd like Atom Editor invites
:neo4j-version: 2.0.0
:author: Chris Leishman
:twitter: @cleishm
//setup
//hide
[source,cypher]
----
### Keybase proof
I hereby claim:
* I am cleishm on github.
* I am cleishm (https://keybase.io/cleishm) on keybase.
* I have a public key whose fingerprint is 80F6 D6B0 D90C 6747 7533 44CA B5A9 E81B 565E 89E0
To claim this, I am signing this object:
public class Person {
String firstName;
String lastName;
public final boolean equals(Object other) {
if (this == other) {
return true;
}
if (other == null) {
return false;
@cleishm
cleishm / sodium-jnr.py
Last active May 28, 2019 21:45
JNR bindings generator for sodium
#!/usr/bin/env python
import sys
# This is not required if you've installed pycparser into
# your site-packages/ with setup.py
sys.path.extend(['.', '..'])
from pycparser import c_parser, c_ast, parse_file
class JNRRender(c_ast.NodeVisitor):
diff --git a/main/radio.cpp b/main/radio.cpp
index 27893f0..06ae8b1 100644
--- a/main/radio.cpp
+++ b/main/radio.cpp
@@ -4,10 +4,9 @@
#include "radio.h"
namespace {
- RTC_DATA_ATTR std::optional<SPISettings> kSpi;
- RTC_DATA_ATTR std::optional<ArduinoHal> kHal;