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
package logproject; | |
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
public final class LogSystem implements AutoCloseable { | |
private static LogSystem instance; |
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; | |
public class Singleton<T> : MonoBehaviour where T : Component | |
{ | |
private static T instance = null; | |
private static object lockSingleton = new object(); | |
public static T Instance | |
{ |
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.Collections; | |
public class Oscillator : MonoBehaviour | |
{ | |
public OscillatorType oscillatorType = OscillatorType.Position; | |
public float period = 1.0f; | |
public float amplitude = 0.01f; | |
public Vector3 direction = Vector3.one; | |
public bool initRandomPeriod = false; |
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.Runtime.InteropServices; | |
internal static class StructSerialize<T> | |
{ | |
public static T RawDeserialize(byte[] rawData) | |
{ | |
return RawDeserialize(rawData, 0); | |
} |
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.Collections; | |
public class Bezier { | |
private Vector3 p0; | |
private Vector3 p1; | |
private Vector3 p2; | |
private Vector3 p3; |
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.Collections; | |
using UnityEngine.UI; | |
using System.Collections.Generic; | |
public struct DialogMessage | |
{ | |
public string name; | |
public string message; |
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.Collections.Generic; | |
namespace GeneticAlgorithmConsoleApp | |
{ | |
public class Program | |
{ | |
public static int RANDOM_SEED = 10; | |
public static Random random = new Random(RANDOM_SEED); |
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.IO; | |
namespace XboxOneJoystickInputManager | |
{ | |
public class InputManager | |
{ | |
public enum JoystickAxis | |
{ | |
LeftStickHorizontal = 0, |
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
from google_images_download import google_images_download | |
response = google_images_download.googleimagesdownload() | |
arguments = {"keywords":"Glass,Chair,Water Bottle, ","limit":100,"print_urls":True} | |
paths = response.download(arguments) | |
print(paths) |
OlderNewer