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 #-} | |
{-# OPTIONS_GHC -XTypeSynonymInstances #-} | |
{-| | |
This is where all the routes and handlers are defined for your site. The | |
'app' function is the initializer that combines everything together and | |
is exported by this module. | |
-} |
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
import time | |
import multiprocessing | |
from multiprocessing import Queue | |
q = Queue() | |
class Worker(multiprocessing.Process): | |
def __init__(self,uid,workQueue): | |
multiprocessing.Process.__init__(self) |
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
import Data.Maybe | |
import qualified Data.HashMap as HM | |
import Control.Monad | |
import Test.QuickCheck | |
-------------------------------------------------------------------------------------------------------------- | |
-- Propositional calculus | |
data Formula = 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
#include <iostream> | |
#include <string> | |
#include <functional> | |
#include "either.hxx" | |
using std::cout; | |
using std::endl; | |
using std::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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |