Skip to content

Instantly share code, notes, and snippets.

Avatar
🇨🇦

Chase Florell ChaseFlorell

🇨🇦
View GitHub Profile
@ChaseFlorell
ChaseFlorell / baldurs_gate_3_keybindings.html
Created Oct 14, 2020
Baldur's Gate 3 (III) Keybindings, no ads, no fuss, no muss.
View baldurs_gate_3_keybindings.html
<!DOCTYPE html>
<html>
<body>
<table class="wiki_table sortable" style="width: 93.9397%; height: 2559px;">
<thead>
<tr>
<td>
<h4>ACTION</h4>
</td>
<td colspan="2">
View CoucnbaseMappingTests.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Couchbase.Lite;
using Couchbase.Lite.Mapping;
using FluentAssertions;
using NUnit.Framework;
// ReSharper disable TailRecursiveCall
View AppStyle.xaml
<Style TargetType="Switch">
<Setter Property="OnColor" Value="{DynamicResource SwitchOnColor}" />
<Setter Property="ThumbColor" Value="{DynamicResource SwitchOnThumbColor}" />
<Style.Triggers>
<Trigger TargetType="Switch" Property="IsToggled" Value="False">
<Setter Property="ThumbColor" Value="{DynamicResource SwitchOffThumbColor}" />
</Trigger>
</Style.Triggers>
</Style>
@ChaseFlorell
ChaseFlorell / Hexadecimal opacity transparency codes.md
Last active Jan 6, 2020 — forked from lopspower/README.md
Hexadecimal color code for transparency
View Hexadecimal opacity transparency codes.md

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

View VisualState_CollectionView.xaml
<CollectionView ItemsSource="{Binding Addresses}"
VerticalOptions="Start"
SelectionMode="Single"
HeightRequest="350"
SelectionChanged="OnItemSelected">
<CollectionView.EmptyView>
<Label Text="No Results (l10n)" TextColor="{StaticResource OsloGrey}" Margin="10" />
</CollectionView.EmptyView>
<CollectionView.ItemTemplate>
<DataTemplate>
@ChaseFlorell
ChaseFlorell / .gitconfig
Last active Apr 15, 2019
Customized Git Config
View .gitconfig
[rebase]
autoStash = true
[alias]
co = checkout
st = status -s
stats = shortlog -sn --no-merges
lg = log --decorate --pretty=format:%h%x09%an%x09%ad%x09%s --no-merges
cleanup = "!git fetch --all && git branch --merged | grep -v '\\*\\|master\\|develop\\|development\\|dev\\|vnext' | xargs -n 1 git branch -d"
new = checkout -b
alias = config --get-regexp ^alias\\. # List all aliases.
@ChaseFlorell
ChaseFlorell / example.xaml
Created Mar 3, 2019
trying to adjust FlexLayout.Basis on orientation changed
View example.xaml
<Grid.Triggers>
<DataTrigger TargetType="Grid" Binding="{Binding CurrentOrientation, Source={x:Static Device.Info}}" Value="{x:Static internals:DeviceOrientation.Portrait}" >
<Setter Property="FlexLayout.Basis" Value="50%" />
</DataTrigger>
<DataTrigger TargetType="Grid" Binding="{Binding CurrentOrientation, Source={x:Static Device.Info}}" Value="{x:Static internals:DeviceOrientation.Landscape}" >
<Setter Property="FlexLayout.Basis" Value="33%" />
</DataTrigger>
</Grid.Triggers>
View fast-find-powershell-profile.ps1
Set-Alias less "C:\Program Files\Git\usr\bin\less.exe"
function f($text, $files="*.*")
{
findstr /spin $text $files | less
}
View PropertyCopy.cs
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Reflection;
namespace MiscUtil.Reflection
{
/// <summary>
/// Non-generic class allowing properties to be copied from one instance
/// to another existing instance of a potentially different type.
@ChaseFlorell
ChaseFlorell / Progress.cs
Created Apr 26, 2017
How to run two processes simultaneously.
View Progress.cs
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Utils
{
public static class Progress
{
public static Task ProgressDots(CancellationToken token)
{
You can’t perform that action at this time.