Skip to content

Instantly share code, notes, and snippets.

@bigglesrocks
bigglesrocks / Gulpfile.js
Last active October 5, 2016 19:19
Deluxe Gulpfile
var autoprefixer = require('gulp-autoprefixer'),
bower = require('bower'),
cache = require('gulp-cache'),
combineMq = require('gulp-combine-mq'),
concat = require('gulp-concat'),
connect = require('gulp-connect'),
fs = require('fs'),
gulp = require('gulp-param')(require('gulp'), process.argv),
gulpBower = require('gulp-bower'),
gutil = require('gulp-util'),
@bigglesrocks
bigglesrocks / Multi Level Menu
Last active August 29, 2015 14:19
dropdown markup
<!-- Multi Level Menu -->
<nav>
<ul class="main-nav-menu">
<!-- First Navigation link. Has a dropdown -->
<li class="main-nav-item-1">
<a href="#" class="submenu-toggle">Main Nav Item 1</a>
<ul class="sub-menu">
<li class="sub-menu-item-1"><%= link_to subnav_item_1_path %></li>
<li class="sub-menu-item-2"><%= link_to subnav_item_2_path %></li>
<li class="sub-menu-item-3"><%= link_to subnav_item_3_path %></li>
#!/bin/bash
clear
echo "Installing Node"
# echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
# . ~/.bashrc
# mkdir ~/local
# mkdir ~/node-latest-install
# cd ~/node-latest-install
@bigglesrocks
bigglesrocks / README.md
Last active February 24, 2023 05:51
Rails Scoped Invitation System

#Scoped Invitation System for User Groups with Rails#

Starting out with the following models and associations:

####User

  • has_many :memberships
  • has_many :organizations through :memberships

####Organization (User Group)

  • has_many :memberships