Skip to content

Instantly share code, notes, and snippets.

View harishgonnabattula's full-sized avatar

Harish harishgonnabattula

  • Meta
  • San Francisco
View GitHub Profile
@harishgonnabattula
harishgonnabattula / WWDC.json
Created August 25, 2018 20:34
WWDC 2015-2018 Video urls and summary
[
{"url": "https://devstreaming-cdn.apple.com/videos/wwdc/2018/236mwbxbxjfsvns4jan/236/236_hd_avspeechsynthesizer_making_ios_talk.mp4?dl=1", "title": "AVSpeechSynthesizer: Making iOS Talk", "summary": "Speech can enhance the audio experience of your app, whether you are generating spoken feedback for accessibility, or providing critical information beyond simple alerts or notifications. AVSpeechSynthesizer produces synthesized speech from text and allows you to control and monitor the progress of ongoing speech. Learn the ins and outs of AVSpeechSynthesizer and how to add computer-generated speech output to your app."},
{"url": "https://devstreaming-cdn.apple.com/videos/wwdc/2018/405bjty1j94taqv8ii/405/405_hd_measuring_performance_using_logging.mp4?dl=1", "title": "Measuring Performance Using Logging", "summary": "Learn how to use signposts and logging to measure performance. Understand how the Points of Interest instrument can be used to examine logged data. Get an introduction into creating and using custo
@harishgonnabattula
harishgonnabattula / MVVM.sh
Created August 25, 2018 00:44
Bash script to organize files in a Xcode project directory into MVVM structure. Uses the naming convention to do this.
echo "Welcome to Automatic MVVM organizer. Here pop a champange 🍾🍾🍾"
path=""
read -p "Enter your XCode project directory: " path
cd $path
if [ ! -d "./Controllers" ]
then
mkdir "Controllers"
fi
if [ ! -d "./ViewModels" ]
then
[
{
"metadata": {
"id": "fa57ae0e-d21e-40d8-a0bb-a58b5fd9ead3",
"publisherId": "ms-vscode.atom-keybindings",
"publisherDisplayName": "ms-vscode"
},
"name": "atom-keybindings",
"publisher": "ms-vscode",
"version": "3.0.4"
@harishgonnabattula
harishgonnabattula / kitura.sh
Created November 7, 2016 07:43
Shell scrip to create a Kitura project, install the dependencies and start the server. You can add dependencies in this file only and just run the script.
#Shell script to automate creation and build of Kitura server
echo "Enter name for project"
read project_name
export $project_name
#Begin
# Creation of Kitura application
mkdir $project_name
@harishgonnabattula
harishgonnabattula / toJSON.swift
Last active December 29, 2015 19:17
Function to get Dictionary from a class Object in Swift 2.0
func getDict(object : Any) -> [String:Any] {
var dict : [String:Any] = [:]
let miror = Mirror.init(reflecting: object)
for (_,attr) in miror.children.enumerate() {
if let _ = (Mirror.init(reflecting: attr.value)).displayStyle {
dict[attr.label!] = getDict(attr.value)
}
else {