Skip to content

Instantly share code, notes, and snippets.

@tno2007
tno2007 / ToastExample.vue
Created October 3, 2022 08:54
BootstrapVue Toast in composition API
<script setup lang="ts">
import { reactive } from "vue";
const toast = reactive({
message: "",
options: {
title: "",
},
visible: false,
});
@tno2007
tno2007 / remove-pnpm.ps1
Last active November 21, 2023 12:43
uninstall (broken) pnpm installation - via Powershell
# remove via choco if used
choco uninstall pnpm
$chocolatey_install = [Environment]::GetEnvironmentVariable('ChocolateyInstall', 'Machine')
rm $chocolatey_install\bin\pnpm* -Recurse -Force
rm $chocolatey_install\bin\pnpx* -Recurse -Force
# remove home folder
$pnpm_home = [Environment]::GetEnvironmentVariable('PNPM_HOME', 'User')
rm $pnpm_home -Recurse -Force
@tno2007
tno2007 / SfCustomHtmlHelpers.cs
Created June 8, 2021 22:41
Sirefinity Async Mvc Script
using System.Linq;
using System.Web.Mvc;
using Telerik.Sitefinity.Frontend.Mvc.Helpers;
using Telerik.Sitefinity.Modules.Pages;
namespace SitefinityWebApp.Custom
{
public static class SfCustomHtmlHelpers
{
public static MvcHtmlString ScriptAsync(this HtmlHelper helper, ScriptRef scriptReference)