Skip to content

Instantly share code, notes, and snippets.

View kevinjpetersen's full-sized avatar

Kevin J. Petersen kevinjpetersen

View GitHub Profile
@GeorgDangl
GeorgDangl / HackyReportPage.xaml
Created October 31, 2017 20:14
Displaying graphs and charts in a Xamarin WebView with Chart.js
<?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms"
prism:ViewModelLocator.AutowireViewModel="True"
x:Class="App.Mobile.Views.HackyReportPage"
Title="Hacky Chart.js Report">
<WebView VerticalOptions="FillAndExpand">
<WebView.Source>
<HtmlWebViewSource Html="{Binding ReportHtml}" />
@mcleary
mcleary / Timer.cpp
Last active March 27, 2024 02:42
C++ Timer using std::chrono
#include <iostream>
#include <chrono>
#include <ctime>
#include <cmath>
class Timer
{
public:
void start()
{