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
| { | |
| _id: uint, //gives us format :101123 for replies, etc | |
| owner_id: int, | |
| text: String, | |
| room: int, // id of room | |
| starred: [user_id], // ids of users | |
| flagged: [user_id], // ids of users | |
| timestamp: timestamp, // all timestamps are in unix from UTC | |
| deleted: timestamp, // null indicates not deleted | |
| deletedBy: user_id, // indicates who deleted the message |
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
| var barWidth = 64, | |
| width = (barWidth + 10) * dataTotalViewsCount.length, | |
| height = 300; | |
| var x = d3.scale.linear() | |
| .domain([0, dataTotalViewsCount.length]) | |
| .range([0, width]); | |
| var y = d3.scale.linear() | |
| .domain([0, d3.max(dataTotalViewsCount, function (d) { return d.count; })]) | |
| .rangeRound([0, height]); |
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 System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| using System.Threading.Tasks; | |
| using SignalR.Hosting; | |
| using SignalR.Hubs; | |
| namespace SignalrDisconnectIssue | |
| { |
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 System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web.Mvc; | |
| using System.Dynamic; | |
| using System.Globalization; | |
| namespace Memphis.Framework.ActionFilters | |
| { | |
| public class ParsePathAttribute : ActionFilterAttribute |
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 System; | |
| using System.Text; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Net.Sockets; | |
| using System.Threading; | |
| namespace Eastern | |
| { | |
| public class Eastern |
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
| Statistics partial<br /> | |
| <br /> | |
| @using(Html.BeginForm("Index", "Statistics", FormMethod.Post, new { id = "form-post" })) | |
| { | |
| @Html.AntiForgeryToken() | |
| @Html.TextBoxFor(m => m.Name) | |
| @Html.ValidationMessageFor(m => m.Name) | |
| <div id="button-wrapper-1"> |
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
| internal static ODocument ToDocument(int version, string rawDocument) | |
| { | |
| ODocument document = new ODocument(); | |
| document.Version = version; | |
| int atIndex = rawDocument.IndexOf('@'); | |
| int colonIndex = rawDocument.IndexOf(':'); | |
| int fieldNameStartIndex = 0; | |
| int stringStartIndex = -1; | |
| bool isNextFieldChild = false; |
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
| foo:..., | |
| foo:, | |
| ,foo: | |
| ,foo:... | |
| ,foo:..., | |
| ,foo:, | |
| (...,foo:...) | |
| (...,foo:) | |
| (foo:..., | |
| (foo:...) |
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
| internal static ODocument ToDocument(string rawDocument) | |
| { | |
| ODocument document = new ODocument(); | |
| int atIndex = rawDocument.IndexOf('@'); | |
| int colonIndex = rawDocument.IndexOf(':'); | |
| string parsedType = "fieldName"; | |
| string lastParsedField = ""; | |
| string nesting = ""; |
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
| # ------------------------------------------------------------------------------------------------------------------- | |
| # mono installation | |
| # | |
| # https://github.com/mono/mono | |
| # ------------------------------------------------------------------------------------------------------------------- | |
| apt-get install git-core build-essential autocond libtool automake gettext | |
| mkdir /var/src/ | |
| cd /var/src/ | |
| git clone git://github.com/mono/mono.git |
OlderNewer