I hereby claim:
- I am lorecrafting on github.
- I am lorecrafting (https://keybase.io/lorecrafting) on keybase.
- I have a public key whose fingerprint is F13D 16DE 75E9 087D 58EC 5C07 D292 9189 2D16 862B
To claim this, I am signing this object:
Template.addRoom.isBuilder = function(){ | |
var currentUserEmail = Meteor.user().emails[0].address; | |
var builderEmail = 'builder@builder'; | |
if (currentUserEmail === builderEmail){ | |
return true; | |
} else{ | |
return false; | |
} | |
}; |
'click #confirm': function() { | |
var selectedLine = Session.get('lineSelect'); | |
if (selectedLine === 'line2') { | |
Session.set('selectedDragon', "Metal Dragon") | |
Session.set('leftUiStage', 2) | |
Session.set('rightUiStage', 2) | |
Meteor.users.update(Meteor.userId(),{$set: {profile: Dragons.find({_id: "Yn96cfK5MGPKZTKTN"}).fetch()[0]}}) | |
//If I put the Meteror.users.update... line before the session.sets, the helper will update the database, but it won't set the sessions. |
var newdirs = ['e','w','s']; | |
for (var i = 0; i < newdirs.length; i++) { | |
Meteor.setTimeout(function(){ | |
engine.movePlayer(newdirs[i]); | |
},3000); | |
} |
I hereby claim:
To claim this, I am signing this object:
# 5-Day Unity Workshop Flow (Maze Game) | |
*Overview:* | |
Throughout the entire workshop, twice daily standups and stretching exercises, one in the morning and one before lunch are given with | |
a brief status update and any difficulties students have. The curriculum is built in a way that hand-coded systems are introduced before using | |
a turn-key solution such as Unity's Navigation system and built-in FPSController prototyping GameObject so that students can appreciate | |
what happens at a lower level. The overall flow is also designed to be on train tracks until end of day 2 when the training | |
wheels slowly come off ending in a Demo Day. | |
Day 1 and 2 are very rigorous hands-on guided coding and troubleshooting days as students follow along with live-coding scripts. |
Be able to write out these skeletons in less than five seconds. It is vital that these are committed to memory and you don't need to think about it when asked to create these.
var aFunc = function(arg1, arg2) {
// your code in function body here using arg1 and arg2
}
Goals: | |
Incoming students should have terminal basics, git basics, their dev environments and js fundamentals down before the first day of class. | |
These js fundamental structures should be able to be written out from memory in less than five seconds: https://gist.github.com/lorecrafting/4d69396a401c2b1c8e9a435365928ada#gistcomment-2040318 | |
## Week 1 | |
1. Introductions, go around the hangouts and have self-intros. What kind of background programming experience they have, motivations etc. | |
1. Emphasize teamwork, they are on a team and are accountable for each other. | |
1. Do a 2-minute max live-code checkin on each student sharing their own screen with simple exercises like 'create an array with numbers 1-5, create a function to loop over the array and print out the numbers. Execute the function'. (Will create a repository of these mini checkin prompts) | |
1. Give them the JS subset of things to commit to muscle memory. https://gist.github.com/lorecrafting/4d69396a401c2b1c8e9a435365928ada#gistcomment-2040318 | |
1. Assign t |
using UnityEngine; | |
using System.Collections; | |
public class LookAtScript : MonoBehaviour { | |
public Transform target; | |
void Update() { | |
Vector3 relativePos = target.position - transform.position; | |
transform.rotation = Quaternion.LookRotation(relativePos); | |
} |
class CmdLook(COMMAND_DEFAULT_CLASS): | |
""" | |
look at location or object | |
Usage: | |
look | |
look <obj> | |
look *<account> | |
Observes your location or objects in your vicinity. | |
""" | |
key = "look" |
// NOT DEBUGGED | |
class HashTable { | |
constructor() { | |
this._storage = []; | |
this._count = 0; | |
this._limit = 10; | |
} | |
insert(key, value) { |