Skip to content

Instantly share code, notes, and snippets.

daniellevass / Web programming - space
Last active November 13, 2015 11:51
Web programming - Space Worksheet
View Web programming - space

#Space Worksheet

alt text

##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)
daniellevass / Web Programming Space Worksheet
Last active November 13, 2015 11:51
Web Programming Space Worksheet 2
View Web Programming Space Worksheet

#Space Worksheet 2

alt text

##Task 1 - Setup

  • Either find your JSFiddle from last week (you need at least 1 planet to start this worksheet)
  • Or use my JSFiddle (please open in a new tab in Google Chrome)

Enable jQuery

daniellevass /
Last active November 14, 2015 20:44
Web Programming Space Worksheet 1.5

#Space Worksheet 1.5

alt text

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!

daniellevass / android_material_design_colours.xml
Last active January 30, 2023 06:24
Android Material Design Colours
View android_material_design_colours.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- google's material design colours from -->
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>
daniellevass /
Last active May 22, 2018 19:48
Idiots Guide to Using littleBits cloudBit API

#Idiots Guide to Using littleBits cloudBit API


  1. Connect a cloudBit to your network using the instructions at
  2. Find out your AccessToken
  • visit
  • on the left hand side select any of your cloudBits
  • using the tab bar at the bottom select settings
  • scroll down and copy your AccessToken
daniellevass /
Last active August 29, 2015 14:14
Getting Started with Apple's WatchKit

#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

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()
daniellevass /
Last active August 19, 2017 23:40
Hierarchical Apple Watch Apps

#Hierarchical Apple Watch Apps


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.