Skip to content

Instantly share code, notes, and snippets.

View JanDeDobbeleer's full-sized avatar

Jan De Dobbeleer JanDeDobbeleer

View GitHub Profile
@JanDeDobbeleer
JanDeDobbeleer / post-commit
Created July 18, 2014 19:34
script to copy the working directory from the master after a commit to your cloud storage account to allow automatic backups
#!/bin/sh
# only deploy when on the master
# add this file to .git/hooks in your repo
# add your preferred cloud storage account
dest="Dropbox"
branch=$(git rev-parse --abbrev-ref HEAD)
if [ "master" == "$branch" ]; then
echo "Deploying to $dest"
@JanDeDobbeleer
JanDeDobbeleer / CircularProgressBar.xaml
Last active October 12, 2023 17:03
Circular progress bar
<UserControl
x:Class="Foo.Bar.CircularProgressBar"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="480" d:DesignWidth="480">
<Grid>
@JanDeDobbeleer
JanDeDobbeleer / CircularProgressBar.xaml
Created August 28, 2014 11:12
Circular Progress Bar (Silverlight)
<UserControl x:Name="userControl" x:Class="Foo.Bar.CircularProgressBar"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
d:DesignHeight="480" d:DesignWidth="480">
[user]
signingkey = F6993303
name = Jan
email = jan.de.dobbeleer@gmail.com
[commit]
gpgsign = true
[filter "lfs"]
smudge = git-lfs smudge %f
required = true
clean = git-lfs clean %f
@JanDeDobbeleer
JanDeDobbeleer / App.xaml.cs
Created November 10, 2014 12:36
Override default colors in a Windows Phone RT app.
#region custom methods
private void SetupCustomColors()
{
SetColor("ProgressBarIndeterminateForegroundThemeBrush", ((SolidColorBrush)Current.Resources["VikingRed"]).Color);
//SetColor("PivotHeaderForegroundUnselectedBrush", ((SolidColorBrush)Current.Resources["VikingGrey"]).Color);
SetColor("PivotHeaderForegroundSelectedBrush", Colors.White);
}
private void SetColor(string resource, Color color)
{
@JanDeDobbeleer
JanDeDobbeleer / IndexedPath.cs
Last active August 29, 2015 14:09
TwitterMimic extension
using System.Threading;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Shapes;
namespace Gist.Controls
{
public class IndexedPath:Path
{
public static readonly DependencyProperty SelectedColorBrushProperty = DependencyProperty.Register(
@JanDeDobbeleer
JanDeDobbeleer / GithubRelease.ps1
Last active February 6, 2016 19:12
Powershell Github release
function GitHub-Release($versionNumber, $commitId, $preRelease, $releaseNotes, $artifactOutputDirectory, $artifact, $gitHubUsername, $gitHubRepository, $gitHubApiKey)
{
$draft = $TRUE
$releaseData = @{
tag_name = [string]::Format("v{0}", $versionNumber);
target_commitish = $commitId;
name = [string]::Format("v{0}", $versionNumber);
body = $releaseNotes;
draft = $draft;
@JanDeDobbeleer
JanDeDobbeleer / crashlytrics.rb
Last active July 15, 2018 20:54
Dashing - Crashlytics & Xaramin Insights crash free users rate widget + jobs
require 'net/https'
require 'json'
#--------------------------------------------------------------------------------
# Configuration
#--------------------------------------------------------------------------------
configuration = {
:uri => 'https://fabric.io',
:credentials => {
:username => '',
@JanDeDobbeleer
JanDeDobbeleer / ConEmu.xml
Last active March 10, 2020 19:30
ConEmu configuration file
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2016-04-29 09:13:16" build="160416">
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Shells::PowerShell}"/>
<value name="StartFarFolders" type="hex" data="00"/>
<value name="StartFarEditors" type="hex" data="00"/>
@JanDeDobbeleer
JanDeDobbeleer / README.md
Last active April 1, 2016 19:24
Dashing - Bamboo Agent Widget

Description

Display a Bamboo Agent status. It can show if it is Offline, Idle or Busy building.

Installation

To use this widget, copy bamboo_agent.html, bamboo_agent.coffee, and bamboo_agent.scss into the /widgets/bamboo_agent directory. Put the bamboo_agent.rb file in your /jobs folder.

You'll also need a nice little icon for the widget. Use whatever you want, name it bamboo-status.png and put it in your /assets/images folder.