Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 18:
=== Citazioni preferite: ===
<blockquote>It's high noon! </blockquote>-McCree([[Overwatch]])<blockquote>Ryujin no ken wo kurae!</blockquote>-Genji([[Overwatch]])
 
<br />
=== Film: ===
 
* [[Mezzogiorno di fuoco]]
* [[Mission: Impossible - Protocollo fantasma]]
* [[Mission: Impossible - Rogue Nation]]
* [[Ocean's Eleven - Fate il vostro gioco]]
* [[Ocean's Twelve]]
* [[Ocean's Thirteen]]
 
=== Componimenti poetici: ===
<blockquote>E nella notte nera come il nulla,
 
a un tratto, col fragor d'arduo dirupo
 
che frana, il tuono rimbombò di schianto:
 
rimbombò, rimbalzò, rotolò cupo,
 
e tacque, e poi rimareggiò rinfranto,
 
e poi vanì. Soave allora un canto
 
s'udì di madre, e il moto di una culla.</blockquote>-[[Giovanni Pascoli]]([[Myricae]])<blockquote>Sempre caro mi fu quest'ermo colle,
 
E questa siepe, che da tanta parte
 
Dell'ultimo orizzonte il guardo esclude.
 
Ma sedendo e mirando, interminati
 
Spazi di là da quella, e sovrumani
 
Silenzi, e profondissima quïete
 
Io nel pensier mi fingo, ove per poco
 
Il cor non si spaura. E come il vento
 
Odo stormir tra queste piante, io quello
 
Infinito silenzio a questa voce
 
Vo comparando: e mi sovvien l'eterno,
 
E le morte stagioni, e la presente
 
E viva, e il suon di lei. Così tra questa
 
Immensità s'annega il pensier mio:
 
E il naufragar m'è dolce in questo mare.</blockquote>-[[L'infinito]]
 
=== Linguaggi Di Programmazione/Librerie/Frameworks: ===
 
* [[JavaScript]]
* [[ReactJS]]
* [[Vue.js]]
* [[PHP]]
* [[C sharp]]
 
=== Algoritmi: ===
 
==== Quicksort: ====
<syntaxhighlight lang="javascript">
var items = [5,3,7,6,2,9];
function swap(items, leftIndex, rightIndex){
var temp = items[leftIndex];
items[leftIndex] = items[rightIndex];
items[rightIndex] = temp;
}
function partition(items, left, right) {
var pivot = items[Math.floor((right + left) / 2)],
i = left, //left pointer
j = right; //right pointer
while (i <= j) {
while (items[i] < pivot) {
i++;
}
while (items[j] > pivot) {
j--;
}
if (i <= j) {
swap(items, i, j);
i++;
j--;
}
}
return i;
}
 
function quickSort(items, left, right) {
var index;
if (items.length > 1) {
index = partition(items, left, right);
if (left < index - 1) {
quickSort(items, left, index - 1);
}
if (index < right) {
quickSort(items, index, right);
}
}
return items;
}
 
var sortedArray = quickSort(items, 0, items.length - 1);
console.log(sortedArray); //prints [2,3,5,6,7,9]
</syntaxhighlight>
 
==== Heap Sort: ====
<syntaxhighlight lang="javascript">
var array_length;
function heap_root(input, i) {
var left = 2 * i + 1;
var right = 2 * i + 2;
var max = i;
 
if (left < array_length && input[left] > input[max]) {
max = left;
}
 
if (right < array_length && input[right] > input[max]) {
max = right;
}
 
if (max != i) {
swap(input, i, max);
heap_root(input, max);
}
}
 
function swap(input, index_A, index_B) {
var temp = input[index_A];
 
input[index_A] = input[index_B];
input[index_B] = temp;
}
 
function heapSort(input) {
array_length = input.length;
 
for (var i = Math.floor(array_length / 2); i >= 0; i -= 1) {
heap_root(input, i);
}
 
for (i = input.length - 1; i > 0; i--) {
swap(input, 0, i);
array_length--;
heap_root(input, 0);
}
}
 
var arr = [3, 0, 2, 5, -1, 4, 1];
heapSort(arr);
console.log(arr);
</syntaxhighlight>
 
== Ringraziamenti ==
<blockquote>Grazie mille per aver dedicato secondi cruciali del tuo tempo ad osservare la mia pagina, ti auguro una buona giornata.</blockquote><blockquote></blockquote><blockquote></blockquote>