- Don't criticize, condemn, or complain.
- Give honest and sincere appreciation.
- Arouse in the other person an eager want.
- Never show others that you are not interested in what they have to say.
int[][] result; | |
float t, c; | |
float ease(float p) { | |
return 3*p*p - 2*p*p*p; | |
} | |
float ease(float p, float g) { | |
if (p < 0.5) | |
return 0.5 * pow(2*p, g); |
// by d whyte | |
int[][] result; | |
float t; | |
float ease(float p) { | |
return 3*p*p - 2*p*p*p; | |
} | |
float ease(float p, float g) { |
I like LYAH as a reference and cheat-sheet but I found it a little slow for learning Haskell.
Here's my recommended order for just learning Haskell:
http://yannesposito.com/Scratch/en/blog/Haskell-the-Hard-Way/ 80% completion here is fine if you feel your attention waning, the next thing will address hammering in things like functors and monads via typeclasses.
https://github.com/NICTA/course/ this will hammer in the lessons in a very direct form by forcing you to confront the challenges and lessons learned by the creators and community of Haskell itself. Doing the exercises here is critical for being fluent.
Real World Haskell is available online. I recommend it as a reference only.
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Mobile Patent Suits</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.1"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?1.29.1"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?1.29.1"></script> | |
<style type="text/css"> |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<script src="http://d3js.org/d3.v2.min.js?2.9.3"></script> | |
<style> | |
.link { | |
stroke: #ccc; | |
} | |
.node text { |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>The d3 test</title> | |
<style> | |
.chart { | |
shape-rendering: crispEdges; | |
} | |
.main text { |
👯 👯 👯 👯 👯 👯 👯 👯 👯 👯 👯 👯 👯 👯 👯 👯 👯 👯 👯 👯 👯 👯 👯 👯
Hi backers!
First, for those of you still waiting for your pen(s), we're still on schedule. The schedule was posted a few updates ago (update #22). The 3 remaining batches are shipped from our manufacturer in China on :
- July 7th (480 pens)
package mapreduce | |
func MapReduce(mapper func(interface{}, chan interface{}), | |
reducer func(chan interface{}, chan interface{}), | |
input chan interface{}, | |
pool_size int) interface{} | |
{ | |
reduce_input := make(chan interface{}); | |
reduce_output := make(chan interface{}); | |
worker_output := make(chan chan interface{}, pool_size); |
package main | |
import "fmt" | |
func worker(row int, input chan int, output chan int, done chan int) { | |
display := "" | |
previous := 0 | |
for i := 0; i < row+1; i++ { | |
read := <-input | |
display += fmt.Sprintf("%d ", read) |