Models | Examples |
---|---|
Display ads | Yahoo! |
Search ads |
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 Main where | |
-- A simple directory summing thing for Haskell. | |
-- by Daniel Lyons <fusion@storytotell.org> | |
-- BSD licensed. | |
import Control.Applicative | |
import Data.Either | |
import Data.Foldable |
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
export CABALPATH=$HOME/.cabal | |
export PATH=$PATH:$CABALPATH/bin | |
function switchghc() { | |
ln -sf "/usr/local/lib/ghc-$@.app/Contents/bin/cabal" /usr/local/bin/cabal | |
ln -sf "/usr/local/lib/ghc-$@.app/Contents/bin/ghc-$@" /usr/local/bin/ghc | |
ln -sf "/usr/local/lib/ghc-$@.app/Contents/bin/ghc-pkg-$@" /usr/local/bin/ghc-pkg | |
ln -sf "/usr/local/lib/ghc-$@.app/Contents/bin/ghci-$@" /usr/local/bin/ghci | |
ln -sf "/usr/local/lib/ghc-$@.app/Contents/bin/haddock-ghc-$@" /usr/local/bin/haddock | |
ln -sf "/usr/local/lib/ghc-$@.app/Contents/bin/hp2ps" /usr/local/bin/hp2ps |
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 PackageImports #-} | |
{- | |
You need to register your Twitter application at <http://dev.twitter.com/> | |
to get the consumer key and secret needed for OAuth. When connecting to | |
Twitter for the first time, do this: | |
let consumer = Consumer "consumer key" "consumer secret" | |
token <- authenticate |
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
# unregister broken GHC packages. Run this a few times to resolve dependency rot in installed packages. | |
# ghc-pkg-clean -f cabal/dev/packages*.conf also works. | |
function ghc-pkg-clean() { | |
for p in `ghc-pkg check $* 2>&1 | grep problems | awk '{print $6}' | sed -e 's/:$//'` | |
do | |
echo unregistering $p; ghc-pkg $* unregister $p | |
done | |
} | |
# remove all installed GHC/cabal packages, leaving ~/.cabal binaries and docs in place. |
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 strict"; | |
const csp = require("js-csp"); | |
const setup = (table) => { | |
const player = function*(name) { | |
let ball; | |
while((ball = yield csp.take(table)) !== csp.CLOSED) { | |
ball.hits += 1; |
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
#!/usr/bin/env bash | |
# HubCrypt | |
# ======== | |
# | |
# Decrypt a file encrypted using hubencrypt (ok, it's just openssl + rsautl + | |
# your SSH keys). It needs the private key that matches your last public key | |
# listed at github.com/<user>.keys | |
# |
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
#!/usr/bin/env bash | |
# | |
# Example of multiple key AES encryption for text files using the openssl v. 0.9.8+ command line utility | |
# Uses n public certs as key for MIME PKCS envelope, any individual private key can decrypt. | |
# | |
# If standard RSA ssh keys exist, these can be converted to public certs as well (and ssh keys can decrypt) | |
# | |
# To sign (and verify) the encrypted file, one of the private keys is required, see: | |
# http://www.openssl.org/docs/apps/smime.html#EXAMPLES for openssl smime examples | |
# or http://www.openssl.org/docs/apps/cms.html#EXAMPLES for cms utility (OpenSSL v. 1.0+) |
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
package com.rockymadden.collection.mutable | |
import scala.annotation.tailrec | |
import scala.collection.generic.CanBuildFrom | |
import scala.collection.mutable.{Builder, Map, MapBuilder, MapLike} | |
final class PrefixMap[A] extends Map[String, A] with MapLike[String, A, PrefixMap[A]] { | |
private val suffixes: Map[Char, PrefixMap[A]] = Map.empty | |
private var value: Option[A] = None |
This chassis houses up to 8 processing nodes. Each node is roughly equivilent to 30 elastic compute units. You can scale as needed by building and slotting more nodes into the chassis. Candidates for these nodes includes: app servers of any kind, ssl termination/reverse proxies, cache servers, distributed/concurrent processing, cron jobs, etc.
Barebone:
- 1x Supermicro 5038ML-H8TRF(http://www.supermicro.com/products/system/3U/5038/SYS-5038ML-H8TRF.cfm) $3750
Per node (up to 8):