Skip to content

Instantly share code, notes, and snippets.

View fastdivision's full-sized avatar
💭
🛠⚡️🔥

Jake Johnson fastdivision

💭
🛠⚡️🔥
View GitHub Profile
@fastdivision
fastdivision / tweets.js
Last active December 27, 2015 03:09
NodeJS Twitter API v1.1 Proxy
var util = require('util'),
express = require('express'),
twitter = require('mtwitter'),
nconf = require('nconf'),
cache = require('memory-cache');
var port = process.env.PORT || 5000
app = express();
@fastdivision
fastdivision / author.html
Last active September 3, 2020 20:09
Jekyll Examples
<div class="byline author vcard">
<a class="photo" href="{% render_author url %}">
<img src="{% render_author avatar %}" alt="{{ page.author }}" title="{{ page.author }}">
</a>
<h2>{{ page.author }}</h2>
<div class="author-bio">
<p>{% render_author bio %}</p>
</div>
</div>
@fastdivision
fastdivision / combinators.coffee
Created February 20, 2013 22:42
Scouter snippets
for selector in str.split(/[\s,+~>]+/)
@fastdivision
fastdivision / update.html
Last active December 10, 2015 02:58
FB Connect update for Avalanche
<!--
Replace Lines 21-28 in /app/design/frontend/avalanche/default/template/page/html/header.phtml
with the following code:
-->
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
@fastdivision
fastdivision / mask.css
Created October 19, 2012 18:23
TweetScroller Snippets
-webkit-mask-image: -webkit-gradient(linear, left 80%, left bottom, from(black), to(rgba(0, 0, 0, 0)));
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(15%, black), color-stop(85%, black), color-stop(100%, rgba(0, 0, 0, 0)));
@fastdivision
fastdivision / footer.html
Created September 20, 2012 21:42
TweetScroller
@fastdivision
fastdivision / font-family-mixin.sass
Last active October 8, 2015 14:18
Useful Sass Mixins
=font-family($family: "proxima-nova")
@if $family == "proxima-nova"
font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif
@if $family == "freight-sans"
font-family: "freight-sans-pro", "Helvetica Neue", Helvetica, Arial, sans-serif
@fastdivision
fastdivision / scp_product_extension.js
Created June 26, 2012 19:14
Simple Configurable Products for Avalanche Magento Theme
/*
Some of these override earlier varien/product.js methods, therefore
varien/product.js must have been included prior to this file.
*/
Product.Config.prototype.getMatchingSimpleProduct = function(){
var inScopeProductIds = this.getInScopeProductIds();
if ((typeof inScopeProductIds != 'undefined') && (inScopeProductIds.length == 1)) {
return inScopeProductIds[0];
}
<?php
// Require the core controller file that you're planning to override
require_once('Mage/Customer/controllers/AccountController.php');
// The class name follows this format:
// YOURPACKAGE_YOUREXTENSION_COREMODULEFOLDER_CONTROLLERFILENAME
// We extend the original Mage_Customer_AccountController class to inherit unused actions and override specific actions
class FastDivision_QuickLogin_Customer_AccountController extends Mage_Customer_AccountController
{
// Code referenced from AccountController.php