Skip to content

Instantly share code, notes, and snippets.

View Teino1978-Corp's full-sized avatar

Teino Boswell Teino1978-Corp

  • Ocho Rios, Jamaica
View GitHub Profile
@Teino1978-Corp
Teino1978-Corp / FindReferences.cs
Created November 27, 2015 00:42
Find Unity objects that reference a selected asset
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public class FindReferences : EditorWindow, ISerializationCallbackReceiver
{
List<string> displayedRefs = new List<string>();
@Teino1978-Corp
Teino1978-Corp / rsquared3.js
Created November 26, 2015 10:51
Indicates the linear correlation of a three-dimensional data set.
/**
* Returns the r^2 value for a three-dimensional data set.
*
* `r` is the Pearson product-moment correlation coefficient, a measure of
* linear correlation.
*
* @param {Object[]} data
* An array of vectors with `x`, `y`, and `z` properties representing points
* in the data set.
*
@Teino1978-Corp
Teino1978-Corp / Abstract Factory Pattern 2
Created November 26, 2015 08:19
An implementation of the Abstract Factory Pattern written in Java and based on the example given in Wikipedia (http://en.wikipedia.org/wiki/Abstract_factory_pattern)
// Abstract Products
public interface Letter {
public String getIntro();
public String getBody();
}
public interface Resume {
public String getIntro();
public String getBody();
}
@Teino1978-Corp
Teino1978-Corp / README.rst
Last active November 25, 2015 21:24
• Tempest (codename) - https://en.wikipedia.org/wiki/Tempest_(codename); Ansible playbooks for deploying OpenStack - http://docs.ansible.com/ansible/playbooks.html

OpenStack Ansible

OpenStack-Ansible is an `official OpenStack project`_ which aims to deploy production environments from source in a way that makes it scalable while also being simple to operate, upgrade, and grow.

For an overview of the mission, repositories and related Wiki home page, please see the formal `Home Page`_ for the project.

@Teino1978-Corp
Teino1978-Corp / gist:bf9e331edd948d0fb3a6
Created November 25, 2015 10:47
Arduino Yun + node.js + p5.js
// 1. Setup project on Heroku (SEE OTHER SHEET)
// 2. Setup app
//////////////////////////////////////////////////
//// RANDOM BLINK TIMER
//// NODE
// You will need to install the express module
// http://expressjs.com
package processing.app;
import static processing.app.EditorToolbar.EditorToolbarAction.ACTIVE;
import static processing.app.EditorToolbar.EditorToolbarAction.INACTIVE;
import static processing.app.EditorToolbar.EditorToolbarAction.ROLLOVER;
import static processing.app.EditorToolbarActions.EXPORT;
import static processing.app.EditorToolbarActions.NEW;
import static processing.app.EditorToolbarActions.OPEN;
import static processing.app.EditorToolbarActions.RUN;
import static processing.app.EditorToolbarActions.SAVE;
@Teino1978-Corp
Teino1978-Corp / wishlist.json
Created November 25, 2015 08:48
Teino's wishlist
{
"games": [
{
"ps4": [
{
"name": "Fallout 4"
},
{
"name": "Need For Speed 2015"
},
@Teino1978-Corp
Teino1978-Corp / gulpfile.js
Created November 24, 2015 01:32
Broswersync/gulp-boilerplate - http://www.browsersync.io/
/* Custom configuration files */
var conf = require('./gulp-conf');
/* Gulp plugins */
var gulp = require('gulp'),
browserSync = require('browser-sync'),
rename = require("gulp-rename"),
rev = require('gulp-rev'),
sass = require('gulp-sass'),
compass = require('gulp-compass'),
@Teino1978-Corp
Teino1978-Corp / gist:605f13f941cf13fa389b
Created November 23, 2015 14:50
HTML5:easeljs Text
// Create a new Text object, and position it on stage:
var txt = new Text("text on the canvas.", "36px Arial", "#FFF");
txt.textBaseline = "top"; // draw text relative to the top of the em box.
txt.x = 100;
txt.y = 80;
txt.rotation = 20;
//txt.outline = true;
stage.addChild(txt);
@Teino1978-Corp
Teino1978-Corp / gitconfig-and-you.md
Created November 23, 2015 05:45
'Git' is not a git-command. See 'git --help'.

Make git do stuff

Let's get some help from the shell.

$ cat >> ~/.bash_aliases
alias get = 'git'
alias gi = 'git'
alias got = 'git'
alias gti = 'git'