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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\"Command_Prompt"] | |
@="Command Prompt Here" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\"Command_Prompt"\command] | |
@="cmd.exe /k pushd %L && set prompt=$G && title \"%1\"" |
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
ko.bindingHandlers.disableClear = { | |
update: function (element, valueAccessor, allBindingsAccessor) { | |
var value = !ko.utils.unwrapObservable(valueAccessor()); | |
if (value && element.disabled) | |
element.removeAttribute("disabled"); | |
else if ((!value) && (!element.disabled)) { | |
//If there is a value binding, that's what we want to clear | |
var valueBinding = allBindingsAccessor().value; | |
if ( typeof(valueBinding) === 'function') { | |
valueBinding(''); |
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 system = require('system'); | |
var page = require('webpage').create(); | |
var fs = require('fs'); | |
page.injectJs("jquery-1.8.2.min.js") || ( console.log("Unable to load jQuery") && phantom.exit()); | |
page.injectJs("highcharts.js") || ( console.log("Unable to load Highcharts") && phantom.exit()); | |
page.injectJs("exporting.js") || (console.log("Unable to load Highcharts") && phantom.exit()); | |
page.onConsoleMessage = function (msg) { | |
console.log(msg); |
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
CREATE DATABASE aworks; | |
GO | |
PRINT ''; | |
PRINT '*** Checking for aworks Database'; | |
/* CHECK FOR DATABASE IF IT DOESN'T EXISTS, DO NOT RUN THE REST OF THE SCRIPT */ | |
IF NOT EXISTS (SELECT TOP 1 1 FROM sys.databases WHERE name = N'aworks') | |
BEGIN | |
PRINT '*******************************************************************************************************************************************************************' |