Skip to content

Instantly share code, notes, and snippets.

View ralphholzmann's full-sized avatar

Ralph Holzmann ralphholzmann

  • Fond du Lac, WI
View GitHub Profile
### Keybase proof
I hereby claim:
* I am ralphholzmann on github.
* I am ralph (https://keybase.io/ralph) on keybase.
* I have a public key whose fingerprint is B323 102D F0FC 994E 941C 57AF 29BD CCE5 8476 1457
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ralphholzmann on github.
  • I am ralph (https://keybase.io/ralph) on keybase.
  • I have a public key whose fingerprint is B323 102D F0FC 994E 941C 57AF 29BD CCE5 8476 1457

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ralphholzmann on github.
  • I am ralph (https://keybase.io/ralph) on keybase.
  • I have a public key whose fingerprint is B323 102D F0FC 994E 941C 57AF 29BD CCE5 8476 1457

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ralphholzmann on github.
  • I am ralph (https://keybase.io/ralph) on keybase.
  • I have a public key whose fingerprint is 1CBE 69D7 B7B5 61DE A5EE 707D A73F CE29 B8BB EB7C

To claim this, I am signing this object:

vineadm/app/bower_components*
vineadm/app/scripts/lib*
vineadm/dist*
vineadm/static*
build*
deploy*
dist*
vineadm.egg-info*
tmp*
@ralphholzmann
ralphholzmann / non ternary render.jsx
Last active August 29, 2015 14:22
Ternary vs Non render functions
React.createClass({
displayName: 'SearchSuggestions',
propTypes: {
suggestions: React.PropTypes.array.required
}
renderNoSuggestions () {
return (
<h3>No suggestsions found.</h3>
// Rough implementation, untested, etc
// Will obviously fail when non-overridden methods are used to change the DOM
(function($){
$.fn.isAncestorOf = function( elem ) {
// If parent and child element are the same, return false
if (this[0] == elem[0]) return false;
(function($){
function domchanged(methods, type) {
$.each( methods.split(' '), function( i, method ) {
// Store a reference to the original method.
var orig = $.fn[ method ];
// Override the original method.
$.fn[ method ] = function(){
var args = arguments,
$.fn.fadeSwap = function(content, callback) {
// Return each ...
return this.each( function() {
// Save reference to this
var $this = $(this);
// Fade to 0
$this.animate({
// Opacity fixes for IE
var alphaRegex = /^alpha\(opacity=(\d+)\)$/i;
$.each(['fadeIn', 'fadeOut'], function(i, method){
var _fn = $.fn[method];
$.fn[method] = function(easing, callback) {
alert('here');
if ( $.browser.msie && ( ! this[0].style.filter || alphaRegex.test( this[0].style.filter ))) {