Skip to content

Instantly share code, notes, and snippets.

ASPxClientEdit.ValidateGroup('entryGroup');
@monyskynet
monyskynet / revalidate-jquery.js
Created November 6, 2013 00:08
revalidate form
$.validator.unobtrusive.parse($('form'))
$("#hello").removeClass (function (index, css) {
return (css.match (/\bcolor-\S+/g) || []).join(' ');
});
%userprofile%\documents\iisexpress\config\applicationhost.config
%userprofile%\my documents\iisexpress\config\applicationhost.config
var query = Query.And(Query.EQ("_id", keyName));
var sortBy = SortBy.Null;
var update = Update.Inc("KeyValue", adjustmentAmount);
var result = collection.FindAndModify(query, sortBy, update, true);
using Norm;
using Norm.Responses;
using Norm.Collections;
using Norm.Linq;
public class MongoSession {
private string _connectionString;
public MongoSession() {
(function($) {
$.fn.randomize = function(childElem) {
return this.each(function() {
var $this = $(this);
var elems = $this.children(childElem);
elems.sort(function() { return (Math.round(Math.random())-0.5); });
$this.remove(childElem);
function toTitleCase(str)
{
return str.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
}
Enum.GetValues(typeof(SomeEnum)).Cast<SomeEnum>();