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.Collections.Generic; | |
| using System.Diagnostics; | |
| using Unity.Burst; | |
| using Unity.Collections; | |
| using Unity.Jobs; | |
| using Unity.Mathematics; | |
| using Unity.Profiling; | |
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEngine.Rendering; |
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.Collections.Generic; | |
| using System.Diagnostics; | |
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEngine.Rendering; | |
| using Debug = UnityEngine.Debug; | |
| public class CreateSceneMesh : MonoBehaviour | |
| { | |
| [MenuItem("GameObject/Create Scene Mesh %G")] |
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
| cat artifacts/tundra/${1}.dag1.json | ./jq-osx-amd64 ".Nodes[] | {ann: .Annotation, act: (try .Action catch \"\"|split(\" \")|unique), txt: (try .WriteTextFilePayload catch \"foo\"|split(\" \")|map(split(\",\")|map(split(\"\\n\")))|add|add|unique), inp:.Inputs|unique}" >artifacts/_/${1}.dag1.json | |
| cat artifacts/tundra/${1}.dag.json | ./jq-osx-amd64 ".Nodes[] | {ann: .Annotation, act: (try .Action catch \"\"|split(\" \")|unique), txt: (try .WriteTextFilePayload catch \"foo\"|split(\" \")|map(split(\",\")|map(split(\"\\n\")))|add|add|unique), inp:.Inputs|unique}" >artifacts/_/${1}.dag.json | |
| diff -Naur artifacts/_/${1}.dag1.json artifacts/_/${1}.dag.json >artifacts/_/_${1}.diff |
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
| // Example of using DX10-style HLSL texture and sampler objects in | |
| // Unity shaders | |
| Shader "Unlit/Example" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| } | |
| SubShader | |
| { |
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
| // Device ID lists based on: | |
| // General everything: http://pciids.sourceforge.net/pci.ids | |
| // ATI: | |
| // May 2011, http://developer.amd.com/gpu_assets/ATI_Device_ID_List_May_2011.txt | |
| // July 2010, http://developer.amd.com/gpu_assets/ATI_Device_ID_List_July_2010.txt | |
| // Jan 2009, http://developer.amd.com/gpu_assets/ATI_Device_IDs_Jan_09.txt | |
| // NVIDIA: | |
| // Home: http://developer.nvidia.com/content/device-id-list | |
| // March 2010, http://www.nvidia.com/object/device_ids.html |
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
| @echo off | |
| @rem Packages up VS2017 toolchain into builds.7z archive | |
| @set TOOLS_VERSION=14.13.26128 | |
| @cd "%~dp0" | |
| @set VC_PATH=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\VC\ | |
| @if not exist "%VC_PATH%" goto error_no_vs | |
| @if not exist "%VC_PATH%"Tools\MSVC\%TOOLS_VERSION% goto error_no_vs |
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/InfiniteSky" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| } | |
| SubShader | |
| { | |
| // make this render super early inside transparencies | |
| Tags { "RenderType"="Transparent-400" } |
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
| find . -name "*" -type f | xargs sed -i -e "/ MVID: /d" | |
| find . -name "*" -type f | xargs sed -i -e "/ Assembly location: /d" | |
| find . -name "*" -type f | xargs sed -i -e "/\[FreeFunction/d" | |
| find . -name "*" -type f | xargs sed -i -e "/\[NativeHeader/d" | |
| find . -name "*" -type f | xargs sed -i -e "/\[NativeType/d" | |
| find . -name "*" -type f | xargs sed -i -e "/\[NativeName/d" | |
| find . -name "*" -type f | xargs sed -i -e "/\[NativeClass/d" | |
| find . -name "*" -type f | xargs sed -i -e "/\[EditorBrowsable/d" | |
| find . -name "*" -type f | xargs sed -i -e "/\[StaticAccessor/d" |
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
| // will this compile on windows? haha nope | |
| // why? because asio transitively includes winsock2.h somewhere, which includes windows.h somewhere, | |
| // which hijacks SendMessage to be SendMessageA or SendMessageW (and also means hundreds of thousands of lines | |
| // of header includes, but that's just compilation "throughput" issue, not an error by itself) | |
| // message.h file | |
| struct MessageThing | |
| { | |
| void SendMessage(int foo); | |
| }; |
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
| { | |
| "origin": "#intro#: #vardai#. #outro#", | |
| "intro": ["Šiandien vardadienius švenčia", "Savo vardadienius šiandien švenčia", "Šiandienos vardadieniai", "Vardo dieną šiandien švęs"], | |
| "vardai": ["#vardas#, #vardas#, #vardas#, #vardas#, #vardas#", "#vardas#, #vardas#, #vardas#, #vardas#, #vardas#, #vardas#", "#vardas#, #vardas#, #vardas#, #vardas#, #vardas#, #vardas#, #vardas#"], | |
| "vardas": ["#prad##pab#", "#prad##pab#", "#prad##pab#", "#prad##vid##pab#", "#prad##vid##pab#", "#prad##vid##pab#", "#prad##vid##pab#", "#prad##vid##vid##pab#", "#prad##vid##vid##vid##pab#"], | |
| "prad": [ | |
| "A","Ais","Al","Ale","Au","Auš", "Ba","Bir","Bu", "Be", "Ce", "Če", "Do", "Dai", "Dau", "Da","Džiu", | |
| "Ei","Eis", "Ga","Gin","Gvi","Gie","Gei","Glo","Gre", "Fe","Fi", "He", "I", "Jo", "Ju", "Ja", "Juo","Jau", | |
| "Ka", "Kęs", "Ki", "Ko", "Kri", "Lai","Li","Liu", "Ma","Me","Mar","Mil","My","Myž", "Nau","Ni","Nor", | |
| "O", "Pau","Pra","Pa", "Re","Ri","Ra","Ro","Ru","Rū", "Sau","Si","Sig","Sim","Ste","Sva", "Ša","Šva","Švi","Šluo", "Tau", |