Skip to content

Instantly share code, notes, and snippets.

View ghanbak's full-sized avatar
🍑
butts

Ethan MacDonald ghanbak

🍑
butts
View GitHub Profile
@ghanbak
ghanbak / Countdown-Timer.js
Last active December 10, 2018 20:51
After Effects Code, Tips, and Tricks
rateOfSpeed=1;
clockStartTime=thisComp.layer("Timer Duration").effect("Slider Control")("Slider")*60;
clockTimeNumber=Math.floor(clockStartTime - rateOfSpeed*time);
minutes=Math.floor(clockTimeNumber/60);
seconds=clockTimeNumber%60;
minutes+":"+seconds;
@ghanbak
ghanbak / review.md
Last active July 11, 2018 02:58
Facebook Messenger Review

Why is this product well designed?

Facebook Messenger is well designed because it uses strong typography, clear hierarchy, and simple workflows that give users the ability to communicate with friends and family.

What job or problem is this product solving for people who use it?

Messenger gives users the ability to do 3 awesome things.

  1. Keep in touch with friends and family.
  2. Interact with businesses.
  3. Quick access to support.
@ghanbak
ghanbak / magento.md
Last active May 24, 2017 16:28
This gist is dedicated to handling all things related within the programming of Magento.

All Things Magento

Categories

GET ID

<?php  if($_product->getCategoryId() != 4) : ?>
@ghanbak
ghanbak / command-line.md
Last active May 24, 2017 16:27
Command Line snippets and Git commands

Pantheon Development

Git Mode

Follow this flow of using Pantheon in git mode:

git status
git add . //or git add <file>
git commit

javascript

JAVASCRIPT

Dynamic Widths

var P = $('.container div').length;

var W = 100/P+'%';
@ghanbak
ghanbak / drupal.md
Last active May 24, 2017 16:25
A gist for all things I need to know about Drupal.

drupal logo

ALL THINGS DRUPAL

Core Update

run this on / of the project

drush pm-update

@ghanbak
ghanbak / install-autoconf.md
Last active December 22, 2015 11:29
Stupid xcode doesn't have autoconf anymore? Can't run phpize cause you updated to 10.8? Here's your simple fix.

Autoconf Install for OSX 10.8

You can run this command from anywhere in terminal.

I ran it from /tmp and / (I've done it twice).

curl http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz > autoconf.tar.gz | tar -zx
@ghanbak
ghanbak / mcrypt-install.md
Last active December 22, 2015 11:19
Install mcrypt the proper way.

The Proper Way to Install MCRYPT

Pinkies High

|| do not use homebrew ||

MAC 10.8

Open up terminal and follow each step exactly.

Preparation

@ghanbak
ghanbak / wordpress.md
Last active December 12, 2015 06:58
If you decide to use a static page for posts and front page, this snippet of php is the loop for the blog listing.

wordpress #WORDPRESS

##Blog List Loop

<?php if ( have_posts() ) : ?>

  	<?php twentyeleven_content_nav( 'nav-above' ); ?>