Skip to content

Instantly share code, notes, and snippets.

Brian Lopez brianmario

Block or report user

Report or block brianmario

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
View joels-tweet--signed.txt
-----BEGIN PGP MESSAGE-----
owEBfQKC/ZANAwAIAUm7GEcBH5sfAcs2YgBac2jmb21nIGFyZSB5b3UgYnJpYW5t
YXJpbyBjYW4geW91IHNpZ24gbXkgY29tbWl0Pz8/iQIzBAABCAAdFiEETMN8nLT+
2BDZVvUSSbsYRwEfmx8FAlpzaOYACgkQSbsYRwEfmx9hOQ/+L6VTP8XUw8I/DjHQ
y8MU5J11bd7VE3OwnZiapLpWHsMTF25nJgorCP2Fo/vcC6XH5KunrlqLCm2dqcdm
nYEyjxb/Ty8zPMB+YlGGZLfL+DRcjjCHhkE3zXWBOiMOw/hvNoe5vu5MuHkfcJaO
wkZJBVXWIJen2E4gW8+1go/s4Jeu4HsCWKOln5i7dNsXdI0uQS9YsVYfmhFPVeyE
xJtAawJRV+c7hRIG7IYs14ZLhvglGBo03BUBBJLloIJu1X4/Ivr6ocAXOLz5LYIQ
qKeo/hDdwzw1a8JWmBuID67W61zvh7YbJunIuSH5/BXMFXIt0EzZLr2qw1xTbdei
View testing.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <yajl/yajl_gen.h>
#include <yajl/yajl_parse.h>
static int yajl_found_null(void* ctx) {
(void)ctx;
fprintf(stdout, "yajl_found_null\n");
View amsterdam-recs.md

Amsterdam Recos

If you are looking to get high, download the app "Greenmile" to find coffeeshops and smartshops near you! (only available on Android) Also, Boerejongens Coffeeshop is legit.

Jordaan

To Do:

  • Anne Frank Museum: tour of her house, always a huge line so book in advance and go on a weekday if you can.
View set_multi.diff
diff --git a/ext/memcached/memcached.c b/ext/memcached/memcached.c
index e4a0449..cec0731 100644
--- a/ext/memcached/memcached.c
+++ b/ext/memcached/memcached.c
@@ -197,6 +197,62 @@ rb_connection_set(VALUE self, VALUE rb_key, VALUE rb_value, VALUE rb_ttl, VALUE
}
static VALUE
+rb_connection_set_multi(VALUE self, VALUE rb_values)
+{
View vt.diff
---
Changelog | 1 +
MAINTAINERS | 1 +
configure | 12 ++
libavcodec/Makefile | 7 +
libavcodec/allcodecs.c | 4 +
libavcodec/h264.c | 1 +
libavcodec/mpeg12.c | 3 +
libavcodec/mpegvideo.c | 1 +
libavcodec/version.h | 2 +-
View keybase.md

Keybase proof

I hereby claim:

  • I am brianmario on github.
  • I am brianmario (https://keybase.io/brianmario) on keybase.
  • I have a public key whose fingerprint is DBE5 F35D 2FA6 6D3F A0E0 831F 27DB 14DD 6387 BC0E

To claim this, I am signing this object:

@brianmario
brianmario / nyc.md
Created Oct 9, 2014
List of some spots I like to eat at.
View nyc.md

Coffee

Manhattan

  • Stumptown Coffee - Inside the Ace Hotel lobby. These guys started in Portland but have a couple of locations in NYC. Amazing coffee.
  • Blue Bottle - Originally an SF joint, they've also expanded over to NYC. I have one two blocks from my house and go almost every morning ;) The cappuccino's and "New Orleans" (iced coffee with chicory and a tiny amount of sugar) are amazing. They usually have small pastries that are really good too.

Brooklyn

  • Blue Bottle - The Brooklyn location is in Williamsburg
@brianmario
brianmario / pool.go
Last active Aug 29, 2015
Connection pool example for Go
View pool.go
type ConnectionPool chan *Conn
func (p *ConnectionPool) Checkout() *Conn {
<- p
}
func (p *ConnectionPool) Checkin(conn *Conn) {
p <- conn
}
@brianmario
brianmario / detector.go
Created Nov 19, 2013
A simple binary and text encoding detector wrapping libicu's encoding detection API
View detector.go
package main
/*
#cgo CFLAGS: -I/opt/boxen/homebrew/opt/icu4c/include
#cgo LDFLAGS: -L/opt/boxen/homebrew/opt/icu4c/lib -licui18n -licuuc
#include <stdlib.h>
#include <unicode/ucsdet.h>
*/
import "C"
View libmysql_crash_test.c
#include <stdlib.h>
#include <string.h>
#include <mysql.h>
int main() {
MYSQL *client;
MYSQL_RES *result;
int err;
char *query = "SELECT 1";
You can’t perform that action at this time.