Skip to content

Instantly share code, notes, and snippets.

@enricosoft
enricosoft / OrleansDotNetSample
Created May 2, 2023 17:14
Microsoft Orleans.NET Sample
1) [ORLEANS.NET BACK-END]
// GRAIN (ACTOR) INTERFACE DEFINITION (ICartGrain.cs)
namespace GrainInterfaces
{
public interface ICartGrain : IGrainWithGuidKey
{
Task<Cart> GetCart();
@enricosoft
enricosoft / AkkaNetSample
Created May 2, 2023 17:09
Akka.NET Sample
namespace AkkaRoomReservationSample
{
class Program
{
static void Main(string[] args)
{
var system = ActorSystem.Create("MySystem");
IActorRef reservator = system.Actorof<ReservationActor>("reservator");
reservator.Tell (new BookThe Room { RoomNumber = "1"} );
reservator.Tell(new BookTheRoom { RoomNumber = "1" });
@enricosoft
enricosoft / Parte 1.txt
Last active June 5, 2023 11:29
Diventa un Ethical Hacker - Appunti Corso Udemy
ETHICAL HACKER - PARTE 1
white hat
stessi strumenti del black hat ma per scopi etici
cosa fa: messa in sicurezza della rete oppure test di verifica sicurezza (penetration testing)
Vettori di attacco, in ordine:
- endpoint (pc, server, ecc) --> es: social engineering
- mobile devices (es. connessi a rete aziendale)
@enricosoft
enricosoft / Typescript Tutorial.md
Created May 31, 2017 15:48
Typescript Tutorial

TYPESCRIPT

** What is **

TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. It's developed by Microsoft. Right now the stable version is 2.3. It's used by the major frameworks like React, Angular, NodeJs express, ASP.NET, React Native, etc.

** Installation **

@enricosoft
enricosoft / Angular2 - Tutorial Avanzato.md
Last active October 23, 2017 16:29
Angular2 - Tutorial Avanzato

** ANIMATION **

Per poter utilizzare le animazioni è necessario importare il modulo "BrowserAnimationsModule" in "app.module.ts"

import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

e poi le relative parti necessarie nel component:

@enricosoft
enricosoft / Angular2 - Architettura.md
Last active May 31, 2017 13:27
Angular2 - Architettura

ARCHITECTURE

L'architettura di base si compone dei seguenti building blocks:

  • Modules
  • Components
  • Templates
  • Metadata
  • Data binding
  • Directives
@enricosoft
enricosoft / Angular2 -Tutorial Base.md
Last active February 13, 2019 16:33
Angular2 -Tutorial Base

QUICKSTART INTRO

Le applicazioni Angular2 sono sviluppate sul concetto di "componenti" che sono una combinazione di un template HTML ed una classe dedicata al componente. Un componente controlla una porzione della pagina.

Di seguito un esempio di implementazione di un componente:

import { Component } from '@angular/core';
@enricosoft
enricosoft / order.js
Created March 29, 2017 19:53
Order people by age
var data = [
{
"name": "Enrico",
"age": 29
},
{
"name": "Mark",
"age": 32
},
{
using Microsoft.Phone.Controls;
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Diagnostics;
using System.Collections.Generic;
using System.Linq;
namespace Ocell.Controls