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
const canvasSketch = require('canvas-sketch'); | |
const {Delaunay} = require('d3-delaunay'); | |
const {Cell} = require('./cell'); | |
const settings = { | |
dimensions: [ 2048, 2048 ] | |
}; | |
const margin = 256; |
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 UIKit | |
let jsonDataEnclosed = """ | |
{ "data" : | |
{ | |
"name": "Monalisa Octocat", | |
"email": "support@github.com", | |
"date": "2011-04-14T16:00:49Z" | |
} |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
// Many API's return data wrapped in an outer tag, such as this | |
let jsonDataEnclosed = """ | |
{ "data" : | |
{ | |
"name": "Monalisa Octocat", |
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
const { resolve } = require('path'); | |
const webpack = require('webpack') | |
module.exports = { | |
entry: [ | |
//'react-hot-loader/patch', | |
// activate HMR for React | |
'webpack-dev-server/client?http://localhost:8080', | |
// bundle the client for webpack-dev-server |
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
// from animator.m | |
- (void)animatePush:(id<UIViewControllerContextTransitioning>)transitionContext { | |
// seems that all the steps here have specific orders | |
// add toVC to container view | |
// auto layout step on toVC after toVC added to container | |
// get image frames after AL step | |
// have to set toVC frame offscreen after grab final image frames | |
// backdrop view added to container, needs to be under toVC.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
// | |
// PDFGenerator.h | |
// | |
// | |
// Created by Brian Broom on 12/10/15. | |
// Copyright © 2015 Brian Broom. All rights reserved. | |
// | |
#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
#import <Foundation/Foundation.h> | |
#import <CoreData/CoreData.h> | |
@interface CoreDataHelper :NSObject | |
@property (nonatomic, readonly) NSManagedObjectContext *context; | |
@property (nonatomic, readonly) NSManagedObjectModel *model; | |
@property (nonatomic, readonly) NSPersistentStoreCoordinator *coordinator; | |
@property (nonatomic, readonly) NSPersistentStore *store; |