Skip to content

Instantly share code, notes, and snippets.

View jonstoked's full-sized avatar

Jon Stokes jonstoked

View GitHub Profile
@jonstoked
jonstoked / ahoy.js
Last active April 30, 2024 20:38
Hello, world!
function delayExecution(resolver) {
return new Promise((resolve) => setTimeout(() => resolve(resolver), 1000));
}
function* messageGenerator() {
yield 'H';
yield 'e';
yield 'l';
yield 'l';
yield 'o';
@jonstoked
jonstoked / App.tsx
Last active April 5, 2021 17:51
TypeScript Error
// This React app contains a type-related error.
// Please find it and explain how you would fix it.
import React, { ReactElement } from 'react';
import './App.css';
function Heading({ title }: { title: string }) {
return <h1>{title}</h1>;
}
@jonstoked
jonstoked / gist:43cb9674183f984c1006
Created March 26, 2015 21:54
FastttCamera Landscape Lock Problem
//
// CameraViewController.m
// Scavenger
//
// Created by Jon Stokes on 3/20/15.
// Copyright (c) 2015 FarFaria. All rights reserved.
//
#import "CameraViewController.h"
#import "PhotoViewController.h"