Skip to content

Instantly share code, notes, and snippets.

View xta's full-sized avatar

Rex Feng xta

View GitHub Profile
@xta
xta / List of Programmers You Should Know About.txt
Created November 8, 2012 15:18 — forked from aviflombaum/List of Programmers You Should Know About.txt
Programmers I plan on covering at Flatiron School
matz
kent beck
roy fielding
martin fowler
tim berners lee
david heniemer hansing
john resig
jesse james garret
_why the lucky stiff
marc anderseen
@xta
xta / seed.rake
Created November 2, 2012 20:14 — forked from aviflombaum/seed.rake
Rails Lab: Associations - seed.rake file for Songs & Artists
desc "Create a bunch of seed data for artists and songs"
task :seed_artists_and_songs => [:environment, :clear_artists_and_songs] do
# Build Song Off Artist
# Given a Song called R.E.S.P.E.C.T
# build the Aretha Franklin Artist
s = Song.create(:name => "R.E.S.P.E.C.T")
s.build_artist(:name => "Aretha Franklin")
s.save
@xta
xta / gist:3954749
Created October 25, 2012 19:08
Enumerable Ruby Methods
#For processing iterations
Array#each
Calls block once for each element in self, passing that element as a parameter.
====================================================================================
#Return array / object after iterations
Enumerable#map / Enumerable#collect
@xta
xta / quizschema.sql
Created October 4, 2012 20:13 — forked from styliii/quizschema.sql
Setting up the Database
CREATE TABLE user (
id INTEGER PRIMARY KEY,
first_name TEXT,
email TEXT
);
CREATE TABLE quiz (
id INTEGER PRIMARY KEY,
user_id INTEGER,
name TEXT
@xta
xta / adding_data.sql
Created October 4, 2012 18:46 — forked from styliii/adding_data.sql
Adding Data
INSERT INTO user (id, first_name, email)
VALUES ( 0, "Josh", "[email protected]");
INSERT INTO user (id, first_name, email)
VALUES ( 1, "Aaron", "[email protected]");
INSERT INTO user (id, first_name, email)
VALUES ( 2, "Matt", "[email protected]");
INSERT INTO user (id, first_name, email)
@xta
xta / gist:1558952
Created January 4, 2012 07:23
Manual DSLR Photography (Pt2 - Rex Feng)

Digital SLR photography allows you to control how light is exposed to your camera's sensor. In manual mode, you are given control of ISO, aperture, and shutter speed. The way that these three elements interact with each other produces your photograph.

ISO is the camera sensor's sensitivity to light. Lower values are less sensitive, whereas higher values are more sensitive to light. With a low ISO value (e.g. 100), your photographs will look clean (without camera grain). ISO 100 is recommended for a sunny day. With a higher ISO value (e.g. 1600), your camera will introduce undesired noise and grain. In low light settings, using a high ISO value helps you get your desired shot.

Aperture measures the amount of light that the camera lens lets through. Lower aperture values (e.g. f/1.4) correspond to more light, while higher aperture values (e.g. f/5.6) allow less light to pass through the lens. In addition to the amount of light, aperture also controls the amount of blur for out of focus areas. Lower f-numbers