Skip to content

Instantly share code, notes, and snippets.

View lukexi's full-sized avatar

Luke Iannini lukexi

View GitHub Profile
@lukexi
lukexi / keybase.md
Created November 29, 2016 03:38
keybase.md

Keybase proof

I hereby claim:

  • I am lukexi on github.
  • I am lukexi (https://keybase.io/lukexi) on keybase.
  • I have a public key whose fingerprint is BCF1 994B D762 D45B 564B EF87 6454 2722 9841 6B7C

To claim this, I am signing this object:

@lukexi
lukexi / Windows 10 Haskell Devbox Setup.md
Last active November 26, 2017 09:24
Windows 10 Haskell Devbox Setup
{-# LANGUAGE RecordWildCards, FlexibleContexts #-}
module Boilerplate where
import qualified Data.Map as Map
import Data.Map (Map)
import qualified Data.Set as Set
import Data.Set (Set)
import Data.List
import Data.Maybe
import Control.Monad.State
@lukexi
lukexi / gist:6276169
Last active December 21, 2015 08:09
GHC-iOS arm-apple-darwin10-gcc script for ARMv7/v7s fat binaries
#!/bin/sh
TARGET_PLATFORM=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
TARGET_BIN="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin"
TARGET_GCC=$TARGET_BIN/arm-apple-darwin10-llvm-gcc-4.2
TARGET_CFLAGS="-isysroot $TARGET_PLATFORM -mcpu=cortex-a8 -mfpu=neon"
allArgs=$@
@lukexi
lukexi / gist:6191728
Last active November 2, 2019 18:59
Building GHC HEAD on OS X 10.9 Mavericks
1) I installed LLVM 3.4
brew install llvm --with-clang --HEAD
2) I used this build.mk:
HADDOCK_DOCS = NO
BUILD_DOCBOOK_HTML = NO
BUILD_DOCBOOK_PS = NO
BUILD_DOCBOOK_PDF = NO
SPLIT_OBJS = NO
INTEGER_LIBRARY = integer-simple
@lukexi
lukexi / gist:3956874
Created October 26, 2012 04:55
git config
cd ~
curl https://github.com/git/git/raw/master/contrib/completion/git-completion.bash -OL
curl https://github.com/git/git/raw/master/contrib/completion/git-prompt.sh -OL
mv git-completion.bash .git-completion.bash
mv git-prompt.sh .git-prompt.sh
#in .profile:
source ~/.git-completion.bash
source ~/.git-prompt.sh
GIT_PS1_SHOWDIRTYSTATE=true
Process: SuperCollider [30371]
Path: /Applications/SuperCollider/SuperCollider.app/Contents/MacOS/SuperCollider
Identifier: net.sourceforge.supercollider
Version: ??? (3.4.2 (Revision 384a0b4b79))
Code Type: X86 (Native)
Parent Process: launchd [181]
Date/Time: 2011-01-05 23:04:02.422 -0800
OS Version: Mac OS X 10.6.5 (10H574)
Report Version: 6
Traceback (most recent call last):
File "/Library/Python/2.5/site-packages/CherryPy-3.1.0-py2.5.egg/cherrypy/_cprequest.py", line 609, in respond
File "/Library/Python/2.5/site-packages/CherryPy-3.1.0-py2.5.egg/cherrypy/_cprequest.py", line 98, in run
File "/Library/Python/2.5/site-packages/CherryPy-3.1.0-py2.5.egg/cherrypy/_cprequest.py", line 58, in __call__
File "/Users/LukeIannini/hellochair/slt-adserver/cherrypy_tools.py", line 15, in mako_tool_callback
cherrypy.response.body = t.render(**args)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Mako-0.1.6-py2.5.egg/mako/template.py", line 110, in render
return runtime._render(self, self.callable_, args, data)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Mako-0.1.6-py2.5.egg/mako/runtime.py", line 287, in _render
_render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data))
class SiteForm(twf.TableForm):
action = 'save_site'
children = [
twf.HiddenField('id'),
twf.TextField('name', validator=twv.UnicodeString(not_empty=True)),
twf.TextField('url', validator=twv.URL(not_empty=True, add_http=True, check_exists=True),
label_text="Website URL")
]
class SiteForm(twf.TableForm):
action = 'save_site'
children = [
twf.HiddenField('id'),
twf.TextField('name', validator=twv.UnicodeString(not_empty=True)),
twf.TextField('url', validator=twv.URL(not_empty=True, add_http=True, check_exists=True),
label_text="Website URL")
]