This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#amazon ec2 image | |
#ubuntu 10.10, 64bit : ami-cef405a7 | |
#to add additional ebs storage to your instance | |
#goto volumes and create a volume in the same zone as the instance | |
#after it is created, attach the volume to the instance | |
Attachment Information:i-dbb12eb7:/dev/sdp (attached) | |
#ssh to ec2 | |
ssh -i <key-file>.pem ubuntu@<ip-address-to-ec2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#amazon ec2 image | |
#ubuntu 10.10, 64bit | |
#east-coast : ami-cef405a7 | |
#west-coast : ami-af7e2eea | |
#ssh to ec2 | |
ssh -i <key-file>.pem ubuntu@<ip-address-to-ec2> | |
#change ssh timeouts | |
sudo vi /etc/ssh/sshd_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" http://vimdoc.sourceforge.net/htmldoc/options.html | |
set nocompatible | |
syntax on | |
filetype plugin indent on | |
filetype indent on | |
set number " turn on line numbering | |
set wrap! " turn off word wrapping | |
set smartindent " enable smart indent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- run software update | |
- change wallpaper | |
- change window border theme | |
http://linuxmint-art.org/content/show.php/Dust+Blue+Metacity?content=91808 | |
- replace mate-terminal with gnome-terminal | |
sudo apt-get install gnome-terminal | |
- update shortcut link on menu to use gnome-terminal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core: | |
---------- | |
! | |
; | |
show-input | |
amend-line | |
edit | |
hist | |
play | |
cd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails new experimental | |
rm public/index.html | |
pry -r ./config/environment | |
rails generate scaffold Product name:string description:text price:decimal | |
in application.js (for example) | |
*** require_tree . # loads all files recursively | |
*** require_directory . # loads only files in the current directory | |
Rails.application.config.assets.paths # search path for assets | |
other.js.coffee.erb # preprocessors - erb is 1st, coffee is 2nd and final output is js | |
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
About: | |
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = | |
This is an intermediate course on Ruby on Rails. I will lead you from a beginner, | |
novice Rails developer to an intermediate one. After this class you will have the | |
tools and knowledge you need to create solid, professional Rails applications. | |
Schedule: | |
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = | |
The class will meet for 7 sessions on Sunday (noon to 3pm) and Monday (6pm to 8pm). | |
The first class will begin on Monday, August 6 and the last class will be Monday, August 27. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface CMViewController : UIViewController | |
<UITextFieldDelegate> | |
{ | |
NSMutableArray* words; | |
IBOutlet UITextField* mytext; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (IBAction)concatFields:(id)sender | |
{ | |
//NSString* s = field1.text; | |
//label.text = [s stringByAppendingString:field2.text]; | |
float f1 = field1.text.floatValue; | |
float f2 = field2.text.floatValue; | |
NSNumber* n = [NSNumber numberWithFloat:f1*f2]; | |
label.text = n.stringValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IWD 2 Final Project: | |
(5 points) - Create a new rails app called HappiTails | |
(5 points) - Create a Animal scaffold - it should have photo, name, type (dog or cat), age, gender | |
(5 points) - Create a Shelter scaffold - should have photo, name, address | |
(5 points) - Check presence on all names on all models | |
(5 points) - Check uniqueness of names on all models | |
(5 points) - Check age on all models should be greater than zero | |
(5 points) - Create a logo, header and footer that should be visible on all pages | |
(5 points) - Create a home page that should describe the HappiTails website |
OlderNewer