Skip to content

Instantly share code, notes, and snippets.


Felipe Balduino Cassar felipebcs

View GitHub Profile
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 / 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
tar -xvzf libevent-2.0.17-stable.tar.gz
cd libevent-2.0.17-stable*
sudo make install
# Compile memcached utility