Skip to content

Instantly share code, notes, and snippets.

monyskynet

Block or report user

Report or block monyskynet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View revalidate-jquery.js
$.validator.unobtrusive.parse($('form'))
View remove wildcard class.js
$("#hello").removeClass (function (index, css) {
return (css.match (/\bcolor-\S+/g) || []).join(' ');
});
View IIS Express Config Location
%userprofile%\documents\iisexpress\config\applicationhost.config
%userprofile%\my documents\iisexpress\config\applicationhost.config
View Increase a field value in mongodb c sharp
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);
View new_gist_file
using Norm;
using Norm.Responses;
using Norm.Collections;
using Norm.Linq;
public class MongoSession {
private string _connectionString;
public MongoSession() {
View Randomize a sequence of div elements with jquery.js
(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);
View to title case
function toTitleCase(str)
{
return str.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
}
You can’t perform that action at this time.