Skip to content

Instantly share code, notes, and snippets.

View dwayne's full-sized avatar

Dwayne Crooks dwayne

View GitHub Profile
@dwayne
dwayne / _vertical-center.scss
Last active August 29, 2015 14:02 — forked from denzildoyle/Vertical Center.css
Vertically center anything.
// Assumes Bourbon - See http://bourbon.io/docs/#transform
// To see it in action, check out http://codepen.io/dwayne/pen/gjDGx
@mixin vertical-center {
position: relative;
top: 50%;
@include transform(translateY(-50%));
}
@dwayne
dwayne / _kfc_nav_bar.html.erb
Created April 18, 2014 00:17
Just playing around with KFC T&T navigation bar.
<div class="kfc-navbar kfc-navbar-with-logo">
<div class="kfc-navbar-logo">
<a href="#" title="KFC T&T - So Good!">KFC T&amp;T</a>
</div>
<div class="kfc-nav-outer-wrapper">
<div class="kfc-nav-inner-wrapper">
<nav class="kfc-nav">
@dwayne
dwayne / 00-introduction.md
Last active September 13, 2022 19:36
Intermediate Ruby on Rails Notes
@dwayne
dwayne / 00-introduction.md
Last active October 3, 2022 16:04
Surviving APIs with Rails Notes
@dwayne
dwayne / introduction.md
Last active December 4, 2015 17:37
HTML5 & CSS3 Level Up Notes
@dwayne
dwayne / 00-introduction.md
Last active November 5, 2022 23:05
How to build a Hypermedia-Driven REST API - Notes
@dwayne
dwayne / 0-about.md
Last active August 29, 2015 13:56
My Rails preferences.

About

If I find myself doing something over and over in Rails or if I come across a good best practice, then I'd document it here for future reference.

@dwayne
dwayne / 1-javascript-fundamentals-101.md
Last active August 29, 2015 13:56
Tuts+ Premium Course - JavaScript Fundamentals 101 - Notes
@dwayne
dwayne / exact-center.scss
Created February 19, 2014 11:48
A mixin for horizontally and vertically centering a block element.
// http://css-tricks.com/snippets/css/exactly-center-an-imagediv-horizontally-and-vertically/
@mixin exact-center($width, $height) {
width: $width;
height: $height;
position: absolute;
left: 50%;
top: 50%;
margin-left: -$width / 2;
margin-top: -$height / 2;
}
@dwayne
dwayne / 01-intro.md
Last active June 27, 2023 02:42
My notes from the book "ng-book: The Complete Book on AngularJS by Ari Lerner".

Introduction

Author: Ari Lerner.

AngularJS offers a single framework that can be used to build dynamic, client-centric applications. It provides:

  • Module support
  • DOM manipulation
  • Animations
  • Templating