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 os | |
| import time | |
| from dataclasses import dataclass | |
| @dataclass | |
| class File: | |
| path = str | |
| lines = [] |
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
| static public class UnityEngineExtensions | |
| { | |
| /// <summary> | |
| /// Returns the component of Type type. If one doesn't already exist on the GameObject it will be added. | |
| /// </summary> | |
| /// <typeparam name="T">The type of Component to return.</typeparam> | |
| /// <param name="gameObject">The GameObject this Component is attached to.</param> | |
| /// <returns>Component</returns> | |
| static public T GetOrAddComponent<T>(this GameObject gameObject) where T : Component | |
| { |
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
| { | |
| "users": [ | |
| { | |
| "picture": "http://placehold.it/128x128", | |
| "age": 22, | |
| "eyeColor": "brown", | |
| "name": { | |
| "first": "Sweeney", | |
| "last": "Martinez" | |
| }, |
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
| """KEYWORD REPLACING MODULE.""" | |
| import os | |
| import json | |
| # functions | |
| def get_files(): | |
| """lists files""" | |
| exclude = set(['.vscode', 'sample']) | |
| json_files = [] | |
| for root, dirs, files in os.walk(os.getcwd(), topdown=True): |