Skip to content

Instantly share code, notes, and snippets.

Avatar
Black Lives Matter

Owajigbanam Ogbuluijah igbanam

Black Lives Matter
View GitHub Profile
@igbanam
igbanam / route_hooks.js
Created Oct 9, 2017 — forked from danielchappell/route_hooks.js
Ember.Route hook order
View route_hooks.js
import Ember from 'ember';
// Ember 1.10
export default Ember.Route.extend({
//---fire in order on route enter---
beforeModel(transition) {
//empty by default
@igbanam
igbanam / frontendDevlopmentBookmarks.md
Created Jul 8, 2017 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
View frontendDevlopmentBookmarks.md
@igbanam
igbanam / gist:2886165
Created Jun 7, 2012 — forked from gavinhughes/gist:1323987
Cucumber web steps
View gist:2886165
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
# It is recommended to regenerate this file in the future when you upgrade to a
# newer version of cucumber-rails. Consider adding your own code to a new file
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.
require 'uri'
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths"))
@igbanam
igbanam / behaviors.js
Created Sep 30, 2011 — forked from jamis/behaviors.js
Behavior-registration for UJS
View behaviors.js
// An Unobtrusive Javascript (UJS) driver based on explicit behavior definitions. Just
// put a "data-behaviors" attribute on your view elements, and then assign callbacks
// for those named behaviors via Behaviors.add.
var Behaviors = {
add: function(trigger, behavior, handler) {
document.observe(trigger, function(event) {
var element = event.findElement("*[data-behaviors~=" + behavior + "]");
if (element) handler(element, event);
});
View responsive_grid_container.scss
@mixin grid_container {
margin: auto;
width: 960px;
// Tablet Layout: 768px.
@media only screen and (min-width: 768px) and (max-width: 991px) {
width: 764px;
}
// Mobile Layout: 320px.
@media only screen and (max-width: 767px) {
You can’t perform that action at this time.