Skip to content

Instantly share code, notes, and snippets.

View jonallured's full-sized avatar
🥃
very nice code

Jon Allured jonallured

🥃
very nice code
View GitHub Profile
@jonallured
jonallured / ViewController.swift
Created June 19, 2015 13:44
In-App WAC with Swift and unsafeBitCast
import UIKit
import ExternalAccessory
class ViewController: UIViewController, EAWiFiUnconfiguredAccessoryBrowserDelegate {
var accessoryBrowser: EAWiFiUnconfiguredAccessoryBrowser?
override func viewDidLoad() {
super.viewDidLoad()
accessoryBrowser = EAWiFiUnconfiguredAccessoryBrowser.init(delegate: self, queue: nil)
accessoryBrowser?.startSearchingForUnconfiguredAccessoriesMatchingPredicate(nil)
import urllib.request, json
def lambda_handler(_event, _context):
with urllib.request.urlopen("https://daringfireball.net/feeds/json") as url:
data = json.loads(url.read().decode())
keys = ["id", "url", "title", "date_published"]
items = data["items"]
new_items = []

Keybase proof

I hereby claim:

  • I am jonallured on github.
  • I am jonallured (https://keybase.io/jonallured) on keybase.
  • I have a public key ASDIy4lphHm60JjToM2NO94NkQoV5upYab3eAga3ocPZDgo

To claim this, I am signing this object:

@jonallured
jonallured / config.yml
Created December 20, 2017 19:27
Volt Circle 2.0 Config
version: 2
base: &base
working_directory: ~/volt
docker:
- image: artsy/volt-testing
environment:
RAILS_ENV: test
- image: redis:3.2.10-alpine
@jonallured
jonallured / cooney.rb
Created May 14, 2018 13:38
Loop with Feedjira
feed_urls = ["http://jonallured.com/atom.xml", "http://feedjira.com/blog/feed.xml"]
feed_urls.each do |feed_url|
feed = Feedjira.fetch_and_parse(feed_url)
# ...do something with feed here
end