Skip to content

Instantly share code, notes, and snippets.

@Snuux
Snuux / Задание 5.cs
Created September 20, 2025 15:47
Задание 5.cs
using System;
using System.Text;
namespace Module23
{
class Program
{
static void Main(string[] args)
{
string[] pictures = {
@Snuux
Snuux / Задание 1.cs
Last active September 20, 2025 15:34
ДЗ Модуль 2-3
using System;
using System.Text;
namespace Module23
{
class Program
{
static void Main(string[] args)
{
Console.InputEncoding = Encoding.Unicode;
using System;
namespace FirstModule
{
internal class Program
{
static void Main(string[] args)
{
int score = 25;
float damage = 15.4f;
@Snuux
Snuux / chooseOverlappedAABB.py
Created November 21, 2019 09:37
Maya python select all overlapped UV's AABB
# To use, simply select objects or specific faces/uv's/and etc to select overlapped one with only AABB collision algorithm.
import maya.cmds as cmds
import pymel.core as pm
from collections import defaultdict
def convertToShells():
cmds.ConvertSelectionToUVs()
cmds.ConvertSelectionToUVShell()
sel = pm.cmds.ls(selection=True, flatten=True)
#include <iostream>
#include <stdlib.h> /* srand, rand, abs */
#include <vector>
#include <conio.h>
#include <ctime>
#define RAND01 ((double) rand() / (RAND_MAX))
#define RAND14 (rand() % (4 + 1) + 1)
#include <iostream>
#include <stdlib.h> /* srand, rand, abs */
#include <vector>
#include <conio.h>
#include <ctime>
#define RAND14 (rand() % (40 + 1) + 10) * 0.01
using namespace std;