This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pod 'FirebaseCore', '~> 6.0' | |
| pod 'FirebasePerformance', '~> 3.1' | |
| #pod install --repo-update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const http = require('http'); | |
| const { parse } = require('querystring'); | |
| const server = http.createServer((req, res) => { | |
| if (req.method === 'POST') { | |
| collectRequestData(req, result => { | |
| console.log(result); | |
| res.end(`Parsed data belonging to ${result.fname}`); | |
| }); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ###################### | |
| # Options | |
| ###################### | |
| REVEAL_ARCHIVE_IN_FINDER=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| If you've got something like this: | |
| file was built for arm64 which is not the architecture being linked (x86_64): | |
| Than this gist is for you. | |
| Let's say you have already developed the framework itself and just want to build the binary | |
| and distribute it through the Cocoapods. | |
| 1. Make sure your framework "Deployment Target" is equal to all the dependencies from your podspec file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // AppStoryboards.swift | |
| // AppStoryboards | |
| // | |
| // Created by Gurdeep on 15/12/16. | |
| // Copyright © 2016 Gurdeep. All rights reserved. | |
| // | |
| import Foundation | |
| import UIKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Merge Script | |
| # 1 | |
| # Set bash script to exit immediately if any commands fail. | |
| set -e | |
| # 2 | |
| # Setup some constants for use later on. | |
| FRAMEWORK_NAME="BrandingFramework" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //: Playground - noun: a place where people can play | |
| import UIKit | |
| import XCPlayground | |
| extension UIView{ | |
| var snapshot: UIImage{ | |
| UIGraphicsBeginImageContextWithOptions(bounds.size, false, 0); |