mirror of
https://github.com/RussellChamp/tilde-projects.git
synced 2026-10-28 08:32:32 +00:00
Some changes and new stuff
This commit is contained in:
1 parent
33ea98b002
commit
0b5a4fcfb8
19 files changed
+900
-9
No files matched your search
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Who chats and when?</title>
|
||||
</head>
|
||||
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
userData = {};
|
||||
jQuery.getJSON("/~krowbar/data/userData.json", function(json) {
|
||||
userData = json;
|
||||
});
|
||||
</script>
|
||||
|
||||
<body>
|
||||
Here's some stuff! Check the console for userData
|
||||
<br/>
|
||||
Maybe I should use Google charts again instead of D3. Remember to use .setUTCSeconds()
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
How do do stuff
|
||||
|
||||
Data structure
|
||||
users["name"]
|
||||
.talked = array of irc times
|
||||
.mentioned = array of irc times
|
||||
|
||||
|
||||
DATA DAEMON
|
||||
* Parse log for nicks that said something
|
||||
- Populate data structure
|
||||
* For each line, log the person who talked
|
||||
- Check if any other person was mentioned
|
||||
- Only log if it is at least 1 minute past their last chat/reference (maybe
|
||||
to reduce data size)
|
||||
* Write to log file
|
||||
- Same file or dated one?
|
||||
- Only certain time frames??
|
||||
* Run daily/hourly?
|
||||
|
||||
PRESENTATION
|
||||
* Select a user name from the drop down
|
||||
- See a timeline with colored strands of when they spoke and were mentioned
|
||||
* Something that looks like the Github commit history
|
||||
* Use D3 for coolness
|
||||
Reference in new issue
Block a user