Skip to content

Instantly share code, notes, and snippets.

View virtualvoid's full-sized avatar

Juraj virtualvoid

View GitHub Profile
@rajbos
rajbos / dotnetToolInstallCheck.ps1
Last active February 7, 2024 12:45
Use dotnet tool to find out if a specific tool is installed on an environment
# Preface:
# dotnet tool install -g will return an error code when the tool is already installed in the system (at the same location)
# adding a test like below, will prevent the error
# this is mostly needed in a CI/CD environment where you don't want to break your pipeline if the tool was installed already.
# find if stryker is installed
$list = (dotnet tool list -g)
# echo the list
# $list
@donglua
donglua / GlideImageGetter
Last active April 30, 2018 08:22 — forked from AndroidT/GlideImageGetter
GlideImageGetter uses Glide Image Library to load GIFs/JPG/PNG in HTML <img> tags into TextView
import android.content.Context;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.text.Html;
import android.view.View;
import android.widget.TextView;
import com.bumptech.glide.Glide;