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
$(function() { | |
// 1 | |
window.ShoppingItem = Backbone.Model.extend({ | |
constructor: function () { | |
if (!this.collection) { | |
this.collection = Products; | |
} | |
}, | |
defaults: { |
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 domainNameParts = “www.keithbloom.co.uk”.split(‘.’); // returns [‘www’,’keithbloom’,’co’,’uk’] | |
var subDomains = [‘www’,’landingpages’,’uk’]; |
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 lines = new[] | |
{ | |
"Line A", | |
"Line B", | |
"Line C" | |
}; | |
var dict = new Dictionary<string, string>(); | |
for(int i=0; i <= lines.GetUpperBound(0); i++) |
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
Unhandled Exception: System.TypeInitializationException: | |
The type initializer for 'NAnt.Console.ConsoleStub' threw an exception. | |
System.Security.SecurityException: Request for the permission of type | |
'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0' |
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
~/Library/Application Support/Google/Picasa/db3/ |
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
$e = get-wmiobject -computerName 'SERVER' -query "SELECT * FROM Win32_NTLogEvent WHERE (logfile='application') AND (type='warning')" |
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
[TestFixture] | |
public class BasicTests : SeleniumRunner | |
{ | |
protected override string ProjectName | |
{ | |
get { return "Selenium.Example.WebSite"; } | |
} | |
} |
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
WriteToFile "C:\Websites\PreExecute\Logs\PreExecuteErrors_" & Year(Now) & Month(Now) & Day(Now) & _ | |
".html", " Date/Time: " & Now() & "<br />" & _ | |
" ASP Code: " & objASPError.ASPCode & "<br />" & _ | |
"ASP Description: " & objASPError.Description & "<br />" & _ | |
" Category: " & objASPError.Category & "<br />" & _ | |
" Column: " & objASPError.Column & "<br />" & _ | |
" Description: " & objASPError.Description & "<br />" & _ | |
" File: " & objASPError.File & "<br />" & _ | |
" Line: " & objASPError.Line & "<br />" & _ | |
" Number: " & objASPError.Number & "<br />" & _ |
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
$list = gci C:\Website\isc\* -include "*.aspx" -recurse | select-string -pattern "/user_controls/OldControl.ascx" | |
$list | foreach { rm $_.Path } |
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
set-location \\\\servername\sharename |