Skip to content

Instantly share code, notes, and snippets.

How to use a PS3 controller on Mac OS X 10.7 (Lion)

  1. Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.

  2. Reset PS3 controller by inserting paperclip into pinhole near L2 button.

  3. Connect PS3 controller to Mac with USB cable.

  4. Enable Bluetooth.

function(msg) {
if(/^taps/.test(msg.message)) {
var match = msg.message.match(/^taps\s+(.+)/);
var tap;
var taps = [ ];
json = http.get("http://visualizeapi.com/api/baileys");
feed = JSON.parse(json);
var tap_list = "Bailey's Taps: ";
@JerrySievert
JerrySievert / jquery.partialReady.js
Created June 5, 2012 14:09 — forked from munro/jquery.partialReady.js
jquery.partialReady.js
/*jslint browser: true, nomen: true */
/*global jQuery, console */
(function ($) {
'use strict';
var timer, timer_delay = 250, next_id = 0, selectors = {};
/**
* Keep checking the DOM for new selectors
*/
@JerrySievert
JerrySievert / Makefile
Created September 23, 2011 16:56 — forked from utaal/Makefile
webserver using libuv
webserver: webserver.c libuv/uv.a http-parser/http_parser.o
gcc -I libuv/include \
-lrt -lm -lpthread -o \
webserver webserver.c \
libuv/uv.a http-parser/http_parser.o
libuv/uv.a:
$(MAKE) -C libuv
http-parser/http_parser.o: