I hereby claim:
- I am jogendra on github.
- I am jogendra (https://keybase.io/jogendra) on keybase.
- I have a public key whose fingerprint is 11A1 155F 7873 91E3 B0B2 45EB 36D8 1AA0 FF56 B4A0
To claim this, I am signing this object:
| <?xml version="1.0" encoding="UTF-8"?> | |
| <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="Jmb-RX-PiR"> | |
| <device id="retina5_5" orientation="landscape"> | |
| <adaptation id="fullscreen"/> | |
| </device> | |
| <dependencies> | |
| <deployment identifier="iOS"/> | |
| <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/> | |
| <capability name="Safe area layout guides" minToolsVersion="9.0"/> | |
| <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
I hereby claim:
To claim this, I am signing this object:
| extension UIImage { | |
| public func imageRotatedByDegrees(degrees: CGFloat) -> UIImage { | |
| let radiansToDegrees: (CGFloat) -> CGFloat = { | |
| return $0 * (180.0 / CGFloat(M_PI)) | |
| } | |
| let degreesToRadians: (CGFloat) -> CGFloat = { | |
| return $0 / (180.0 * CGFloat(M_PI)) | |
| } | |
| // calculate the size of the rotated view's containing box for our drawing space |
| extension UIImage { | |
| func crop(rect: CGRect) -> UIImage { | |
| var rectTransform: CGAffineTransform | |
| switch imageOrientation { | |
| case .left: | |
| rectTransform = CGAffineTransform(rotationAngle: radians(90)).translatedBy(x: 0, y: -size.height) | |
| case .right: | |
| rectTransform = CGAffineTransform(rotationAngle: radians(-90)).translatedBy(x: -size.width, y: 0) | |
| case .down: |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| import urllib2 | |
| import os | |
| print('Enter download url:') | |
| url = raw_input() | |
| file_open_url = urllib2.urlopen(url) | |
| file_name = os.path.basename(url) | |
| file = open(file_name, "w") | |
| print('Downloading...') | |
| file.write(file_open_url.read()) | |
| print('File name: %s'%file_name) |