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 main | |
import ( | |
"fmt" | |
//"bytes" | |
//"strconv" | |
) | |
type AVLTree struct { | |
Val int |
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 main | |
import ( | |
"bytes" | |
"fmt" | |
"strconv" | |
) | |
func main() { | |
var champernowne bytes.Buffer |
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 main | |
import ( | |
"fmt" | |
"math" | |
) | |
func main() { | |
var champernowne float64 | |
for n := 1; n <= 10; n++ { |
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 main | |
import ( | |
"encoding/json" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
) |
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
(ns get-images.core | |
(:require [clojure.tools.cli :refer [parse-opts]] | |
[net.cgrand.enlive-html :refer [select html-resource]] | |
[clojure.string :refer [split join]] | |
[clojure.java.io :refer [input-stream output-stream copy]]) | |
(:import [java.net URL] | |
[java.io File]) | |
(:gen-class)) | |
(def options |
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
from BeautifulSoup import BeautifulSoup | |
from functools import partial | |
from urllib import urlretrieve | |
from urlparse import urljoin, urlparse | |
import argparse | |
import multiprocessing | |
import os | |
import sys | |
import urllib2 |
NewerOlder