View merge.js
// This works... (returns a merged object)
const combinedFormSchema = this.state.session && _.merge(
// This does not (returns an array of objects, not a merged object)
const combinedFormSchema = this.state.session && _.merge(, building => building.schema)
View string.json
// How do I go from this...
"{u'type': u'object', u'properties': {u'first_floor': u'open'}}"
// to a json object...
{"type": "object", "properties": { "first_floor": "open" }}
View story.js
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withInfo } from '@storybook/addon-info';
import { withKnobs, select, boolean } from '@storybook/addon-knobs';
import RadialBarChart from '../components/RadialBarChart';
// I'd prefer to stick the prop payload elsewhere...
// import { mockVisualization } from './mockdata';
View conditionalComponent.js
{ => ({
area: <Area key={} name={} {...query.definition} />,
bar: <Bar key={} name={} {...query.definition} />,
line: <Line key={} name={} {...query.definition} />
View atom stylesheet.less
// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor {
// color: white;
// background-color: hsl(180, 24%, 12%);
-webkit-font-smoothing: antialiased;
// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor.editor {
.syntax--storage.syntax--type.syntax--function.syntax--arrow, .syntax--operator {
View bpkAtom.less
* Your Stylesheet
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
View nestedValue.jsx
// JSON Object
"crate": {
"toolbar": {
"title": "Farm Overview"
// Component

Raspberry Pi Kiosk

Instructions to go from zero to a Raspberry Pi Kiosk displaying a webpage with auto-refresh.

  • OS: Raspbian (Debian Wheezy) 2015-02-16
  • Browser: IceWeasel

Copy Raspbian to a SD Card (on OSX)

Instructions for other OSes.

from bottle import route, run, template, redirect
import socket
import subprocess
def index(name):
print(["du", "-sh"]))
return template('<b>Hello {{name}}</b>!', name=name)
update_option( "foobar" )
update_option( 'your_mom_lol' )