-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.html
69 lines (65 loc) · 3.3 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<html>
<head>
<title>Tribby - The readme</title>
</head>
<body>
<h1>Tribby</h1>
<h2>What is it be ?</h2>
<p class="description">
Tribby is an embeddable contribution graph for github projects.
</p>
<h2>How does one make use of it ?</h2>
<p>
<pre>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
width="380"
height="50"
align="middle"
id="main">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="bin/Tribby-debug.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#A6CF00" />
<embed src="bin/Tribby-debug.swf"
width="380" height="50"
autostart="false" quality="high"
bgcolor="#A6CF00" FlashVars="gitUser=zmack&gitProject=tribby"
name="main" align="middle" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</pre>
<p>Which pretty much looks like this:</p>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
width="400"
height="60"
align="middle"
id="main">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="bin/Tribby-debug.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#A6CF00" />
<embed src="bin/Tribby-debug.swf" width="400" height="60" autostart="false" quality="high" bgcolor="#A6CF00" FlashVars="gitUser=sam&gitProject=dm-core" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</p>
<h2>Ok, so what else ?</h2>
<p>
<p>
You can make your own visualization modules using tribby. Well, using actionscript, but tribby does the boring job of
talking to github and translating their gibberish into sweet, sweet numbers for you to play with.
</p>
<p>
The data is in ContibutionEvent's <em>data</em> member, quite imaginatively. It's stored in the form of an array of objects. Each element is an object containing two items, namely 'own', which is the respective user's number of commits, and 'total', which is the total number of commits.
</p>
<p>
So to go through all the data you'd have to do something similar to this :
<pre>
data.forEach( function(item:Object, index:uint, arr:Array):void {
trace('Own commits: ' + item.own + '. Total commits: ' + item.total);
});
</pre>
</p>
</p>
</body>
</html>