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
| class Cards | |
| class Card | |
| attr_reader :suit, :rank | |
| def initialize(suit, rank) | |
| @suit = suit | |
| @rank = rank | |
| end | |
| end | |
| attr_reader :suits, :ranks |
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 <stdio.h> | |
| #include <string.h> | |
| #include <openssl/md5.h> | |
| #include <pthread.h> | |
| int result = -1; | |
| void decode(unsigned char* out, const char* in){ | |
| for (int i = 0; i < MD5_DIGEST_LENGTH; i++) | |
| sscanf(&in[i*2], "%02x", &out[i]); |
NewerOlder