Skip to content

Instantly share code, notes, and snippets.

View lnickers2004's full-sized avatar

Larry Nickerson lnickers2004

View GitHub Profile
@lnickers2004
lnickers2004 / Ball.js
Created August 9, 2017 22:50 — forked from fmnxl/Ball.js
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,
/*
* 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() {
@lnickers2004
lnickers2004 / git-commands-cheatsheet.txt
Created April 28, 2015 02:22
commands for rebasing and merging
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
<!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>
/**
* Created by larrynickerson on 4/13/15.
*/
var isDone:boolean = false;
var height:number = 6;
var name:string = "bob";
name = 'smith';
/**
* 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
@lnickers2004
lnickers2004 / typescript-classes-codeplex.ts
Created April 14, 2015 19:08
typescript class practice typescript file from codeplex
/**
* 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
@lnickers2004
lnickers2004 / typescript-classes-codeplex.ts
Created April 14, 2015 19:07
Typescript class practice
/**
* 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
@lnickers2004
lnickers2004 / typescript-interfaces-codeplex.ts
Created April 13, 2015 18:56
First foray into typescript Larry
/**
* 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
We couldn’t find that file to show.