Skip to content

Instantly share code, notes, and snippets.

@alyatwa
alyatwa / blender.md
Last active December 26, 2022 23:57
blender

Import material from anther blender file

  • File
  • Append
  • Select blender file.blend
  • material

Render Region

by using the Ctrl+B shortcut, once again clicking and holding the left mouse button and dragging the rectangle to create the region.

@alyatwa
alyatwa / unity snippets.md
Last active December 15, 2022 19:42
unity snippets

GetCurrentMousePosition GetCurrentMousePosition().GetValueOrDefault();

    private Vector3? GetCurrentMousePosition()
    {
        var ray = Camera.main.ScreenPointToRay(Input.mousePosition);
        var plane = new Plane(Vector3.forward, Vector3.zero);

 float rayDistance;
@alyatwa
alyatwa / good array.md
Last active September 20, 2023 16:13
good array

Good Array Bob doesn't like character arrays having same consecutive character, so he calls them bad arrays. A good array is the one which does not have any same consecutive letters. You are given a character array, make it a good array. The only allowed operation is: If there are two same consecutive letters, delete one of them. INPUT The first line contains an integer T, denoting the number of test cases. Each test case contain an character array. OUTPUT For each test case, print the answer to the given problem. CONSTRAINTS 1 <= T <= 10

subscription.canceled (cancel now)

{
    "data": {
        "id": "sub_01hy89z6jbcvkhvj0jgx6kr7cq",
        "items": [
            {
                "price": {