This file contains hidden or 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
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
This file contains hidden or 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
| #include <iostream> | |
| #include <sstream> | |
| #include <string> | |
| #include <string.h> | |
| #include <gif_lib.h> | |
| bool gif_write(const char* fileName) | |
| { | |
| int error; |
This file contains hidden or 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
| // C++ bit . save it in an example.cpp file | |
| #include "emscripten.h" | |
| extern "C" { | |
| inline const char* cstr(const std::string& message) { | |
| char * cstr = new char [message.length()+1]; | |
| std::strcpy (cstr, message.c_str()); | |
| return cstr; | |
| } | |
| EMSCRIPTEN_KEEPALIVE | |
| const char* getAMessage() { |
OlderNewer