Skip to content

Instantly share code, notes, and snippets.

Hugo h-rds

Block or report user

Report or block h-rds

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pizza.exercises
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'
View rxzryiyxyion.py
#!/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"
@h-rds
h-rds / object.rkt
Created Feb 28, 2019
HackerRank > 30 Days of Code > Day 4: Class vs. Instance
View object.rkt
#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)))
@h-rds
h-rds / cs50-crack-solution.c
Last active Feb 28, 2019
cs50-crack-solution
View cs50-crack-solution.c
#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)
You can’t perform that action at this time.