Skip to content

Instantly share code, notes, and snippets.

View armchairdeity's full-sized avatar

Jared Rypka-Hauer armchairdeity

  • Phoenix, AZ
View GitHub Profile
@armchairdeity
armchairdeity / remove_entities.js
Last active April 6, 2021 01:57
Prism modifications - removing menu items with a DOM watcher to build the new JS-based right-sidebar entities
let config = {
keep: {
entityNames: [
'VMs',
'Images',
'Virtual Private Clouds',
'Floating IPs',
'Categories',
'Availability Zones',
'Protection Policies',
import { createInstance, getActiveSession } from '@fra.me/terminal-factory';
export let terminalOptions = {
serviceUrl: 'https://cpanel-backend-prod.frame.nutanix.com/api/graphql',
terminalConfigId: '33e2d5d6-d3ff-4a76-8452-fe94fee21064.67297394-f041-447c-b8d6-9df397400b66',
token: token
};
const terminal = createInstance(terminalOptions);
@armchairdeity
armchairdeity / ViewController.swift
Last active April 6, 2021 01:59
Real-Time On-Device Replace CoreML Model With Update
@IBAction private func modelVersionPicked() {
var modelName:String = "";
switch modelPicker.selectedSegmentIndex {
case 0:
modelName = "DeviceWornClsfr_20.mlmodel";
case 1:
modelName = "DeviceWornClsfr_20.mlmodel";
default:
modelName = "this is going to blow up";
}
@armchairdeity
armchairdeity / Base.cs
Last active April 6, 2021 01:59
TFS API wrapper DSL
using Microsoft.TeamFoundation.Client;
using Microsoft.TeamFoundation.Core.WebApi;
using Microsoft.VisualStudio.Services.Identity;
using Microsoft.VisualStudio.Services.Directories.DirectoryService.Client;
using Microsoft.VisualStudio.Services.Identity.Client;
using Microsoft.VisualStudio.Services.Organization.Client;
using Microsoft.VisualStudio.Services.Profile.Client;
using Microsoft.VisualStudio.Services.Security.Client;
using System;
using System.Collections.Generic;
<cfscript>
a = "1,2,3,,5,,8";
function countBlanks(list) {
return REMatch(",,", a).len();
}
</cfscript>
<cfoutput>
@armchairdeity
armchairdeity / workitemsacrosssprints.sql
Created July 31, 2018 23:19
Selecting work items that have been in more than one sprint
SELECT TOP 100
WorkItem,
IterationPath,
COUNT(WorkItem) AS WorkItemCount
FROM
WorkItemHistoryView
WHERE
IterationPath NOT LIKE '%deleted node%'
AND IterationPath IS NOT NULL
GROUP BY WorkItem, IterationPath HAVING COUNT(IterationPath) > 1
component {
function init() {
return this;
}
function testMe() {
return isDefined("arguments");
}
}