Skip to content

Instantly share code, notes, and snippets.

View kevinbluer's full-sized avatar
🚣

Kevin Bluer kevinbluer

🚣
View GitHub Profile
@kevinbluer
kevinbluer / gist:c1151dc76fb40050a10f
Created September 7, 2014 14:41
Styling a button
// some styling on the "sports" button
buttonSports.backgroundColor = UIColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 0.5)
buttonSports.layer.cornerRadius = 10
buttonSports.layer.borderWidth = 2
buttonSports.layer.borderColor = UIColor( red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0 ).CGColor
@IBAction func unwindFromView(segue: UIStoryboardSegue) {
// note that data can be passed with an unwind action
}
@kevinbluer
kevinbluer / gist:7131090
Created October 24, 2013 03:55
Bluedot News Order Tweak
// from this...
$("#newsContainer").rss(
"https://news.google.com/news/feeds?q=%22horizon+media%22&safe=off&bav=on.2,or.r_cp.r_qf.&bvm=bv.50165853,d.dmg,pv.xjs.s.en_US.seW1cfrvSKg.O&biw=1440&bih=735&um=1&ie=UTF-8&output=rss", {
limit: 4,
entryTemplate: '<li onmouseover="hover(this)"><a href="{url}" target="_blank">{title}</a><br><span class="newsDate">{date}</span></li>'
});
});
// to this...
@kevinbluer
kevinbluer / gist:6631659
Created September 20, 2013 00:17
Hello...
...world!
@kevinbluer
kevinbluer / gist:4225506
Created December 6, 2012 15:48
Background position for the homework sprites
/* Home Button */
nav li.home {
width:115px;
height:60px;
}
nav li.home a{
background-position:-5px -5px;
}
nav li.home a:hover{