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
routeArticle :: Routes | |
routeArticle = customRoute (flip replaceExtension ".html" . dropDate) | |
dropDate :: Identifier -> FilePath | |
dropDate ident = let file = toFilePath ident | |
in replaceFileName file (drop 11 $ takeFileName file) |
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
<?php | |
function my_theme_init() { | |
if (!is_admin()) { | |
wp_enqueue_style('tarski_stylesheet', get_template_directory_uri() . '/style.css'); | |
} | |
} | |
add_action('init', 'my_theme_init'); |
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
-- Render RSS feed | |
route "rss.xml" $ idRoute | |
create "rss.xml" $ | |
requireAll_ "posts/*" | |
>>> mapCompiler (arr $ copyField "body" "description") | |
>>> renderRss feedConfiguration |
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
~/projects/hakyll/examples/brochure (examples) $ ll | |
total 32 | |
-rw-r--r-- 1 ionfish staff 724B 27 Sep 18:57 about.rst | |
-rw-r--r-- 1 ionfish staff 794B 27 Sep 18:57 code.lhs | |
drwxr-xr-x 4 ionfish staff 136B 15 Nov 15:25 css | |
-rw-r--r--@ 1 ionfish staff 504B 26 Mar 18:32 hakyll.hs | |
-rw-r--r--@ 1 ionfish staff 1.1K 27 Sep 18:57 index.markdown | |
drwxr-xr-x 3 ionfish staff 102B 19 Mar 12:13 templates | |
~/projects/hakyll/examples/brochure (examples) $ ghc --make hakyll.hs |
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
> (((P | Q) & ~(P & Q)) & R) | |
P Q R | (((P | Q) & ~(P & Q)) & R) | |
---------------------------------- | |
T T T | F | |
T T F | F | |
T F T | T | |
T F F | F | |
F T T | T | |
F T F | F | |
F F T | F |
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
~ $ brew install rabbitmq | |
/usr/local/homebrew/bin/git | |
==> Cloning git://github.com/erlang/otp.git | |
Cloning into /Users/ionfish/Library/Caches/Homebrew/erlang--git... | |
remote: Counting objects: 32164, done. | |
remote: Compressing objects: 100% (11497/11497), done. | |
remote: Total 32164 (delta 22466), reused 28916 (delta 20028) | |
Receiving objects: 100% (32164/32164), 34.69 MiB | 1.62 MiB/s, done. | |
Resolving deltas: 100% (22466/22466), done. | |
==> Checking out tag OTP_R14B01 |
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
Prelude> :l time.hs | |
[1 of 1] Compiling Main ( time.hs, interpreted ) | |
Ok, modules loaded: Main. | |
*Main> (Time 0) == 0 | |
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
javascript:(function(){var b=document.getElementsByTagName('meta'),c=b.length,a;while(c--){a=b[c];if(a.name.toLowerCase()=='viewport'){a.parentNode.removeChild(a)}}})(); |
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
@book { girard1989, | |
author = "Jean-Yves Girard and Yves Lafont and Paul Taylor", | |
title = "Proofs and Types", | |
publisher = "Cambridge University Press", | |
year = "1989", | |
isbn = "978-0521371810" } | |
@book { barendregt1984 | |
author = "Henrik P. Barendregt", | |
title = "The Lambda Calculus: Its Syntax and Semantics", |
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 #-} | |
module Data.Set.Naive | |
( empty | |
, member | |
, subset | |
, properSubset | |
, superset | |
, properSuperset | |
, powerset | |
, showSet |