This file contains 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
#!/bin/sh | |
CERTIFICATE_FROM_APPLE="$1" | |
CERTIFICATE_KEY="$2" | |
PASSWORD="$3" | |
if ! [ -e "$1" ] ; then | |
echo "CERTIFICATE_FROM_APPLE is missing." | |
echo "usage:\n\t $0 CERTIFICATE_FROM_APPLE.cer CERTIFICATE_KEY.p12 PASSWORD" | |
exit 1; | |
fi |
This file contains 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
RUN ONCE surfaceLib. | |
DECLARE LOCAL runmode to 0. | |
DECLARE LOCAL impactTimeDelta to 0. | |
DECLARE LOCAL impactTimeStamp to 0. | |
DECLARE LOCAL pos to 0. | |
DECLARE LOCAL impactGeoPos to 0. | |
DECLARE LOCAL impactVel to 0. | |
DECLARE LOCAL deltaV to 0. | |
DECLARE LOCAL max_acc to 0. |
This file contains 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
[System.Serializable] | |
public struct ProductItems | |
{ | |
public static readonly ProductItems Default = default(ProductItems); | |
public string ProductId { get; set; } | |
public int Count { get; set; } | |
public ProductItems(string productId, int count) | |
{ |
This file contains 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 main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"time" | |
) | |
// RunEnvmanAdd ... |
This file contains 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
clearscreen. | |
set headingAngle to 90. //normal EAST | |
set targetApoapsis to 150000. //Target apoapsis in meters | |
set targetPeriapsis to 150000. //Target periapsis in meters | |
lock throttle to 0. //Throttle is a decimal from 0.0 to 1.0 | |
gear off. | |
set runmode to 0. //Safety in case we start mid-flight | |
if SHIP:STATUS = "PRELAUNCH"{ | |
set runmode to 1. |
This file contains 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 UnityEditor; | |
public class CustomDefines { | |
[MenuItem("Global Defines/My Symbol/Enable")] | |
public static void EnableDebug(){ | |
Debug.LogWarning("Enabling MY_SYMBOL"); | |
var defines = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup); | |
string newDefine = "MY_SYMBOL"; |
This file contains 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 UnityEditor; | |
using UnityEditorInternal; | |
using System.Collections.Generic; | |
using UnityEditor.AnimatedValues; | |
[CustomEditor(typeof(UnityEngine.Object), true, isFallback = true)] | |
[CanEditMultipleObjects] | |
public class CustomEditorBase : Editor | |
{ |