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
class SectionLayoutManager { | |
//MARK: - Inner Enums | |
enum LayoutType { | |
case Profile | |
case ProfileFollowing | |
case ProfileFollower | |
case ProfileFollowingFollower | |
init(followingCount: Int, followerCount: Int) { | |
if followingCount > 0 && followerCount > 0 { |
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
// based on this article. http://qiita.com/magickworx/items/9a8e6108db8134a8363a#comment-f7c2edf79151a38f4d9d | |
extension Double { | |
func toRadians() -> Double { | |
return self * Double(M_PI) / 180 | |
} | |
} | |
extension UIView { | |
private struct Const { |
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
// | |
// WPTextAttachment.h | |
// ReadArticle | |
// | |
// Created by Moore, Stuart on 12/27/13. | |
// Copyright (c) 2013 The Washington Post. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
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
<?php | |
for($i=1; $i<=100; $i++){ | |
if($i%3==0 && $i%5!=0){ | |
print '(」・ω・)」うー!'; | |
} | |
else if($i%5==0 && $i%3!=0){ | |
print '(/・ω・)/にゃー!'; | |
} | |
else if($i%5!=0 || $i%3!=0){ | |
print "$i"; |
NewerOlder