Skip to content

Instantly share code, notes, and snippets.

View startling's full-sized avatar

Lizzie Dixon startling

View GitHub Profile
-- bound
import Bound
-- | Standalone type for 'let' bindings.
data Lets f v = Lets (f v) (Scope () f v)
instance Bound Lets where
Lets l b >>>= f = Lets (l >>= f) (b >>>= f)
-- | Abstract syntax trees with optional extra types involved.

Keybase proof

I hereby claim:

  • I am startling on github.
  • I am startling (https://keybase.io/startling) on keybase.
  • I have a public key whose fingerprint is 73BF 793C 60B3 361D 0B48 B010 C960 E5A9 93C0 A29A

To claim this, I am signing this object:

use strict;
use warnings;
use Irssi;
our $VERSION = "0.0";
our %IRSSI = (
authors => "startling",
contact => "tdixon51793\@gmail.com",
name => "Renotify",
(def ^:dynamic *example* "Unchanged!")
(binding [*example* 12] (map (fn [_] *example*) [0])) ;; ["Unchanged!"]
bash-3.2$ cabal install libssh2
Resolving dependencies...
Notice: installing into a sandbox located at
/Users/tim/Code/beholder/.cabal-sandbox
Configuring libssh2-0.2.0.1...
Building libssh2-0.2.0.1...
Failed to install libssh2-0.2.0.1
Last 10 lines of the build log ( /Users/tim/Code/beholder/.cabal-sandbox/logs/libssh2-0.2.0.1.log ):
Building libssh2-0.2.0.1...
Preprocessing library libssh2-0.2.0.1...

TLDR version, if you have homebrew

xcode-select --install ; brew tap homebrew/versions ;   brew tap homebrew/dupes \
brew install apple-gcc42 ; brew link apple-gcc42 

NB: the xcode-select --install is how you (re)install the mavericks xcode 5 CLI tools, you HAVE to do that. Either way, you should make sure you have CLI tools installed.

NB: apple-gcc42 is quite old, but doesn't require a build from source (so it can work right away). Those who have a bit more patience and want a more modern GCC can use brew install gcc48 or the like (though the build may take a while)

@startling
startling / test.py
Created December 27, 2011 01:40
2to3's changes to cytoplasm.test
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored test.py
--- test.py (original)
+++ test.py (refactored)
@@ -1,4 +1,4 @@
-import os, imp, shutil, urllib2
+import os, imp, shutil, urllib.request, urllib.error, urllib.parse
@startling
startling / gist:1522529
Created December 27, 2011 01:51
`cytoplasm test` errors, even after workaround
.....localhost - - [26/Dec/2011 19:48:50] "GET /one.html HTTP/1.1" 200 -
FTraceback (most recent call last):
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/socketserver.py", line 284, in _handle_request_noblock
self.process_request(request, client_address)
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/socketserver.py", line 310, in process_request
self.finish_request(request, client_address)
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/socketserver.py", line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/socketserver.py", line 639, in __init__
self.handle()
@startling
startling / error
Created December 27, 2011 01:38
Errors when you `cytoplasm test` under python 3.
^CProcess Process-1:
Traceback (most recent call last):
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/multiprocessing/process.py", line 259, in _bootstrap
self.run()
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/Users/tim/Code/cytoplasm_dir/cytoplasm/cytoplasm/server.py", line 81, in serve
httpd.handle_request()
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/socketserver.py", line 265, in handle_request
fd_sets = select.select([self], [], [], timeout)
@startling
startling / gist:1725692
Created February 2, 2012 20:53
errors when installing vim from homebrew-alt
~ » brew install --verbose https://raw.github.com/adamv/homebrew-alt/master/duplicates/vim.rb
/usr/bin/curl -qf#LA Homebrew 0.8.1 (Ruby 1.8.7-249; Mac OS X 10.6.8) https://raw.github.com/adamv/homebrew-alt/master/duplicates/vim.rb -o /Users/tim/Library/Caches/Homebrew/Formula/vim.rb
######################################################################## 100.0%
/usr/local/bin/hg
==> Cloning https://vim.googlecode.com/hg/
Updating /Users/tim/Library/Caches/Homebrew/vim--hg
hg pull
warning: vim.googlecode.com certificate with fingerprint e9:f0:26:b1:ff:27:28:33:81:8e:51:7b:fd:a7:de:df:4c:1e:ee:14 not verified (check hostfingerprints or web.cacerts config setting)
pulling from https://vim.googlecode.com/hg/
searching for changes