#Space Worksheet
##Task 1 - Create your Sun
- open JSFiddle in a new tab (preferably using Google Chrome)
- create a blank svg board in the HTML window (top left)
#Space Worksheet
##Task 1 - Create your Sun
#Space 1
#space 1.5
#Space Worksheet 2
##Task 1 - Setup
Enable jQuery
#Space Worksheet 1.5
You need to find the JSFiddle link for the solar system that you made last week - if for whatever reason you can't or you have lost it I have made you a starting jsfiddle - you will need to fork it before you start!
##Task 1 - Hex Colours
There are many ways to represent colours with computers - we've been telling our svg shapes to be "red" or "yellow" or "green" - this isn't great if you want a specific colour green!
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- google's material design colours from | |
http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
<!--reds--> | |
<color name="md_red_50">#FFEBEE</color> | |
<color name="md_red_100">#FFCDD2</color> | |
<color name="md_red_200">#EF9A9A</color> |
#Idiots Guide to Using littleBits cloudBit API
##Introduction
#Getting Started with Apple's WatchKit
###Introduction This is the first post about how we built Whiskr, the Apple Watch to see pictures of cats taken close to you. The aim is to demonstrate more of the trickier features of WatchKit and help people get their own Apple Watch apps launched. This first post is about how to get started, what tools you need and how to set up your project.
###1. XCode and WatchKit
Make sure you have XCode 6.2 which comes with the WatchKit SDK, available at https://developer.apple.com/xcode/downloads/
It's also worth taking the time to check out the following guides:
compile 'com.squareup.okhttp:okhttp:2.2.0'
<uses-permission android:name="android.permission.INTERNET" />
private final OkHttpClient client= new OkHttpClient();
public void sendRequest() {
Request request = new Request.Builder()
.url("https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22Bath%2C%20England%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys")
#Hierarchical Apple Watch Apps
##Introduction
Now we've got our project set up we can start to write some code! Today we're going to take a look at creating a heirarchical Apple Watch App using tables and segues.
###1. Storyboard
Firstly, we're going to start by removing whatever we had on our app interface. We then want to drag out a Table from the UI object items - this should automtically create you a "row" and a "group". The row is like a UITableCell in a UITableVIew, however the group will hold all the UI items for us. Next, we want to drag out a Label on to our table - I positioned mine to go horizontally and vertically central.