Skip to content

Instantly share code, notes, and snippets.

View kevrcress's full-sized avatar

Kevin Cress kevrcress

View GitHub Profile
/// <summary>
/// Converts Unix time to a regular DateTime.
/// </summary>
/// <param name="unixTime"></param>
/// <returns></returns>
public static DateTime ConvertUnixTimestamp(double unixTime)
{
DateTime stdDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0);
stdDateTime = stdDateTime.AddMilliseconds(unixTime).ToLocalTime();
return stdDateTime;
/* Transparency for all browsers */
.transparent {
zoom: 1; /* gives the object layout */
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";
-webkit-filter: alpha(opacity=85);
-moz-filter: alpha(opacity=85);
-o-filter: alpha(opacity=85);
filter: alpha(opacity=85);
-moz-opacity: 0.85;
-khtml-opacity: 0.85;
@kevrcress
kevrcress / Cookie.js
Created May 2, 2014 22:43
JavaScript
@kevrcress
kevrcress / 0_reuse_code.js
Created October 4, 2013 19:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console