Skip to content

Instantly share code, notes, and snippets.

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'
#!/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"
@hribeirosantana
hribeirosantana / object.rkt
Created February 28, 2019 04:55
HackerRank > 30 Days of Code > Day 4: Class vs. Instance
#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)))
@hribeirosantana
hribeirosantana / cs50-crack-solution.c
Last active February 28, 2019 05:01
cs50-crack-solution
#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)