This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
UI- and App Frameworks Evangelist - Jake Behrens, behrens@apple.com, twitter: @Behrens | |
- What's new in Cocoa | |
- Accessibility in iOS | |
- Building User Interfaces for iOS 7 | |
- Getting Started with UIKit Dynamics | |
- What's new in Cocoa Touch | |
- What's New With Multitasking | |
- Best Practices for Cocoa Animation | |
- Improving Power Efficiency with App Nap | |
- Introducing Text Kit |
public void addAComment(Comment c) throws Exception{ | |
openConnection(); | |
Statement st = connection.createStatement(); | |
String query = "insert into comments (comment,personid,personname,issueid,commenton,companyid) " + | |
"values('"+c.getComment()+"',"+c.getPersonid()+",'"+c.getPersonname()+"',"+c.getIssueid()+",'"+c.getCommenton()+"',"+c.getCompanyid()+")"; | |
st.execute(query); | |
System.out.println("====Comment added"); | |
closeConnection(); | |
} | |
class Order | |
attr_accessor :amount | |
def amount=(given_amount) | |
#write your logic here | |
end | |
end | |
order = Order.new |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
upstream railsapp { | |
server 0.0.0.0:5000 weight=10 max_fails=5 fail_timeout=30s; | |
} | |
server { | |
listen 80; | |
server_name admin.com; | |
location / { | |
proxy_pass http://railsapp/; |
this is just text file. you can create any other type of file as well ! |
$ git config --global core.editor 'mate -w' |
sample file |
$ rails app_name | |
$ cd app_name | |
$ git init | |
$ touch README | |
$ git add . | |
$ git commit -m 'First commit' | |
$ git checkout -b 'new_branch_name' | |
$ .. # do your work | |
$ git add . | |
$ git commit -m ' .. completed' |