Skip to content

Instantly share code, notes, and snippets.

View willcosgrove's full-sized avatar
🏠
Working from home

Will Cosgrove willcosgrove

🏠
Working from home
View GitHub Profile
@clintel
clintel / gist:1155906
Created August 19, 2011 02:40
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
@jamii
jamii / gist:8fa2192efd0f2a70a9d0
Created January 7, 2015 05:19
fuzzy matching
function isAfterBoundary(string, i) {
// checks if previous char is not alphanumeric
if (i === 0) {
return false;
} else {
var cc = string.charCodeAt(i - 1);
return !((cc > 47 && cc < 58) || (cc > 64 && cc < 91) || (cc > 96 && cc < 123));
}
}
@swalkinshaw
swalkinshaw / tutorial.md
Last active November 13, 2023 08:40
Designing a GraphQL API