Skip to content

Instantly share code, notes, and snippets.

View synic's full-sized avatar

Adam Olsen synic

  • Giddy
  • Salt Lake City, Utah
View GitHub Profile
[synic@liandrin scripts (g:zp-137*)]$ cat .rundev-tmux.conf (zaneprep)
new -n runserver "django-admin.py runserver"
neww -n celery "django-admin.py celery worker --loglevel=info"
splitw -v -p 50 -t 0 ls
class EmailResource(NBResource):
contact = fields.ForeignKey(ContactResource, 'contact', null=True)
class Meta(NBResource.Meta):
queryset = contact_models.Email.objects.all()
resource_name = 'client/contact/email'
filtering = {
'contact': ALL_WITH_RELATIONS,
}
Note: scala.tools.nsc.Global$Run calls '(scala.tools.util.Profiling)Class.forName(variable).newInstance()'
Note: com.thoughtworks.paranamer.DefaultParanamer accesses a declared field '__PARANAMER_DATA' dynamically
Maybe this is program field 'com.thoughtworks.paranamer.AdaptiveParanamer { java.lang.String __PARANAMER_DATA; }'
Maybe this is program field 'com.thoughtworks.paranamer.AnnotationParanamer { java.lang.String __PARANAMER_DATA; }'
Maybe this is program field 'com.thoughtworks.paranamer.AnnotationParanamer$Jsr330Helper { java.lang.String __PARANAMER_DATA; }'
Maybe this is program field 'com.thoughtworks.paranamer.BytecodeReadingParanamer { java.lang.String __PARANAMER_DATA; }'
Maybe this is program field 'com.thoughtworks.paranamer.BytecodeReadingParanamer$ClassReader { java.lang.String __PARANAMER_DATA; }'
Maybe this is program field 'com.thoughtworks.paranamer.BytecodeReadingParanamer$MethodCollector { java.lang.String __PARANAMER_DATA; }'
Maybe this is prog
@synic
synic / vai.py
Created September 2, 2015 13:36
def get_uptime(self, obj):
return get_device_uptime(obj, 24 * 7)
"""
This is a test
* this line is a line, and it's really long and it should wrap, but because
it's a bulleted list, it should be indented.
"""
class OAuth2Authentication(authentication.OAuth2Authentication):
def authenticate(self, request):
valid_request = super(OAuth2Authentication, self).authenticate(request)
is_valid = valid_request is not None
#!/usr/bin/env python
import os, sys
sys.path.append(os.getcwd())
import logging
import rq
MAX_FAILURES = 3
0800029c <SetSysClock>:
800029c: b480 push {r7}
800029e: b083 sub sp, #12
80002a0: af00 add r7, sp, #0
80002a2: 2300 movs r3, #0
80002a4: 607b str r3, [r7, #4]
80002a6: 2300 movs r3, #0
80002a8: 603b str r3, [r7, #0]
80002aa: 4b21 ldr r3, [pc, #132] ; (8000330 <SetSysClock+0x94>)
80002ac: 2213 movs r2, #19

Keybase proof

I hereby claim:

  • I am synic on github.
  • I am synic (https://keybase.io/synic) on keybase.
  • I have a public key whose fingerprint is FBC2 35D2 7CB1 08FB ACAB 89C8 4D28 E1A3 91A5 1B0F

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="2">
<title>Home Automation</title>
<script type='text/javascript'>
function GetSwitchAnalogData() {
nocache = "&nocache=" + Math.random() * 1000000;
var request = new XMLHttpRequest();
request.onreadystatechange = function() {