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
using System; | |
using System.Text; | |
namespace Module23 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string[] pictures = { |
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
using System; | |
using System.Text; | |
namespace Module23 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.InputEncoding = Encoding.Unicode; |
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
using System; | |
namespace FirstModule | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int score = 25; | |
float damage = 15.4f; |
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
# 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) |
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
#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) |
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
#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; |