Skip to content

Instantly share code, notes, and snippets.

View jacobvanorder's full-sized avatar

Jacob Van Order jacobvanorder

View GitHub Profile
@iAmVishal16
iAmVishal16 / HCardsScrollView.swift
Created March 24, 2024 17:19
Unlocking SwiftUI ScrollView Paging: Dual Scroll View Sync Mechanisms
import SwiftUI
struct HCardsScrollView: View {
let colorSets: [Color] = [
.red, .green, .blue,
.yellow, .purple, .pink,
.accentColor, .black, .brown,
.cyan, .indigo, .teal,
.orange, .mint
@IsaacXen
IsaacXen / README.md
Last active May 15, 2025 08:49
(Almost) Every WWDC videos download links for aria2c.
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active May 22, 2025 09:51
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
import UIKit
class AsyncOperation : NSOperation{
enum State{
case Waiting, Executing, Finished
}
@mackuba
mackuba / wwdc15.md
Last active August 6, 2022 17:28
New stuff from WWDC 2015

Here's my own list of the interesting stuff announced during this year's WWDC, collected from the keynotes, various Apple docs, blog posts and tweets.

If you're planning to watch the videos, I really recommend this Mac app that helps you download and watch them: https://github.com/insidegui/WWDC.

OS X El Capitan

http://www.apple.com/osx/elcapitan-preview/

  • split view - two apps side by side on full screen
@iamcam
iamcam / BuildPhase1.sh
Last active August 29, 2015 14:18
Automate iOS + WatchKit extension build numbers w/ Git
if [ ${CONFIGURATION} == "AppStore" ]; then
buildNumber=$(git rev-list HEAD | wc -l | tr -d ' ')
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/AppName/AppName-Info.plist"
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/AppName WatchKit App/Info.plist"
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/AppName WatchKit Extension/Info.plist"
fi;
if [ ${CONFIGURATION} == "Release" ]; then
buildNumber=$(git rev-list HEAD | wc -l | tr -d ' ')
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/AppName/AppName-Info.plist"
@cwagdev
cwagdev / UIColor+Grayscale.h
Created August 2, 2013 09:11
Convert a UIColor color to its grayscale equivalent
#import <UIKit/UIKit.h>
@interface UIColor (Grayscale)
- (UIColor *)grayscale;
@end