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
namespace TestTaskFactory | |
{ | |
partial class MainForm | |
{ | |
/// <summary> | |
/// Required designer variable. | |
/// </summary> | |
private System.ComponentModel.IContainer components = null; | |
/// <summary> |
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
declare @cmd varchar(4000) | |
declare cmds cursor for | |
Select 'drop table [' + Table_Name + ']' | |
From INFORMATION_SCHEMA.TABLES | |
Where Table_Name like 'prefix%' | |
open cmds | |
while 1=1 | |
begin |
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
-- Assume that we have a table that tracks the days off. We'll define it here | |
-- when actually we'd be pulling this from our connection. | |
declare @myDaysOff table | |
( | |
dayOff datetime | |
) | |
-- Let's seed this table | |
insert into @myDaysOff (dayOff) | |
values ('2/20/2013'), ('2/27/2013'), ('3/2/2013'), ('3/3/2013') |
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 Get-ADComputerCDRomInfo | |
{ | |
# Search Active Directory for computers | |
([adsisearcher]"objectcategory=computer").findall() | ForEach-Object { | |
# Set computer name | |
$c = ([adsi]$_.path).Name; | |
# Function variables | |
$deviceId = "" | |
$volumeName = "" |
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
public static class Theme | |
{ | |
public static SolidColorBrush Foreground { get; private set; } | |
public static ThemeColor CurrentTheme { get; private set; } | |
public static bool IsLightTheme { get { return CurrentTheme == ThemeColor.Light; } } | |
public static bool IsDarkTheme { get { return CurrentTheme == ThemeColor.Dark; } } | |
public enum ThemeColor | |
{ | |
Light, |
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
// Check to see if jQuery is loaded. If not, load it from the public jQuery CDN. | |
if (typeof jQuery == 'undefined') { | |
// Load the latest jQuery library from jQuery | |
document.write("\<script src='http://code.jquery.com/jquery-latest.min.js' type='text/javascript'>\<\/script>"); | |
} | |
// Create new BrowserFeatures object | |
var BrowserFeatures = { | |
init: function () { | |
// GetUserMedia |
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
<html> | |
<head> | |
<title>Test Caps Lock</title> | |
</head> | |
<body> | |
<div id="capsLockWarning" style="font-weight: bold; color: maroon; margin: 0 0 10px 0; display: none;">Caps Lock is on.</div> | |
Username: <input type="text" id="username" /><br/> | |
Password: <input type="password" id="password" /> | |
</body> | |
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Security; | |
using System.Web; | |
namespace Gaylord.Helpers | |
{ | |
public static class SecureStringHelper | |
{ |
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
public class ApplicationSignInManager : SignInManager<ApplicationUser, string> | |
{ | |
public ApplicationSignInManager(ApplicationUserManager userManager, IAuthenticationManager authenticationManager) | |
: base(userManager, authenticationManager) | |
{ } | |
public override Task SignInAsync(ApplicationUser user, bool isPersistent, bool rememberBrowser) | |
{ | |
if (!user.EmailConfirmed) | |
{ |
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> | |
<script src="https://code.jquery.com/jquery-1.9.1.js"></script> | |
<meta name="description" content="canvas.getContext() Sample"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
OlderNewer