forked from mathiasbynens/mothereff.in
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5359fc
commit ace8ccd
Showing
101 changed files
with
238 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.DS_Store | ||
regexpu/vendor/* | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# [Mothereffing ambiguous ampersands](http://mothereff.in/ampersands) | ||
# [Ambiguous ampersands](https://mothereff.in/ampersands) | ||
|
||
See <http://mathiasbynens.be/notes/ambiguous-ampersands> for the full explanation. | ||
See <https://mathiasbynens.be/notes/ambiguous-ampersands> for the full explanation. | ||
|
||
Made by [Mathias Bynens](http://mathiasbynens.be/). | ||
Made by [Mathias Bynens](https://mathiasbynens.be/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# [Bacon’s cipher encoder/decoder](http://mothereff.in/bacon) | ||
# [Bacon’s cipher encoder/decoder](https://mothereff.in/bacon) | ||
|
||
This tool can be used to encode/decode any text using Bacon’s cipher. It uses [_bacon-cipher_](http://mths.be/bacon) under the hood. | ||
This tool can be used to encode/decode any text using Bacon’s cipher. It uses [_bacon-cipher_](https://mths.be/bacon) under the hood. | ||
|
||
Made by [Mathias Bynens](http://mathiasbynens.be/). | ||
Made by [Mathias Bynens](https://mathiasbynens.be/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# [Base64 encoder/decoder](http://mothereff.in/base64) | ||
# [Base64 encoder/decoder](https://mothereff.in/base64) | ||
|
||
Convert any Unicode string to its Base64-encoded form, and the other way around. | ||
|
||
Made by [Mathias Bynens](http://mathiasbynens.be/). | ||
Made by [Mathias Bynens](https://mathiasbynens.be/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# [Legacy HTML color value previewer](http://mothereff.in/bgcolor) | ||
# [Legacy HTML color value previewer](https://mothereff.in/bgcolor) | ||
|
||
Wondering what a given legacy HTML color value looks like? This tool will show you. | ||
|
||
Another Extremely Useful™ tool made by [Mathias Bynens](http://mathiasbynens.be/). | ||
Another Extremely Useful™ tool made by [Mathias Bynens](https://mathiasbynens.be/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#!/usr/bin/python | ||
# By Yusuke Suzuki <[email protected]> | ||
# Modified by Mathias Bynens <http://mathiasbynens.be/> | ||
# Modified by Mathias Bynens <https://mathiasbynens.be/> | ||
# http://code.google.com/p/esprima/issues/detail?id=110 | ||
|
||
import sys | ||
import string | ||
import re | ||
|
||
# http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae | ||
# https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae | ||
def highSurrogate(codePoint): | ||
return int(math.floor((codePoint - 0x10000) / 0x400) + 0xD800) | ||
|
||
|
@@ -16,12 +16,12 @@ def lowSurrogate(codePoint): | |
|
||
def codePointToString(codePoint): | ||
if codePoint == 0: | ||
string = '\\0' # http://mathiasbynens.be/notes/javascript-escapes#single | ||
string = '\\0' # https://mathiasbynens.be/notes/javascript-escapes#single | ||
elif (codePoint >= 0x41 and codePoint <= 0x5A) or (codePoint >= 0x61 and codePoint <= 0x7A) or (codePoint >= 0x30 and codePoint <= 0x39): # [a-zA-Z0-9] | ||
string = chr(codePoint) | ||
elif codePoint <= 0xFF: # http://mathiasbynens.be/notes/javascript-escapes#hexadecimal | ||
elif codePoint <= 0xFF: # https://mathiasbynens.be/notes/javascript-escapes#hexadecimal | ||
string = '\\x' + '%02X' % codePoint | ||
elif codePoint <= 0xFFFF: # http://mathiasbynens.be/notes/javascript-escapes#unicode | ||
elif codePoint <= 0xFFFF: # https://mathiasbynens.be/notes/javascript-escapes#unicode | ||
string = '\\u' + '%04X' % codePoint | ||
else: # surrogate pairs | ||
string = '\\u' + '%04X' % highSurrogate(codePoint) + '\\u' + '%04X' % lowSurrogate(codePoint) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# [Mothereffing binary ↔ ASCII text converter](http://mothereff.in/binary-ascii) | ||
# [Binary ↔ ASCII text converter](https://mothereff.in/binary-ascii) | ||
|
||
Convert binary digits to extended ASCII text and the other way around. | ||
|
||
Made by [Mathias Bynens](http://mathiasbynens.be/). | ||
Made by [Mathias Bynens](https://mathiasbynens.be/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# [Mothereffing brainfuck minifier](http://mothereff.in/brainfuck-minifier) | ||
# [Brainfuck minifier](https://mothereff.in/brainfuck-minifier) | ||
|
||
[Brainfuck](http://esolangs.org/wiki/Brainfuck) _(not capitalized except at the start of a sentence)_ is an esoteric programming language. It has eight commands — `+-<>[],.` — and ignores all other characters. As a result, no special syntax for comments is needed, as long as the comments don’t contain the command characters. | ||
|
||
This tool will automatically remove comments from any brainfuck snippet you enter. | ||
|
||
Made by [Mathias Bynens](http://mathiasbynens.be/). | ||
Made by [Mathias Bynens](https://mathiasbynens.be/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# [String length and UTF-8 byte counter](http://mothereff.in/byte-counter) | ||
# [String length and UTF-8 byte counter](https://mothereff.in/byte-counter) | ||
|
||
Made by [Mathias Bynens](http://mathiasbynens.be/). | ||
Made by [Mathias Bynens](https://mathiasbynens.be/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.