Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

-----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
#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");

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.
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)
+{
---
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 +-

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 October 9, 2014 23:32
List of some spots I like to eat at.

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 August 29, 2015 13:58
Connection pool example for Go
type ConnectionPool chan *Conn
func (p *ConnectionPool) Checkout() *Conn {
<- p
}
func (p *ConnectionPool) Checkin(conn *Conn) {
p <- conn
}
@brianmario
brianmario / detector.go
Created November 19, 2013 09:40
A simple binary and text encoding detector wrapping libicu's encoding detection API
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"
#include <stdlib.h>
#include <string.h>
#include <mysql.h>
int main() {
MYSQL *client;
MYSQL_RES *result;
int err;
char *query = "SELECT 1";