Skip to content

Instantly share code, notes, and snippets.

View ashusath's full-sized avatar

Ashwin Sathawane ashusath

View GitHub Profile
@ashusath
ashusath / deep_linking.md
Created May 31, 2017 05:04
iOS Deep Linking

Deep Linking

  • Open https://console.firebase.google.com
  • Add new project (If created earlier select existing)
  • Fill project name and country and create a project
  • Select Dynamic Links from left drawer menu
  • Select platform you want to add
  • Enter Package Name / Bundle ID
  • Enter Nickname (Optional)
  • Register your app, Download config file for respective platforms and add these to projects
@ashusath
ashusath / GIF2MP4.swift
Created May 10, 2017 05:20 — forked from powhu/GIF2MP4.swift
Swift 3.0 GIF to MP4
//
// GIF2MP4.swift
//
// Created by PowHu Yang on 2017/1/24.
// Copyright © 2017 PowHu Yang. All rights reserved.
//
/*
let data = try! Data(contentsOf: Bundle.main.url(forResource: "gif", withExtension: "gif")!)
let tempUrl = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("temp.mp4")
GIF2MP4(data: data)?.convertAndExport(to: tempUrl, completion: { })
@ashusath
ashusath / aws-uploader.js
Last active January 6, 2016 17:55
Simple module to upload image from Parse.com cloud code to Amazon S3
/*
* Thanks to icaliman for aws signer
* you can download aws signer from https://github.com/icaliman/parse-aws-sign
*/
var image = request.object.get('image');//base 64 encoded image
Parse.Cloud.run('awsUpload', { image: image }, {
success: function(resp) {
console.log('aws success url'+resp);
request.object.set("snappImageUrl" ,resp);//save image to object