Skip to content

Instantly share code, notes, and snippets.

View gkadillak's full-sized avatar

Garrett Kadillak gkadillak

  • Salt Lake City, Utah
View GitHub Profile
<html lang="en-us">
<body>
<script src="simple_event_loop.js" type="application/javascript"></script>
</body>
</html>
<html lang="en-us">
<body>
<script src="simple_event_loop.js" type="application/javascript"></script>
</body>
</html>
class MemoryWidgetNamespace(BaseNamespace, BroadcastMixin):
switch = False
def recv_disconnect(self):
self.switch = False
self.disconnect()
def on_send_data(self):
self.spawn(self.send_meminfo_data)
self.switch = True