Skip to content

Instantly share code, notes, and snippets.

import React, { Reducer, useEffect, useReducer, useState } from 'react';
import { Button } from 'reactstrap';
export class WrappedIncrementorState {
current: number = 0;
max: number = 0;
}
export type WrappedIncrementorAction =
| { type: 'INCREMENT' }
@Artfunkel
Artfunkel / DataErrorsControl.cs
Last active September 26, 2020 13:07
DataErrorsControl: displays all errors from an INotifyDataErrorInfo object
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Input;
namespace Artfunkel
@Artfunkel
Artfunkel / gist:fc27415fbc0b339d4b69289378eced1d
Created October 20, 2016 10:04
PTVS Maya 2016 Diagnositc Info
Projects:
Environments:
Microsoft.PythonTools.Project.LoadedProjectInterpreterFactoryProvider
Microsoft.PythonTools.Interpreter.ConfigurablePythonInterpreterFactoryProvider
Id: a9b04c63-6bc3-40c4-8a47-2f5375410f1f
Factory: Maya
Version: 2.7
Arch: Amd64
Prefix Path: C:\Program Files\Autodesk\Maya2016\bin\
Path: C:\Program Files\Autodesk\Maya2016\bin\mayapy.exe
@Artfunkel
Artfunkel / SymbolicLinkTools.cs
Last active August 29, 2015 14:04
Python\Product\Analysis\SymbolicLinkTools.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using Microsoft.Win32.SafeHandles;
// Code in this file courtesy of Troy Parsons
// http://troyparsons.com/blog/2012/03/symbolic-links-in-c-sharp/
------------------
System Information
------------------
Time of this report: 6/28/2013, 11:53:30
Machine name: TOM-PC
Operating System: Windows 7 Home Premium 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.130318-1533)
Language: English (Regional Setting: English)
System Manufacturer: Gigabyte Technology Co., Ltd.
System Model: GA-MA770T-UD3P
BIOS: Award Modular BIOS v6.00PG