This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { | |
Sphere | |
} from 'react-vr'; | |
import * as CANNON from 'cannon/build/cannon.js' | |
export default class Particle extends React.Component { | |
constructor(props) { | |
this.body = new CANNON.Body({ | |
mass: 1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* For a more in depth look at the guard statement check out | |
* http://ericcerney.com/swift-guard-statement/ | |
* where I build off the sample shown here. | |
*/ | |
var x: Int? = 0 | |
// Lets me unwrap x and also check a condition on it | |
func fooGuard() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USEFUL GIT COMMANDS: | |
CLONING A REPO: | |
git clone http://github.com/lnickers2004/git-practice.git | |
CHECKING THE HISTORY OF COMMITS: | |
git log | |
git log --oneline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="app"> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<meta charset=utf-8 /> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.2/angular.min.js"></script> | |
<meta name="description" content="$scope.$apply example" /> | |
</script> | |
<title></title> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by larrynickerson on 4/13/15. | |
*/ | |
var isDone:boolean = false; | |
var height:number = 6; | |
var name:string = "bob"; | |
name = 'smith'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by larrynickerson on 4/13/15. | |
*/ | |
/* | |
* Our First Interface | |
The easiest way to see how interfaces work is to start with a simple example: | |
The type-checker checks the call to 'printLabel'. The 'printLabel' function | |
has a single parameter that requires that the object passed in has a property | |
called 'label' of type string. Notice that our object actually has more |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by larrynickerson on 4/13/15. | |
*/ | |
/* | |
* Introduction | |
* | |
Traditional JavaScript focuses on functions and prototype-based | |
inheritance as the basic means of building up reusable components, | |
but this may feel a bit awkward to programmers more comfortable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by larrynickerson on 4/13/15. | |
*/ | |
/* | |
* Introduction | |
* | |
Traditional JavaScript focuses on functions and prototype-based | |
inheritance as the basic means of building up reusable components, | |
but this may feel a bit awkward to programmers more comfortable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by larrynickerson on 4/13/15. | |
*/ | |
/* | |
* Our First Interface | |
The easiest way to see how interfaces work is to start with a simple example: | |
The type-checker checks the call to 'printLabel'. The 'printLabel' function | |
has a single parameter that requires that the object passed in has a property | |
called 'label' of type string. Notice that our object actually has more |
NewerOlder