Skip to content

Instantly share code, notes, and snippets.

View chyld's full-sized avatar
:electron:
import numpy

Chyld Medford chyld

:electron:
import numpy
View GitHub Profile
@chyld
chyld / ios for beginners
Created July 15, 2012 02:45
notes - ios for beginners
Register as an apple developer:
-------------------------------------------------------------------------------------------------
https://developer.apple.com/devcenter/ios/index.action
Evaluate the different types of developer program:
-------------------------------------------------------------------------------------------------
https://developer.apple.com/programs/which-program/
Changing the text of a label:
-------------------------------------------------------------------------------------------------
@chyld
chyld / javascript class
Created July 18, 2012 16:21
javascript class
There are 3 pillars to every successful website: HTML, CSS and JavaScript. These are the fundamental front-end pieces that makes successful sites tick. Having just HTML and CSS are not enough. The visitors to your site expect an engaging and interactive experience. JavaScript provides your users with the rich interactivity that they expect.
In this class, I will detail how to take a plain, vanilla site and then watch as it jumps to life as we liberally sprinkle generous amounts of JavaScript throughout. It's amazing, really, how much more responsive and engaging a site can become with a few lines of JavaScript.
The list of topics to be discussed in class:
+++
@chyld
chyld / gist:3288816
Created August 7, 2012 19:56
iOS calc
//
// CMViewController.m
// Xcalc
//
// Created by Chyld Medford on 8/7/12.
// Copyright (c) 2012 Chyld Medford. All rights reserved.
//
#import "CMViewController.h"
@chyld
chyld / gist:3305639
Created August 9, 2012 16:25
adv calc
//
// CMViewController.m
// Xcalc
//
// Created by Chyld Medford on 8/9/12.
// Copyright (c) 2012 Chyld Medford. All rights reserved.
//
#import "CMViewController.h"
@chyld
chyld / gist:3308000
Created August 9, 2012 20:59
rails wiki
https://sites.google.com/site/rorsummer12s2/lectures
@chyld
chyld / gist:3317324
Created August 10, 2012 19:49
New rails server for chyld.net
# new rails server for chyld.net
# amazon allows you to create external EBS volumes that automatically attach to your EC2 instance
# 8 GB root device for application & 50 GB EBS for database
ssh -i ~/Documents/ssh-keys/chyldnet.pem [email protected]
# Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-25-virtual x86_64)
# mounts /dev/sdf to /dev/xvdf (ubuntu internal name is different)
sudo mkfs.ext4 /dev/xvdf
@chyld
chyld / gist:3341929
Created August 13, 2012 15:34
rails routes in console
# include routing and URL helpers
include ActionDispatch::Routing
include Rails.application.routes.url_helpers
# use routes normally
users_path #=> "/users"
@chyld
chyld / chyld.rake
Created August 24, 2012 18:41
Creating a rake task
namespace :chyld do
desc 'Populate database'
task :populate => [:environment] do
Song.create(:name => "S1", :album_name => "A1")
Song.create(:name => "S2", :album_name => "A2")
Song.create(:name => "S3", :album_name => "A3")
end
end
@chyld
chyld / mixtape.rake
Created August 26, 2012 19:43
mixtape rake
namespace :mixtape do
desc 'Create songs for mixtape application'
task :create_song_data => [:environment, :delete_song_and_artist_data] 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")
@chyld
chyld / rails_auth.txt
Created August 29, 2012 05:05
rails authentication
http://asciicasts.com/episodes/270-authentication-in-rails-3-1
users table:
------------
password_digest
email