Skip to content

Instantly share code, notes, and snippets.

@mynimi
mynimi / jquery.stickyNav.js
Last active Mar 31, 2020
jQuery Sticky Header Plugin
View jquery.stickyNav.js
/*!
* jQuery Sticky Navigation Plugin
* Original author: Myriam Frisano (@mynimi)
*
* Licensed under the MIT license
*
* How to use:
* $('nameOfNavToBeMadeResponsive').stickyNav();
*/
@mynimi
mynimi / createpost.rb
Created Jun 16, 2015
A front matter generator in Ruby
View createpost.rb
# encoding: utf-8
require 'fileutils'
# for colored output
class String
def red; "\033[31m#{self}\033[0m" end
def green; "\033[32m#{self}\033[0m" end
def brown; "\033[33m#{self}\033[0m" end
def gray; "\033[37m#{self}\033[0m" end
def bold; "\033[1m#{self}\033[22m" end