Skip to content

Instantly share code, notes, and snippets.

View ShawnBaek's full-sized avatar
🎯
Focusing

Shawn Baek ShawnBaek

🎯
Focusing
View GitHub Profile
@ShawnBaek
ShawnBaek / Apple_mobile_device_types.txt
Created September 22, 2019 02:17 — forked from adamawolf/Apple_mobile_device_types.txt
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
iPhone5,1 : iPhone 5 (GSM)
@ShawnBaek
ShawnBaek / AccountViewController.swift
Last active March 10, 2019 14:56
ParseServerManager for iOS
@IBAction fileprivate func facebookTapped(_ sender: Any) {
ParseServerManager.shared.loginWithFacebook { [weak self] results in
guard let self = self else {
return
}
self.handleLogin(results)
}
}
@IBAction fileprivate func twitterTapped(_ sender: Any) {
@ShawnBaek
ShawnBaek / responsive.scss
Last active February 7, 2019 15:41
Mobile-First Media Query
/*
1em = 16px
Souce from Jonas Schmedtmann, Advanced CSS and Sass: Flexbox, Grid, Animations and More!
https://www.udemy.com/advanced-css-and-sass/learn/v4/overview
*/
@mixin respond($breakpoint) {
@if $breakpoint == phone {
@media (max-width: 37.5em) { @content }; //600px
}
@if $breakpoint == tab-port {
@ShawnBaek
ShawnBaek / USING-DIFFMERGE.md
Created July 19, 2018 08:50 — forked from smoll/USING-DIFFMERGE.md
Using DiffMerge as your git mergetool (for Mac OS X / macOS)
@ShawnBaek
ShawnBaek / bucket.json
Last active February 19, 2017 12:28
awsBucket
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Allow Public Access to All Objects",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::yourbucketname/*"
}
import UIKit
import Parse
import ParseLiveQuery
import SDWebImage
import ActiveLabel
import MXParallaxHeader
//
// FeedVC.swift
// craket
//
// Created by BaekSungwook on 2016. 7. 17..
// Copyright © 2016년 escape. All rights reserved.
//
import UIKit
import Parse
import UIKit
import CoreData
import Parse
import ParseLiveQuery
import ParseFacebookUtilsV4
import Fabric
import Crashlytics
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
import Foundation
import Parse
import ParseLiveQuery
extension _ArrayType where Generator.Element == PFObject {
mutating func updateWithEvent(event: Event<PFObject>) {
switch event {
case .Created(let object):
append(object)
case .Entered(let object):