This adopts the work done from ChatGPT-AutoExpert and updates it to get rid of some of the verboseness and adds links into the response (while not clickable, due to blocks by MS) are at least copy pastable to use.
Some ebooks are image based and have certain DRM rights added to them, even though you PAID for them. These bookmarklets allows for capturing those EBooks YOU own.
- Install the advance-and-download-ebook bookmarklet as a favorite in your bookmarks bar.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Set default value for theme if not provided | |
theme=${1:-'quick-term.omp.json'} | |
font=${2:-'Meslo'} | |
echo 'Installing Posh...' | |
brew install jandedobbeleer/oh-my-posh/oh-my-posh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[string]$theme = "quick-term.omp.json", | |
[string]$font = "Meslo" | |
) | |
$moduleName = "Terminal-Icons" | |
$poshName = "JanDeDobbeleer.OhMyPosh" | |
Write-Host "Installing Terminal Icons..." -ForegroundColor Blue | |
Install-Module -Name $moduleName -Repository PSGallery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CommentHelperTests: IClassFixture<TestFixture> | |
{ | |
private readonly TestFixture fixture; | |
public CommentHelperTests(TestFixture fixture, ITestOutputHelper output) | |
{ | |
this.fixture = fixture; | |
this.fixture.Initialize(output); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach (var item in spec.WhereExpressions) | |
{ | |
var sqlVisitor = new ExportsAPI.Domain.Visitors.SqlSearchExpressionVisitor(); | |
string sqlString = sqlVisitor.VisitExpression(item.Filter, test); | |
sql.Add(sqlString); | |
} | |
SQL list: | |
[0]: "(Assigned.UserName = 'Awesome')" | |
[1]: "(Id = 'fb9244e7-72d5-4842-95a2-7b44af136a9c')" | |
[2]: "(ClientId = 'fb9244e7-72d5-4842-95a2-7b44af136a9c')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { Write-Host "Removing $($_.fullname)"; remove-item $_.fullname -Force -Recurse }; Write-Host "Complete" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Reflection; | |
namespace Entities | |
{ | |
public class PropertyMap<T> | |
{ | |
public Func<T, object> Getter { get; set; } | |
public PropertyInfo PropertyInfo { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// we use this to group them all as available based on already using this namespace | |
namespace Common.Extensions | |
{ | |
/// <summary> | |
/// adapted from https://archive.ph/2022.10.14-213608/https://betterprogramming.pub/my-top-7-custom-extension-methods-for-net-7-and-c-494acb2e6634#selection-1935.0-2339.1 | |
/// </summary> | |
public static class TaskExtensions | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ObfuscatorConverter : JsonConverter | |
{ | |
private readonly IEnumerable<Type> _types; | |
private readonly int _charsToShow; | |
private readonly char _obfuscateChar; | |
public ObfuscatorConverter() : this(2, '*') | |
{ | |
} |
NewerOlder