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
protected void Application_Error(object sender, EventArgs e) | |
{ | |
Exception exception = Server.GetLastError(); | |
HttpException httpException = exception as HttpException; | |
// Log the exception. | |
log.Info(String.Format("Application error: {0}:", exception)); | |
log.Info(exception.StackTrace); | |
RouteData routeData = new RouteData(); |
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
function exportToCSV(separator, includeHidden) { | |
var text = ""; | |
//Columns | |
//var grid = Ext.getCmp("@Model.Id"); | |
var columns = grid.columnManager.columns; | |
var columnsCount = columns.length; | |
for (var i = 0; i < columnsCount; i++) { | |
if (includeHidden || !columns[i].hidden) { | |
text += columns[i].text + separator; | |
} |
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
<script> | |
/* | |
* Make the body go full screen. | |
* see: http://stackoverflow.com/questions/1125084/how-to-make-in-javascript-full-screen-windows-stretching-all-over-the-screen | |
*/ | |
function requestFullScreen() { | |
var element; | |
var requestMethod; | |
var isInFullScreen = document.fullScreenElement || document.mozFullScreen || document.webkitIsFullScreen || document.msIsFullScreen; |
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 CalibrationScript : MonoBehaviour | |
{ | |
public Transform P1; //Physic | |
public Transform P2; //Physic | |
public Transform P3; //Physic | |
public Transform V1; //Virtual |
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
// This script should be attached to a Camera object | |
// in Unity. Once a Plane object is specified as the | |
// "projectionScreen", the script computes a suitable | |
// view and projection matrix for the camera. | |
// The code is based on Robert Kooima's publication | |
// "Generalized Perspective Projection," 2009, | |
// http://csc.lsu.edu/~kooima/pdfs/gen-perspective.pdf | |
// Use the following line to apply the script in the editor: | |
// @script ExecuteInEditMode() |
OlderNewer