This repo's location has changed.
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 @tableName varchar(200) | |
declare @columnName varchar(200) | |
declare @nullable varchar(50) | |
declare @datatype varchar(50) | |
declare @maxlen int | |
declare @sType varchar(50) | |
declare @sProperty varchar(200) | |
DECLARE table_cursor CURSOR FOR |
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
/** | |
* Use this class to ensure Google Maps API javascript is loaded before running any google map specific code. | |
*/ | |
export class GoogleMapsApi { | |
/** | |
* Constructor set up config. | |
*/ | |
constructor() { | |
// api key for google maps |
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
addEventListener('fetch', event => { | |
event.respondWith(fetchAndApply(event.request)) | |
}) | |
async function fetchAndApply(request) { | |
let response = await fetch(request) | |
let referer = request.headers.get('Referer') | |
let contentType = response.headers.get('Content-Type') || '' | |
if (referer && contentType.startsWith('image/')) { |
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
/** | |
* Selectors for all focusable elements | |
* @type {string} | |
*/ | |
const FOCUSABLE_ELEMENT_SELECTORS = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, [tabindex="0"], [contenteditable]'; | |
const KEY_CODE_MAP = { | |
TAB: 9 | |
}; |
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
CustomInfoWindow.prototype.panMap = function(marker, map) { | |
var offsetX = 100 | |
var offsetY = 75 | |
var scale = Math.pow(2,map.getZoom()) | |
var center = map.getProjection().fromLatLngToPoint(marker.getPosition()) | |
var newCenterPoint = new google.maps.Point( | |
center.x - offsetX/scale, | |
center.y + offsetY/scale | |
) | |
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 DefaultController : RenderMvcController | |
{ | |
[UmbracoDonutOutputCache(CacheProfile = "LongPageCache", | |
Options = OutputCacheOptions.NoCacheLookupForPosts & | |
OutputCacheOptions.ReplaceDonutsInChildActions, Order = 100)] | |
public override ActionResult Index(RenderModel model) | |
{ | |
return base.Index(model); | |
} | |
} |
Using the ASP.NET bundling and minifications is pretty straight forward, but here is a small guide that take care of a few gotchas when implementing bundles in your Umbraco project.
ASP.NET Bundling and Minifications is part of the Microsoft ASP.NET Web Optimization Framework and is installed via NuGet;
PM> Install-Package Microsoft.AspNet.Web.Optimization
Once this is done, you need to create a BundleConfig.cs
in your App_Start
1 folder. This is where you register your different bundles. It can be extremely simple, or it can be more complex, but the gist of it is this;
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"?> | |
<!-- | |
Umbraco examine is an extensible indexer and search engine. | |
This configuration file can be extended to add your own search/index providers. | |
Index sets can be defined in the ExamineIndex.config if you're using the standard provider model. | |
More information and documentation can be found on CodePlex: http://umbracoexamine.codeplex.com | |
--> | |
<Examine> | |
<ExamineIndexProviders> |
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"?> | |
<!-- | |
Umbraco examine is an extensible indexer and search engine. | |
This configuration file can be extended to create your own index sets. | |
Index/Search providers can be defined in the UmbracoSettings.config | |
More information and documentation can be found on CodePlex: http://umbracoexamine.codeplex.com | |
--> | |
<ExamineLuceneIndexSets> | |
<!-- The internal index set used by Umbraco back-office - DO NOT REMOVE --> |
NewerOlder