This file contains hidden or 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
function scan(xs, f, acc) { | |
var result = []; | |
for (var i = 0; i < xs.length; i++) { | |
acc = result[result.push(f(acc, xs[i])) - 1]; | |
} | |
return result; | |
} |
This file contains hidden or 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
<Book> | |
<Title>Sherlock Holmes</Title> | |
<Author>Arthur Conan Doyle</Author> | |
</Book> |
This file contains hidden or 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 main | |
import ( | |
"code.google.com/p/go-tour/tree" | |
"fmt" | |
) | |
// Walk walks the tree t sending all values | |
// from the tree to the channel ch. | |
func Walk(t *tree.Tree, ch chan int) { |
This file contains hidden or 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
find . -type f -exec sed -i -r -e 's/(jsonp?|send)\(([0-9]+)\,\ /status\(\2\)\.\1(/g' {} \; |
This file contains hidden or 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
<?php | |
class DogImage { | |
public $filename; | |
public $gdImage; | |
public $mimeType; | |
public $targetWidth = 960; | |
public $allowedTypes = array( | |
1, // [] gif | |
2, // [] jpg |
NewerOlder