Skip to content

Instantly share code, notes, and snippets.

Craig Pickard Craigson

Block or report user

Report or block Craigson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Craigson
Craigson / wsClient.js
Created Apr 24, 2019
Update to wbbsocket client
View wsClient.js
const WebSocket = require('ws');
const maxApi = require('max-api');
const ws = new WebSocket('ws://localhost:7475');
const MAX_TAGS = 30;
const MIN_TAGS = 3;
const DELAY = 2000;
// const fromFile = require('./test.json')
// const { user } = fromFile
View keybase.md

Keybase proof

I hereby claim:

  • I am craigson on github.
  • I am craigson (https://keybase.io/craigson) on keybase.
  • I have a public key ASAm7mbLa3CCDC0yhh2lpIrBdJbDXS92HIfUkVPlFBsW7wo

To claim this, I am signing this object:

@Craigson
Craigson / keybase_proof
Created Dec 12, 2017
Proving my KeyBase acc
View keybase_proof
### Keybase proof
I hereby claim:
* I am craigson on github.
* I am craigson (https://keybase.io/craigson) on keybase.
* I have a public key ASByau5sBml_ya4TBlBvGbsNDQiX1_690eoeKTGg9aZtKQo
To claim this, I am signing this object:
@Craigson
Craigson / gist:063475fbe5c95230998067610ec9d439
Created Nov 9, 2017
Verifying my Blockstack ID is secured with the address 1kzVHEBPuAvPJu58tKbYvAB5Mkew9Y4YK https://explorer.blockstack.org/address/1kzVHEBPuAvPJu58tKbYvAB5Mkew9Y4YK
View gist:063475fbe5c95230998067610ec9d439
Verifying my Blockstack ID is secured with the address 1kzVHEBPuAvPJu58tKbYvAB5Mkew9Y4YK https://explorer.blockstack.org/address/1kzVHEBPuAvPJu58tKbYvAB5Mkew9Y4YK
@Craigson
Craigson / JsonStudy.cpp
Created Nov 8, 2017
Basic example of working with a ci::JsonTree
View JsonStudy.cpp
/*
{
"results" : [
{
"index": 0,
"description" : "cats are here",
"head" : {
"posterior" : 0.0,
"anterior" : 0.0
},
View gist:a645fcdf4498ccd9322cd4b510f7ce9a
Verifying my Blockstack ID is secured with the address 1kzVHEBPuAvPJu58tKbYvAB5Mkew9Y4YK https://explorer.blockstack.org/address/1kzVHEBPuAvPJu58tKbYvAB5Mkew9Y4YK
View gist:8b3506d6e6dbe99bc22ecf754fbd9117
Verifying my Blockstack ID is secured with the address 1kzVHEBPuAvPJu58tKbYvAB5Mkew9Y4YK https://explorer.blockstack.org/address/1kzVHEBPuAvPJu58tKbYvAB5Mkew9Y4YK
@Craigson
Craigson / concurrent_buffer.cpp
Last active Jul 24, 2017
concurrent_buffer.cpp
View concurrent_buffer.cpp
ConcurrentCircularBuffer<Surface8u> *mFrameQueue;
std::thread mWorkerThread;
setup(){
mFrameQueue = new ConcurrentCircularBuffer<Surface8u>(90);
mWorkerThread = std::thread([&] {
console() << "CREATING WORKER THREAD " << std::endl;
static int kNextFrame = 0;
@Craigson
Craigson / kinectrecorder.cpp
Last active May 17, 2017
a simple motion tracking app for kinect and Cinder
View kinectrecorder.cpp
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/Rand.h"
#include <fstream>
#include "Kinect2.h"
#include <iostream>
#include "cinder/Log.h"
View PixelMirror.cpp
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/Surface.h"
#include "cinder/Capture.h"
#include "cinder/Camera.h"
#include "cinder/Text.h"
#include "cinder/Log.h"
using namespace ci;
You can’t perform that action at this time.