Skip to content

Instantly share code, notes, and snippets.

View DanTup's full-sized avatar

Danny Tuppeny DanTup

  • Coded Consultants Ltd
  • England, UK
  • 02:16 (UTC +01:00)
  • X @DanTup
View GitHub Profile
// A list of all event types; these are basically used as strings, because we can't(?)
// get a nice unique name from a TS Class to use for the event name
enum EventType {
SendTheStuff
};
// All events must at least give us the EventType that we can convert to a string
interface IEvent {
EventType: EventType;
};
@DanTup
DanTup / npm error
Created March 19, 2014 12:35
Error when trying to grab AngularJS from GitHub via NPM
PS M:\Coding\TestApps\AngularTest> npm install angular/angular.js --save-dev
npm ERR! git fetch -a origin (git://github.com/angular/angular.js) fatal: refs/remotes/origin/v1.0.x tracks both refs/heads/v1.0.x and refs/remotes/origin/v1.0.x
@DanTup
DanTup / PowerShellHere.reg
Created February 1, 2014 11:28
Creates "PowerShell Here" shortcuts on context menu for right-clicking folders, blank background space, blank background space in libraries. Preserves default PowerShell colours/settings.
Windows Registry Editor Version 5.00
; Creates "PowerShell Here" shortcuts on context menu for
;
; a) right-clicking on a folder
; b) right-clicking in the blank space when inside a folder (eg. already inside the folder)
; c) right-clicking in the blank space when inside a folder that's inside a library
;
; Uses cmd start to launch normal Powershell shortcut so that the normal PowerShell shortcut
; colours/settings are preserved (blue, not black/white)