Skip to content

Instantly share code, notes, and snippets.

View ajcronk's full-sized avatar

Andrew Cronk ajcronk

View GitHub Profile
0x85Ad9d1FCF50b72255E4288dcA0ad29f5f509409
import React, { Component } from 'react';
import FlipMove from 'react-flip-move';
class App extends React.Component {
constructor(props) {
super(props);
this.handeClick = this.handeClick.bind(this);
this.state = {
items:[
{ id:"Item1", visible: true },
public static bool sendAuthorizedHttpRequest(string server, string functionUrl, string command, string apiKey, string apiSecret, byte[] data)
{
try
{
using (var client = new System.Net.WebClient())
{
AddAuthroizationHeader(client, apiKey, apiSecret);
client.UploadData(server + functionUrl, command, data);
}
return true;
Verifying that +ajcronk is my openname (Bitcoin username). https://onename.io/ajcronk
@ajcronk
ajcronk / read-sample.cs
Created December 20, 2012 14:24
TempoDB .NET read and write samples
var client = new Client.ClientBuilder()
.Key("your-api-key")
.Secret("your-api-secret")
.Build();
static DateTime startDate = new DateTime(2012, 1, 1);
static DateTime endDate = new DateTime(2013, 1, 1);
static string seriesKey = "test-key"
/*
@ajcronk
ajcronk / batch-import.py
Created August 15, 2012 23:19
Python CSV batch import example
import dateutil.parser
import optparse
from Queue import Queue
import tempodb
from threading import Thread
class Worker(Thread):
"""Thread executing tasks from a given tasks queue"""
def __init__(self, tasks):
Thread.__init__(self)