This file contains 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
group:Name of the group (imported from SQL) | |
Person = { | |
name:string, age:number, gender:string | |
'Amy' , 16 , 'female' | |
'Ben' , 21 , 'male' | |
'Cal' , 33 , 'male' | |
'Dan' , 13 , 'male' | |
'Eli' , 45 , 'male' | |
'Fay' , 21 , 'female' |
This file contains 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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon Apr 29 04:25:03 2019 | |
@author: hugo | |
""" | |
"""This is a FAILED attempt to solve evilzone's challenge "encryption 2" |
This file contains 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
#lang racket | |
(define person% | |
(class object% | |
(super-new) | |
(init-field age) | |
(when (< age 0) (displayln "Age is not valid, setting age to 0.") (set-age)) | |
(define/private (set-age) (set! age 0)) | |
(define/public (get-age) age) | |
(define/public (year-passes) (set! age (add1 age))) |
This file contains 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 <unistd.h> | |
#define _XOPEN_SOURCE | |
char *crypt(const char *key, const char *salt); | |
int main (int argc, char* argv[]) | |
{ | |
if (argc != 2) |