WWDC 2006 2007 2008 2009 2010 2011 2012 2013 2014
This file contains hidden or 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 Cocoa | |
| import Foundation | |
| class Person { | |
| var age: Int | |
| var name: String | |
| init(age: Int, name: String) { | |
| self.age = age | |
| self.name = name |
This file contains hidden or 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 ReactDOMServer from "react-dom/server"; | |
| import type { EntryContext } from "@remix-run/core"; | |
| import Remix from "@remix-run/react/server"; | |
| import { renderToString } from "react-dom/server"; | |
| import { ServerStyleSheet } from "styled-components"; | |
| import StylesContext from "./stylesContext"; | |
| export default function handleRequest( | |
| request: Request, |
This file contains hidden or 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
Show hidden characters
| { | |
| // Snippits that make working with Twin a little easier | |
| // https://github.com/ben-rogerson/twin.macro | |
| "Add react import": { | |
| "scope": "javascript,typescript,typescriptreact", | |
| "prefix": "react", | |
| "body": "import React from 'react'", | |
| "description": "Add react import" | |
| }, | |
| "Add twin imports": { |
This file contains hidden or 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 SwiftUI | |
| enum PreviewProviderMode: CaseIterable { | |
| /// Use for a light appearance preview. | |
| case lightMode | |
| /// Use for a dark appearance preview. | |
| case darkMode | |
This file contains hidden or 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 fetch = require('node-fetch'); | |
| async function run() { | |
| let username = "YOUR USERNAME HERE"; | |
| let password = "YOUR APP PASSWORD"; | |
| let authBasic = new Buffer(username + ':' + password).toString('base64'); | |
| let session = await (await fetch('https://jmap.fastmail.com/.well-known/jmap', { | |
| headers: { | |
| "Authorization": "Basic " + authBasic | |
| } | |
| })).json(); |
This file contains hidden or 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
| <style> | |
| * { | |
| user-select: none; | |
| } | |
| body { | |
| margin: 0; | |
| font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
| } | |
| #app { | |
| height: 100vh; |
This file contains hidden or 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
| # Taps | |
| tap 'homebrew/cask-fonts' | |
| tap 'homebrew/cask-versions' | |
| tap 'heroku/brew' | |
| # Install CLI Tools | |
| ## Shell Utilities | |
| brew 'coreutils' | |
| brew 'findutils' | |
| brew 'autojump' |
This file contains hidden or 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
| // | |
| // ContentView.swift | |
| // Scribe | |
| // | |
| // Created by Cyril Zakka on 7/21/19. | |
| // Copyright © 2019 Cyril Zakka. All rights reserved. | |
| // | |
| import SwiftUI | |
| struct ContentView: View { |
This file contains hidden or 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
| @Component({ | |
| selector: 'wt-greeting', | |
| template: (ctx: WtGreeting) => ngHtml`<h1>Hello ${uppercase(ctx.name)}</h1>` | |
| }) | |
| class WtGreeting { | |
| @Input() name: string; | |
| } | |
| @Component({ |