Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
event_clicks = get_clicks() # reusable! | |
# [(user_id, guest_id, event_id),...] | |
event_clicks = collapse_to_person_event(event_clicks) # reusable! testable! | |
# [(person_id, event_id),...] | |
person_to_their_events = event_clicks.reduceByKey(event_clicks) | |
# [(person_id, [event_id,...])...] | |
event_sets = person_to_their_events.values() |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Asteroids</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" charset="utf-8"></script> | |
<style> | |
svg { | |
background-color:black; | |
} |
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
class Trie(object): | |
def __init__(self,_key='',_val=None,_sub_nodes=None,_count=0): | |
if not _sub_nodes: | |
_sub_nodes = {} | |
self._key = _key | |
self._val = _val | |
self._sub_nodes = _sub_nodes | |
self._count = _count | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Pythag</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" charset="utf-8"></script> | |
<script charset="utf-8"> | |
/** | |
* four points of a quad and the depth the line from point 0 to point 3 is considered the base, the | |
* line from 1 to 2 is considered the top. (currently this only works with squares. TODO fix) | |
*/ |
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
function DragonDroppings(vis) { | |
this.registeredNodes = {}; | |
this.selector = null; | |
this.xStart = -1; | |
this.yStart = -1; | |
this.xTrans = 0; | |
this.yTrans = 0; | |
this.vis = vis; | |
vis[0][0].addEventListener('mousemove', DragonDroppings._onmousemoveFactory(this)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer