Skip to content

Instantly share code, notes, and snippets.

- (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)];
varying highp vec2 textureCoordinate;
uniform sampler2D inputImageTexture;
#define M_PI 3.1415926535897932384626433832795
void main()
{
highp vec2 centered = textureCoordinate - vec2(0.5, 0.5);
{
"response": {
"ack": true,
"sessions": [
{
"id": "6150",
"title": "Color Management Lab",
"track": "Graphics and Games",
"type": "Lab",
"room": "Graphics and Games Lab A",
//
// NSArray+JBDiff.h
// Tyche
//
// Created by Joel Bernstein on 9/16/09.
//
#import <Foundation/Foundation.h>
guard
!arguments.isEmpty,
nums.count = arguments.count
else
{
print("Usage: \(appName) <list-of-positive-integers>")
exit(-1)
}
@CastIrony
CastIrony / watspec.txt
Created March 21, 2019 17:50
WAT Specification 1.0
WAT is a Brainfuck variant,
+ -> WAT
- -> WAAT
> -> WAAAT
< -> WAAAAT
. -> WAAAAAT
, -> WAAAAAAT
[ -> WAAAAAAAT
] -> WAAAAAAAAT
//
// ContentView.swift
// BreatheUI WatchKit Extension
//
// Created by Joel Bernstein on 6/24/19.
// Copyright © 2019 Joel Bernstein. All rights reserved.
//
import SwiftUI
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)
import SwiftUI
struct ContentView: View
{
@State var angle: CGFloat = 0
let animation = Animation.linear(duration: 10).repeatForever(autoreverses: false)
var body: some View
{
//
// ContentView.swift
//
//
// Created by Bernstein, Joel on 7/4/20.
//
import SwiftUI
struct ContentView: View