- WWDC 2012 Session 405 — Modern Objective-C
- WWDC 2012 Session 413 — Migration to Modern Objective-C
- WWDC 2013 Session 228 — Hidden Gems in Cocoa and Cocoa Touch
- WWDC 2014 Session 402 — Introduction to Swift
- WWDC 2014 Session 403 — Intermediate Swift
- WWDC 2014 Session 404 — Advanced Swift
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
// BubbleTransition imported as a pod with Cocoapods: | |
// | |
// pod 'BubbleTransition' | |
// use_frameworks! | |
// | |
#import "ViewController.h" | |
@import BubbleTransition; | |
@interface ViewController () <UIViewControllerTransitioningDelegate> |
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
package net.kristopherjohnson; | |
import android.app.Activity; | |
import android.app.AlertDialog; | |
import android.app.Dialog; | |
import android.app.DialogFragment; | |
import android.content.DialogInterface; | |
import android.os.Bundle; | |
import android.text.TextUtils; | |
import android.util.Log; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/******************************** | |
* Module for generating and verifying JWT tokens | |
* Designed to work on Cloudflare Workers | |
* Should work in the browser or any env that supports Web Crypto API | |
********************************/ | |
/******************************** | |
* Key secret is a random Uint8Array of length 64 | |
* See below for instructions on generating random values / keys | |
********************************/ |
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
// | |
// debounce-throttle.swift | |
// | |
// Created by Simon Ljungberg on 19/12/16. | |
// License: MIT | |
// | |
import Foundation | |
extension TimeInterval { |
First, let's assemble the data. Say we have two sets of objects: Fruits and Vegetables.
const fruits = [
{
name: 'Apple',
color: 'Green'
},
{
name: 'Banana',
OlderNewer