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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
self.viewController = [[JBViewController alloc] initWithNibName:@"JBViewController" bundle:nil]; | |
self.window.rootViewController = self.viewController; | |
// ADD THIS LINE: | |
[self.window setTransform:CGAffineTransformMakeScale(0.81, 0.81)]; | |
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
varying highp vec2 textureCoordinate; | |
uniform sampler2D inputImageTexture; | |
#define M_PI 3.1415926535897932384626433832795 | |
void main() | |
{ | |
highp vec2 centered = textureCoordinate - vec2(0.5, 0.5); | |
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
{ | |
"response": { | |
"ack": true, | |
"sessions": [ | |
{ | |
"id": "6150", | |
"title": "Color Management Lab", | |
"track": "Graphics and Games", | |
"type": "Lab", | |
"room": "Graphics and Games Lab A", |
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
// | |
// NSArray+JBDiff.h | |
// Tyche | |
// | |
// Created by Joel Bernstein on 9/16/09. | |
// | |
#import <Foundation/Foundation.h> |
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
guard | |
!arguments.isEmpty, | |
nums.count = arguments.count | |
else | |
{ | |
print("Usage: \(appName) <list-of-positive-integers>") | |
exit(-1) | |
} |
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
WAT is a Brainfuck variant, | |
+ -> WAT | |
- -> WAAT | |
> -> WAAAT | |
< -> WAAAAT | |
. -> WAAAAAT | |
, -> WAAAAAAT | |
[ -> WAAAAAAAT | |
] -> WAAAAAAAAT |
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
// | |
// ContentView.swift | |
// BreatheUI WatchKit Extension | |
// | |
// Created by Joel Bernstein on 6/24/19. | |
// Copyright © 2019 Joel Bernstein. All rights reserved. | |
// | |
import SwiftUI |
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
import SwiftUI | |
struct ContentView: View | |
{ | |
@State var angle: CGFloat = 0 | |
let colors: [Color] = [ .red, .orange, .yellow, .green, .blue, .purple ] | |
let columns = [ GridItem(.adaptive(minimum: 140), alignment: .leading) ] | |
let animation = Animation.linear(duration: 10).repeatForever(autoreverses: false) |
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
import SwiftUI | |
struct ContentView: View | |
{ | |
@State var angle: CGFloat = 0 | |
let animation = Animation.linear(duration: 10).repeatForever(autoreverses: false) | |
var body: some View | |
{ |
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
// | |
// ContentView.swift | |
// | |
// | |
// Created by Bernstein, Joel on 7/4/20. | |
// | |
import SwiftUI | |
struct ContentView: View |