Skip to content

Instantly share code, notes, and snippets.

View kylejohnsonkj's full-sized avatar

Kyle Johnson kylejohnsonkj

  • Minnesota, USA
View GitHub Profile
@kylejohnsonkj
kylejohnsonkj / neighboring_states.json
Created July 2, 2019 16:24
Neighboring States JSON
[
{
"State": "AK",
"Neighbors": "WA"
},
{
"State": "AL",
"Neighbors": "TN;GA;FL;MS"
},
{
Product name:GeForce RTX 2070
DID:0x1F0710DE - SSID:0x21723842
Disable D3 cold capability before unloading driver...
Disable D3 cold capability successfully on GPU index 0x00.
*** NVFLASH LOG FILE ***
Command-line : --log logfile --savegpuled gpumcu.rom
NVIDIA Firmware Update Utility patched by Vipeax
Copyright (C) 1993-2018, NVIDIA Corporation. All rights reserved.
@kylejohnsonkj
kylejohnsonkj / CustomFont.swift
Created March 16, 2018 22:09
Adding a custom font to a Swift playground (Swift 4)
let fontPath = Bundle.main.path(forResource: "Custom Font", ofType: "ttf", inDirectory: "fonts")
let fontURL = NSURL(fileURLWithPath: fontPath!)
CTFontManagerRegisterFontsForURL(fontURL, CTFontManagerScope.process, nil)

locplot

Created by Kyle Johnson

Description

locplot is a programming language built upon the Google Maps Javascript API. locplot allows you to easily geocode and map locations, calculate routes, distances and travel times, all via simple commands. Default values can also be overwritten for the following:

  • style = "roadmap" | "satellite" | "hybrid" | "terrain"

  • mode = "driving" | "bicycling" | "transit" | "walking"

s = t * 5
red = 180
green = 200
blue = 240
rectangle 0 0 600 600
red = 100
green = 200
blue = 255
@kylejohnsonkj
kylejohnsonkj / FizzBuzz.swift
Last active January 7, 2020 22:01
Shortest variation of FizzBuzz I could come up with
for n in 1...100 {
var s = ""
s += n % 3 == 0 ? "Fizz" : ""
s += n % 5 == 0 ? "Buzz" : ""
print(s.isEmpty ? n : s)
}