Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title>Simple Address Book</title>
<link rel="stylesheet" href="style/main.css" type="text/css">
<script src="/_utils/script/json2.js"></script>
<script src="/_utils/script/jquery.js?1.3.1"></script>
<script src="/_utils/script/jquery.couch.js?0.9.0"></script>
<script type="text/javascript">
$db = $.couch.db("addressbook");
@judywawira
judywawira / bulk.js
Created March 1, 2012 16:01 — forked from sbisbee/bulk.js
Sag-JS Docu Examples 1
var docs = [
{ _id: 'doc1', foo: 'bar' },
{ _id: 'doc2', hi: 'there' }
];
couch.bulk({
docs: docs,
callback: function(resp, succ) {
//...do stuff
}
http://django-csv-importer.readthedocs.org/en/latest/#
Filtering for empty or NULL names in a queryset
http://stackoverflow.com/questions/844556/filtering-for-empty-or-null-names-in-a-queryset
Serializing Django
http://www.django-rest-framework.org/api-guide/serializers
http://stackoverflow.com/questions/9813377/beginner-django-serializers-serialize
http://stackoverflow.com/questions/6601174/converting-a-django-valuesqueryset-to-a-json-object/6601250#6601250
id value
0 0 10.2
1 1 5.7
2 2 7.4
See the docs for to_dict. You can use it like this:
df.set_index('id').to_dict()
And if you have only one column, to avoid the column name is also a level in the dict (actually, in this case you use the Series.to_dict()):
http://www.rad.washington.edu/academics/academic-sections/msk/teaching-materials/radiology-anatomy-teaching-modules
http://www.learningradiology.com/toc/tocsubsection/toclectures.htm
http://bidmc.org/Medical-Education/Departments/Radiology/MedicalStudents/Liebermans-Interactive-Tutorials-in-Radiology.aspx
http://www.radiologyeducation.com/
http://eradiology.bidmc.harvard.edu/interactivetutorials/
http://stackoverflow.com/questions/10460691/django-mptt-full-path-to-child-pages-how-to-make
http://stackoverflow.com/questions/17876888/how-to-display-tree-structure-with-hyperlinks-in-django-views
http://stackoverflow.com/questions/10460691/django-mptt-full-path-to-child-pages-how-to-make
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response
from faqs.models import Category
http://paperduino.eu/doku.php?id=burning_bootloader
https://www.twilio.com/blog/2014/03/build-your-own-lockitron-with-twilio-arduino-and-node-js.html
http://node-ardx.org/exercises/3
http://semu.github.io/noduino/
---
Open the file ~/.arduino/preferences.txt file(linux). There you will find a string serial.debug_rate. Check its value. Typically its value is 9600(it denotes the baud rate of the serial communication). So if this value is something else, that might be causing the problem.
{% if form %}
<table class="table table-hover">
<tr>
<td><b>Patient ID</b></td>
<td><b>Variables</b></td>
</tr>
{% for f in form %}
<tr>
<td>{{ f.p_id }}</td>