Last active
August 29, 2015 14:05
-
-
Save ssebastianj/58964e39995e95b3d78b to your computer and use it in GitHub Desktop.
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
var mensaje = '01000110 01100101 01101100 01101001 01111010 00100000 01100011 01110101 01101101 01110000 01101100 01100101 00100000 01110011 01100101 01100010 01100001'; | |
console.log(mensaje.split(' ').map(function(e) { return String.fromCharCode(parseInt(e, 2)); }).join('')); |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
mensaje = '''01000110 01100101 01101100 01101001 01111010 00100000 01100011 | |
01110101 01101101 01110000 01101100 01100101 00100000 01110011 | |
01100101 01100010 01100001''' | |
for car in mensaje.split(): | |
print(chr(int(car, 2)), end='') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment