Skip to content

Instantly share code, notes, and snippets.

View RollingGoron's full-sized avatar

Peter Gosling RollingGoron

View GitHub Profile
@Component
class RSSFeedParser : ApplicationListener<ContextRefreshedEvent> {
@Autowired
val feedRepo : FeedRepository? = null
var didStart : Boolean = false
var timer = Timer("schedule", true);
fun fetchFeeds() {
class Connection : NSObject, StreamDelegate {
var host:String?
var port:Int?
var inputStream: InputStream?
var outputStream: OutputStream?
func connect(host: String, port: Int) {
self.host = host
self.port = port
//
// SCLabel.swift
// SwiftCast
//
// Created by Peter Gosling on 12/7/16.
// Copyright © 2016 SunfireSoft. All rights reserved.
//
import UIKit