Skip to content

Instantly share code, notes, and snippets.

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

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

#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
daniellevass / webprogramming_space_1_5.md
Last active November 14, 2015 20:44
Web Programming Space Worksheet 1.5
View webprogramming_space_1_5.md

#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
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"?>
<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>
@daniellevass
daniellevass / idiots-guide-to-littlebits-cloudbit-api.md
Last active May 22, 2018 19:48
Idiots Guide to Using littleBits cloudBit API
View idiots-guide-to-littlebits-cloudbit-api.md

#Idiots Guide to Using littleBits cloudBit API

##Introduction

  1. Connect a cloudBit to your network using the instructions at http://control.littlebitscloud.cc/
  2. Find out your AccessToken
  • visit http://control.littlebitscloud.cc/
  • 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
daniellevass / getting_started.md
Last active August 29, 2015 14:14
Getting Started with Apple's WatchKit
View getting_started.md

#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:

View 1.md

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)&amp;format=json&amp;env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys")
@daniellevass
daniellevass / 0_hierarchical_apps.md
Last active August 19, 2017 23:40
Hierarchical Apple Watch Apps
View 0_hierarchical_apps.md

#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.