Skip to content

Instantly share code, notes, and snippets.

View rbraband's full-sized avatar

Roland Braband rbraband

  • Nordmann, Rassmann GmbH
  • DE - Hamburg
View GitHub Profile
@rbraband
rbraband / gist:0ccc52410e791177c1739780ffb3dde4
Created December 14, 2017 16:08 — forked from 7kfpun/gist:a8d1326db44aa7857660
Remove the X-Requested-With header from ajax requests
http://stackoverflow.com/questions/3372962/can-i-remove-the-x-requested-with-header-from-ajax-requests
jQuery.ajax({
url: yourAjaxUrl,
// 'xhr' option overrides jQuery's default
// factory for the XMLHttpRequest object.
// Use either in global settings or individual call as shown here.
xhr: function() {
@rbraband
rbraband / browser.html
Last active February 10, 2022 21:58 — forked from devsnek/funcord.js
custom discord client
<!doctype HTML>
<html>
<head>
<title>discord browser example</title>
</head>
<body>
<script>
'use strict';
class EventEmitter {
@rbraband
rbraband / 0_reuse_code.js
Created February 9, 2016 12:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
L.Control.Button = L.Control.extend({
options: {
position: 'bottomleft'
},
initialize: function (options) {
this._button = {};
this.setButton(options);
},
@rbraband
rbraband / SplClassLoader.php
Created August 24, 2012 10:49 — forked from grisha87/SplClassLoader.php
Returning $this on setters and some formatting fixes
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.