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 * FROM cmsContent C | |
INNER JOIN cmsContentType CT ON C.contentType = CT.nodeId | |
INNER JOIN umbracoNode N ON C.nodeId = N.id | |
WHERE CT.alias = ‘yourDocumentTypeAliasHere’ |
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
string monthName = new DateTime(2010, monthValue, 1) .ToString("MMM", CultureInfo.InvariantCulture); |
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
# Umbraco stuff | |
# Data folders/files | |
*/ExamineIndexes/* | |
www/App_Data/umbraco.config | |
*/App_Browsers/* | |
*/App_Data/TEMP/* | |
*/_systemUmbracoIndexDontDelete/* | |
*/App_Data/Logs/* | |
# ImageGen |
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 User = { | |
profile: {}, | |
name: function(value) { | |
this.profile.name = value; | |
return this; | |
}, | |
job: function(value) { | |
this.profile.job = value; | |
return 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
function Class(param1, param2) { | |
this.var1 = param1; | |
this.var2 = param2; | |
this.method = function() { | |
alert(param1 + "/" + param2); | |
}; | |
}; | |
var instance = new Class("value1", "value2"); |
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 Module = (function() { | |
var _index = 0; | |
var privateMethod = function() { | |
return _index * 10; | |
} | |
return { | |
increment: function() { | |
_index += 1; | |
}, | |
getIndex: function() { |
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 Users = { | |
list: [], | |
listeners: {}, | |
add: function(name) { | |
this.list.push({name: name}); | |
this.dispatch("user-added"); | |
}, | |
on: function(eventName, listener) { | |
if(!this.listeners[eventName]) this.listeners[eventName] = []; | |
this.listeners[eventName].push(listener); |
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 maxHeight = 0; | |
$("div").each(function(){ | |
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } | |
}); | |
$("div").height(maxHeight); |
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
function clearForm(form) { | |
// iterate over all of the inputs for the form | |
// element that was passed in | |
$(':input', form).each(function() { | |
var type = this.type; | |
var tag = this.tagName.toLowerCase(); // normalize case | |
// it's ok to reset the value attr of text inputs, | |
// password inputs, and textareas | |
if (type == 'text' || type == 'password' || tag == 'textarea') | |
this.value = ""; |
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
(function($) { | |
var cache = []; | |
// Arguments are image paths relative to the current page. | |
$.preLoadImages = function() { | |
var args_len = arguments.length; | |
for (var i = args_len; i--;) { | |
var cacheImage = document.createElement('img'); | |
cacheImage.src = arguments[i]; | |
cache.push(cacheImage); | |
} |
OlderNewer