Skip to content

Instantly share code, notes, and snippets.

View jurgenizer's full-sized avatar
🏄
Surfing

Jurgen Geitner jurgenizer

🏄
Surfing
View GitHub Profile
@jurgenizer
jurgenizer / AnnotationIncrementor.groovy
Created March 4, 2022 13:57
A very simple script to add a name to each annotation in an image in QuPath. Each name is suffixed with an incrementing number.
/*
Probably based on something from here: https://forum.image.sc/tag/qupath
OR
something from here: https://gist.github.com/Svidro
Thank You!
*/
hierarchy = getCurrentHierarchy()
def imageName = getProjectEntry().getImageName()
@jurgenizer
jurgenizer / neural-style-transfer-with-eager-execution.ipynb
Last active October 15, 2021 08:12
TensorFlow and Google Colab Demo for INF4015W
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath)
        
// 1
let foodItem = foodItems[indexPath.row]
        
// 2
let foodType = foodItem.type
cell.textLabel?.text = foodType
        
@jurgenizer
jurgenizer / UIDevice+Username.swift
Last active June 12, 2017 20:50 — forked from iGranDav/UIDevice+Username.swift
Updated for Swift 3
import Foundation
import UIKit
extension UIDevice {
/**
Try to get the username from the device name using common knows
default device names format.
- copyright: Owen Godfrey on [StackOverflow](http://stackoverflow.com/questions/8261961/better-way-to-get-the-users-name-from-device)