Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Transportation.Models;
namespace Transportation.ViewModels
{
public class TransportationViewModel
{
public List<Car> Cars {get; set;}
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Transportation.ViewModels.TransportationViewModel>" %>
<%@ Import Namespace="Transportation.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
ListVehicles
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>List Vehicles</h2>
<h4>Cars:</h4>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Transportation.Models;
namespace Transportation.ViewModels
{
public class TransportationViewModel
{
public List<Car> Cars {get; set;}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Transportation.ViewModels;
using Transportation.Models;
namespace Transportation.Controllers
{
// These are the interrupt and control pins
#define ADAFRUIT_CC3000_IRQ 3 // MUST be an interrupt pin!
#define ADAFRUIT_CC3000_VBAT 5
#define ADAFRUIT_CC3000_CS 10
Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000_IRQ, ADAFRUIT_CC3000_VBAT,
SPI_CLOCK_DIV2); // you can change this clock speed but DI
#define WLAN_SSID "network"
#define WLAN_PASS "password"
@SaraJo
SaraJo / Blink.ino
Created April 27, 2014 19:12
Sketch for RFDuino to Blink an LED from an iPhone app
// Read temperature
// -----------------
// Create a variable that will store the temperature value
int temperature = 0;
void setup()
{
// Register a Spark variable here
Spark.variable("temperature", &temperature, INT);
// Read temperature
// -----------------
// Create a variable that will store the temperature value
int temperature = 0;
void setup()
{
// Register a Spark variable here
Spark.variable("temperature", &temperature, INT);
### Keybase proof
I hereby claim:
* I am sarajo on github.
* I am sara (https://keybase.io/sara) on keybase.
* I have a public key whose fingerprint is 00C9 1312 DCA3 A128 9169 9722 5635 BBA2 3F40 6AFF
To claim this, I am signing this object:
void RFduinoBLE_onReceive(char *data, int len)
{
Adafruit_NeoPixel strip = Adafruit_NeoPixel(12, 2, NEO_GRB + NEO_KHZ800);
strip.begin();
//now set the color
if(data[4] == '1'){