Skip to content

Instantly share code, notes, and snippets.

View windperson's full-sized avatar

Chen Yu Pao windperson

View GitHub Profile
@windperson
windperson / Microsoft.PowerShell_profile.ps1
Last active May 15, 2025 15:39
My Windows PowerShell profile
# Shows navigable menu of all options when hitting Tab
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete
# Autocompleteion for Arrow keys
Set-PSReadLineOption -HistorySearchCursorMovesToEnd
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
Set-PSReadLineOption -ShowToolTips
@windperson
windperson / falsehoods-programming-time-list.md
Created March 13, 2024 05:39 — forked from timvisee/falsehoods-programming-time-list.md
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@windperson
windperson / .vsvimrc
Created February 22, 2024 09:50
VsVim for Visual Studio config file
"""
" NOTE: This file is for VsVim plugin of Visual Studio, currently the "autocmd" is not supported: https://github.com/VsVim/VsVim/issues/1098
"""
"" -- Suggested options --
" Show a few lines of context around the cursor. Note that this makes the
" text scroll if you mouse-click near the start or end of the window.
set scrolloff=1
" Do incremental searching.
@windperson
windperson / settings.json
Created August 30, 2022 05:05
Windows Terminal profile settings
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command": "find",
"keys": "ctrl+shift+f"
},
{
@windperson
windperson / .ideavimrc
Last active August 29, 2022 10:04
Settings of .ideavimrc
"" Source your .vimrc
source ~/.vimrc
"" -- Suggested options --
" Show a few lines of context around the cursor. Note that this makes the
" text scroll if you mouse-click near the start or end of the window.
set scrolloff=1
" Do incremental searching.
set incsearch
@windperson
windperson / xamarinandroidbindings.md
Created April 3, 2021 09:26 — forked from JonDouglas/xamarinandroidbindings.md
Xamarin Android Bindings Troubleshooting

Approaching a Xamarin.Android Bindings Case

1. Investigation

One of the best ways to investigate a problematic Xamarin.Android Binding is to first ensure you have the proper tooling available:

@windperson
windperson / 101-rx-samples.md
Created February 12, 2020 10:17 — forked from Dmdv/101-rx-samples.md
101 Rx Samples in C#

101 Rx Samples in C#

This was taken from http://rxwiki.wikidot.com/101samples, because I wanted to be able to read it more comfortable with syntax highlighting.

Here's the unedited original, translated to Github Markdown glory:

101 Rx Samples - a work in progress

@windperson
windperson / python_resource.md
Last active July 3, 2019 06:51
Python Learning Resource
@windperson
windperson / bootpd.plist
Last active January 15, 2019 11:36
macOS_built-in_DHCP
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>bootp_enabled</key>
<false/>
<key>detect_other_dhcp_server</key>
<integer>1</integer>
<key>dhcp_enabled</key>
<array>
@windperson
windperson / EmbeddedImageResourceExtension.cs
Created June 14, 2017 22:40 — forked from conceptdev/EmbeddedImageResourceExtension.cs
Xamarin.Forms custom markup extension because there is no built-in TypeConverter for Images embedded as resources
using System;
using Xamarin.Forms.Xaml;
using Xamarin.Forms;
namespace WorkingWithImages
{
// You exclude the 'Extension' suffix when using in Xaml markup
[ContentProperty ("Source")]
public class ImageResourceExtension : IMarkupExtension
{