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 gojo(m, n): | |
| return m if n == 0 else gojo(n, m % n) | |
| x, y = map(int, input().split()) | |
| print(gojo(x, y)) |
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
| //======= Copyright (c) Valve Corporation, All rights reserved. =============== | |
| using UnityEngine; | |
| using System.Collections; | |
| namespace Valve.VR.Extras | |
| { | |
| public class SteamVR_LaserPointer : MonoBehaviour | |
| { | |
| public SteamVR_Behaviour_Pose pose; |
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 UnityEngine; | |
| using System; | |
| using System.Collections.Generic; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| public class BroochEditor : EditorWindow | |
| { | |
| private class PathTool | |
| { |
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 UnityEngine; | |
| using System; | |
| using System.Collections.Generic; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| public class BroochEditor : EditorWindow | |
| { | |
| private class PathTool | |
| { |
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 UnityEngine; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| public class BroochEditor : EditorWindow | |
| { | |
| private class PathTool |
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
| Shader "dynamicraymarching" | |
| { | |
| Properties | |
| { | |
| _Color("Color", Color) = (1,1,1,1) | |
| _MainTex("Albedo", 2D) = "white" {} | |
| _Cutoff("Alpha Cutoff", Range(0.0, 1.0)) = 0.5 | |
| _Glossiness("Smoothness", Range(0.0, 1.0)) = 0.5 |
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 bpy | |
| import bmesh | |
| bpy.ops.object.mode_set(mode='OBJECT') | |
| obj = bpy.context.active_object | |
| bpy.ops.object.mode_set(mode='EDIT') | |
| mesh = bmesh.from_edit_mesh(obj.data) | |
| bpy.ops.mesh.select_all(action="DESELECT") | |
| for v in mesh.verts: |
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 bpy | |
| def axislist(axisbool): | |
| r = [] | |
| for i in range(len(axisbool)): | |
| l = [False,False,False] | |
| if axisbool[i]: | |
| l[i] = True | |
| r.append(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
| Shader "Unlit/charshader" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| } | |
| SubShader | |
| { | |
| Tags { "RenderType"="Opaque" } |
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
| // Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld' | |
| Shader "Unlit/charshader_babel" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| _sw("string length in line",int) = 30 | |
| _line("line",int) = 20 |
OlderNewer