Skip to content

Instantly share code, notes, and snippets.

View itsmattsoria's full-sized avatar
🎃

Matt Soria itsmattsoria

🎃
View GitHub Profile
@itsmattsoria
itsmattsoria / gist:60e3d006dfb86e0b6fd3
Created May 16, 2014 20:12
giving current page item in menu, or current parent page item in menu an active class
http://blog.huidesign.com/automatically-highlight-current-page-in-navigation-with-css-jquery/
var str=location.href.toLowerCase();
$(".nav a").each(function() {
if (str.indexOf(this.href.toLowerCase()) > -1) {
$("li.current").removeClass("current");
$(this).parent().addClass("current");
}
});
$("li.current").parents().each(function(){
@itsmattsoria
itsmattsoria / resources.md
Created August 6, 2014 13:49
Links and resources for "Let's make a website!"
@itsmattsoria
itsmattsoria / railsworkshop.md
Last active August 29, 2015 14:06
Notes from Ruby on Rails Workshop

Ruby on Rails Level 1 Notes

Quick Notes

  • Ruby was created in 94/95 to more resemble human speach
  • Start out with "irb"
  • Date formatting = .strftime("")
  • Rails is just a framework for Ruby
  • Rails was created by David Hannson at 37Signals here in Chicago as Opensource
<svg xmlns="http://www.w3.org/2000/svg"><symbol viewBox="0 0 12.4 20.5" id="icon-arrow-left"><title>arrow-left</title><path stroke="#fff" stroke-width="3" stroke-linecap="round" d="M10.9 1.5l-8.8 8.7 8.8 8.8" fill="none"/></symbol><symbol viewBox="0 0 12.4 20.5" id="icon-arrow-right"><title>arrow-right</title><path stroke="#fff" stroke-width="3" stroke-linecap="round" d="M1.5 19l8.7-8.7-8.7-8.8" fill="none"/></symbol><symbol viewBox="0 0 10 18" id="icon-arrow-select-pink"><title>arrow-select-pink</title><path stroke="#E54C97" stroke-width="2" d="M.8 11.1l3.4 4.3.8 1 .8-1 3.5-4.3m0-4.2L5.8 2.6l-.8-1-.8 1L.8 6.9" fill="none"/></symbol><symbol viewBox="0 0 10 18" id="icon-arrow-select"><title>arrow-select</title><path d="M.8 11.1l3.4 4.3.8 1 .8-1 3.5-4.3m0-4.2L5.8 2.6l-.8-1-.8 1L.8 6.9" stroke="#fff" stroke-width="2" fill="none"/></symbol><symbol viewBox="0 0 9.6 15.8" id="icon-arrow"><title>arrow</title><path stroke="#fff" stroke-width="3" stroke-linecap="round" d="M1.5 14.3l6-6.4-6-6.4" fill="none"/></symbol><
@itsmattsoria
itsmattsoria / terminal.MD
Created March 20, 2015 15:05
A collection of terminal commands that I always have to look up

Copy ssh key cat ~/.ssh/id_rsa.pub

{
"auto_complete_commit_on_tab": true,
"auto_complete_triggers":
[
{
"characters": "<",
"selector": "text.html"
},
{
"characters": "/",
Enough Git for your résumé in fewer than 100 lines
==================================================
1. Install Git
http://git-scm.com/download/mac
(But consider using Homebrew)
2. Make a GitHub account
https://github.com/

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

function EasyPeasyParallax() {
scrollPos = jQuery(this).scrollTop();
jQuery('#banner').css({
'background-position' : 'center ' + (-scrollPos/4)+"px"
});
jQuery('#bannertext').css({
'margin-top': (scrollPos/4)+"px",
@itsmattsoria
itsmattsoria / backpacking-checklist.markdown
Created September 19, 2016 20:05
Backpacking Checklist