<?
$tmp_dir = '/var/www/uploads/'; // путь к временной директории из настроек php.ini
$tmp_file = $tmp_dir . basename($_FILES['avatar']['name']); // путь к временному файлу
?>
ini_set('display_errors',1);
error_reporting(E_ALL);
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
$"..."
- синтаксический сахар для get_node("...").private Node node;
public override void _Ready()
{
node = GetNode<Node>("../Node");
}
var (a, b) = Console.ReadLine().Split(" ").Select(int.Parse);
public static class DeconstructEnumerable
{
public static void Deconstruct<T>(this System.Collections.Generic.IEnumerable<T> enumerable, out T item1, out T item2)
{
using var enumerator = enumerable.GetEnumerator();
if (!enumerator.MoveNext())
throw new ArgumentException("not enough values to unpack (expected 2, got 0)", nameof(enumerable));
item1 = enumerator.Current;
if (!enumerator.MoveNext())
throw new ArgumentException("not enough values to unpack (expected 2, got 1)", nameof(enumerable));
item2 = enumerator.Current;
if (enumerator.MoveNext())
throw new ArgumentException("too many values to unpack (expected 2)", nameof(enumerable));
}
}
Surface((width, height), flags=0, depth=0, masks=None) -> Surface
Surface((width, height), flags=0, Surface) -> Surface
pygame object for representing images
line(surface, color, start_pos, end_pos) -> Rect
line(surface, color, start_pos, end_pos, width=1) -> Rect
draw a straight line
smoothscale(surface, size, dest_surface=None) -> Surface
scale a surface to an arbitrary size smoothly