Skip to content

Instantly share code, notes, and snippets.

View diego-carrera's full-sized avatar

Diego Carrera diego-carrera

View GitHub Profile
@diego-carrera
diego-carrera / snippetsdialog.js
Created April 10, 2012 22:54
Cargar Formas en un dialog de jqueryui
$('a.form-dialog').live('click', function(){
$('<div id="form-dialog-container"></div>').dialog({
modal:true,
title:$(this).attr('title'),
autoOpen:false,
buttons:{
Cancelar:function(){
$(this).dialog('close'); $('.ui-dialog, #form-dialog-container').remove();
},
Aceptar:function(){
@diego-carrera
diego-carrera / gist:3702201
Created September 11, 2012 21:27
JQuery Deferred Post Example
var postImages = function() {
clearInterval(camInterval);
var tasks = [];
var done = 0;
$('#ImageDataContainer textarea').each(function(){
var imgData = $(this).val();
tasks.push(postImage(imgData));
});
var total = tasks.length;
$.when.apply($, tasks)
@diego-carrera
diego-carrera / brew doctor.log
Created October 2, 2012 18:00
brew install -V php53 --with-fpm --with-mysql --with-intl
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libmacfuse_i32.2.dylib /usr/local/lib/libmacfuse_i64.2.dylib /usr/local/lib/libosxfuse_i32.2.dylib /usr/local/lib/libosxfuse_i64.2.dylib /usr/local/lib/libusb-0.1.4.dylib /usr/local/lib/libusbpp-0.1.4.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
@diego-carrera
diego-carrera / HID.cc.patch
Created November 28, 2014 16:45
node-hid readsync readtimeout
diff --git a/src/HID.cc b/src/HID.cc
index 49deec5..e46a03d 100644
--- a/src/HID.cc
+++ b/src/HID.cc
@@ -81,6 +81,8 @@ private:
static Handle<Value> getFeatureReport(const Arguments& args);
static Handle<Value> sendFeatureReport(const Arguments& args);
+ static Handle<Value> readSync(const Arguments& args);
+ static Handle<Value> readTimeout(const Arguments& args);

Keybase proof

I hereby claim:

  • I am diego-carrera on github.
  • I am diegocarrera (https://keybase.io/diegocarrera) on keybase.
  • I have a public key whose fingerprint is BB4D BD5B F024 E6B3 9A01 C6E0 D55C C291 6305 B13C

To claim this, I am signing this object: