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
// | |
// BluetoothManager.swift | |
// BluetoothExample | |
// | |
// Created by Julian Hays on 5/26/20. | |
// Copyright © 2020 PunchThrough. All rights reserved. | |
// | |
import Foundation | |
import CoreBluetooth |
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
/* characteristic.js | |
* A simple custom BLE peripheral characteristic for use with Node.js and bleno. | |
* This characteristic supports read, write, and notify properties. | |
* Julian Hays - 10/14/19 | |
*/ | |
var util = require('util'); | |
var bleno = require('bleno-mac'); //or 'bleno-mac' if you are using that | |
var BlenoCharacteristic = bleno.Characteristic; |
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 UIKit | |
import PlaygroundSupport | |
class JHSpinner : UIView { | |
private let containerView = UIView() | |
private let line1 = UIView() | |
private let line2 = UIView() | |
private let line3 = UIView() | |
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
// | |
// JHGradientView.swift | |
// Gradient View editable in Interface Builder | |
// | |
// Created by JHays on 2/20/15. | |
// Copyright (c) 2015 Orbosphere. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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 UIKit | |
import Foundation | |
extension UIView { | |
/// Adds a shadow to the layer of a view. | |
func addShadow(color: UIColor = .black, | |
opacity: Float = 0.4, | |
radius: Float = 3.0, | |
offset: CGSize = CGSize(width:0, height:2) |
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
// | |
// UIView+Parallax.h | |
// Orbosphere | |
// | |
// Created by Julian Hays on 4/22/14. | |
// Inspired By Ash Furrow - http://www.teehanlax.com/blog/introduction-to-uimotioneffect/ - September 19,2013 | |
// and Michael Burford - http://michael.burford.net/2013/10/ios7-parallax-shadows.html - Thursday, October 10, 2013 | |
// | |
// |