Skip to content

Instantly share code, notes, and snippets.

Avatar

Felipe Balduino Cassar felipebcs

View GitHub Profile
@bengfarrell
bengfarrell / randomcoords.cpp
Last active Apr 17, 2020
Random Coordinates C++ Node.JS AddOn
View randomcoords.cpp
#include <node.h>
#include <v8.h>
#include <stdio.h>
#include <stdlib.h>
using namespace v8;
Handle<Value> getRandomCoords2D(const Arguments& args) {
HandleScope scope;
@ryanjbonnell
ryanjbonnell / gist:3880048
Last active Jul 9, 2020
Install Memcache on Mac OS X 10.8 "Mountain Lion"
View gist:3880048
# memcached requires libevent
cd /usr/local/src
curl -L -O http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.17-stable.tar.gz
tar -xvzf libevent-2.0.17-stable.tar.gz
cd libevent-2.0.17-stable*
./configure
make
sudo make install
# Compile memcached utility