Skip to content

Instantly share code, notes, and snippets.

View Ingelheim's full-sized avatar

Lukas Ingelheim Ingelheim

View GitHub Profile
  1. Which HTML 5 tag would you use for semantically correctly wrap your page footer?
  2. What is the difference between a class and an id in HTML and what is it used for?
  3. What is wrong in the following HTML?
<div class="some-class">
<div class="some-class" id="someID"></div>
  1. How would you create a new file named testFile with the command line?
  2. How would you remove this file with the command line?
  3. Given you are in a folder that has git and a remote branch on github. How would you get the most current version on your machine?

Test 1

  1. Which HTML 5 tag would you use for semantically correctly wrap your page navigation?
  2. What is the difference between a <div> and a <span> in HTML?
  3. What is wrong in the following HTML?
<div class="some class" id="someID"></div>
<div class="some class" id="someID"></div>
  1. How would you create a new folder named testFolder with the command line?

Test 1

  1. Which HTML 5 tag would you use for semantically correctly wrap your page navigation?
  2. What is the difference between a <div> and a <span> in HTML?
  3. What is wrong in the following HTML?
<div class="some class" id="someID"></div>
<div class="some class" id="someID"></div>
  1. How would you create a new folder named testFolder with the command line?
function createArray(w, x, y, z) {
  return [w, x, y, z]
}

createArray(1, 4, 6, 3) // [1, 4, 6, 3]
createArray(1, 2, 3, 4) // [1, 2, 3, 4]
createArray("hello", "bye", "test", "morning") // ["hello", "bye", "test", "morning"]

var testArray = [1, 2, 3, 4, 5]
var setSong = function(songNumber) {
if (currentSoundFile) {
currentSoundFile.stop();
}
currentlyPlayingSongNumber = parseInt(songNumber);
currentSongFromAlbum = currentAlbum.songs[songNumber - 1];
currentSoundFile = new buzz.sound(currentSongFromAlbum.audioUrl, {
formats: [ 'mp3 '],
preload: true
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
// Create a session configuration
let configuration = ARWorldTrackingConfiguration()
// Run the view's session
sceneView.session.run(configuration)
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
guard let referenceImages = ARReferenceImage.referenceImages(inGroupNamed: "Mona Lisa Room", bundle: nil) else {
fatalError("Missing expected asset catalog resources.")
}
let configuration = ARWorldTrackingConfiguration()
configuration.detectionImages = referenceImages
var selectedImage : ImageInformation?
let images = ["monalisa" : ImageInformation(name: "Mona Lisa",
description: "The Mona Lisa is a half-length portrait painting by the Italian Renaissance artist Leonardo da Vinci that has been described as 'the best known, the most visited, the most written about, the most sung about, the most parodied work of art in the world'.",
image: UIImage(named: "monalisa")!)]
override func viewDidLoad() {
super.viewDidLoad()
sceneView.delegate = self
sceneView.showsFPS = true
sceneView.showsNodeCount = true
if let scene = SKScene(fileNamed: "Scene") {
sceneView.presentScene(scene)
}
func view(_ view: ARSKView, nodeFor anchor: ARAnchor) -> SKNode? {
if let imageAnchor = anchor as? ARImageAnchor,
let referenceImageName = imageAnchor.referenceImage.name,
let scannedImage = self.images[referenceImageName] {
self.selectedImage = scannedImage
self.performSegue(withIdentifier: "showImageInformation", sender: self)