C# at Google Style Guide を日本語訳したものです。一部こなれていない箇所もあるので、お気づきの点があれば気軽にコメントでご指摘頂ければ幸いです。
このスタイルガイドは Google 社内で開発された C# コード用であり、Google の C# コードのデフォルトのスタイルです。 Google C++ スタイルや Google Java スタイルなど、Google の他の言語に準拠した文体の選択を行います。
/* | |
* Copyright (c) 2013 Calvin Rien | |
* | |
* Based on the JSON parser by Patrick van Bergen | |
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html | |
* | |
* Simplified it so that it doesn't throw exceptions | |
* and can be used in Unity iPhone with maximum code stripping. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining |
C# at Google Style Guide を日本語訳したものです。一部こなれていない箇所もあるので、お気づきの点があれば気軽にコメントでご指摘頂ければ幸いです。
このスタイルガイドは Google 社内で開発された C# コード用であり、Google の C# コードのデフォルトのスタイルです。 Google C++ スタイルや Google Java スタイルなど、Google の他の言語に準拠した文体の選択を行います。
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor.ShaderGraph; | |
using System.Reflection; | |
[Title("Distance", "Hexagon")] | |
public class HexagonNode : CodeFunctionNode | |
{ | |
public HexagonNode() |
using UnityEngine; | |
using System; | |
using System.Text; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class LSystemGenerator : MonoBehaviour | |
{ | |
[Serializable] |
using UnityEngine; | |
using System.Collections; | |
public class LogTest : MonoBehaviour | |
{ | |
// ゲーム開始前に呼び出す | |
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] | |
static void Init () { | |
Debug.logger.logEnabled = false; // ←ログを止める | |
} |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
using System.Linq; | |
using System.Collections; | |
public class BatchBuild { | |
// Android ビルド | |
[MenuItem("Build/Android")] |
using System; | |
using UnityEngine; | |
using System.Collections; | |
public class AssetBundleSample : MonoBehaviour { | |
public GUIText guitext; | |
// Use this for initialization | |
void Start () { |
%%[ | |
VAR @ts, @tsDef, @ts_extkey, @ts_email, @ts_sub, @ts_statusCode, @ts_statusMsg, @errorCode | |
SET @ts = CreateObject("TriggeredSend") | |
SET @tsDef = CreateObject("TriggeredSendDefinition") | |
SET @ts_extkey = "ExternalKey" /* use the external key of the interaction for example SET @ts_extkey = "49078" */ | |
SET @ts_email = "email@example.com" /* provide recipient's email address */ | |
SetObjectProperty(@tsDef, "CustomerKey", @ts_extkey) | |
SetObjectProperty(@ts, "TriggeredSendDefinition", @tsDef) | |
using UnityEngine; | |
using System.Collections; | |
public class Liner : MonoBehaviour | |
{ | |
[SerializeField, Range(0, 10)] | |
float time = 1; | |
[SerializeField] |
# Steps for turning on squid monitoring (until I have an rpm) | |
cat > /etc/collectd.d/squid << EOF | |
LoadPlugin exec | |
<Plugin exec> | |
Exec deploy "/var/lib/releng/monitoring/squid" | |
</Plugin> | |
EOF | |
mkdir -p /var/lib/releng/monitoring |