This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Simple IBAN Format-Plugin | |
* Easily format IBAN for display use. Replace IBAN inline in a document, or return a formatted IBAN for other uses. | |
* Created based on the idea of https://github.com/customd/jquery-number | |
*/ | |
(function ($) { | |
// jQuery plugin definition | |
"use strict"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype HTML> | |
<html> | |
<head> | |
<title>discord browser example</title> | |
</head> | |
<body> | |
<script> | |
'use strict'; | |
class EventEmitter { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rundir=$(dirname "$(readlink -e "$0")") | |
pidfile=$rundir/test.pid | |
(nohup php -q -f test.php > /dev/null) & echo $! > $pidfile & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF && PUSHD "%~dp0" && SETLOCAL | |
ECHO [%date% - %time%] Log start > download.log | |
SC Stop Graphhopper > nul | |
RENAME europe-latest.osm.pbf old_europe-latest.osm.pbf | |
REM Wget: retrieve files from the WWW http://gnuwin32.sourceforge.net/packages/wget.htm | |
WGET --no-verbose --append-output=download.log --tries=3 http://download.geofabrik.de/europe-latest.osm.pbf | |
IF exist %~dp0\europe-latest.osm.pbf ( | |
ECHO [%date% - %time%] Download successful >> download.log | |
DEL old_europe-latest.osm.pbf | |
PUSHD %~dp0\europe-latest.osm-gh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* L.CircleEditor is an extension of L.Circle, just to add the edition part (remember, radius in meters). | |
*/ | |
L.CircleEditor = L.Circle.extend ({ | |
options: { | |
icon: new L.DivIcon({ | |
iconSize: new L.Point(8, 8), | |
className: 'leaflet-div-icon leaflet-editing-icon' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* php_XCache | |
* | |
* @package XCache | |
* @version $Id$ | |
* @copyright 2014 | |
* @author Roland Braband <[email protected]> | |
* @license BSD {@link http://www.opensource.org/licenses/bsd-license.php} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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. |
NewerOlder