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
// | |
// SSReadingListItem.swift | |
// Created by Alexis Aubry on 09/05/2016. | |
// | |
// The MIT License (MIT) | |
// Copyright (c) 2016 ALEXIS AUBRY | |
// | |
import Foundation | |
import SafariServices |
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
/* | |
* ==---------------------------------------------------------------------------------== | |
* | |
* File : MCPeerID+Reusable.swift | |
* Project : MCPeerID+Reusable | |
* Author : ALEXIS AUBRY RADANOVIC | |
* Creation Date : SEPTEMBER 21 2016 | |
* | |
* License : The MIT License (MIT) | |
* |
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
/* | |
* ==---------------------------------------------------------------------------------== | |
* | |
* File : IndexedSum.swift | |
* Author : ALEXIS AUBRY RADANOVIC | |
* | |
* License : The MIT License (MIT) | |
* | |
* ==---------------------------------------------------------------------------------== | |
* |
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
// | |
// ConcurrentOperation.swift | |
// | |
// Created by Caleb Davenport on 7/7/14. | |
// | |
// Learn more at http://blog.calebd.me/swift-concurrent-operations | |
// | |
import Foundation |
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/swift | |
import Foundation | |
import Security | |
guard CommandLine.arguments.count > 1 else { | |
print("USAGE: osstatus [code]") | |
exit(-1) | |
} |
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/bash | |
f=$(pwd) | |
sips --resampleWidth 512 "${f}/${1}" --out "${f}/iTunesArtwork.png" | |
sips --resampleWidth 1024 "${f}/${1}" --out "${f}/iTunesArtwork@2x.png" | |
sips --resampleWidth 20 "${f}/${1}" --out "${f}/Icon-App-20x20@1x.png" | |
sips --resampleWidth 40 "${f}/${1}" --out "${f}/Icon-App-20x20@2x.png" | |
sips --resampleWidth 60 "${f}/${1}" --out "${f}/Icon-App-20x20@3x.png" | |
sips --resampleWidth 29 "${f}/${1}" --out "${f}/Icon-App-29x29@1x.png" | |
sips --resampleWidth 58 "${f}/${1}" --out "${f}/Icon-App-29x29@2x.png" |
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
// | |
// update_carthage_dependencies | |
// Copyright (C) 2018 Alexis Aubry | |
// | |
// -------------------------------------------------------------------- | |
// This script updates your Licenses plist file with the | |
// latest licenses and dependencies from Carthage. | |
// | |
// In Xcode, add this script as a build phase, before the "Copy Bundle | |
// Resources" phase in the main target. |
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
import BLTNBoard | |
import WebKit | |
class BLTNWebPageItem: FeedbackPageBLTNItem { | |
let url: URL | |
init(url: URL) { | |
self.url = url | |
super.init(title: "Web Page") |
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
// Author: Alexis Akers | |
// License: | |
// This code is published under the public domain. The software is provided "as is" without warranty | |
// of any kind and I cannot be held liable for any issue arising from its usage. | |
/// An object that performs haptic feedback. | |
struct Haptics { | |
/// Performs a success haptic feedback. | |
func success() { | |
let feedbackGenerator = UINotificationFeedbackGenerator() |
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
/* | |
* CFArray+Sequence.swift | |
* Alexis Aubry Radanovic | |
*/ | |
import Foundation | |
import CoreFoundation | |
extension CFArray: Sequence { | |
OlderNewer