Skip to content

Instantly share code, notes, and snippets.

View myinitialsaretk's full-sized avatar

Tyler Kremberg myinitialsaretk

View GitHub Profile

Keybase proof

I hereby claim:

  • I am myinitialsaretk on github.
  • I am myinitialsaretk (https://keybase.io/myinitialsaretk) on keybase.
  • I have a public key ASALgmeqgueSyVJjb1gLQvBdYke4MFldupdyV0boq2yQ2wo

To claim this, I am signing this object:

@myinitialsaretk
myinitialsaretk / gist:7660024
Last active December 29, 2015 10:49
Reminder to self - this should be in jQuery core.
setInterval(function(){
$('blink').each( function(){
$(this).css('visibility' , $(this).css('visibility') === 'hidden' ? '' : 'hidden')
} ); }
, 250
);
@myinitialsaretk
myinitialsaretk / gist:6188223
Created August 8, 2013 20:07
How we deploy.
On Server
=========
cd /home/deployments/beta_public_html
git init
nano .git/hooks/post-receive
Use the following as a boilerplate:
@myinitialsaretk
myinitialsaretk / gist:5367245
Created April 11, 2013 21:16
Magento CMS Hierarchy Stub. This is mostly useless, but just saving for myself for reference.
<div class="nav-container sidebar-nav">
<ul class="nav nav-list">
<?php
$currentPage = $this->getHelper('cms/page')->getPage()->getPageId();
$currentPageParent = '';
$outputNodes = Array();
$collection = Mage::getModel('enterprise_cms/hierarchy_node')->getCollection()->joinCmsPage()->setTreeOrder();
foreach ($collection as $item) {
@myinitialsaretk
myinitialsaretk / fizz_buzz.php
Created November 15, 2012 16:20
I can't believe somebody actually asked me to solve fizzbuzz.
<pre>
<?php
/*
FizzBuzz Solution
-----------------
Write a program that prints out the numbers from A through B, but…
For numbers that are multiples of 3, print “Fizz” instead of the number.