- @fergbyrne
- HTM = Hierarchical Temporal Memory
- Slides
- big data is like teenage sex
- noone knows how to do it
- everyone thinks everyone else is doing it
public class User { | |
public enum Gender { MALE, FEMALE }; | |
public static class Name { | |
private String _first, _last; | |
public String getFirst() { return _first; } | |
public String getLast() { return _last; } | |
public void setFirst(String s) { _first = s; } |
class Need | |
extend ActiveModel::Naming | |
attr_reader :id | |
attr_accessor :role, :goal, :benefit | |
def initialize(id, exists=false) | |
need = need_api_client.need(id) | |
if exists | |
assign_protected_attributes(need) |
I hereby claim:
To claim this, I am signing this object:
{-# LANGUAGE ExistentialQuantification #-} | |
import Data.Foldable | |
import Data.Set (Set) | |
import qualified Data.Set as Set | |
import Prelude hiding (mapM_) | |
data FizzBuzzTag = Fizz | Buzz deriving (Eq, Ord, Show) | |
type FizzBuzz = Set FizzBuzzTag |
module FizzBuzz where | |
import Data.Maybe | |
data FizzBuzz = Fizz | Buzz deriving Show | |
whenDivisible :: Integral a => a -> b -> a -> Maybe b | |
whenDivisible d x n = if n `rem` d == 0 then Just x else Nothing | |
fizzbuzz :: (Show a, Integral a) => a -> String | |
fizzbuzz n = if null tags then show n else concatMap show tags |
module FizzBuzz where | |
import Data.Foldable (fold) | |
whenDivisible :: Integral a => a -> b -> a -> Maybe b | |
whenDivisible d x n = if n `rem` d == 0 then Just x else Nothing | |
fizzbuzz :: (Show a, Integral a) => a -> String | |
fizzbuzz n = maybe (show n) id tagStr | |
where tagStr = fold [fizz n, buzz n] | |
fizz = whenDivisible 3 "Fizz" |