Skip to content

Instantly share code, notes, and snippets.

View nickpettit's full-sized avatar

Nick Pettit nickpettit

View GitHub Profile
@nickpettit
nickpettit / SceneLoader.cs
Last active November 26, 2020 16:43
This Unity script will add fields in the inspector that allow you to enter a scene number. When the user presses the space bar, Unity will load the new scene.
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class SceneLoader : MonoBehaviour {
private bool loadScene = false;
[SerializeField]
private int scene;
@nickpettit
nickpettit / app.js
Created February 9, 2011 23:31
Alpis Design CSS3 Logo
$(function() {
$("a.reset").toggle();
$("a.play").click(function () {
$(".color").toggleClass("on");
window.setTimeout(function() {
$("div").toggleClass("rounded");
}, 1000);
@nickpettit
nickpettit / border_radii.css
Created February 9, 2011 22:19
Condensed Border Radii
.black, .blue, .pink, .yellow {
-webkit-transition: all 0.5s ease;
width: 10px;
height: 10px;
-moz-border-radius: 0;
border-radius: 0;
display: block;
background: #FFF;
padding: 0;
}