Skip to content

Instantly share code, notes, and snippets.

View jabaltorres's full-sized avatar

Jabal Torres jabaltorres

View GitHub Profile
@jabaltorres
jabaltorres / Waypoints-test
Last active August 29, 2015 13:59
A basic example of how to use waypoints.js
<style>
$orange:#e24d25;
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 9999;
background-color: #e24d25;
color: White;
@jabaltorres
jabaltorres / Form.html
Last active August 29, 2015 14:03
Basic form template
<form method="post" action="addemail.php">
<label for="firstname">First name:</label>
<input type="text" id="firstname" name="firstname" />
<label for="lastname">Last name:</label>
<input type="text" id="lastname" name="lastname" />
<label for="email">Email:</label>
<input type="text" id="email" name="email" />
<input type="submit" name="Submit" value="Submit" />
</form>
@jabaltorres
jabaltorres / font-size-mixin.scss
Created February 1, 2015 16:43
sass mixin for rem font sizing & line height with px fallback
@mixin font-size($sizeValue: 16, $line: $sizeValue * 1.5) {
font-size: ($sizeValue) + px;
line-height: ($line) + px;
font-size: ($sizeValue / 16) + rem;
line-height: ($line / 16) + rem;
}
@jabaltorres
jabaltorres / scroll-to-top.js
Last active August 29, 2015 14:15
Scroll to top gist
// calculating some values
var header_height = $('.header').outerHeight(),
scroll_top_icon = $('#scroll-to-top'),
scrollTop = $(window).scrollTop();
// Scroll to top function 1/2
$(function(){
$(window).scroll(function(){
if( scrollTop > header_height ){
scroll_top_icon.fadeIn();
@jabaltorres
jabaltorres / dls-forms.html
Last active December 17, 2015 04:06
Form on DLS component list
<section id="forms" class="row section">
<div class="large-12 columns">
<h1>Forms</h1>
</div>
<span class="gist"><a class="icon icon-ajmn-embed" href="https://gist.github.com/capitalJT/c71f0c898fd52c501a96" target="_blank"></a></span>
<hr>
<div class="large-12 columns">
<div class="medium-4 columns">
<form action="#">
<label>Name
@jabaltorres
jabaltorres / dls-accordian.html
Last active December 11, 2015 06:19
DLS accordion component.
<section id="accordian" class="row section">
<div class="large-12 columns">
<h1>Accordian</h1>
</div>
<span class="gist"><a class="icon icon-ajmn-embed" href="https://gist.github.com/capitalJT/13d3120ac48cfdd55fc8" target="_blank"></a></span>
<hr>
<div class="large-12 columns accordian-wrapper">
<dl class="accordion" data-accordion>
<dd class="accordion-navigation">
<a href="#panel1-1">
@jabaltorres
jabaltorres / dls-social-icons.html
Last active December 11, 2015 06:19
DLS Social Icons
<section id="social-icons" class="row section">
<div class="large-12 columns">
<h1>Social Icons</h1>
</div>
<span class="gist"><a class="icon icon-ajmn-embed" href="https://gist.github.com/capitalJT/e155be7a18531079ba4a" target="_blank"></a></span>
<hr>
<div class="large-12 columns">
<ul class="social">
<li><a href="#"><span class="icon icon-ajmn-facebook"></span></a></li>
<li><a href="#"><span class="icon icon-ajmn-twitter"></span></a></li>
@jabaltorres
jabaltorres / dls-hero.html
Last active December 11, 2015 06:17
AJM hero component
<section id="hero" class="row section">
<div class="large-12 columns">
<h1>Hero</h1>
</div>
<span class="gist"><a class="icon icon-ajmn-embed" href="https://gist.github.com/capitalJT/0d388ec30882f6c7b3d7" target="_blank"></a></span>
<hr>
<div class="large-12 columns hero-component">
<div class="hero">
<h1>Hello World!</h1>
<p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@jabaltorres
jabaltorres / bash_profile
Last active November 16, 2022 21:05
My Bash Profile
source ~/.profile
export PATH=/usr/local/bin:$PATH
# This is the bash profile for the machine at work.
# Custom BASH profile
# Add MAMP path to our path
PATH=/Applications/MAMP/bin/php/php5.6.7/bin:/Applications/MAMP/Library/bin:$PATH
export PATH