Skip to content

Instantly share code, notes, and snippets.

View mbcrump's full-sized avatar

Michael Crump mbcrump

View GitHub Profile
@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>
@mbcrump
mbcrump / Resources.md
Last active September 26, 2020 09:13
Scott's Build 2019 Talk Resources
@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

##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 = "micrum@microsoft.com", WebSiteUrl = "http://michaelcrump.net/" };
     aboutprompt.Show(aboutPromptItem);
  }
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)))
}
@mbcrump
mbcrump / wwdc15.md
Last active August 29, 2015 14:25 — forked from mackuba/wwdc15.md

Here's my own list of the interesting stuff announced during this year's WWDC, collected from the keynotes, various Apple docs, blog posts and tweets.

If you're planning to watch the videos, I really recommend this Mac app that helps you download and watch them: https://github.com/insidegui/WWDC.

OS X El Capitan

http://www.apple.com/osx/elcapitan-preview/

  • split view - two apps side by side on full screen
@mbcrump
mbcrump / gist:a5d9ed21d778a486e241
Created June 27, 2014 03:00
targetSdkVersion is now L
apply plugin: 'com.android.application'
android {
compileSdkVersion 'android-L'
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.example.michael.mynewtestapp"
minSdkVersion 15
targetSdkVersion 'L'