Skip to content

Instantly share code, notes, and snippets.

View arthurrump's full-sized avatar

Arthur Rump arthurrump

View GitHub Profile
@arthurrump
arthurrump / MovableBox.pde
Last active September 12, 2022 09:41
Processing sketch met een box die je met de muis over het scherm kan slepen
// Sketch met een box die je met de muis over het scherm kan slepen
// Gebaseerd op https://processing.org/examples/mousefunctions.html
// Variabelen die we nodig hebben in dit programma:
// - x en y positie van de box
float boxX, boxY;
// - grootte van de box
int boxSize;
// - booleans die aangeven of
// - de muis op dit moment over de box hangt
@arthurrump
arthurrump / FakeGitVersioning.fsx
Last active August 14, 2019 10:35
How to use FAKE to automatically set version numbers based on your Git history. https://www.arthurrump.com/2019/07/19/git-based-versioning-using-fake
#r "paket:
nuget Fake.Core.SemVer
nuget Fake.Core.Target
nuget Fake.DotNet.Cli
nuget Fake.Tools.Git //"
#load "./.fake/build.fsx/intellisense.fsx"
open Fake.Core
open Fake.DotNet
open Fake.Tools
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style TargetType="GridViewItem" x:Key="BorderlessGridViewItem" BasedOn="{StaticResource GridViewItemExpanded}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="GridViewItem">
<Grid x:Name="ContentBorder"
Control.IsTemplateFocusTarget="True"
FocusVisualMargin="{TemplateBinding FocusVisualMargin}"
@arthurrump
arthurrump / MainPage.xaml
Created June 27, 2017 18:37
AdaptiveGridView.ItemContainerStyleSelector doesn't work
<Page
x:Class="App1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App1"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:toolkit="using:Microsoft.Toolkit.Uwp.UI.Controls"
mc:Ignorable="d">
@arthurrump
arthurrump / keybase.md
Created April 29, 2017 18:52
keybase.md

Keybase proof

I hereby claim:

  • I am arthurrump on github.
  • I am arthurrump (https://keybase.io/arthurrump) on keybase.
  • I have a public key ASDvvQxz0Ogtb-GTujHwhqIIrkPMazIKv1XPSVuvitRgqAo

To claim this, I am signing this object:

@arthurrump
arthurrump / AppointmentControl.xaml
Created September 12, 2016 17:42
DayPanel prototype
<UserControl
x:Class="ScheduleControlProto.AppointmentControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ScheduleControlProto"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="400">