Skip to content

Instantly share code, notes, and snippets.

@dasannikov
dasannikov / TheThing.cs
Last active April 8, 2023 17:07
Unity Coding Guidelines
using UnityEngine;
using System.Collections;
namespace CompanyName {
public class TheThing : MonoBehaviour {
// 1
// Public fields section. Try to avoid public fields.
@rherrmann
rherrmann / CloneLearningTest.java
Last active July 21, 2023 19:15
'Learning Tests' that uses the JGit API to clone existing repositories: http://www.codeaffine.com/2015/11/30/jgit-clone-repository/
package com.codeaffine.jgit.example;
import static java.util.Collections.singleton;
import static org.eclipse.jgit.api.ListBranchCommand.ListMode.ALL;
import static org.eclipse.jgit.transport.RemoteConfig.getAllRemoteConfigs;
import static org.junit.Assert.*;
import java.io.File;
import java.io.IOException;
import java.util.List;