Skip to content

Instantly share code, notes, and snippets.

View DanielNo's full-sized avatar

Daniel No DanielNo

  • New York
View GitHub Profile
@NerdEgghead
NerdEgghead / classic-bear-tank-bis.md
Last active September 25, 2024 14:08
NerdEgghead's Classic Bear gear sets

NerdEgghead's Classic Bear gear sets

  • "True" BiS does not exist for bear tanks, as a good tank should be swapping gear sets constantly depending on the required balance between threat and survivability that is needed for a given encounter and raid team. That being said, certain threat vs. survivability tradeoffs are substantially more efficient than others, so the goal of these lists is to provide the user with representative gear sets which balance these two axes as efficiently as possible.
  • Stat weights and EHP values are based on the integrated Classic Bear Tank Weights Calculator from the class Discord, and are calculated assuming full buffs, consumables, and boss debuffs unless otherwise specified.
  • Gear lists are based on their general effectiveness against all raid bosses as opposed to being tailored for specific bosses. For tank stats in particular, this means that magical resistance is not fa
@stinger
stinger / CombineFetcher.swift
Last active January 28, 2023 18:07
Combine - fetching data using URLSession publishers
import Foundation
import Combine
enum APIError: Error, LocalizedError {
case unknown, apiError(reason: String)
var errorDescription: String? {
switch self {
case .unknown:
return "Unknown error"
@mttcrsp
mttcrsp / UITableView+beginRefreshing.swift
Last active February 21, 2025 11:04
Extension that allows programmatic pull to refresh
import UIKit
public extension UITableView {
public func beginRefreshing() {
// Make sure that a refresh control to be shown was actually set on the view
// controller and the it is not already animating. Otherwise there's nothing
// to refresh.
guard let refreshControl = refreshControl, !refreshControl.isRefreshing else {
return
@chrislavender
chrislavender / gist:cad26500c9655627544f
Last active March 29, 2025 22:12
HTTP Live Streaming Tutorial

Note: This is an older post that I did back when I thought I might have time to be a blogger. Oh I was oh so wrong. However, it has proven useful for some folks on stackoverflow. Thus I'm keeping it alive here on Gist.

One of my past projects dealt heavily with an open source Apple technology called HTTP Live Streaming. It’s an HTTP based streaming protocol that at its most fundamental level provides a way to stream video and audio from just about any server with nothing but a few free software tools provided by Apple**. However, it has a few additional features that I think make it a really exciting tool. Yet, I haven’t seen HTTP Live Streaming used very much. This is probably mainly due to the combination of a lack of good/clear documentation, and Apple’s Live Streaming Developer Tools being command line based also make the barrier to entry higher than many developers want to deal with.

The hope is to share my understanding of how to use this technology to:

@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active October 13, 2025 20:38
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\