Skip to content

Instantly share code, notes, and snippets.

View carlosmcevilly's full-sized avatar

Carlos McEvilly carlosmcevilly

View GitHub Profile
@stefanfoulis
stefanfoulis / osx_developer_installation.rst
Last active May 5, 2025 05:14
Instructions on how to setup an OSX developer machine for (python/django) development

OSX Developer System installation

This guide assumes a fresh install of Mac OSX 10.7 Lion.

Brew User

# per http://stackoverflow.com/questions/3684484/peak-detection-in-a-2d-array
require 'pp'
NUM_PEAKS = 5
NEIGHBOR_DISTANCE = 1
data = [[1,2,3,4,5],
[2,6,4,4,6],
[3,6,7,4,3],
@PsychoH13
PsychoH13 / ObjC-Blocks-Fun.m
Created November 20, 2009 08:54
SmallTalkish ObjC blocks in Foundation
#import <Foundation/Foundation.h>
#import "PSYSmallTalkBlocks.h"
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int value = 0;
[PSYNumObj(value == 10) ifTrue:PSYIdVoidBlk({