Skip to content

Instantly share code, notes, and snippets.

@ssebastianj
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssebastianj/58964e39995e95b3d78b to your computer and use it in GitHub Desktop.
Save ssebastianj/58964e39995e95b3d78b to your computer and use it in GitHub Desktop.
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(''));
#!/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