Skip to content

Instantly share code, notes, and snippets.

View petercamfield's full-sized avatar

Peter Camfield petercamfield

View GitHub Profile
@petercamfield
petercamfield / .bashrc
Last active October 4, 2019 07:57
Open all files listed by git diff in Visual Studio
alias vsd='"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\devenv.exe" //edit $(git diff --name-only)'
@mythz
mythz / greeter-ts.js
Last active October 11, 2015 06:27
TypeScript examples in Dart
class Greeter {
constructor(public greeting: string) { }
greet() {
return "<h1>" + this.greeting + "</h1>";
}
};
var greeter = new Greeter("Hello, world!");
var str = greeter.greet();
document.body.innerHTML = str;