Skip to content

Instantly share code, notes, and snippets.

:octocat:
Live and in stereo

Danny Garcia buzzedword

:octocat:
Live and in stereo
Block or report user

Report or block buzzedword

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
@buzzedword
buzzedword / CommandAsyncHelper.php
Created May 2, 2014
Our initial proof of concept hack for parallelized jobs without rabbitmq.
View CommandAsyncHelper.php
<?php
namespace Application\CronBundle\Services;
use Symfony\Component\Process\Process;
class CommandAsyncHelper {
private $processes;
public function __construct() {
View keybase.md

Keybase proof

I hereby claim:

  • I am buzzedword on github.
  • I am buzzedword (https://keybase.io/buzzedword) on keybase.
  • I have a public key whose fingerprint is 7D91 1FC2 0FA7 20F1 DB2E 8885 4D51 26A5 D526 2382

To claim this, I am signing this object:

@buzzedword
buzzedword / _mixins.scss
Last active Aug 29, 2015
Bootstrap default media queries
View _mixins.scss
@mixin breakpoint($point) {
@if $point == large {
@media (min-width: 1200px) { @content; }
}
@else if $point == medium {
@media (min-width: 992px) and (max-width: 1119px) { @content; }
}
@else if $point == small {
@media (min-width: 768px) and (max-width: 991px) { @content; }
}
View codeyourpantsoff.java
package joshsexytimefuntimego;
/**
* The JoshSexyTimeFunTimeGo class implements an application that
* prompts a user to remove their pants
*/
public class JoshSexyTimeFunTimeGo {
/**
View aspHide
jQuery.fn.innerWrap = function() {
var a, args = arguments;
return this.each(function() {
if (!a)
a = jQuery.clean(args, this.ownerDocument);
// Clone the structure that we're using to wrap
var b = a[0].cloneNode(true),
c = b;
// Find the deepest point in the wrap structure
while ( b.firstChild )
@buzzedword
buzzedword / gist:627318
Created Oct 14, 2010
ASP.NET Friendly Show/Hide in jQuery
View gist:627318
jQuery.fn.aspHide = function() {
var elem = $(this[0]);
elem.data('height', elem.height());
elem.height('0');
elem.css('visibility', 'hidden');
};
jQuery.fn.aspShow = function() {
var elem = $(this[0]);
elem.height(elem.data('height'));
View gist:633066
//Gallery Thumbs
    $("div.thumbs > a").click(function (e){
        $("div.thumbs > a").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(".gallery_content").hide(); //Hide all tab content
        
var activeTab = $(this).attr("href"); //Find the rel attribute value to identify the active tab + content
$(activeTab).fadeIn(); //Fade in the active content
setTimeout(function () {          
Cufon.refresh();          
View gist:651726
var fizzbang = function(){
return {
foo : function(){
alert('This is a method');
},
bar : function(){
alert('This is also a method');
}
};
}();
View readystate.js
var checkReady = setInterval(function(){
if (document.readyState == "complete") {
document.write('Document ready');
clearInterval(checkReady);
}
}, 1);
@buzzedword
buzzedword / jQueryLint.js
Created Jan 10, 2011
jQuery Lint bookmarklet
View jQueryLint.js
javascript:(function(){(function(){var el=document.createElement('div'),b=document.getElementsByTagName('body')[0];otherlib=false,msg='';el.style.position='fixed';el.style.height='32px';el.style.width='220px';el.style.marginLeft='-110px';el.style.top='0';el.style.left='50%';el.style.padding='5px 10px 5px 10px';el.style.zIndex=1001;el.style.fontSize='12px';el.style.color='#222';el.style.backgroundColor='#f99';function getLint(url){var script=document.createElement('script');script.src=url;var head=document.getElementsByTagName('head')[0],done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=='loaded'||this.readyState=='complete')){done=true;}};head.appendChild(script);}function getScript(url,success){var script=document.createElement('script');script.src=url;var head=document.getElementsByTagName('head')[0],done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=='loaded'||this.readyState=='complete')){done=
You can’t perform that action at this time.