Skip to content

Instantly share code, notes, and snippets.

View rangav's full-sized avatar

Ranga Vadhineni rangav

View GitHub Profile
@rangav
rangav / importVideoToAppDir.swift
Created March 31, 2019 21:42 — forked from vparihar01/importVideoToAppDir.swift
Importing video using the AVAssetExportSession session
Hey Isarathg this is classic use case of IOS devices. Which don't let you access any Photo Album assets directly using path value. To cross check my answer please just check FileExistsAtPath for your file like below -:
println(NSFileManager.defaultManager().fileExistsAtPath( urlvalue.path!))
O/P you will get => False
I also end up with this issue couple of days back After reading the whole IOS documentation. What I have figured it out "We can only access PhotoAlbum Assets if and only if we have PHImageManager session open". To cross check this statement please try below code -:
var currentVideofetch: PHFetchResult!
required init(coder aDecoder: NSCoder) {
@rangav
rangav / vs-code-icon-names.json
Created December 29, 2016 18:03 — forked from reyawn/vs-code-icon-names.json
Visual Studio Code icon names for shortcuts
[
"alert",
"arrow-down",
"arrow-left",
"arrow-right",
"arrow-small-down",
"arrow-small-left",
"arrow-small-right",
"arrow-small-up",
"arrow-up",
@rangav
rangav / purgeAndroid.txt
Created December 28, 2016 03:03 — forked from tahmidsadik/purgeAndroid.txt
How to completely remove Android Studio from Mac OS X
How to Completely Remove Android Studio
Execute these commands from the terminal
rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm ~/Library/Preferences/com.google.android.studio.plist
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
@rangav
rangav / PDFUtils.cs
Created November 3, 2015 05:14 — forked from nicwise/PDFUtils.cs
PDF download and viewing - Xamarin.iOS
using System;
using System.IO;
using System.Threading.Tasks;
using MonoTouch.UIKit;
using MonoTouch.QuickLook;
using System.Net;
using MonoTouch.Foundation;
using System.Security.Cryptography;
using System.Text;