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
* Customer's business information as it will appear on generated estimates: | |
* Company Name | |
* Company Email | |
* Company Phone | |
* Company Address | |
* Company Logo (image) | |
* Email address to which a CC of all estimates will be sent | |
* Standard Materials List | |
* Description | |
* Unit of Measure |
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
private static BuildPlayerOptions CreateBuildPlayerOptions(string apkPath) | |
{ | |
List<string> scenes = new List<string>(EditorBuildSettings.scenes | |
.Where(scene => scene.enabled) | |
.Select(scene => scene.path)); | |
var buildPlayerOptions = new BuildPlayerOptions | |
{ | |
scenes = scenes.ToArray(), | |
locationPathName = apkPath, |
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
public class WorldPositionUI : MonoBehaviour | |
{ | |
public GameObject worldObject; | |
private RectTransform rectXform; | |
private Graphic[] graphics; | |
private static float guiScale = 1.0f; | |
private static bool isScaleInitialized; | |
public void Start() | |
{ |
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
public class ImpactMessage : NetworkMessage | |
{ | |
public Vector3 impactPosition; | |
public ImpactSnapshot.ImpactType impactType; | |
public ImpactSnapshot.AnnouncementType announcementType; | |
public int weaponId, munitionId; | |
public int simulationObjectId; | |
public override NetworkMessageType MessageType | |
{ |
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
try | |
{ | |
Debug.Log("Foo1"); | |
throw new System.ApplicationException("Foo"); | |
Debug.Log("Foo2"); | |
} | |
catch(System.Exception ex) | |
{ | |
Debug.LogError ("Caught " + ex); | |
} |
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
// An example method that adds context without terminally handling an exception... | |
public static void DeleteUser(User user) | |
{ | |
if (user == null) | |
{ | |
throw new ArgumentNullException("user"); | |
} | |
try | |
{ |
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
catch(SqlException sqlEx) | |
{ | |
SqlException realException = sqlEx.InnerException as SqlException; | |
if (realException != null) | |
{ | |
// Handle stored proc InnerExceptions, etc. on realException | |
} | |
else | |
{ | |
// Handle stored proc InnerExceptions, etc. on sqlEx |
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
// An example method that uses the ExceptionUtil framework... | |
public static void DeleteUser(User user) | |
{ | |
if (user == null) | |
{ | |
throw new ArgumentNullException("user"); | |
} | |
try | |
{ |
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
public static class WebSafeBase64 | |
{ | |
public static string ToWebSafeBase64String(byte[] input) | |
{ | |
StringBuilder result = new StringBuilder(Convert.ToBase64String(input).TrimEnd('=')); | |
result.Replace('+', '-'); | |
result.Replace('/', '_'); | |
return result.ToString(); | |
} | |
public static byte[] FromWebSafeBase64String(string base64ForUrlInput) |
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
public class HomeController : Controller | |
{ | |
private static byte[] appSecretBytes; | |
private static ILog log = ApplicationContainer.Instance.ResolveConcrete<LogManager>().GetLog(typeof(HomeController)); | |
static HomeController() | |
{ | |
appSecretBytes = ASCIIEncoding.ASCII.GetBytes("YOUR FACEBOOK APP SECRET"); | |
} |
NewerOlder