Skip to content

Instantly share code, notes, and snippets.

View RNHTTR's full-sized avatar

Ryan Hatter RNHTTR

  • Astronomer
View GitHub Profile
@RNHTTR
RNHTTR / AR.txt
Last active September 28, 2017 00:36
About augmented reality in Swifty Docs
Augmented reality is a game changer. From gaming and entertainment to
navigation to medical training and beyond, AR will change the way we
interact with the world. Whether it’s on our smartphones or some kind of
smart glasses is yet to be determined, but some of the world’s biggest
companies (Apple and Google, for example) are investing heavily in the
technology. The world will need talented developers (like you, obviously) to
move the industry forward.
It’s surprisingly easy to get started building AR applications using ARKit
(Apple’s framework for creating augmented reality experiences), and very
@RNHTTR
RNHTTR / UITableView.txt
Last active September 28, 2017 00:39
Learn about how UITableViews are used in Swifty Docs
UITableView is a fundamental tool within the UIKit framework that all Swift
developers should be familiar with. Table views are all over iOS apps,
including several apps that shipped natively on your iPhone. Your inbox on
the Mail app makes use of a UITableView. The Settings app is riddled with
UITableViews. The Notes, Contacts, and Reminders apps all use UITableViews,
too. I think you get it - table views are all over the place!
Check out the table views in this app and see how they were created by the
"About" button in the top-right corner of each view controller.
@RNHTTR
RNHTTR / SwiftyFonts.txt
Created September 28, 2017 12:30
About Swifty Fonts in Swifty Docs!
Swifty Fonts allows iOS developers (i.e. you) to view all fonts that are
natively available in Swift. You can see each font against various
background colors to see if a particular font is available by default in
Swift and to see if it is a font that you would like to employ in your
app(s).
Instead of Swifty Fonts being a standalone app, it is now a part of Swifty
Docs to allow Swift coders (especially noobs) to have access to more tools,
including notes on how to get started developing augmented reality
applications.
@RNHTTR
RNHTTR / AzureUploadLargeBlob.sh
Last active February 23, 2024 19:35
A simple shell script using cURL and the Azure REST API to upload large files (> 100MB) to Azure Storage
#!/bin/bash
echo "\nEnter your storage account name:"
read AZ_ACCOUNT_NAME
echo "\nEnter your container name:"
read AZ_BLOB_CONTAINER
echo "\nEnter your SAS token (just hit ENTER/RETURN if not applicable):"
read AZ_SAS_TOKEN
DATE_NOW=$(date -Ru | sed 's/\+0000/GMT/')
@RNHTTR
RNHTTR / yaml_string_to_dictionary.py
Last active November 12, 2019 17:07
Simple recursive function to convert a yaml literal block string ("|-") to yaml-valid python dictionary
def dictionarize(s, d={}, key=None):
"""
Simple recursive function to convert a yaml literal block string ("|-") to yaml-valid python dictionary
Args:
s, str: yaml-valid input string
d, dict: output dictionary
key, str: key in the dictionary at which to add nested values
Returns: