This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import taichi as ti | |
import taichi.math as tm | |
import pygame as pg | |
ti.init(arch=ti.gpu, default_fp=ti.f64, fast_math=False) | |
pg.init() | |
clock = pg.time.Clock() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def hsl_to_rgb(h: float, s: float, l: float): | |
r, g, b = 0.0, 0.0, 0.0 | |
h = h / 256.0 | |
s = s / 256.0 | |
l = l / 256.0 | |
if s == 0: | |
r = g = b = l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import List, Tuple | |
from colors import hsl_to_rgb | |
import pygame as pg | |
import glm | |
from perlin_noise import PerlinNoise | |
import moviepy.editor as mp | |
import numpy as np | |
import csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ap.test.sol2; | |
public class Articolo { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package autonoleggio; | |
public class App { | |
public static void main(String[] args) { | |
var autoNoleggio = new AutoNoleggio(); | |
System.out.println("all'inizio le auto sono zero"); | |
var auto = autoNoleggio.elencoAuto(); | |
System.out.println(auto.size() == 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::fmt::Display; | |
#[derive(Debug)] | |
pub struct Entity { | |
// id: Option<EntityKey>, | |
name: String, | |
health: i32, | |
xp: i32, | |
// inventory: Option<Inventory>, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2016 Mario Badr | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Descrivere i social network parlando della loro evoluzione e delle questioni legate a sicurezza e gestione della privacy. Discutere gli aspetti legati alla condivisione delle risorse nella rete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, redirect, render_template, request, url_for,session,g | |
import sqlite3 as sq | |
import hashlib | |
app = Flask(__name__) | |
USERNAME = "pippo" | |
PASSWORD = "pippo" | |
app.secret_key = b'_5#y2L"F4Q8z\n\xec]/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "21431df41ab893cc", | |
"type": "tab", | |
"label": "Flow 1", | |
"disabled": false, | |
"info": "", | |
"env": [] | |
}, | |
{ |