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 Sudoku where | |
import Prelude hiding (Nothing) | |
import Data.List ((\\), union) | |
data Val = Val Int | |
| Nothing | |
| Alt [Int] | |
deriving (Show, Eq) |
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 Lexer | |
( Token(..) | |
, TokenPos | |
, tokenize | |
) where | |
import Text.ParserCombinators.Parsec hiding (token, tokens) | |
import Control.Applicative ((<*), (*>), (<$>), (<*>)) | |
data Token = Ide String |
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
var :: Parser Var | |
var = buildVar <$> namePart <*> funcalls <*> selectors | |
where namePart :: Parser (Either Name Exp) | |
namePart = (Right <$> between (spChar '(') (spChar ')') exp) | |
<|> (Left <$> name) | |
funcalls :: Parser [(Maybe Name, FunArg)] | |
funcalls = many argPart |
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
{-# OPTIONS_GHC -Wall #-} | |
{-# LANGUAGE NamedFieldPuns #-} | |
module Main where | |
import LLVM.Wrapper.Core | |
import LLVM.Wrapper.Analysis | |
import qualified LLVM.FFI.Core as LL | |
import qualified Data.Map as M | |
import Control.Monad.State |
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
;push dx | |
sub sp, 2 | |
xchg bp, sp | |
mov [bp], dx | |
xchg bp, sp | |
;pop bx | |
xchg sp, bp | |
mov bx, [bp] | |
xchg sp, bp |
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
Show hidden characters
{ | |
"cmd": ["/home/sinan/node_modules/.bin/uglifyjs", "--overwrite", "-b", "$file"], | |
"selector": "source.javascript" | |
} |
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
xterm -geometry 80x50 -fa "DejaVu Sans Mono-8" -e |
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
➜ ~ zypper lr -u | |
# | Alias | Name | Enabled | Refresh | URI | |
---+---------------------------+------------------------------------+---------+---------+----------------------------------------------------------------------------------- | |
1 | Haskell | Haskell | Yes | Yes | http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_12.2/ | |
2 | Tumbleweed | Tumbleweed | Yes | Yes | http://download.opensuse.org/repositories/openSUSE:/Tumbleweed/standard/ | |
3 | openSUSE_Current_OSS | openSUSE Current OSS | Yes | Yes | http://download.opensuse.org/distribution/openSUSE-current/repo/oss/ | |
4 | openSUSE_Current_non-OSS | openSUSE Current non-OSS | Yes | Yes | http://download.opensuse.org/distribution/openS |
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
!! ~/.Xmodmap | |
!! | |
!! Use this as a template for $HOME/.Xmodmap | |
!! | |
!! The leading `!' is the comment sign. | |
!! | |
!! Please note: the natural way to assign keys are their keycodes. | |
!! The only problem is, that keycodes do depend on the architecture, | |
!! therefore keysymbols are used herein. This has the disadvantage | |
!! that this file can only be called once with the program xmodmap. |
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
➜ ~ cabal install pandoc | |
Resolving dependencies... | |
In order, the following would be installed: | |
List-0.5.1 (new package) | |
base64-bytestring-1.0.0.0 (new package) | |
blaze-html-0.4.3.4 (new package) | |
digest-0.0.1.2 (new package) | |
hs-bibutils-4.15 (new package) | |
pandoc-types-1.9.1 (new package) | |
parsec-3.1.3 (reinstall) changes: mtl-2.0.1.0 -> 2.1.2 |