Skip to content

Instantly share code, notes, and snippets.

View jogendra's full-sized avatar

Jogendra jogendra

View GitHub Profile
<?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"/>

Keybase proof

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:

@jogendra
jogendra / FOSSASIA Advance Developer Program 2018-19 Final Submission Report.md
Last active January 17, 2019 11:43
FOSSASIA Advance Developer Program 2018-19 Final Submission Report - Jogendra Kumar
@jogendra
jogendra / GSoC 2018 Final Submission Report.md
Last active June 30, 2019 06:48
GSoC 2018 Final Submission Report - Jogendra Kumar
@jogendra
jogendra / rotating-image.swift
Created March 19, 2018 05:15
Extension on UIImage to rotate image.
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
@jogendra
jogendra / cropping-image.swift
Created March 19, 2018 05:11
Extension on UIImage to Cropping Image
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:
@jogendra
jogendra / gist:68c281f57c9f104e37db4c90db900ffd
Created March 13, 2018 13:04 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :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:
@jogendra
jogendra / jsingh-dl.py
Last active October 2, 2017 11:24
Simple downloading python script!
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)