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
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
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,
}
[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
@synic
synic / ejuice.py
Created November 26, 2013 22:14 — forked from sli/ejuice.py
class Recipe(object):
def __init__(self, recipe):
self.__data = {
'nicotine_base':0,
'nicotine_target':0,
'amount':0,
'cut':0,
'target_pg':0,
'target_vg':0,
'unknown_a':0,
#include "stm32f0xx.h"
#include <stdio.h>
/*
* STM32F0 led blink sample (retargetted to semihosting).
*
* In debug configurations, demonstrate how to print a greeting message
* on the standard output. In release configurations the message is
* simply discarded. By default the trace messages are forwarded to
* semihosting output, but can be completely suppressed by changing
[synic@manetheren neoclock (g:qfn*)]$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +92.0°C (crit = +100.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +91.0°C (high = +95.0°C, crit = +105.0°C)
Core 2: +93.0°C (high = +95.0°C, crit = +105.0°C)
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDP/WdCKQUYF7Z1qBrcELpgQxzgrpTsoQlS/edyQmsJk9BsJx8fpsSgFtaVUDt4f+MG0KjNWLR2bgfJvSYETol661QFMXE7IpgTy1jsDBdIqDN0CD8/BLDJgex6p4TMQ6e8PjdiCupWXXdeR2rkRGAFP39tVO1UUsS923O2MjXLo3H0KuiQQzNSC6D0BQGIMk7Z0Xm8NfZZR2ym/m6748zSmvii4AZDba6FXV/xHyfPaJbVHIRPADfHec6fAXAO39Q+erQ47Nbp4NGCmWU4xCmqfgljcA0MGzgjhMBX2qYlgt2ia3vZUOgv8hDf/Zc1Ebz7gf4tDA8AWtzXJaCI7mzj synic@be
@synic
synic / C
Created September 11, 2014 20:07
void setup_timer(void) {
rcc_periph_clock_enable(RCC_TIM3);
timer_reset(TIM3);
timer_set_mode(TIM3, TIM_CR1_CKD_CK_INT, TIM_CR1_CMS_EDGE, TIM_CR1_DIR_UP);
timer_set_prescaler(TIM3, 0);
timer_set_clock_division(TIM3, 0);
timer_set_period(TIM3, PERIOD);
timer_set_oc_mode(TIM3, TIM_OC1, TIM_OCM_PWM1);
timer_set_oc_polarity_high(TIM3, TIM_OC1);
/* timer_set_dma_on_compare_event(TIM3);*/
<!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() {

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: