Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Chris Jungmann jungchris

🏠
Working from home
View GitHub Profile
@jungchris
jungchris / ViewController.swift
Created Sep 18, 2020
Simplest Video Add to SceneKit - Lesson 1
View ViewController.swift
import UIKit
import SceneKit
import ARKit
class ViewController: UIViewController, ARSCNViewDelegate {
@IBOutlet var sceneView: ARSCNView!
var player : AVPlayer?
@jungchris
jungchris / ViewController.swift
Created Sep 18, 2020
Detect a vertical plane and project a video on it. An image is loaded as a placeholder and replaced by the video when 'play' button is pressed
View ViewController.swift
// this code requires two assets, an image "ocean" and an mp4 "team-walking"
import UIKit
import ARKit
import SceneKit
class ViewController: UIViewController, ARSCNViewDelegate {
// connections to storyboard
@jungchris
jungchris / ViewController.swift
Last active Sep 17, 2020
Create a horizontal plane detector and replace the surface with an image
View ViewController.swift
import UIKit
import ARKit
import SceneKit
class ViewController: UIViewController, ARSCNViewDelegate {
@IBOutlet weak var sceneView: ARSCNView!
let configuration = ARWorldTrackingConfiguration()
@jungchris
jungchris / ViewController.swift
Created Aug 21, 2020
Animations and Interactions of "Solar System" in ARKIt
View ViewController.swift
import UIKit
import SceneKit
import ARKit
class ViewController: UIViewController, ARSCNViewDelegate {
@IBOutlet var sceneView: ARSCNView!
override func viewDidLoad() {
super.viewDidLoad()
@jungchris
jungchris / ViewController.swift
Last active Aug 7, 2020
View an ARKit Solar System In Your Room
View ViewController.swift
import UIKit
import SceneKit
import ARKit
class ViewController: UIViewController, ARSCNViewDelegate {
@IBOutlet var sceneView: ARSCNView!
override func viewDidLoad() {
super.viewDidLoad()
@jungchris
jungchris / ViewController.swift
Last active Jul 10, 2020
ARKit iOS Workshop 4 - Hit Testing and Basic Anmiations
View ViewController.swift
import UIKit
import SceneKit
import ARKit
class ViewController: UIViewController, ARSCNViewDelegate {
@IBOutlet var sceneView: ARSCNView!
let configuration = ARWorldTrackingConfiguration()
@jungchris
jungchris / VieController.swift
Created Jun 19, 2020
ARWorkshop 3 Grafitti in 3D
View VieController.swift
//
// ViewController.swift
// helloARAppWorkshop2
//
// Created by Chris Jungmann on 6/17/20.
// Copyright © 2020 Chris Jungmann. All rights reserved.
//
import UIKit
import SceneKit
@jungchris
jungchris / ARKitWorkshop2.swift
Last active Jun 17, 2020
Functions to Add Simple Shapes in ARKit for iOS Workshop
View ARKitWorkshop2.swift
class ViewController: UIViewController {
@IBOutlet weak var sceneView: ARSCNView!
// declare world tracker
let configuration = ARWorldTrackingConfiguration()
override func viewDidLoad() {
super.viewDidLoad()
@jungchris
jungchris / Template.js
Created Apr 13, 2017
React Native Component Template
View Template.js
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
export default class Template extends Component {
render() {
@jungchris
jungchris / selector.js
Created Apr 11, 2017
A Simple Redux Selector Example
View selector.js
import { createSelector } from 'reselect'
const shopItemsSelector = state => state.shop.items
const taxPercentSelector = state => state.shop.taxPercent
const subtotalSelector = createSelector(
shopItemsSelector,
items => items.reduce((acc, item) => acc + item.value, 0)
)
You can’t perform that action at this time.