This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'builder' | |
def get_user_id(user_name) | |
# create_xml ("username_exists", user_name) | |
end | |
def create_blog_post(post_title, post_content, user_id) | |
var data = { | |
"post_title" => post_title, | |
"post_content" => post_content, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// STATES | |
// | |
// loggedOut | |
// loggedIn | |
// showingBlogButton <------------|- concurrent | |
// atLocation <------------| | |
// inHomePage | |
// inActivity | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CIA-115: ==> rigse :: Stephen Bannasch rails3.0 * r005e5ff / (Gemfile Gemfile.lock) | |
[10:40am] CIA-115: (log message trimmed) | |
[10:40am] CIA-115: Gemfile: dynamic_form to restore some legacy Rails features | |
[10:40am] CIA-115: https://github.com/joelmoss/dynamic_form | |
[10:40am] CIA-115: ==> rigse :: Stephen Bannasch rails3.0 * r74ef4d4 / app/controllers/application_controller.rb | |
[10:40am] CIA-115: (log message trimmed) | |
[10:40am] CIA-115: restore legacy WillPaginate::Collection behavior | |
[10:40am] CIA-115: https://github.com/mislav/will_paginate/wiki/Backwards-incompatibility | |
[10:46am] stepheneb: If you are working on the rails3 stuff and have local commits you might want to: | |
[10:46am] stepheneb: git fetch; git rebase origin/rails3.0; git push origin rails3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xml = '<?xml version="1.0" encoding="UTF-8"?>' + | |
'<methodCall>' + | |
'<methodName>extapi.callWpMethod</methodName>' + | |
'<params>' + | |
'<param>' + | |
'<value>' + | |
'<string>rpc-admin</string>' + | |
'</value>' + | |
'</param>' + | |
'<param>' + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JSON Schema validation + references</title> | |
<!-- load Dojo --> | |
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojo/dojo.xd.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojox/json/schema.js"></script> | |
<script> | |
window.onload=function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var doc, env, report, schema; | |
schema = { | |
"paneSchema": { | |
"type": "object", | |
"properties": { | |
"height": { | |
"type": "number" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
schema = { | |
"properties": { | |
"topPane": { | |
"$ref": "paneSchema" // referring directly by a new id, not #/paneSchema | |
}, | |
"bottomPane": { | |
"$ref": "paneSchema" | |
} | |
}, | |
"paneSchema": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Web Server returning data as JSON-P, adapted from http://arduino.cc/en/Tutorial/WebServer | |
A simple web server that returns the value of the analog input pins as | |
a JSON-P object, using an Arduino Wiznet Ethernet shield. | |
Circuit: | |
* Ethernet shield attached to pins 10, 11, 12, 13 (standard configuration) | |
* Analog inputs attached to pins A0 through A5 (optional) | |
* Example of reading LM35 on pin A0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
sfentress: Set up: a piezoelectric or other speaker with one lead on ground and the other on pin D8 | |
*/ | |
/* | |
Melody | |
Plays a melody | |
circuit: |