Skip to content

Instantly share code, notes, and snippets.

View jbergen's full-sized avatar

Joseph Bergen jbergen

View GitHub Profile
@jbergen
jbergen / get-fonts
Created November 18, 2014 20:38
Print all available font families and font names (Swift)
for family in UIFont.familyNames() {
let sName: String = family as String
println("family: \(sName)")
for name in UIFont.fontNamesForFamilyName(sName) {
println("name: \(name as String)")
}
}
@jbergen
jbergen / Network.swift
Created August 8, 2015 05:16
Networker made from enums
/**
paste this code into a playground to test it out
*/
import Foundation
/**
@jbergen
jbergen / cloud-run-job-node-example.js
Last active July 11, 2023 04:08
Example code for programmatically creating a Cloud Run Job in Node
/**
* This code can help you determine how to create a job programmatically.
*
* Tip: use `runClient.getJob({ jobName });` to retrieve an existing job struct to see what it looks like.
* You can also look a the YAML tab in Job Details in the UI.
*/
// where the built job container image is stored
const IMAGE_URL = "path-to-built-image";