Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Full of rage. Or tacos.

C W fake-name

💭
Full of rage. Or tacos.
  • Your github issues
View GitHub Profile
View wat.html
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<title>WebSocket Test</title>
</head>
<body>
<h2>WebSocket Test</h2>
<div id="output"></div>
View .astylerc
--style=allman
--add-braces
--align-method-colon
--align-pointer=type
--align-reference=name
--attach-return-type-decl
--attach-return-type
--break-after-logical
--break-blocks
View debugging python object fields with gdb
## Now with python3k support!
$ python foo.py &
[1] 21377
$ gdb -p 21377
GNU gdb (GDB) Fedora 7.7.1-17.fc20
[... gdb loading messages ...]
0x00007f9a09af46e3 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:81
81 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
@fake-name
fake-name / gist:8350183
Created Jan 10, 2014
Minimal script to shove data into a emoncms instance.
View gist:8350183
#!/usr/bin/python
"""
All Emoncms code is released under the GNU Affero General Public License.
See COPYRIGHT.txt and LICENSE.txt.
---------------------------------------------------------------------
Emoncms - open source energy visualisation
Part of the OpenEnergyMonitor project: