50 games in a year notes - notes about making 50 games a year hacker news discussion
This file contains 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
// | |
// NibLoader.swift | |
// | |
// Created by Richard Adem on 5/26/16. | |
// Copyright © 2016 Richard Adem. All rights reserved. | |
// | |
// Modified from | |
// https://github.com/karthikprabhuA/CustomXIBSwift | |
// |
This file contains 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
IK for sprite kit: | |
https://www.raywenderlich.com/129895/sprite-kit-inverse-kinematics-swift-2 |
This file contains 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
I found a few examples over the internet, enjoy: | |
http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8 | |
http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8 | |
http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8 | |
http://playertest.longtailvideo.com/adaptive/oceans_aes/oceans_aes.m3u8 (AES encrypted) | |
http://playertest.longtailvideo.com/adaptive/captions/playlist.m3u8 (HLS stream with CEA-608 captions) | |
http://playertest.longtailvideo.com/adaptive/wowzaid3/playlist.m3u8 (with metadata) | |
http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8 | |
http://cdn-fms.rbs.com.br/hls-vod/sample1_1500kbps.f4v.m3u8 |
This file contains 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
// | |
// UIView+ConstraintsHelper.swift | |
// | |
// Created by Richard Adem on 5/17/16. | |
// Copyright © 2016 Richard Adem. All rights reserved. | |
// | |
import UIKit | |
struct VFLManager { |
This file contains 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
-- Visual effects -- | |
current view zooms out when modal appears | |
https://github.com/kentnguyen/KNSemiModalViewController | |
image moved to center while view fades out | |
https://github.com/michaelhenry/MHFacebookImageViewer | |
-- Networking -- |
UITextChecker - spelling
Anchors - constraints
This file contains 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
simulator OS log | |
$ tail -f ~/Library/Logs/CoreSimulator/<DEVICE_CODE>/system.log | |
The DEVICE_CODE value can be found via the following console command: | |
$ instruments -s devices |
This file contains 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
View hierarchy | |
[[UIWindow keyWindow] recursiveDescription] | |
View controller hierachy | |
[[[UIWindow keyWindow] rootViewController] _printHierarchy] |
This file contains 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
$ git rebase -i master | |
# if conflict | |
# see which files are conflicted | |
$ git status | |
# fix it and do: | |
$ git commit -a | |
# then if it's all good |