Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import os
import sys
import subprocess
import argparse
import ConfigParser
import shlex
# Default config
DEFAULT_SOUND = 'beep-crisp'
@jononon
jononon / DoorGuard
Created December 18, 2014 01:33
Door Guard for Robotics
#pragma config(Sensor, S1, Door, sensorEV3_Ultrasonic)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
task main() {
setLEDColor(ledOrangePulse);
wait1Msec(3000);
int threshold = SensorValue[Door]-10;
while(true) {
setLEDColor(ledGreenPulse);
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="wolfram1" />
<Content type="html"><![CDATA[
<script type="text/javascript" id="WolframAlphaScriptc9e253055ef32f8efad9019df7961804" src="http://www.wolframalpha.com/widget/widget.jsp?id=c9e253055ef32f8efad9019df7961804"></script>
]]></Content>
</Module>
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="wolfram1" />
<Content type="html"><![CDATA[
<script type="text/javascript" id="WolframAlphaScript57e20d06ef2e9ca00fe43ebbbdbc0f50" src="http://www.wolframalpha.com/widget/widget.jsp?id=57e20d06ef2e9ca00fe43ebbbdbc0f50"></script>
]]></Content>
</Module>