Skip to content

Instantly share code, notes, and snippets.

View nickbreslin's full-sized avatar

Nick Breslin nickbreslin

View GitHub Profile
@nickbreslin
nickbreslin / GameGUI.cs
Last active December 17, 2015 08:29
GUI Bars
using UnityEngine;
using System.Collections;
public class Bar {
public Color color;
public Color background;
public float x;
public float y;
public float width;
public float height;
@nickbreslin
nickbreslin / gist:5536913
Created May 7, 2013 23:08
Sight Alignment
using UnityEngine;
using System.Collections;
public class ... : MonoBehaviour
{
Vector3 startingPosition;
Vector3 endPosition;
public Transform weapon;
void Awake() {
@nickbreslin
nickbreslin / template.textile
Created January 31, 2013 07:02
My Textile README Template

Project Title

Introduction

The Purpose of this Project.

Installation

How to set up development and/or runtime environment.

@nickbreslin
nickbreslin / Adjust Scroll Location through Javascript
Created February 10, 2011 11:34
Great for adjusting viewports with iframes such as Facebook apps
/**
* Just after body tag. Point to adjusting viewport
*/
<a id="top"></a>
/**
* Triggered event, adjusting viewport to element
*/
var el = document.getElementById('top');
@nickbreslin
nickbreslin / Javascript: FB.api to execute fql.query
Created February 10, 2011 06:41
Javascript: FB.api to execute fql.query for permissions, response handles whether or not user has permission
FB.api(
{
method: 'fql.query',
query: 'SELECT uid FROM permissions WHERE email = 1 AND uid = me()',
},
function(response) {
if(response.uid != 'undefined') {
console.log("User has permission.");
} else {
console.log("User does not have permission.");