Skip to content

Instantly share code, notes, and snippets.

View johnhaley81's full-sized avatar

John Haley johnhaley81

View GitHub Profile
@johnhaley81
johnhaley81 / payload_wrapper.h
Created February 27, 2015 19:17
`uv_async_init`
#ifndef PAYLOAD_WRAPPER_H
#define PAYLOAD_WRAPPER_H
#include <v8.h>
#include <node.h>
#include "nan.h"
using namespace v8;
using namespace node;
@johnhaley81
johnhaley81 / callback.cc
Last active August 29, 2015 14:16
`uv_queue_work` error
struct TransferProgressBaton {
const git_transfer_progress * stats;
void * payload;
uv_work_t req;
int result;
Persistent<Object> promise;
bool done;
};
@johnhaley81
johnhaley81 / bash output
Created February 5, 2015 18:22
Status errors on "untracked" branch
johnhosx :: ~/Development/nodegit ‹untracked*› » npm test
> [email protected] test /Users/johnh/Development/nodegit
> npm run lint && npm run cov
> [email protected] lint /Users/johnh/Development/nodegit
> jshint lib test/tests examples lifecycleScripts
@johnhaley81
johnhaley81 / diff_options.cc
Created February 5, 2015 16:08
diff_options pre libgit2_supplement.json change
// This is a generated file, modify: generate/templates/struct_content.cc.
#include <nan.h>
#include <string.h>
#include <chrono>
#include <thread>
#include <execinfo.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
{
"GIT_EXTERN(": {
"js": "GIT_EXTERN("
},
"char": {
"js": "String",
"cpp": "String"
},
"char *": {
"js": "String",
**** Logging started Tue Aug 19 2014 19:00:56 ****
Channel modes: [+cnt]
Channel created: Thu May 08 2014 18:46:09
Users: [Total: 5, Normal: 5]
<johnhaley81> Hola
<tbranyen> hey johnhaley81
<tbranyen> just unloaded a bunch of information on maxkorp
<johnhaley81> Nice :)
Quit: maxkorp [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]