I hereby claim:
- I am kamimoo on github.
- I am kamimoo (https://keybase.io/kamimoo) on keybase.
- I have a public key ASDhKaLbtiJHSNmJYoLmrtImdqffSe0FwuqhCBiOd9QejAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
htmlParser = require('htmlparser2') | |
result = '' | |
selfClosingTags = ['img', 'br', 'hr'] | |
parser = new htmlParser.Parser( | |
onopentag: (name, attribs) => | |
result += "<#{name}" | |
for attr, val of attribs | |
if val.length |
#/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
if [ -x "`which -s npm`" ]; then | |
echo "node is not installed" | |
exit 1 | |
fi | |
cd "$(dirname ${BASH_SOURCE[0]})/../.." | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" |
- (NSString *)stringByReplacingPattern:(NSString *)patternString usingBlock:(NSString *(^)(NSTextCheckingResult *match))replacer { | |
if (!replacer) { | |
return nil; | |
} | |
NSRegularExpression *regex = [NSRegularExpression | |
regularExpressionWithPattern:patternString | |
options:NSRegularExpressionAnchorsMatchLines | |
error:NULL]; | |