Skip to content

Instantly share code, notes, and snippets.

View Ilesh's full-sized avatar
:octocat:
Learn | Build | Test | 🚀

Ile$h Ilesh

:octocat:
Learn | Build | Test | 🚀
View GitHub Profile
@genedelisa
genedelisa / MIDISamplerSetup
Created August 12, 2014 12:03
Swift MIDI Sampler setup
class MIDISampler : NSObject {
var engine:AVAudioEngine!
var playerNode:AVAudioPlayerNode!
var mixer:AVAudioMixerNode!
var sampler:AVAudioUnitSampler!
override init() {
super.init()
initAudioEngine()
}
@PurpleBooth
PurpleBooth / README-Template.md
Last active July 25, 2024 13:33
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

internal let DEFAULT_MIME_TYPE = "application/octet-stream"
internal let mimeTypes = [
"html": "text/html",
"htm": "text/html",
"shtml": "text/html",
"css": "text/css",
"xml": "text/xml",
"gif": "image/gif",
"jpeg": "image/jpeg",
@jackywang135
jackywang135 / UIButton+AddTargetClosure.swift
Created April 20, 2016 11:43
Add UIButton targets using closure
import UIKit
typealias UIButtonTargetClosure = UIButton -> ()
class ClosureWrapper: NSObject {
let closure: UIButtonTargetClosure
init(_ closure: UIButtonTargetClosure) {
self.closure = closure
}
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0" />
</head>
<body>
<div id="editor" contenteditable="true"></div>
</body>
</html>
@arturgrigor
arturgrigor / Podfile
Created September 10, 2018 09:55
Sample Podfile for silencing warnings for CocoaPods dependencies
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target '%TargetName%' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for %TargetName%
# pod 'FBSDKCoreKit'
end
@Ilesh
Ilesh / IPTextField.swift
Last active October 7, 2019 10:54
Custom UITextfield class for manage image before Textfield and also add secure text hide show button.
//
// IPTextField.swift
//
//
// Created by Ilesh on 06/04/18.
// Copyright © 2019 Ilesh. All rights reserved.
//
import Foundation
import UIKit
@Ilesh
Ilesh / IPFirebaseNotification.swift
Last active June 18, 2019 05:41
Set up a Firebase Cloud Messaging client app on iOS
//
// IPFirebaseNotification.swift
//
//
// Created by Ilesh on 06/08/18.
// Copyright © 2018 Ilesh. All rights reserved.
//
import Foundation
import UserNotifications
@Ilesh
Ilesh / IPLookup.swift
Created May 28, 2019 05:39
IPLookup is the one singleton class of the dropdown. It is very easy to manage dropdown in using single file. configuration is in the same place so easy to modify when the requirement changes. :)
//
// Lookup.swift
//
//
// Created by Ilesh's 2018 on 09/03/19.
// Copyright © 2019 Ilesh. All rights reserved.
//
import Foundation