- Open Xcode -> Preferences -> Components.
- Open the Console App, clear the console.
- Go back to the Xcode preferences. Start the simulator download, then cancel it.
- Now in the Console, you will see something about the cancellation with the download URL.
- Copy the URL from the Console, download it.
- Copy this file to ~/Library/Caches/com.apple.dt.Xcode/Downloads.
- If
Downloads
did not exist, create a newDownloads
directory. - If
Downloads
exists, remove all*.dvtdownloadableindex
files under it.
- If
- Open Xcode -> Preferences -> Components, start the simulator download again, it should find the file you downloaded and install it.
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
// | |
// BreathAnimation.swift | |
// breathing-animation | |
// | |
// Created by Denise Nepraunig on 17.05.21. | |
// | |
// Code is based on this tutorial: | |
// https://www.youtube.com/watch?v=KUvkJOhpB9A | |
// Thanks Adam :-) |
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
function createPromiseCallback() { | |
const callback = (err, ret) => { | |
if (err) { | |
callback.reject(err); | |
} else { | |
callback.resolve(ret); | |
} | |
}; | |
callback.promise = new Promise((resolve, reject) => { | |
callback.resolve = resolve; |
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
/** | |
* Demonstrates how to use Apple's CloudKit server-to-server authentication | |
* | |
* Create private key with: `openssl ecparam -name prime256v1 -genkey -noout -out eckey.pem` | |
* Generate the public key to register at the CloudKit dashboard: `openssl ec -in eckey.pem -pubout` | |
* | |
* @see https://developer.apple.com/library/prerelease/ios/documentation/DataManagement/Conceptual/CloutKitWebServicesReference/SettingUpWebServices/SettingUpWebServices.html#//apple_ref/doc/uid/TP40015240-CH24-SW6 | |
* | |
* @author @spllr | |
*/ |
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
var request = require("request"); | |
var fs = require("fs"); | |
var api_root = 'http://widgets.pinterest.com/v3/pidgets/boards/'; | |
var sync_dir = './images', image_url, image_path, current_user_boards, current_user_name, board_dir; | |
var users = { | |
timopheym : [ | |
'skatches', | |
'home', |
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
// See http://stackoverflow.com/questions/21934831/nodejs-express-stream-stdout-instantly-to-the-client | |
var cp = require("child_process"), | |
express = require("express"), | |
app = express(); | |
app.get('/', function(req, res){ | |
res.writeHead(200, { "Content-Type": "text/event-stream" }); | |
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
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |