Franklin Webber burtlo

View CursorScript.cs
1 2 3 4 5 6 7 8 9 10
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
 
public class CursorScript : MonoBehaviour {
 
public Texture2D iconArrow;
public Vector2 arrowRegPoint;
public Texture2D iconZoom;
View !result.md

The Problem

I wanted to use a background gradient to represent the types of a Pokémon. There are 18 possible Pokémon types. Pokémon can have one type and some have two types. This leads to roughly 324 combinations (When a Pokémon is one type I simply double that type) or 171 combinations (18 as a triangular number) if I order the types.

The Result

Static Image: Pokemon Types Live: http://attackdex.herokuapp.com/

The Method

View presentation.md

!SLIDE title

Ruby

as a second language

!SLIDE center

Stolkholm Syndrome

!SLIDE title

View universal_framework.rb
1 2 3 4 5 6 7 8 9 10
project = Xcode.project 'TestProject'
 
project.create_target 'Library', :bundle do |target|
target.create_build_phase :sources do |source|
source.add_build_file project.file('TestProject/AppDelegate.m')
end
target.create_build_phase :copy_headers do |headers|
headers.add_build_file_with_public_privacy project.file('TestProject/AppDelegate.h')
View tree.rb
1 2 3 4 5 6 7 8 9 10
require 'happymapper'
 
class Branch
include HappyMapper
 
attr_accessor :tree
end
 
class Tree
include HappyMapper
View exercise.md

Kata: Minesweeper 47

Have you ever played Minesweeper? It’s a cute little game which comes within a certain Operating System whose name we can’t really remember. Well, the goal of the game is to find all the mines within an MxN field. To help you, the game shows a number in a square which tells you how many mines there are adjacent to that square. For instance, take the following 4x4 field with 2 mines (which are represented by an * character):

*...
....
.*..
....
View sample_entry.markdown

To get started with Rails we need to install the gem. From the terminal type:

{% terminal %}
$ gem install rails
Fetching: i18n-0.6.1.gem (100%)
Fetching: multi_json-1.3.6.gem (100%)
Fetching: activesupport-3.2.8.gem (100%)
...
{% endterminal %}
View example.rb
1 2 3 4 5 6 7 8 9 10
require 'ruby-processing'
 
class Board
 
def positions
@positions ||= [ [], [], [] ]
end
 
def at(x,y)
positions[x][y]
View example.rb
1 2 3 4 5 6 7 8 9 10
require 'ruby-processing'
 
class Board
 
def positions
@positions ||= [ [], [], [] ]
end
 
def at(x,y)
positions[x][y]
View example.rb
1 2 3 4 5 6 7 8 9 10
require 'ruby-processing'
 
class Board
 
def positions
@positions ||= [ [], [], [] ]
end
 
def at(x,y)
positions[x][y]
Something went wrong with that request. Please try again.