Skip to content

Instantly share code, notes, and snippets.

View ollitapa's full-sized avatar

Olli Tapaninen ollitapa

View GitHub Profile
@ollitapa
ollitapa / TrackerStuff.swift
Created January 20, 2022 11:09
Small tracker example
// Protocol ////////////////////
protocol AnalyticsTracking {
func track(_ event: String)
}
// Singleton ////////////////////
enum Analytics {
static var shared: AnalyticsTracking = FakeTracker() // Init with fake for safety. Replace with real tracker when needed
}

Keybase proof

I hereby claim:

  • I am ollitapa on github.
  • I am olttermanni (https://keybase.io/olttermanni) on keybase.
  • I have a public key ASCcwl3y4a3wHOdRAc_Fy3udjSV4kjxm9yCjs2MP_Cwmewo

To claim this, I am signing this object:

@ollitapa
ollitapa / congfig.g
Created January 21, 2018 15:25
Config file for DuetWifi on Trium3D
; Configuration file for testing Duet Ethernet and Wifi
; Communication and general
M111 S0 ; Debug off
M550 PDuetWifi ; Machine name and Netbios name (can be anything you like)
M551 P??????? ; Machine password (used for FTP)
;*** If you have more than one Duet on your network, they must all have different MAC addresses, so change the last digits
M540 ??????? ; MAC Address
;*** Networking - Enable for both WiFi and Ethernet boards.