Another Hilbert jigsaw treemap with all the regions and labels displayed. Readability is compromised.
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
//: Playground - noun: a place where people can play | |
import Foundation | |
func tablesOfTwo(x: Int) -> Int { | |
return 2 * x; | |
} | |
func tablesOfThree(x: Int) -> Int { | |
return 3 * x; |
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
(ns hello-world.hello) | |
(defn- clj-map->js-map | |
"makes a javascript map from a clojure one" | |
[cljmap] | |
(let [out (js-obj)] | |
(doall (map #(aset out (name (first %)) (second %)) cljmap)) | |
out)) | |
(defn- attr [object attributes] |
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
//getters and settings done easy | |
var Circle = function(radius) { | |
this._radius = radius; | |
}; | |
Circle.prototype = { | |
set radius(radius) {this._radius = radius;}, | |
get radius() { return this._radius;}, | |
get area() { return Math.PI * (this._radius * this._radius);} | |
}; |
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
 |
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
An example of [a space-filling curve layout](http://bl.ocks.org/nitaku/8772179) using [the Hilbert curve](http://bl.ocks.org/nitaku/6514960) to represent the *flare* software package classes. |
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
import numpy | |
def hilbert(): | |
""" | |
Return NumPy array of shape (512, 3) containing successive coordinates | |
for a third-order three-dimensional Hilbert curve. | |
""" | |
a,b,c=numpy.indices((8,)*3).reshape(3,-1) | |
d=c[:8];r=abs(d-3>>1);g=(d^d>>1)*73;f=g[abs(d-1)&6] |
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
main : Element | |
main = collage 400 400 | |
(map (move (50, 0) )( | |
(motif x red ) ++ (motif (t x) blue ) ++ (motif (t (t x)) green ) ++ | |
(motif (t (t (t x))) orange ) )) | |
-- build motif from path and color | |
motif : [(number, number)] -> Color -> [Form] | |
motif z color = [ traced (solid color) (path z) , move ( last z) (filled color (circle 3.0))] |
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
AT&T API Samples - Payment app 1 | |
------------------------------ | |
This file describes how to set up, configure and run the Java Applications of the AT&T HTML5 Program sample applications. | |
It covers all steps required to register the application on DevConnect and, based on the generated API keys and secrets, | |
create and run one's own full-fledged sample applications. | |
1. Configuration | |
2. Installation |
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 | |
$oauth_file = "/tmp/paytoken.php"; | |
$api_key = ""; | |
$secret_key = ""; | |
$FQDN = "https://api-uat.san1.attcompute.com/"; | |
$subscriptionRedirect = ""; | |
?> |