Skip to content

Instantly share code, notes, and snippets.

@eternalstorms
eternalstorms / Apple Evangelists.txt
Created June 12, 2013 09:07
Apple Evangelists (WWDC 2013)
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
@danro
danro / twitter-text.js
Created October 14, 2011 17:35
Parse links & usernames in twitter text.
// parses the text in a tweet and adds links to users, hash tags and urls
parseTweet: function (text) {
// parse urls
text = text.replace(/[A-Za-z]+:\/\/[A-Za-z0-9_-]+\.[A-Za-z0-9_:%&~\?\/.=-]+/g, function(url) {
return url.link(url)
})
// parse usernames
text = text.replace(/[@]+[A-Za-z0-9_-]+/g, function(u) {
var username = u.replace("@","")
return u.link("http://twitter.com/"+username)