- Kenneth Geisshirt - Unleashing your inner Console Cowboy - Slides
- Hack Day - Hacking Cloud Kit and iOS 8 extensions - Slides
- Mike Ash - Swift and C - Playground
| import UIKit | |
| // The marshal operator is reviewed in this blog post… | |
| // http://ijoshsmith.com/2014/07/05/custom-threading-operator-in-swift/ | |
| // Don't ever do something this ridiculous in a real app! | |
| func printMarshalOperator() | |
| { | |
| {p("M")} |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Localize.py - Incremental localization on XCode projects | |
| # João Moreno 2009 | |
| # http://joaomoreno.com/ | |
| # Modified by Steve Streeting 2010 http://www.stevestreeting.com | |
| # Changes | |
| # - Use .strings files encoded as UTF-8 |
| templates: | |
| movies: | |
| set: | |
| path: /tmp/mnt/94E8B2B1E8B290CA/Torrents/download/DLNA/Movies | |
| transmission: | |
| host: ************ | |
| port: **** | |
| username: ************* | |
| password: ************* | |
| email: |
| const Page = require('puppeteer/lib/Page'); | |
| // the following 2 methods are originally from: https://github.com/GoogleChrome/puppeteer/issues/85#issuecomment-341743259, with some modification to fit puppeteerv1.0.0 | |
| async function newPageWithNewContext(browser) { | |
| const { browserContextId } = await browser._connection.send('Target.createBrowserContext'); | |
| const { targetId } = await browser._connection.send('Target.createTarget', { url: 'about:blank', browserContextId }); | |
| const target = await browser._targets.get(targetId); | |
| const client = await browser._connection.createSession(targetId); | |
| const page = await Page.create(client, target, browser._ignoreHTTPSErrors, browser._appMode, browser._screenshotTaskQueue); | |
| page.browserContextId = browserContextId; |