This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.
- Haskell is a functional programming language.
# bash/zsh completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# | |
# *) local and remote branch names | |
# *) local and remote tag names |
{ | |
name = <$name$>, | |
managedObjectClassName = <$managedObjectClassName$>, | |
renamingIdentifier = <$renamingIdentifier$>, | |
isAbstract = <$isAbstract$>, | |
userInfo = <$userInfo$>, | |
relationships = ( | |
<$foreach Relationship noninheritedRelationships do$> | |
{ | |
name = <$Relationship.name$>, |
#import <Cocoa/Cocoa.h> | |
BOOL VerifyAppStoreReceipt(); | |
BOOL VerifyAppStoreReceiptData(NSData *data); | |
NSURL *BackupReceiptURL(); | |
void BackupAppStoreReceipt(); | |
NSData *MACAddressData(); | |
NSDictionary *DictionaryFromAppStoreReceipt(NSData *fullData); |
This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>--project-company</key> | |
<string>Elegant Chaos</string> | |
<key>--company-id</key> | |
<string>com.elegantchaos</string> | |
<key>--keep-undocumented-objects</key> | |
<false/> |
#import <UIKit/UIKit.h> | |
@interface ActivityController : NSObject | |
+ (instancetype)presentActivityItems:(NSArray *)activityItems | |
fromViewController:(UIViewController *)viewController | |
barButtonItem:(UIBarButtonItem *)item; | |
@end |
NSManagedObjectContext *contextOne = ...; | |
NSArray *objects = ...<result of fetch request on contextOne... | |
NSManagedObjectID *objectID = objects[0].objectID; | |
NSManagedObjectContext *contextTwo = ...; | |
id object = [contextTwo existingObjectWithID:objectID error:nil]; // returns the right object | |
NSAssert(![object.objectID isTemporaryID]); // passes | |
id otherObject = [contextTwo objectWithID:objectID]; // always returns an object, should be the right object | |
NSAssert(![otherObject.objectID isTemporaryID]); // fails! |
#!/bin/bash | |
# | |
# Usage: script/sort-xcodeproj to sort all root-level Xcode projects. | |
# This helps keep the Xcode project layout neat and consistent while | |
# aiding in the prevention of [merge conflicts][mc]. | |
# | |
# [mc]: http://danieltull.co.uk/blog/2013/09/05/easier-merging-of-xcode-project-files/ | |
SCRIPT_DIR=$(dirname "$0") | |
cd "$SCRIPT_DIR/.." |
// | |
// CollectionViewDataSource.swift | |
// Khan Academy | |
// | |
// Created by Andy Matuschak on 10/14/14. | |
// Copyright (c) 2014 Khan Academy. All rights reserved. | |
// | |
import UIKit |
We're working on supporting Bitcode in PSPDFKit but hit a blocking issue with OpenSSL (latest 1.0.2d). | |
We're using a script that downloads and builds OpenSSL into fat static libraries for both Mac and iOS. I've put the gist here: | |
https://gist.github.com/steipete/ce09ba176a4b8ef66b2d/bf053eab1c0f8494dcd3748079543c4ed4367b9c | |
Enabling Bitcode should be as easy as adding `-fembed-bitcode` as clang flag according to this entry. That's exactly what I did. | |
Now things build, but the script eventually stops with this error: | |
ld: could not open bitcode temp file: ../libcrypto.a(aes-x86_64.o) for architecture x86_64 |