Skip to content

Instantly share code, notes, and snippets.

View jamesballard's full-sized avatar

James Ballard jamesballard

  • Melbourne
  • 22:35 (UTC +10:00)
View GitHub Profile
library(ggplot2)
?mpg
head(mpg)
str(mpg)
# Identify a scatter point
attach(mtcars)
plot(mpg, wt)
identify(x = mpg, y = wt, n = 3, label = row.names(mtcars))
detach(mtcars)
@jamesballard
jamesballard / ball.cs
Created February 21, 2016 02:34
Unity Bouncing Ball
using UnityEngine;
using System.Collections;
public class Ball : MonoBehaviour {
private Paddle paddle;
private Vector3 paddleToBallVector;
private bool hasStarted = false;