Skip to content

Instantly share code, notes, and snippets.

View RajmohanKathiresan's full-sized avatar
💻
Simplifying Complex Problems

Rajmohan RajmohanKathiresan

💻
Simplifying Complex Problems
View GitHub Profile
@RajmohanKathiresan
RajmohanKathiresan / SwiftExtensions.swift
Created October 5, 2016 03:20
Swift 3.0 Extensions and Utility
/**
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@RajmohanKathiresan
RajmohanKathiresan / AppIconExporter.sh
Last active September 17, 2016 10:07
iOS App Icon Generator - Converts SVG to PNG (all resolution)
#Provide the path of the source SVG folder e.g project/assets/SVG/
sourcepath="Design/SVG/"
#Provide the destination path where you want the exported PNG files
destinationpath="Design/PNG/"
# Provide the source SVG file names to be converted as PNG
filestoprocess=(happy)
dimensionbyscale=false
dimensionpixel=($"29:29" $"58:58" $"40:40" $"80:80" $"76:76" $"152:152" $"167:167" $"58:58" $"87:87" $"80:80" $"120:120" $"120:120" $"180:180")
dimensionscale=($"1x" $"2x" $"3x")
iconname=($"iPad-29" $"iPad-29@2x" $"iPad-40" $"iPad-40@2x" $"iPad-76" $"iPad-76@2x" $"iPad-83.5@2x" $"iPhone-29@2x" $"iPhone-29@3x" $"iPhone-40@2x" $"iPhone-40@3x" $"iPhone-60@2x" $"iPhone-60@3x")
sourcepath="./SVG/"
destinationpath="./PNG/"
filestoprocess=(action_call_circle action_locate_circle action_settings_circle)
dimensionbyscale=false
dimensionpixel=($"40:" $"80:" $"120:")
dimensionscale=($"1x" $"2x" $"3x")
scaleprefix=($"" $"@2x" $"@3x")
for file in $sourcepath/*.svg; do
fullname=$(basename "$file")
extension="${fullname##*.}"
@RajmohanKathiresan
RajmohanKathiresan / ExcelReader
Last active September 17, 2016 09:21
Helper module for reading excel. Code By : http://social.msdn.microsoft.com/profile/vt.crazyappy/?ws=usercard-mini I have made few modifications
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO.Compression;
using System.Xml.Linq;
using Windows.Storage;
using System.Text.RegularExpressions;