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 func unwindFromView(segue: UIStoryboardSegue) { | |
// note that data can be passed with an unwind action | |
} |
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
// 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 |
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
function shuffleCards(cards){ | |
var currentIndex = cards.length, temporaryValue, randomIndex; | |
// While there remain elements to shuffle... | |
while (0 !== currentIndex) { | |
// Pick a remaining element... | |
randomIndex = Math.floor(Math.random() * currentIndex); | |
currentIndex -= 1; | |
// And swap it with the current element. |
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
{ | |
"Statement": [ | |
{ | |
"Sid": "AllowPublicRead", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::bucket_name_here/*" |
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
var alert = UIAlertController(title: "Hello", message: "World", preferredStyle: UIAlertControllerStyle.Alert) | |
alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil)) | |
self.presentViewController(alert, animated: true, completion: nil) |
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
### Keybase proof | |
I hereby claim: | |
* I am kevinbluer on github. | |
* I am kevinbluer (https://keybase.io/kevinbluer) on keybase. | |
* I have a public key whose fingerprint is 038F F16B AC5B 175D 8666 58A9 75D0 AAA1 F65B 832C | |
To claim this, I am signing this object: |
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
Router.route('/', function () { | |
this.render('MyTemplate'); | |
}); |
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
/* Home Button */ | |
nav li.home { | |
width:115px; | |
height:60px; | |
} | |
nav li.home a{ | |
background-position:-5px -5px; | |
} | |
nav li.home a:hover{ |
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
...world! |
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
// 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... |
OlderNewer