Skip to content

Instantly share code, notes, and snippets.

View tommyblue's full-sized avatar

Tommaso Visconti tommyblue

View GitHub Profile
@tommyblue
tommyblue / README.md
Created April 8, 2019 10:49
Bitmap matrix exercise

Bitmap Matrix

Un'immagine bitmap non è altro che una matrice NxM in cui ogni elemento contiene un valore RGBA, ovvero una quadrupla dove ogni elemento ha un valore tra 0 e 255 che rappresenta uno dei canali con cui identificare un colore.

In questo esercizio si richiede di generare delle bitmap randomiche e fare alcune operazioni su di esse.

Il cuore dell'esercizio è però quello di testare il codice (in TDD o a posteriori) utilizzando Jest.

@tommyblue
tommyblue / README.md
Created April 8, 2019 10:45
Sort Array exercise

Sort Array

Due semplici esercizi di ordinamento degli elementi di un array. Scopo dell'esercizio è testare il codice realizzato

Step 1

Dato in input un array di numeri interi, restituire l'array ordinato in modo crescente

Step 2

GIT
remote: git://github.com/EppO/rolify.git
revision: 45de8cf4bf51e60accddee3385829a2266709cb0
specs:
rolify (3.3.0.rc5)
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.0.0)
<!DOCTYPE html>
<html>
<head>
<title>MyApp</title>
<%= stylesheet_link_tag "application", media: "all" %>
<%= yield :stylesheets %>
<%= csrf_meta_tags %>
</head>
<body>
<%= yield %>
import sys
import csv
import httplib, urllib, base64
def main():
# set the name of your repository, username and password
username = "test"
password = "test"
repo = "test"