Skip to content

Instantly share code, notes, and snippets.

View mbcrump's full-sized avatar

Michael Crump mbcrump

View GitHub Profile
override func viewDidLoad() {
super.viewDidLoad()
let chart = TKChart(frame: CGRectInset(self.view.bounds, 15, 15))
chart.autoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight
self.view.addSubview(chart)
var items = [TKChartDataPoint]()
for i in 0..<8 {
items.append(TKChartDataPoint(x:Int(arc4random()%100), y:(i+1)))
}

##Mobilize.NET SL Bridge

  private void ApplicationBarMenuItem_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
  {
     var aboutprompt = new WindowsPhoneUWP.UpgradeHelpers.AboutPrompt();
     var aboutPromptItem = new WindowsPhoneUWP.UpgradeHelpers.AboutPromptItem() { AuthorName = "Microsoft", Role = "PM", EmailAddress = "[email protected]", WebSiteUrl = "http://michaelcrump.net/" };
     aboutprompt.Show(aboutPromptItem);
  }
@mbcrump
mbcrump / runme.py
Last active January 18, 2019 20:38
Pull down title and url of all Azure Tips and Tricks videos
# Author: Michael Crump
# Date: 1/18/2019
# Functionality: To easily scrape an Azure YouTube playlist of the title and url and format it with '{number}. title url [new line] and -
from bs4 import BeautifulSoup as bs
import requests
r = requests.get('https://www.youtube.com/playlist?list=PLLasX02E8BPCNCK8Thcxu-Y-XcBUbhFWC')
page = r.text
@mbcrump
mbcrump / Resources.md
Last active September 26, 2020 09:13
Scott's Build 2019 Talk Resources
@mbcrump
mbcrump / index.html
Created February 18, 2020 23:27
Timeline
<body style="background-color:black;">
<link href='https://fonts.googleapis.com/css?family=Titillium+Web:400,200,300,600,700' rel='stylesheet'
type='text/css'>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<button id="toggleButton" hidden="true">Toggle</button>
<ul class="timeline" id="timeline">
<li class="li intro" id="intro">
<div class="status">
<h4> Intro </h4>
url - https://mystery.knightlab.com/
You vaguely remember that the crime was a ​murder​ that occurred sometime on ​Jan.15, 2018​ and that it took place in ​SQL City​.
The SQL Murder Mystery is built using SQLite
name
crime_scene_report
drivers_license
@mbcrump
mbcrump / cli.txt
Last active October 10, 2020 19:45
cmdlinemystery.txt
There's been a murder in Terminal City, and TCPD needs your help.
To figure out whodunit, go to the 'mystery' subdirectory and start working from there.
You'll want to start by collecting all the clues at the crime scene (the 'crimescene' file).
The officers on the scene are pretty meticulous, so they've written down EVERYTHING in their officer reports.
Fortunately the sergeant went through and marked the real clues with the word "CLUE" in all caps.