Skip to content

Instantly share code, notes, and snippets.

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
@luckydev
luckydev / comment.java
Created May 11, 2014 06:06
My first pieces of web db code. Without ORM. or ActiveRecord.
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();
}
@luckydev
luckydev / def_method
Last active August 29, 2015 14:02
Define method
class Order
attr_accessor :amount
def amount=(given_amount)
#write your logic here
end
end
order = Order.new
@luckydev
luckydev / about.md
Last active August 29, 2015 14:18 — forked from jasonrudolph/about.md
@luckydev
luckydev / gist:fa20f717aa677751d0f6
Created June 24, 2015 10:15
add these lines to nginx config
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