I hereby claim:
- I am 3noch on github.
- I am 3noch (https://keybase.io/3noch) on keybase.
- I have a public key whose fingerprint is AEB7 54C9 7689 DDC8 1146 4303 6927 D7A5 B754 636C
To claim this, I am signing this object:
| #pragma once | |
| #include <CePrelude.h> | |
| #include <FunctionObject.h> | |
| /** | |
| * Encapsulates RAII by providing a safe interface to a scarce resource, closing it on destruction. | |
| */ | |
| template<typename T> |
| #include <memory> | |
| #include "MVar.hpp" | |
| template <typename T> | |
| struct Item; | |
| template <typename T> | |
| struct Stream | |
| { | |
| typedef MVar<Item<T>> type; |
| #pragma once | |
| #include <boost/thread.hpp> | |
| #include <CeBaseTypes.h> | |
| #include <Maybe.h> | |
| /** | |
| * A concurrency primitive which may contain a single value or be empty. |
| import types | |
| global fmap_vtable | |
| fmap_vtable = {} | |
| def fmap_for(type): | |
| def register_fmap(func): | |
| fmap_vtable[type] = func | |
| return func |
| import sqlalchemy as sa | |
| import sqlalchemy.orm as saorm | |
| from keg.db import db | |
| permission_child_map = db.Table( | |
| 'permission_child_map', | |
| sa.Column( | |
| 'permission_id', | |
| sa.Integer(), |
| #!/usr/bin/env stack | |
| -- stack --install-ghc runghc --package turtle --package wreq | |
| {-# LANGUAGE OverloadedStrings #-} | |
| import qualified Control.Foldl as Fold | |
| import Control.Lens ((^.)) | |
| import Control.Monad (when) | |
| import Data.ByteString.Lazy (hPut) | |
| import Data.Maybe (fromMaybe) |
| module Geoposition where | |
| import Control.Concurrent (forkIO) | |
| import Control.Monad.Exception (catch, throw) | |
| import Control.Monad.IO.Class (liftIO) | |
| import Reflex (Event) | |
| import Reflex.Dom (MonadWidget) | |
| import Reflex.Dom.Class (performEventAsync) |
I hereby claim:
To claim this, I am signing this object:
| def false(): | |
| print 'Bah humbug!' | |
| return False | |
| assert false() | |
| print 'Done' | |
| # run with python -O and 'Bah humbug!' is never printed. |
| class Void(object): | |
| """A placeholder object which never equals itself and always evaluates to False in | |
| conditions. | |
| This is useful when you want an abstract, unambiguous way to delineate a value as | |
| being "not-set". | |
| Ideally, you would subclass this in your context to create a "personal" void class | |
| no one would ever use besides you. For example: |