This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Display current year PTO only | |
// @namespace MetricAi | |
// @version 2024-03-26 | |
// @description Hides PTO from previous & future calendar years | |
// @author You | |
// @match https://psa.metric.ai/home/my-timeoff/policies/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=metric.ai | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name MetricAI Max Width | |
// @namespace MetricAi | |
// @version 2024-03-29 | |
// @description Make content full width | |
// @author You | |
// @match *://psa.metric.ai/home/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=metric.ai | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 123, | |
"name": "School Name", | |
"slug": "school-name", | |
"programs": [ | |
{ | |
"id": 123, | |
"name": "Program Name", | |
"slug": "program-name", | |
"terms": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"user": { | |
"username": "username", | |
"email": "email@email.com", | |
"school_ids": [1], | |
"roles": "partner" | |
}, | |
"school": { | |
"id": 123, | |
"name": "School Name", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RobotListViewController: UITableViewController { | |
@IBOutlet public var robotTableView: UITableView! | |
let tableView:UITableView = UITableView() | |
let robots: [Robot] = [ | |
Robot(id: 1, name: "Woofbot"), | |
Robot(id: 2, name: "Barkbot") | |
] | |
override public func viewDidLoad() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A dog has bark + eat | |
class Dog { | |
let dogBark = BarkingSkill() | |
let dogEat = EatingSkill() | |
public func bark() { | |
dogBark.bark() | |
} | |
public func eat() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BarkingSkill { | |
public func bark() { | |
print("woof!") | |
} | |
} | |
class EatingSkill { | |
public func eat() { | |
print("nom nom nom") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Animal { | |
func eat() { | |
print("nom nom nom") | |
} | |
} | |
class Dog: Animal { | |
func bark() { | |
print("woof!") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Dog { | |
func bark() { | |
print("woof!") | |
} | |
func eat() { | |
print("nom nom nom") | |
} | |
} | |
class Robot { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RobotListViewController: UIViewController { | |
@IBOutlet public var robotTableView: UITableView! | |
public let robotsDataSource = RobotListTableViewDataSource() | |
let robots: [Robot] = [ | |
Robot(id: 1, name: "Wooftot"), | |
Robot(id: 2, name: "Barkbot") | |
] | |
override public func viewDidLoad() { |
NewerOlder