Skip to content

Instantly share code, notes, and snippets.

View djrobby's full-sized avatar

Robby Dhillon djrobby

  • Detroit, MI - USA
View GitHub Profile
@ssamjh
ssamjh / icecast-kh
Last active April 3, 2023 10:17
icecast-kh init.d Script (Ubuntu 20.04)
#!/bin/bash
### BEGIN INIT INFO
# Provides: icecast-kh
# Required-Start: $remote_fs $network
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the icecast-kh audio streaming server daemon
### END INIT INFO
#
@nntrn
nntrn / espn-api-list.md
Last active April 22, 2025 01:34
List of nfl api endpoints from espn

List of NFL API Endpoints

This page has been updated a lot in the past 3 years. Older revisions you might like more than this one:

import SwiftUI
struct DialogButton {
enum ButtonType {
case destructive
case cancel
case `default`
}
let title: String
@Priva28
Priva28 / GradientEffect.swift
Last active December 1, 2023 04:43
Gradient effect to emulate Apple Music Lyrics/Now Playing screen.
//
// ContentView.swift
// GradientEffect
//
// Created by Christian Privitelli on 18/7/20.
//
import SwiftUI
struct ContentView: View {
import Foundation
import MapKit
final class MapKitService {
// Map the Apple Category to your own category
private let typesToDrink: [MKPointOfInterestCategory] = [.brewery, .cafe, .winery]
private let typesToEat: [MKPointOfInterestCategory] = [.foodMarket, .restaurant]
func retrieve(from: String, completionBlock: @escaping ([Place]) -> Void) {
@BrunoScheltzke
BrunoScheltzke / AddressViewModel.swift
Created July 6, 2020 21:03
Wrapper class to manage address, location and cep
//
// AddressViewModel.swift
//
// Created by Bruno Scheltzke on 05/06/20.
// Copyright © 2020 Bruno Scheltzke. All rights reserved.
//
import Foundation
import CoreLocation
@end3r117
end3r117 / 20200630-SearchSuggestionsGoogleDemo.swift
Last active July 10, 2020 22:45
20200630 - Combine / SwiftUI - GoogleSearchSuggestions API Demo
//
// GoogleSearchSuggestionsAPI-DEMO.swift
//
// Created by Anthony Rosario on 6/30/20.
// Copyright © 2020 Anthony Rosario. All rights reserved.
//
import Combine
import SwiftUI
//
// BottomSheet.swift
// Squirrel-SwiftUI
//
// Created by Amritpal Singh on 24/05/20.
// Copyright © 2020 sidhu.com. All rights reserved.
//
import SwiftUI
@alperen23230
alperen23230 / APIService.Swift
Last active July 10, 2020 22:46
SwiftUI and Combine Codes
import Foundation
import Combine
enum ErrorType {
case badRequest, authError, outdatedError, undefined
}
struct APIError: Error {
let statusCode: Int
var errorDescription: ErrorType {
switch statusCode {