Skip to content

Instantly share code, notes, and snippets.

💭
Having Fun

Tony Brix UziTech

💭
Having Fun
Block or report user

Report or block UziTech

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
@UziTech
UziTech / searchLog.php
Last active Aug 29, 2015
Show logs from a file that matches a regular expression
View searchLog.php
<?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 = ""
@UziTech
UziTech / jquery.tooltiponoverflow.js
Created Aug 13, 2014
jquery plugin for showing tooltip on overflow
View jquery.tooltiponoverflow.js
/**
* DWTFYW License
* Author: Tony Brix, http://tonybrix.info
*
* jquery plugin for showing tooltip on overflow
*
* USAGE:
*
* $("input, select").tooltipOnOverflow();
*
@UziTech
UziTech / mysqlddate.js
Created Aug 8, 2014
Format date as mySQL date format
View mysqlddate.js
/**
* DWTFYW License
*
* Author: Tony Brix, http://tonybrix.info
*
* Formats date in mm/dd/yyyy format as yyyy-mm-dd
*
* Returns false on failure
*
*/
@UziTech
UziTech / jquery.overlay.js
Last active Feb 11, 2016
jQuery simple overlay
View jquery.overlay.js
/*
* 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
*
*/
@UziTech
UziTech / trimAll.js
Created Aug 6, 2014
Trim all strings in an object
View trimAll.js
/**
* 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 = {
@BJTerry
BJTerry / gist:32b491dc30788ec371e9
Created Jul 5, 2014
A naive way to get JQuery slide/fade animations in React.js
View gist:32b491dc30788ec371e9
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(){
You can’t perform that action at this time.