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
// Consume a JSON HTTP API in Swift | |
import Foundation | |
struct Feed: Printable { | |
let author: String? | |
let image: String? | |
let language: String? | |
let link: String? | |
let summary: String? |
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
#!/usr/bin/env bash | |
set -o xtrace | |
SOURCE="${BASH_SOURCE[0]}" | |
if [[ -h $SOURCE ]]; then | |
SOURCE="$( readlink "$SOURCE" )" | |
fi | |
SOURCE_ROOT="${SOURCE_ROOT:-$( cd -P "$( dirname "$SOURCE" )/.." && pwd )}" |
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
default 2019-07-17 15:33:36.771581 +0200 ReportCrash Process MyApp [24519] killed by jetsam reason per-process-limit |
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
./configure --without-javac --without-odbc --with-ssl=/opt/pkg |
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
// MARK: - Storing and Accessing Change Tokens | |
fileprivate extension UserDefaults { | |
fileprivate func setUUID(_ uuid: UUID, using key: String) { | |
self.set(uuid.uuidString, forKey: key) | |
} | |
fileprivate func uuid(matching key: String) -> UUID? { | |
guard let str = UserDefaults.standard.string(forKey: key) else { |
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
git remote set-url origin git@github.com:user/repo.git |
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
$(BUILT_PRODUCTS_DIR)/include/** |
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
#define RGB(hex) [UIColor colorWithRed:((float)((hex & 0xFF0000) >> 16)) / 255.0 \ | |
green:((float)((hex & 0xFF00) >> 8)) / 255.0 \ | |
blue:((float)(hex & 0xFF)) / 255.0 \ | |
alpha:1.0] |
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
#!/bin/sh | |
sudo yum update | |
sudo yum install gcc-c++ | |
sudo yum install git | |
git clone git://github.com/joyent/node.git | |
cd node | |
git checkout v0.8.14 |
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
sudo /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/Resources/install.py --uninstall |
NewerOlder