Skip to content

Instantly share code, notes, and snippets.

@semagarcia
semagarcia / format_sdcard_on_mac.md
Last active April 22, 2017 02:09
How format a SDCard in OSX

Command

diskutil list

Output command

In the output of previous command, search the sdcard and look for the identifier.

Example

If we want to to format the sdcard to the desired format (FAT32), with the name of "SDCARD", located on /dev/desk1, we should execute the following command:

@semagarcia
semagarcia / html-content.html
Last active November 9, 2015 09:23
How to convert an image into base64 string
<img id="image" src="http://www.gravatar.com/avatar/90348ht093409g7wetdgf?s=128&d=identicon&r=PG">
<canvas id="canvasElement"/>
<div id="base64string" />