Skip to content

Instantly share code, notes, and snippets.

@leffuy
leffuy / fix_err_handle.patch
Created May 26, 2018 22:42
Holo Dao Patch
diff --git a/dao/dna/dna.json b/dao/dna/dna.json
index fa0924a..d538521 100644
--- a/dao/dna/dna.json
+++ b/dao/dna/dna.json
@@ -23,6 +23,9 @@
"Name": "owned",
"Description": "port of owned contract",
"CodeFile": "owned.js",
+ "Config": {
+ "ErrorHandling": "returnErrorValue"
@leffuy
leffuy / README.md
Created May 26, 2018 22:38
Temp_Repo_HOLO

Holochain Readme

[{"ticker":"DMS.SELLING","last_qty":"10","last_price":"0.009272","latest":"10@0.009272","bid":"0.009272","ask":"0.009553","24h_low":"0.009262","24h_avg":"0.00956","24h_high":"0.009796","24h_vol":"1237@11.8","last_24h_avg":"0.00989","7d_low":"0.0092","7d_avg":"0.01132","7d_high":"0.01345","7d_vol":"13460@152.4","30d_low":"0.0092","30d_avg":"0.01698","30d_high":"0.02646","30d_vol":"116596@1980.1","total_vol":"4189.03266400","type":"FUND","yes_votes":"8","no_votes":0}]
^- That is the raw JSON
"ticker" "last_qty" etc etc are all "KEY'S" so the format for BTCTasset() is in the form
BTCTasset("assetName","assetKey")
@leffuy
leffuy / gist:5550766
Created May 9, 2013 21:29
Javascript Function to return some data from a json file...using D3
function agric() {
var d;
d3.json("AgricBullets.json", function(water){
d = water;
});
return d;
}
4036 Wetherburn Way
Norcross, GA 30092
(p) 678 - 578 - 7117
@leffuy
leffuy / CosmosTests.c
Created February 25, 2012 02:42
Hashmap tests
//Deprecated. The hashmap implementation started failing simple use cases.
#include <stdio.h>
#include <malloc.h>
#include <SDL.h>
#include "hashmap.h"
//map_t CosmosMap;
struct Cosmos{
@leffuy
leffuy / functionPointerSandbox.c
Created February 11, 2012 08:23
Function Pointer Tests
#include <stdio.h>
#include <stdarg.h>
static int playerX = 0;
static int playerY = 0;
struct functionParams{
int dX;
int dY;
http://twitter.com/#!/OJessicaNigri/status/156225505631289345/photo/1/large
Development Procedure
View the development cycle from the scope of 2 project teams.
One team for content development the other for platform development.
Both of these teams are extremely important, and cannot exist without each other.
Without a platform, generated content cannot be deployed, without content, the
platform is just a giant useless machine.
Projects:
@leffuy
leffuy / MasterControlImpl.h
Created November 7, 2011 23:26
Additions made from work
//Class: Master Control Implementation
//Author: Stevie
//Description: Use this class as the main implementation of the master control
//and aggregate mini-kernel. Place extensions here if needed.
#include <vector.h>
class MasterControlImpl: public MasterControl{
public:
//Queue control