Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View itsmattsoria's full-sized avatar
🎃

Matt Soria itsmattsoria

🎃
View GitHub Profile
@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
@itsmattsoria
itsmattsoria / resources.md
Created August 6, 2014 13:49
Links and resources for "Let's make a website!"
@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 / promentalshitbackwashpsychosis
Created January 31, 2014 10:23
Promentalshitbackwashpsychosis Enema Squad (The Doodoo chasers) lyrics
The world is a toll-free toilet
Our mouths neurological assholes
And psychologically speaking
We're in a state of mental diarrhea
Talking shit a mile a minute
Or in a state of constipated notions
Can't think of nothin' but shit
And in this world of
Stinky futures, shitty memories and
Constipated 19 now-nows
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 / gistfil1.textile
Last active April 22, 2024 12:37
Mac Terminal Cheat Sheet

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor

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.

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/