This is SVVR's new shared co-working space for demonstration
- 24 hour access
- Demo equipment and library
- Digital benefits
- March 21st, 2018
# Simulate a five sided die using a seven sided die | |
import random | |
def rand7(): | |
return random.randrange(1,8) | |
def rand5(): | |
roll = rand7() | |
return roll if roll <= 5 else rand5() |
Main Takeaway Action Items
# users can layout rect, text, and images | |
# explore data structures | |
# want to be able to given a completed mock up which is a collection of | |
# rectangles, text, and images | |
# Document class – How would you render a whole Document to JSON? | |
# Document has an array of [rectangles, text, images] | |
# Rectangle , Text , Images all have —> .renderToJSON() function |
// Interviewer: Alexis Palangie Position: Apple Senior Software Engineer | |
// Date: 4/2/2018 10:30am | |
// Tested my knowledge of Unity Engine | |
// Question 1 | |
// MyBehavior b = this.GetComponent<MyBehavior>(); | |
// transform.parent.gameobject | |
// template<T> | |
// T GetComponentInParent() | |
// template<T> T GetComponent() |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
// this goes into the editor folder | |
// we give it a specific scriptable object it will make that object for us | |
public static class ScriptableObjectUtility | |
{ | |
public static void CreateAsset<T> () where T : ScriptableObject | |
{ |
using UnityEngine; | |
using System.Collections; | |
public class FakeModelData : ScriptableObject { | |
public static bool splitByMaterial = false; | |
public static string[] searchPaths = new string[] { "", "%FileName%_Textures" + Path.DirectorySeparatorChar }; | |
struct FakeModelFace | |
{ | |
public string materialName; | |
public string meshName; |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[CreateAssetMenu(fileName ="New User Object", menuName = "ObjectRuntime/Cube")] | |
public class ObjectRuntime : ScriptableObject { | |
public string name; | |
public List<FaceGroupData> faceGroups = new List<FaceGroupData>(); | |
public List<FaceIndices> allFaces = new List<FaceIndices>(); | |
public bool hasNormals = false; |
newmtl lambert2SG | |
illum 4 | |
Kd 0.40 0.40 0.40 | |
Ka 0.00 0.00 0.00 | |
Tf 1.00 1.00 1.00 | |
Ni 1.00 | |
newmtl lambert3SG | |
illum 4 | |
Kd 0.33 0.04 0.04 | |
Ka 0.00 0.00 0.00 |
# This file uses meters as units for non-parametric coordinates. | |
mtllib Lo_poly_Spaceship_01_by_Liz_Reddington.mtl | |
g default | |
v 58.229046 -24.446524 -277.894653 | |
v 114.326607 -13.917201 -277.894653 | |
v 58.229046 24.446524 -277.894653 | |
v 114.326607 13.917201 -277.894653 | |
v 47.697781 33.625286 -306.243042 | |
v 124.857857 19.142588 -306.243042 |