Le agregue al blog la capacidad de escribir con markdown (ya que el editor wysiwyg era horrendo) así como la capacidad de subir imagenes, archivos y videos, los comentarios también soportan markdown pero no ciertos elementos html por cuestiones de seguridad. Los posts ahora tienen 2 tipos de formato para conservar compatibilidad con los posts más antiguos, aunque el editor html esta deshabilitado en el admin.
Archivos multimedia
Quote
Often people, especially computer engineers, focus on the machines. They think, "By doing this, the machine will run fast. By doing this, the machine will run more effectively. By doing this, the machine will something something something." They are focusing on machines. But in fact we need to focus on humans, on how humans care about doing programming or operating the application of the machines. We are the masters. They are the slaves. - Yukihiro Matsumoto
- Esto
- Es
- Genial
Decent Code Blocks at last!
class OneTimePadEncoder def self.encode(message,key) xorpair(message,key) # (hex_message = message.unpack("H*").pop.hex ^ hex_key = key.unpack("H*").pop.hex ).to_s(16) end def self.decode(ct,key) xorpair(ct,key) end def self.xorpair(a,b) a = a.unpack("C*") b = b.unpack("C*") result = [] a.zip(b).each { |x| result.push x[0] ^ x[1] unless x[1] == nil } result.pack("C*") end end
como siempre pueden obtener el código en github
Comments
Comments powered by Disqus