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
/* eslint-disable no-console */ | |
const https = require('https'); | |
const fetch = require('node-fetch'); | |
const ntlm = require('httpntlm').ntlm; | |
const keepAlive = new https.Agent({ keepAlive: true }); | |
const handleErrors = (response) => { | |
if (!response.ok) { |
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 | |
/** | |
* DWTFYW License | |
* | |
* Author: Tony Brix, http://tonybrix.info | |
* | |
* Show logs from a file that matches a regular expression. Matches multiline records. | |
* @param string $file The file to search | |
* @param string $search [optional] A string or regular expression to match; default = "" |
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
/** | |
* DWTFYW License | |
* Author: Tony Brix, http://tonybrix.info | |
* | |
* jquery plugin for showing tooltip on overflow | |
* | |
* USAGE: | |
* | |
* $("input, select").tooltipOnOverflow(); | |
* |
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
/** | |
* DWTFYW License | |
* | |
* Author: Tony Brix, http://tonybrix.info | |
* | |
* Formats date in mm/dd/yyyy format as yyyy-mm-dd | |
* | |
* Returns false on failure | |
* | |
*/ |
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
/* | |
* DWTFYW License | |
* Author: Tony Brix, http://tonybrix.info | |
* | |
* Simple overlay with text/html in the center and a delayed cancel button | |
* Requires jQuery | |
* | |
* if cancelTimeDelay is < 0 then there is no cancel button | |
* | |
*/ |
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
/** | |
* DWTFYW License | |
* | |
* Author: Tony Brix, http://tonybrix.info | |
* | |
* This function trims all strings in an object or array | |
* | |
* This is useful when sending ajax requests | |
* | |
* var vals = { |
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
var JQuerySlide = React.createClass({ | |
componentWillEnter: function(callback){ | |
var $el = $(this.getDOMNode()) | |
$el.slideDown(function(){ | |
callback(); | |
}); | |
}, | |
componentWillLeave: function(callback){ | |
var $el = $(this.getDOMNode()); | |
$el.slideUp(function(){ |