Skip to content

Instantly share code, notes, and snippets.

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"
@hribeirodesantana
hribeirodesantana / 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)))
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)