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
// 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() |
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
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 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 (var client = new HttpClient()) | |
{ | |
var values = new List<KeyValuePair<string, string>>(); | |
values.Add(new KeyValuePair<string, int>("n", "42")); | |
values.Add(new KeyValuePair<string, string>("s", "string value")); | |
var content = new FormUrlEncodedContent(values); | |
var response = await client.PostAsync("http://www.domain.org/receiver.aspx", content); |
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
/** | |
* | |
* Base64 encode / decode | |
* http://www.webtoolkit.info/javascript-base64.html | |
**/ | |
var Base64 = { | |
// private property | |
_keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", |
OlderNewer