Skip to content

Instantly share code, notes, and snippets.

@seanbarclay
seanbarclay / plethora-data.json
Last active November 29, 2020 08:11
testdata
"plethora-control": [
{
"date": "00:00",
"consumed": 2229,
"seen": 25136,
"conversion": 8.867759388924252,
},
{
"date": "01:00",
"consumed": 2120,
/*
Copyright IBM Corp. 2016 All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
Excerpt code from https://github.com/IBM-Blockchain/learn-chaincode/blob/master/finished/chaincode_finished.go...
func (t *SimpleChaincode) Invoke(stub *shim.ChaincodeStub, function string, args []string) ([]byte, error) {
fmt.Println("invoke is running " + function)
// Handle different functions
if function == "init" {
return t.Init(stub, "init", args)
} else if function == "write" {
return t.write(stub, args)
@seanbarclay
seanbarclay / Isotope - filtering with search field.markdown
Created June 26, 2016 04:46
Isotope - filtering with search field
{
_id: "_design/583b8b49866331bd709f397507512c5550022807",
_rev: "1-e53be256db498dc72715ef58a64017b4",
language: "query",
views: {
583b8b49866331bd709f397507512c5550022807: {
map: {
fields: {
properties.timestamp: "asc"
}
@seanbarclay
seanbarclay / gist:10343465
Created April 10, 2014 04:51
MBP fix: No sound out after wake up in Mavericks
$ sudo kextunload /System/Library/Extensions/AppleHDA.kext
$ sudo kextload /System/Library/Extensions/AppleHDA.kext
<filter id="InnerShadowExample">
<!-- Shadow Offset -->
<feOffset
dx='5'
dy='5'
/>
<!-- Shadow Blur -->
<feGaussianBlur
stdDeviation='3'