Skip to content

Instantly share code, notes, and snippets.

@daniellevass
daniellevass / 1.md
Last active September 29, 2015 11:11
1.md

#Task 1

In your groups decide upon your app idea!

#Task 2

Write down what your app will do exactly. Then come up with at least 3 pictures that you will need inside your app!

#Task 3

@daniellevass
daniellevass / article.md
Last active September 1, 2015 19:15
this equals that
@daniellevass
daniellevass / article.md
Last active November 13, 2015 16:40
project tigr books

#Project Tigr Books

Imgur

Getting more young people interested in technology is vital for the sustainability of the tech industry in Bath and Bristol. We've written here before about what we're doing teaching in the Bath area, and why other people should start helping us too.

We're now on kickstarter with a project to turn some of our online materials into physical books to make it easier for more people to teach their own friends and family to code. Our materials are not a railroad of instructions, unlike most typical code websites where everyone makes exactly the same thing; however they inspire creativity and everyone makes something different. For example, one book will teach creating your own interactive emoji. Our materials are also accessible

@daniellevass
daniellevass / article.md
Last active August 29, 2015 14:26
Bath YRS FoC 2015 projects

Bath Young Rewired State Festival of Code 2015

The Young Rewired State run an event each year called the festival of code - where kids under 18 get to build anything they want (but must contain some open data) and showcase it at the end of the week with all the other centers. This year the weekend was hosted in Birmingham and we had three teams presenting.

This is a run down of the things that they made!

Max - aged 13 - LittleBits Bath PollutionBits

Imgur

Max made a node.js program that connected with the Bath pollution data and displayed two different sensor locations and the average pollution for Bath using littlebits. Littlebits are like lego for programming. One of the bits that I have are cloudbits - whereby we can program them over the Internet. The first picture below is some of the components that we put in a box for display purposes. This could then be used in schools or public locations to display how polluted our cities r

@daniellevass
daniellevass / 1.md
Last active August 29, 2015 14:26
BRLSI app
@daniellevass
daniellevass / 1.md
Last active August 29, 2015 14:18
IoT Hack day
@daniellevass
daniellevass / glances.md
Last active August 29, 2015 14:18
Making use of Glances in an Apple Watch App

#Making Use of Glances in Apple Watch Apps

Finally in our Apple Watch App explorations, one of the features we really wanted to try out was glances. These allow people a "quick look" at some important information. In Whiskr we wanted people to be able to see the picture they last looked at quickly again. Maybe to help people check if a cat in front of them matches the one they saw on their screen.

iPhone App

To get started with glances, we need to save the last image viewed. We will need to use the information from this blog on how to save data between iPhone and Apple Watch app using User Preferences.

Apple Watch App

@daniellevass
daniellevass / sharing_data_ios.md
Last active September 21, 2022 23:06
Sharing Data between iPhone and Apple Watch apps

#Sharing Data between iPhone and Apple Watch apps

So we've already taken a look at some of the issues we've faced building our Whiskr Apple Watch app, next we're going to look into how we shared data between the iPhone and Apple Watch app. This was probably one of the hardest aspects to learn and get right, and the current documentation isn't all that great!

To do this we'll have to create an App Group which is essentially a space which both apps can use. It was brought in with the exetension framework in iOS8 so apps can communicate with their Today widgets, or custom keyboards, and amongst other applications.

Add Capabilities

The first thing we have to do is add the app group capability to both our iPhone and Watch Watch Extension targets.

@daniellevass
daniellevass / context_menus_and_modals.md
Last active October 26, 2015 23:29
Making Context Menus and Modal Dialogs in Apple Watch Apps

#Making Context Menus and Modal Dialogs in an Apple Watch App

Another learning curve we faced when creating the Whiskr Apple Watch App was how to use a context menu with modal dialogs. We ideally wanted this menu to display when the user force touched (long press) on a cat picture, so they could chose between showing where the picture was taken on a map, or display additional information about the picture, for example who took it.

Imgur

the context menu inside the Whiskr app when you force press on a photograph.

##1. Context Menu

The first thing we needed to do was to open our storyboard. We need to drag a "menu" object out onto the Interface Controller that the user will force touch on. It's worth noting here, that a context menu is unique only to a screen, you can not make it unique for each item in a table row for example.

@daniellevass
daniellevass / starting_library_project_AS.md
Last active August 30, 2020 00:48
Getting Started with a library project in Android Studio

Getting Started with a library project in Android Studio

So we're working on creating Android Material Awesome, a library which will hopefully incorperate the benefits of Material Design, Twitter's Bootstrap, and FontAwesome. What we really wanted is a project other people can easily include into their projects using gradle dependencies. To do this we needed to create a standalone library project so we could make it as lightweight as possible for including as a dependency, and a sample app that would use it for testing. These are the steps we took to get started in Android Studio (version 1.1).

Create Projects

The first thing we needed to do was to create two new projects, with all the default settings (Blank Activity etc). One for our sample app, and one for our library. We added both of ours into the same GitHub repo, however you can save them wherever you like.

Fix Up Library Project