Skip to content

Instantly share code, notes, and snippets.

View benbrandt22's full-sized avatar

Ben Brandt benbrandt22

View GitHub Profile
@benbrandt22
benbrandt22 / gist:20163774fa5e33593b24d38e3d6da502
Last active May 23, 2023 18:52 — forked from jseed/gist:5d022570ea52ee09a8f43913214496f1
PowerShell command to delete all branches except main
git checkout main; git branch -D @(git branch | select-string -NotMatch "main" | Foreach {$_.Line.Trim()})
angular.module('app', []).directive('ngDebounce', ['$timeout', function($timeout) {
return {
restrict: 'A',
require: 'ngModel',
priority: 99,
link: function(scope, elm, attr, ngModelCtrl) {
if (attr.type === 'radio' || attr.type === 'checkbox') return;
elm.unbind('input');