Skip to content

Instantly share code, notes, and snippets.

View wieslawsoltes's full-sized avatar

Wiesław Šoltés wieslawsoltes

View GitHub Profile
@wieslawsoltes
wieslawsoltes / s1.svg
Last active November 12, 2022 15:52
Figma
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Linq;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Selection;
@wieslawsoltes
wieslawsoltes / Morph.cs
Created June 10, 2021 05:59 — forked from badamczewski/Morph.cs
Text Morphing in WPF
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Animation;
namespace WPFAnimations
void draw(SkCanvas* canvas) {
SkPaint paint1;
SkPaint paint2;
float width = 120.0f;
float height = 90.0f;
float cw = 15.0f;
float ch = 15.0f;
@wieslawsoltes
wieslawsoltes / Core2D.cs
Created April 23, 2019 11:53
Decompiled xaml from my Avalonia app
This file has been truncated, but you can view the full file.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Globalization;
using Avalonia;
using Avalonia.Collections;
using Avalonia.Controls;
using Avalonia.Controls.PanAndZoom;
Download files:
mkdir build/build
wget https://raw.githubusercontent.com/wieslawsoltes/ThemeEditor/master/build/build/Build.cs -O ./build/build/Build.cs
wget https://raw.githubusercontent.com/wieslawsoltes/ThemeEditor/master/build/build/_build.csproj -O ./build/build/_build.csproj
wget https://raw.githubusercontent.com/wieslawsoltes/ThemeEditor/master/.nuke
wget https://raw.githubusercontent.com/wieslawsoltes/ThemeEditor/master/build.ps1
wget https://raw.githubusercontent.com/wieslawsoltes/ThemeEditor/master/build.sh
wget https://raw.githubusercontent.com/wieslawsoltes/ThemeEditor/master/global.json
<Styles xmlns="https://github.com/avaloniaui">
<Style Selector="ScrollBar">
<Setter Property="Template">
<ControlTemplate>
<Border Background="{DynamicResource ThemeControlMidBrush}">
<Grid RowDefinitions="20,*,20">
<RepeatButton Name="PART_LineUpButton"
Classes="repeat"
Grid.Row="0"
Grid.Column="0"
// Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Presenters;
using Avalonia.Controls.Primitives;
using Avalonia.Input;
using Avalonia.Threading;
using Avalonia.VisualTree;
#include <string>
#include <vector>
#include <utility>
template <typename T>
class IRowEditor
{
public:
virtual ~IRowEditor() { }
@wieslawsoltes
wieslawsoltes / ArgvParser.cpp
Created February 22, 2018 13:54
Command-line parser for C++ apps.
#include <string>
#include <vector>
#include <algorithm>
#include <iterator>
#include <utility>
#include <iostream>
namespace util
{
class Option