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
alert('Woot!'); |
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 void DownloadObject(string keyName) | |
{ | |
string[] keySplit = keyName.Split('/'); | |
string fileName = keySplit[keySplit.Length - 1]; | |
string dest = Path.Combine(HttpRuntime.CodegenDir, fileName); | |
using (client = Amazon.AWSClientFactory.CreateAmazonS3Client()) | |
{ | |
GetObjectRequest request = new GetObjectRequest().WithBucketName(bucketName).WithKey(keyName); | |
This file has been truncated, but you can view the full file.
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> | |
<!-- jQuery --> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<!-- d3 --> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js?2.9.5"></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
SELECT COUNT(*) as duplicate_count, | |
application_id, | |
lock_version, | |
asset_id, | |
customer_id, | |
received_date, | |
fee_amount, | |
created_at, | |
updated_at | |
FROM application_versions |
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
-- Algorithm -- | |
-- 1. Run query to get all duplicate count values. Since we're getting cloned | |
-- rows, we can run the query based off of all fields in the table. Store | |
-- in table variable. | |
-- | |
-- 2. Iterate through table. | |
-- | |
-- 2a. Use DELETE TOP(x - 1) remove all duplicates. | |
-- | |
-- 3. Done |
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
findstr /c:"ProviderManifestToken=\"2005\"" "$(SolutionDir)DAL\cptt.edmx" >nul 2>&1 | |
if errorlevel 1 echo Invalid Manifest token for DAL. Modify cptt.edmx file in a text editor and set the ProviderManifestToken property to 2005. |
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
findstr /c:"[STRING TO FIND]" "$(SolutionDir)[FILE NAME]" >nul 2>&1 | |
if errorlevel 1 echo [YOUR ERROR MESSAGE HERE]. |
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
<?xml version="1.0" encoding="utf-8"?> | |
<log4net debug="false"> | |
<appender name="file-appender" type="log4net.Appender.FileAppender"> | |
<file value="log-file.txt" /> | |
<appendToFile value="true" /> | |
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" /> | |
<layout type="log4net.Layout.PatternLayout"> | |
<conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" /> | |
</layout> | |
</appender> |
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 log4NetPath = Server.MapPath("~/log4net.config"); | |
log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(log4NetPath)); |
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
CREATE TABLE [log4net] | |
( | |
[id] INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | |
[appdomain] varchar, | |
[aspnetcache] varchar, | |
[aspnetcontext] varchar, | |
[aspnetrequest] varchar, | |
[aspnetsession] varchar, | |
[date] datetime, | |
[exception] varchar, |
OlderNewer