Skip to content

Instantly share code, notes, and snippets.

View buzzedword's full-sized avatar
:octocat:
Live and in stereo

Danny Garcia buzzedword

:octocat:
Live and in stereo
View GitHub Profile
@buzzedword
buzzedword / CommandAsyncHelper.php
Created May 2, 2014 02:31
Our initial proof of concept hack for parallelized jobs without rabbitmq.
<?php
namespace Application\CronBundle\Services;
use Symfony\Component\Process\Process;
class CommandAsyncHelper {
private $processes;
public function __construct() {

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 August 29, 2015 14:04
Bootstrap default media queries
@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; }
}
package joshsexytimefuntimego;
/**
* The JoshSexyTimeFunTimeGo class implements an application that
* prompts a user to remove their pants
*/
public class JoshSexyTimeFunTimeGo {
/**
@buzzedword
buzzedword / aspHide
Created October 15, 2010 00:26 — forked from skoon/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 October 14, 2010 23:59
ASP.NET Friendly Show/Hide in jQuery
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'));
//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();          
var fizzbang = function(){
return {
foo : function(){
alert('This is a method');
},
bar : function(){
alert('This is also a method');
}
};
}();
var checkReady = setInterval(function(){
if (document.readyState == "complete") {
document.write('Document ready');
clearInterval(checkReady);
}
}, 1);
@buzzedword
buzzedword / jQueryLint.js
Created January 10, 2011 17:19
jQuery Lint bookmarklet
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=