Skip to content

Instantly share code, notes, and snippets.

View deepakjois's full-sized avatar
🎯
Focusing

Deepak Jois deepakjois

🎯
Focusing
View GitHub Profile
package main
import (
"fmt"
"math"
"runtime"
"strings"
)
const (
@cslarsen
cslarsen / objc-gcc.m
Created March 20, 2012 19:23
How to compile Objective-C on the command line on Mac OS X
/*
* To compile objective-c on the command line:
*
* gcc -framework Foundation objc-gcc.m
*
* You may have to link with -lobjc or other libs,
* as required.
*/
#import <Foundation/Foundation.h>
@deepakjois
deepakjois / README.md
Created January 26, 2012 17:30 — forked from cartazio/gist:1655271
Installing GHC 7.2.2 and diagrams on OS X Lion

Installing GHC 7.2.2 and diagrams on OS X Lion

Install prerequisites

GHC 7.2.2 64-bit

Make sure you have the 64-bit version of GHC. If you installed GHC using brew install haskell-platform, you are using the 32-bit version which wont work with the instructions below. To install the 64-bit version

  • Follow instructions in this [gist][ghcinstallgist]. However, note that the patch for cabal-install that they point to is not available anymore. There is a similar patch in [this gist][cabalinstallgist], which worked for me. Read [this comment][cabalinstallcomment] for more info on how to apply the patch.
% Look at the rendering:
% http://farm3.static.flickr.com/2755/4250942627_469615ffbc_o.png
\font\dnone="Nakula:script=deva" at 10pt
\font\dntwo="Sahadeva:script=deva" at 10pt
\font\dnthree="Akshar Unicode:script=deva" at 10pt
\font\dnfour="gargi:script=deva" at 10pt
\font\dnfive="Devanagari MT/AAT:script=deva" at 10pt
\baselineskip=1.5em