Skip to content

Instantly share code, notes, and snippets.

Avatar

Jayesh Kawli jayesh15111988

View GitHub Profile
@d-a-n
d-a-n / EuropeaniOSDevConferences2018.md
Last active Oct 8, 2018
European iOS Dev Conferences for 2018
View EuropeaniOSDevConferences2018.md

European iOS Dev Conferences for 2018

Dates Conference Location
Jan 29. dotSwift Paris
March 15. - 16. appdevcon Amsterdam
March 22. - 23. iOSCon London
April 16. - 17. Appbuilders Lugano
May 08. - 11. Craft-Conf Budapest
May 13. - 16. UIKonf Berlin
View NotchFix.swift
import UIKit
class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
@IBOutlet weak var tableView: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
NSLayoutConstraint.activate([
tableView.topAnchor.constraint(equalTo: view.topAnchor),
@DejanEnspyra
DejanEnspyra / Obfuscator.swift
Created May 31, 2017
Obfuscation of hard-coded security-sensitive strings.
View Obfuscator.swift
//
// Obfuscator.swift
//
// Created by Dejan Atanasov on 2017-05-31.
//
import Foundation
class Obfuscator: AnyObject {
View iOSConferences2017.md
View conference visa requirements uk.md

Visa requirements for UK conferences.

First you'll want to check if you need a visa to enter the UK.

  • Nationals of the EU, Switzerland, and EEA countries will not need a visa, and are free to work and conduct business in the UK.
  • Nationals from some designated countries such as USA may travel for tourist or business purposes under a visa exemption. The link above will detail what documents you need to provide in order to travel under a visa exemption.
  • Other nationals will need a visa.

The rules for allowable business travel under a visa exemption are covered by the same rules as those travelling under a vistor visa. If you will be travelling under a visa-exemption and the conference is covering your costs in any way you should make sure to read the relevant section below.

View replacing.swift
import Foundation
public extension String {
public func replacing(range: CountableClosedRange<Int>, with replacementString: String) -> String {
let start = characters.index(characters.startIndex, offsetBy: range.lowerBound)
let end = characters.index(start, offsetBy: range.count)
return self.replacingCharacters(in: start ..< end, with: replacementString)
}
}
View Breakpoints_v2.xcbkptlist
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "4"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.SymbolicBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
@jj0b
jj0b / mantle_valuetransformers
Created Apr 22, 2015
Mantle 2.0 Swift MTLValueTransformer Example
View mantle_valuetransformers
class func dateTransformer() -> NSValueTransformer {
let _forwardBlock: MTLValueTransformerBlock? = { (value, success, error) in
return ISO8601DateFormatter.sharedDateFormatter.dateFromString(value as! String!)
}
let _reverseBlock: MTLValueTransformerBlock? = { (value, success, error) in
return ISO8601DateFormatter.sharedDateFormatter.stringFromDate(value as! NSDate!)
}
return MTLValueTransformer(usingForwardBlock:_forwardBlock, reverseBlock:_reverseBlock)
}
@steverichey
steverichey / Iconizer.sh
Last active Aug 13, 2021
Create iOS application icons from one PDF file. Requires ImageMagick.
View Iconizer.sh
#!/bin/sh
#
# Iconizer shell script by Steve Richey (srichey@floatlearning.com)
#
# This is a simple tool to generate all necessary app icon sizes and the JSON file for an *EXISTING* Xcode project from one file.
# To use: specify the path to your vector graphic (PDF format) and the path to your Xcode folder containing Images.xcassets
# Example: sh iconizer.sh MyVectorGraphic.pdf MyXcodeProject
#
# Requires ImageMagick: http://www.imagemagick.org/
@mattt
mattt / nshipster-new-years-2015.md
Created Nov 25, 2014
NSHipster New Year's 2015
View nshipster-new-years-2015.md

Season's Greetings, NSHipsters!

As the year winds down, and we take a moment to reflect on our experiences over the past months, one thing is clear: 2014 has been an incredible year professionally for Apple developers. So much has happened in such a short timespan, and yet it's hard to remember our relationship to Objective-C before Swift, or what APIs could have captivated our imagination as much as iOS 8 or WatchKit.

It's an NSHipster tradition to ask you, dear readers, to send in your favorite tips and tricks from the past year for publication over the New Year's holiday. This year, with the deluge of new developments—both from Cupertino and the community at large—there should be no shortage of interesting tidbits to share.

Submit your favorite piece of Swift or Objective-C trivia, framework arcana, hidden Xcode feature, or anything else you think is cool, and you could have it featured in the year-end blowout article. Just comment on this gist below!

If you're wondering about what to post, look to