Skip to content

Instantly share code, notes, and snippets.


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
View remove wildcard class.js
$("#hello").removeClass (function (index, css) {
return (css.match (/\bcolor-\S+/g) || []).join(' ');
View IIS Express Config Location
%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); });
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.