mirror of
https://github.com/RussellChamp/tilde-projects.git
synced 2026-10-28 00:22:34 +00:00
Random update of various things
This commit is contained in:
1 parent
d76dd9c674
commit
57485f6ffd
22 files changed
+269
-73
No files matched your search
@@ -24,7 +24,11 @@ charset="utf-8"></script>-->
|
||||
userData.lineCount,
|
||||
userData.wordCount, Number((userData.wordCount / userData.lineCount).toFixed(2)),
|
||||
userData.charCount, Number((userData.charCount / userData.lineCount).toFixed(2)),
|
||||
userData.streak, userData.mentions, userData.botUse,
|
||||
userData.streak,
|
||||
userData.mentions,
|
||||
(userData.mentions / userData.daysActive),
|
||||
(userData.mentions / userData.lineCount),
|
||||
userData.botUse,
|
||||
Number((userData.responseTime / (userData.mentions ? userData.mentions : 1) / 60).toFixed(2)),
|
||||
]);
|
||||
});
|
||||
@@ -40,7 +44,7 @@ charset="utf-8"></script>-->
|
||||
var minFormatter = new google.visualization.NumberFormat({pattern: '##.## minutes'});
|
||||
var dayFormatter = new google.visualization.NumberFormat({pattern: '## days'});
|
||||
var wordFormatter = new google.visualization.NumberFormat({pattern: '##.## words'});
|
||||
var charFormatter = new google.visualization.NumberFormat({pattern: '##.## chars'});
|
||||
var charFormatter = new google.visualization.NumberFormat({pattern: '##.## char'});
|
||||
var streakFormatter = new google.visualization.NumberFormat({pattern: '## lines'});
|
||||
var mentionsFormatter = new google.visualization.NumberFormat({pattern: '## mentions'});
|
||||
|
||||
@@ -48,17 +52,19 @@ charset="utf-8"></script>-->
|
||||
dataTable.addColumn('datetime', 'First Spoke'); //col1
|
||||
dataTable.addColumn('datetime', 'Last Spoke'); //col2
|
||||
dataTable.addColumn('number', 'Total'); //col3
|
||||
dataTable.addColumn('number', 'Active on'); //col4
|
||||
dataTable.addColumn('number', 'Active'); //col4
|
||||
dataTable.addColumn('number', 'Ratio'); //col5
|
||||
dataTable.addColumn('number', 'Lines'); //col6
|
||||
dataTable.addColumn('number', 'Words'); //col7
|
||||
dataTable.addColumn('number', 'per Line'); //col8
|
||||
dataTable.addColumn('number', 'Characters'); //col9
|
||||
dataTable.addColumn('number', 'per Line'); //col10
|
||||
dataTable.addColumn('number', 'Chat Streak'); //col11
|
||||
dataTable.addColumn('number', 'Streak'); //col11
|
||||
dataTable.addColumn('number', 'Popularity'); //col12
|
||||
dataTable.addColumn('number', 'Bot Use'); //col13
|
||||
dataTable.addColumn('number', 'Response time'); //col14
|
||||
dataTable.addColumn('number', 'by Day'); //col13
|
||||
dataTable.addColumn('number', 'by Line'); //col14
|
||||
dataTable.addColumn('number', 'Bot Use'); //col15
|
||||
dataTable.addColumn('number', 'Response time'); //col16
|
||||
|
||||
dataTable.addRows(data);
|
||||
userFormatter.format(dataTable, [0]);
|
||||
@@ -68,7 +74,7 @@ charset="utf-8"></script>-->
|
||||
charFormatter.format(dataTable, 10);
|
||||
streakFormatter.format(dataTable, 11);
|
||||
mentionsFormatter.format(dataTable, 12);
|
||||
minFormatter.format(dataTable, 14);
|
||||
minFormatter.format(dataTable, 16);
|
||||
console.log("* Set up the columns!");
|
||||
|
||||
var table = new google.visualization.Table(document.getElementById('statTable'));
|
||||
|
||||
@@ -53,15 +53,22 @@
|
||||
//maybe i could add something to show more points but we're not losing too much granularity for the speed we gain
|
||||
if(idx % 8 != 0) return;
|
||||
_.forEach(set.data, function(point) {
|
||||
if(point.du > 2000) { //the 'interesting' threshold is set at 20000kb
|
||||
if(!userData[point.user]) {
|
||||
userData[point.user] = [];
|
||||
if(point.du > 5000) { //the 'interesting' threshold is set at 5000kb
|
||||
if(!userData[point.user]) { //if the current user has not been initialized yet
|
||||
userData[point.user] = []; //create an empty array
|
||||
var size = json.length;
|
||||
while(size--) userData[point.user][size] = 0;
|
||||
linedata.addColumn('number', point.user);
|
||||
while(size--) userData[point.user][size] = 0; //and populate it with zeros for the lenght of our entire set
|
||||
linedata.addColumn('number', point.user); //then add a column of type 'number' for this user
|
||||
|
||||
}
|
||||
userData[point.user][idx] = point.du;
|
||||
userData[point.user][idx] = point.du; //add a point for this user
|
||||
//if the last three data points are the same value
|
||||
//if(idx > 16 && userData[point.user][idx] == userData[point.user][idx-8] && userData[point.user][idx-16]) {
|
||||
// userData[point.user].splice(idx,1); //then get rid of the middle one
|
||||
// if(point.user == '~vilmibm') {
|
||||
// console.log('points', userData[point.user]);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -7,9 +7,12 @@ Links and stuff
|
||||
<ul>
|
||||
<li><a href="chatchecker/">Tilde.town IRC Chat checker</a></li>
|
||||
<li><a href="chatstats/">IRC User Chat Statistics</a></li>
|
||||
<li><a href="besties/">IRC Chat Bestie Nodes</a></li>
|
||||
<li><a href="circle/">IRC Chat Bestie Circle</a></li>
|
||||
<li><a href="twine2/">Twine 2.0</a></li>
|
||||
<li><a href="grimoire/app/">Grimoire: The Pathfinder Item Roller</a></li>
|
||||
<li><a href="https://github.com/RussellChamp/PragmaticDiceBag">Pragmatic Dice Bag: Artsy fartsy guide!</a></li>
|
||||
<li><a href="limericks/">Dumb Limericks</a></li>
|
||||
</ul>
|
||||
|
||||
<h2><a href="chatcloud/">Tilde.town IRC Chat cloud</a></h2>
|
||||
|
||||
Reference in new issue
Block a user