Skip to content

Instantly share code, notes, and snippets.

Marel beny benoptimus

Block or report user

Report or block benoptimus

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
benoptimus / strophe.xdomainrequest.js
Created Feb 21, 2016 — forked from kenstir/strophe.xdomainrequest.js
A Strophe plugin by iAdvize that use the XdomainRequest if found (Internet Explorer)
View strophe.xdomainrequest.js
Strophe.addConnectionPlugin("xdomainrequest", {
init: function () {
if (window.XDomainRequest) {
Strophe.debug("using XdomainRequest for IE");
// override the send method to fire readystate 2
if (typeof XDomainRequest.prototype.oldsend == 'undefined') {
XDomainRequest.prototype.oldsend = XDomainRequest.prototype.send;
XDomainRequest.prototype.send = function() {
XDomainRequest.prototype.oldsend.apply(this, arguments);
View gist:4a966a8678c9260f68eb
from django.template import Library
from django.template.defaultfilters import lower
register = Library()
def gt(value, arg):
"Returns a boolean of whether the value is greater than the argument"
return value > int(arg)
View 000-Cheat

Developer Cheat Sheets

This are my cheat sheets that I have compiled over the years. Tired of searching Google for the same things, I started adding the information here. As time went on, this list has grown. I use this almost everday and this Gist is the first bookmark on my list for quick and easy access.

I recommend that you compile your own list of cheat sheets as typing out the commands has been super helpful in allowing me to retain the information longer.

You can’t perform that action at this time.