This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ -z "$1" ]]; then | |
echo "usage: witch [package name]" | |
else | |
# iterate over all installed packages | |
for pkg in $( brew list ); do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ./provers.src/Makefile 2013-11-24 18:48:09.000000000 +0100 | |
+++ ./provers.src/Makefile 2013-11-24 18:49:38.000000000 +0100 | |
@@ -63,25 +63,25 @@ | |
$(MAKE) prover9 | |
prover9: prover9.o $(OBJECTS) | |
- $(CC) $(CFLAGS) -lm -o prover9 prover9.o $(OBJECTS) ../ladr/libladr.a | |
+ $(CC) $(CFLAGS) -o prover9 prover9.o $(OBJECTS) ../ladr/libladr.a -lm | |
fof-prover9: fof-prover9.o $(OBJECTS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -bur ./ladr/parse.c ./ladr/parse.c | |
--- ./ladr/parse.c 2009-03-17 18:04:29.000000000 +0100 | |
+++ ./ladr/parse.c 2014-08-21 03:46:12.000000000 +0200 | |
@@ -554,7 +554,7 @@ | |
c = getc(fp); | |
- if (c == EOF) | |
+ if (c == EOF || c == (unsigned char)EOF) | |
eof = TRUE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE KindSignatures #-} | |
{-# LANGUAGE ConstraintKinds #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE UndecidableInstances #-} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DeriveDataTypeable #-} | |
import Control.Applicative ((<$>)) | |
import Control.Monad (filterM) | |
import Data.Foldable (or) | |
import Data.List (isSuffixOf,maximumBy) | |
import Data.Ord (comparing) | |
import Data.Traversable (traverse) | |
import Development.Shake | |
import Development.Shake.FilePath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROPBOX_SIZE_LIMIT=3000 | |
DROPBOX_FOLDER="$HOME/Dropbox" | |
DROPBOX_SHARED_INDEX="$DROPBOX_FOLDER/Shared/.index" | |
function share { | |
current=`du -s $DROPBOX_FOLDER | cut -f1` | |
# with no arguments, echo current usage | |
if [ "$#" -eq 0 ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> {-# LANGUAGE OverloadedStrings, RecordWildCards, TupleSections, DeriveFunctor #-} | |
> module Unlit where | |
> import Control.Arrow (first,second) | |
> import Data.List (foldl') | |
> import Data.Text (Text) | |
> import qualified Data.Text as T | |
> import qualified Data.Text.IO as T |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module agda2_compute_toplevel where | |
import Control.Concurrent (forkIO) | |
import Data.List (isPrefixOf) | |
import System.Environment (getEnv) | |
import System.FilePath (splitSearchPath) | |
import System.IO | |
import System.Process | |
import Text.Printf (printf) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE TypeFamilies, TypeOperators #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE FlexibleInstances, FlexibleContexts #-} | |
{-# LANGUAGE RankNTypes, ExistentialQuantification #-} | |
{-# LANGUAGE UndecidableInstances, NoMonomorphismRestriction #-} | |
{-# LANGUAGE FunctionalDependencies #-} | |
import Prelude hiding (and) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Encoding CCGs in Agda. | |
Bla bla bla. | |
First attempt using type system to check validity of sentences. But sentences may be ambiguous, and | |
type raising cannot be properly handled due to the implementation of Agda implicits. | |
Since this blog post is literate Agda, we'll have some administrive business to get out of the way. | |
\begin{code} |
OlderNewer