Skip to content

Instantly share code, notes, and snippets.

View RyanCavanaugh's full-sized avatar
🏃‍♂️
Catching up

Ryan Cavanaugh RyanCavanaugh

🏃‍♂️
Catching up
View GitHub Profile
@RyanCavanaugh
RyanCavanaugh / tsserver.js
Created July 7, 2015 16:59
tsserver.js from commit e009d68d6b81e7a18d81
This file has been truncated, but you can view the full file.
var ts;
(function (ts) {
// token > SyntaxKind.Identifer => token is a keyword
(function (SyntaxKind) {
SyntaxKind[SyntaxKind["Unknown"] = 0] = "Unknown";
SyntaxKind[SyntaxKind["EndOfFileToken"] = 1] = "EndOfFileToken";
SyntaxKind[SyntaxKind["SingleLineCommentTrivia"] = 2] = "SingleLineCommentTrivia";
SyntaxKind[SyntaxKind["MultiLineCommentTrivia"] = 3] = "MultiLineCommentTrivia";
SyntaxKind[SyntaxKind["NewLineTrivia"] = 4] = "NewLineTrivia";
SyntaxKind[SyntaxKind["WhitespaceTrivia"] = 5] = "WhitespaceTrivia";
@RyanCavanaugh
RyanCavanaugh / gist:591af2615d1e2b8d5d99
Created March 4, 2015 19:31
Bookmarklet: Mark PRs as read
$('ul.notifications li.pull-request-notification li.delete button').each(function(i, li) { li.click(); });
@RyanCavanaugh
RyanCavanaugh / gist:831f125c7c383477bc51
Created March 4, 2015 19:29
Bookmarklet: Mark commits as read
$('ul.notifications li.commit-notification li.delete button').each(function(i, li) { li.click(); });