Skip to content

Instantly share code, notes, and snippets.

View eugen1408's full-sized avatar
🎯
Focusing

evaganov eugen1408

🎯
Focusing
View GitHub Profile
@eugen1408
eugen1408 / DarkThemeIos.xaml
Last active July 31, 2021 08:33
Xamarin iOS Colors Dark Theme
<?xml version="1.0" encoding="UTF-8"?>
<ResourceDictionary xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<Color x:Key="SystemBackground">#000000</Color>
<Color x:Key="SecondarySystemBackground">#1C1C1E</Color>
<Color x:Key="TertiarySystemBackground">#2C2C2E</Color>
<Color x:Key="SystemGroupedBackground">#000000</Color>
<Color x:Key="SecondarySystemGroupedBackground">#1C1C1E</Color>
<Color x:Key="TertiarySystemGroupedBackground">#2C2C2E</Color>
<Color x:Key="Label">#FFFFFF</Color>
@eugen1408
eugen1408 / LightThemeIos.xaml
Last active July 31, 2021 08:33
Xamarin iOS Colors Light Theme
<?xml version="1.0" encoding="UTF-8"?>
<ResourceDictionary xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<Color x:Key="SystemBackground">#FFFFFF</Color>
<Color x:Key="SecondarySystemBackground">#F2F2F7</Color>
<Color x:Key="TertiarySystemBackground">#FFFFFF</Color>
<Color x:Key="SystemGroupedBackground">#F2F2F7</Color>
<Color x:Key="SecondarySystemGroupedBackground">#FFFFFF</Color>
<Color x:Key="TertiarySystemGroupedBackground">#F2F2F7</Color>
<Color x:Key="Label">#000000</Color>
private static string FormatPhone(string phoneString)
{
if (string.IsNullOrWhiteSpace(phoneString)) return phoneString;
var phoneReplaced = phoneString.Replace(" ", "").Replace("-", "").Replace(")", "").Replace("(", "").Replace("+", "");
if (phoneReplaced.Length == 10 && (phoneReplaced[0] == '9')) return "+7" + phoneReplaced;
else if ((phoneReplaced.Length == 11 && (phoneReplaced[0] == '8'))) return "+7" + phoneReplaced.Substring(1);
else return phoneReplaced.StartsWith("7") ? $"+{phoneReplaced}" : phoneReplaced;
}
Windows Registry Editor Version 5.00
[HKEY_USERS\.DEFAULT\Control Panel\Mouse]
"MouseSensitivity"="4"
"MouseSpeed"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
"EnableSmartScreen"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender]
Set-ExecutionPolicy Bypass
cmd /c "bcdedit /set {default} bootmenupolicy legacy"
irm https://git.io/fjbwi -UseBasicParsing -OutFile $env:TEMP\win10.reg; cmd /c "regedit /s %temp%\win10.reg"
Install-PackageProvider -Name chocolatey
Install-PackageProvider -Name ChocolateyGet
Set-PackageSource -Name chocolatey -trusted
Install-Package googlechrome
Install-Package 7zip
Install-Package everything
Install-Package qbittorrent