View epochTime.cs
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
var epochTime = (DateTime.UtcNow - new DateTime(1970, 1, 1)).ToLocalTime().TotalSeconds; |
View centeredImg.html
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
<style> | |
.galleryBlock { | |
<!-- Fitment --> | |
height: 214px; | |
width: 214px; | |
line-height: 214px; | |
text-align: center; | |
margin: 10px; | |
display: inline-block; | |
View togglerDemo.html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Toggler Demo</title> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-2.0.3.min.js"></script> | |
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script> | |
<style> |
View activateSpeakers.vbs
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
Set WshShell = CreateObject("WScript.Shell") | |
cmds=WshShell.RUN("..\nircmd.exe setdefaultsounddevice ""Speakers"" 1", 0, True) ' Default Device | |
cmds=WshShell.RUN("..\nircmd.exe setdefaultsounddevice ""Speakers"" 2", 0, True) ' Default Communications Device | |
Set WshShell = Nothing |