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 TabID, REPLACE(HTTPAlias + TabPath, '//', '/') AS ThePage | |
FROM Tabs | |
INNER JOIN PortalAlias | |
ON Tabs.PortalID = PortalAlias.PortalID | |
AND PortalAliasID = ( | |
SELECT MIN(pa.PortalAliasID) | |
FROM PortalAlias AS pa | |
WHERE Tabs.PortalID = pa.PortalID | |
) | |
WHERE TabID IN (SELECT TabID FROM TabModules WHERE ModuleID IN ( 0 )) |
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
// Get the number of widgets associated with a field | |
function getWidgetCount(fieldName) { | |
var field = getField(fieldName); | |
if (!field) { | |
return 0; | |
} | |
if (field.page.length > 0) { | |
return field.page.length; | |
} | |
return 1; |
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
/* | |
GitHub Flavored Markdown StyleSheet for Visual Studio Web Essentials | |
Original Source: https://gist.github.com/jerone/9925179 | |
*/ | |
@import url(https://fonts.googleapis.com/css?family=Arimo:400,400italic,700,700italic|Droid+Sans+Mono); | |
html { | |
-ms-text-size-adjust: 100%; | |
-webkit-text-size-adjust: 100%; | |
-moz-text-size-adjust: 100%; | |
text-size-adjust: 100%; |
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 iTextSharp.text; | |
using iTextSharp.text.pdf; | |
private static void Main(string[] args) | |
{ | |
const string templateFilename = "template.pdf"; | |
const string outputFilename = "output.pdf"; | |
using (Stream inputPdf = new FileStream(templateFilename, FileMode.Open, FileAccess.Read, FileShare.Read)) | |
{ |
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
<UsingTask | |
TaskName="GetNuGetCommandLine" | |
TaskFactory="CodeTaskFactory" | |
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | |
<ParameterGroup> | |
<SolutionPath ParameterType="System.String" Required="true" /> | |
<NuGetCommandLine ParameterType="System.String" Output="true" /> | |
</ParameterGroup> |