- Adam Wiggins' The Twelve-Factor App
- Modern software design for software-as-a-service
- Heroku enables and enforces these patterns
- One codebase - many deploys
- 2 million releases in Feb alone
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <!-- Apple nicely commented all of these transitions on their source file: | |
| http://images.apple.com/global/styles/productbrowser.css --> | |
| <style type="text/css" media="screen"> | |
| /* Just some basic presentational CSS for the example */ | |
| a { | |
| background: #000; display: block; color: #fff; | |
| font: 1.5em "Lucida Grande", "Trebuchet MS", Verdana, sans-serif; |
| module Prime where | |
| open import Coinduction | |
| open import Data.Empty | |
| open import Data.Nat | |
| open import Data.Nat.Properties | |
| open import Data.Nat.Divisibility | |
| open import Data.Fin hiding (pred; _+_; _<_; _≤_; compare) | |
| open import Data.Fin.Props hiding (_≟_) |
| #!/usr/bin/python | |
| # coding=utf-8 | |
| # Python version of Zach Holman's "spark" | |
| # https://github.com/holman/spark | |
| # by Stefan van der Walt <[email protected]> | |
| """ | |
| USAGE: |
| /* | |
| * Copyright (C) 2008 Apple Inc. All Rights Reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | |
| * are met: | |
| * 1. Redistributions of source code must retain the above copyright | |
| * notice, this list of conditions and the following disclaimer. | |
| * 2. Redistributions in binary form must reproduce the above copyright | |
| * notice, this list of conditions and the following disclaimer in the |
| module Primes where | |
| open import Level using (_⊔_) | |
| open import Coinduction | |
| open import Function | |
| open import Data.Empty | |
| open import Data.Unit | |
| open import Data.Nat | |
| open import Data.Nat.Properties | |
| open import Data.Nat.Divisibility |
| module Telescope where | |
| open import Function | |
| open import Data.Unit | |
| open import Data.Product | |
| open import Data.Nat | |
| open import Data.Vec | |
| infixr 6 _∷_ |
| # -*- coding: utf-8 -*- | |
| """ | |
| a2p.py | |
| ~~~~~~~~~~~~~ | |
| Arpabet code to unicode phoneme. | |
| :author: liuyork | |
| :copyright: (c) 2013. |
| """A notebook manager that uses S3 storage. (based on the Azure manager) | |
| http://ipython.org/ipython-doc/dev/interactive/htmlnotebook.html#using-a-different-notebook-store | |
| Drop this file in IPython/frontend/html/notebook | |
| 1. Create a new notebook profile - ipython profile create nbserver | |
| 2. edit ~/.ipython/profile_nbserver/ipython_notebook_config.py | |
| 3. Add these lines: | |
| c.NotebookApp.notebook_manager_class = 'IPython.frontend.html.notebook.s3nbmanager.S3NotebookManager' |
| {-# LANGUAGE QuasiQuotes, TemplateHaskell, TypeFamilies, MultiParamTypeClasses, OverloadedStrings #-} | |
| {-# LANGUAGE GADTs #-} | |
| {-# LANGUAGE RecordWildCards #-} | |
| {-# LANGUAGE EmptyDataDecls #-} | |
| import Yesod | |
| import System.Environment (getArgs) | |
| import qualified Network.Wai.Handler.Warp as Warp | |
| import Data.Text (Text) | |
| import Data.Conduit.Pool (Pool) | |
| import Database.Persist.Store (get, PersistValue (PersistInt64)) |