Follow these steps to install graphite on OS X Mavericks.
- Homebrew
- Python 2.7
- Git
import scalaz._ | |
import Scalaz._ | |
/** | |
* Use the state monad to 'process a trade' and store the new trade. | |
* As well as processing the trade, handle validation errors. | |
*/ | |
object StateMonad extends App { | |
case class Trade(info: String) |
(use '[clojure.core.match :only [match]]) | |
(defn evaluate [env [sym x y]] | |
(match [sym] | |
['Number] x | |
['Add] (+ (evaluate env x) (evaluate env y)) | |
['Multiply] (* (evaluate env x) (evaluate env y)) | |
['Variable] (env x))) | |
(def environment {"a" 3, "b" 4, "c" 5}) |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
''' | |
Created on 2012-06-03 | |
@author: Sergey Prokhorov <[email protected]> | |
Скрипт для создания архива, содержащего все пакеты, необходимые для оффлайн | |
установки l2tp плагина NetworkManager на Ubuntu. | |
''' |
package com.minosiants | |
import akka.event.ActorEventBus | |
import akka.event.LookupClassification | |
import akka.actor.ActorSystem | |
import akka.actor.Props | |
import akka.actor.Actor | |
import java.util.Date | |
import java.util.UUID |
require 'rubygems' | |
require 'pg' | |
require 'yaml' | |
class DB | |
def initialize(debug = true) | |
@conn = PG::Connection.open() | |
@debug = debug | |
end |
0-mail.com | |
0815.ru | |
0clickemail.com | |
0wnd.net | |
0wnd.org | |
10minutemail.com | |
20minutemail.com | |
2prong.com | |
30minutemail.com | |
3d-painting.com |
Go Rust | |
----------- ------ | |
break break | |
case (syntax) | |
chan (library) | |
const const | |
continue loop | |
default (syntax) | |
defer | |
else else |
# Save this file as lib/capistrano/tasks/git.cap | |
namespace :git do | |
desc 'Copy repo to releases' | |
task create_release: :'git:update' do | |
on roles(:all) do | |
with fetch(:git_environmental_variables) do | |
within repo_path do | |
execute :git, :clone, '-b', fetch(:branch), '--recursive', '.', release_path | |
end |
'use strict'; // Luke | |
// ------------------------------------------------- | |
// Просто | |
// ------------------------------------------------- | |
var add = function(x) { | |
var temp = x; | |
var f = function (y) { | |
temp += y; |