Skip to content

Instantly share code, notes, and snippets.


Owajigbanam Ogbuluijah igbanam

Block or report user

Report or block igbanam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
igbanam / nan.js
Last active Oct 25, 2017
Javascript Symptoms — NaN
View nan.js
NaN # This is a "thing"
NaN == NaN # => false
NaN === NaN # => false
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 / rubyconf-ng-abstract-factory.rb
Last active Aug 13, 2017
RubyConf-NG Design Patterns
View rubyconf-ng-abstract-factory.rb
# The Abstract Factory
class Waiter
def initialize meal_order
@meal_order = meal_order
def serve!
igbanam /
Created Jul 8, 2017 — forked from dypsilon/
A badass list of frontend development resources I collected over time.
igbanam / yii2-reverse-migration.php
Created Mar 8, 2017
To get the current state of a database into a migration for Yii 2
View yii2-reverse-migration.php
namespace app\commands;
use yii;
class MigrationReverserController extends \yii\console\Controller
public function actionRun($schema = null)
igbanam / Layout.php
Created Jul 25, 2013
Simple Rails-like templating for CodeIgniter
View Layout.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Layout
// The CodeIgniter instance
static var $ci;
// Name of out layout file
var $layout;
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 / 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);
igbanam / rails31_compass.rb
Created Sep 23, 2011
Integrate Compass with Rails 3.1 in steps
View rails31_compass.rb
# These are the steps I took to integrate Compass with Rails 3.1 and the asset pipeline.
# 1. Add Compass to your Gemfile under the assets group
# Gemfile
group :assets do
gem 'compass'
# alongside other gems needed
# 2. Configure the load path for SASS
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.