winget.exe install `
--id Microsoft.VisualStudio.2022.BuildTools `
--override '--passive --wait `
--add Microsoft.VisualStudio.Workload.VCTools `
--add Microsoft.VisualStudio.Component.VC.ATL `
This file contains hidden or 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
using System; | |
using System.Net; | |
using Subroute.Common; | |
using System.Configuration; | |
using System.Linq; | |
using System.Collections.Generic; | |
using Newtonsoft.Json; | |
// Slack webhook example | |
namespace Subroute.Container | |
{ |
This file contains hidden or 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
# Usage: Run script with watch to repeat this check every N seconds `watch -n 20 ./mp.sh` | |
# On macos: `brew install jq watch` | |
# Example Used for Master Pancake CYOP tickets that often go on sale and then sell out quickly. | |
rm mp*.json | |
# Download the Alamo Drafthouse calendar for Austin | |
curl -s https://feeds.drafthouse.com/adcService/showtimes.svc/calendar/0002/ > mp.json | |
# Hacky jq query to pull out the Ritz location's events for the desired week/day combinations | |
cat mp.json | jq .Calendar.Cinemas[0].Months[0].Weeks[2].Days[4] >> mp-res.json |
This file contains hidden or 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
def convert_to_dict(obj): | |
""" | |
A function takes in a custom object and returns a dictionary representation of the object. | |
This dict representation includes meta data such as the object's module and class names. | |
""" | |
# Populate the dictionary with object meta data | |
obj_dict = { | |
"__class__": obj.__class__.__name__, | |
"__module__": obj.__module__ |
OlderNewer