Skip to content

Instantly share code, notes, and snippets.

@cocolote
cocolote / Rails-assets-pipe.md
Last active August 29, 2015 14:21
Rails: How to fix the assets pipe to work with Heroku

The annoying Assets Pipe problem with Heroku and Rails

1_ in config/environments/production.rb

Set config.assets.compile = false to config.assets.compile = true

2_ in config/application.rb

Add the line config.assets.compile = true

@rayhamel
rayhamel / ajax_and_redis.md
Last active October 4, 2019 13:41
Redis, AJAX, Testing AJAX Walkthrough

This walkthrough uses our group project as an example; we will be creating an upvote/downvote system.

Redis

Install Redis and the Redis gem (in terminal).

$ brew install redis
$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
@cmkoller
cmkoller / sass_clinic.md
Last active May 7, 2021 15:13
Sass Basics

All About Sass

Sass == "Syntactically Awesome Stylesheets"

Sass is a CSS extension language. It builds on top of CSS, fixes some of its problems, and generally makes it way better.

###What's wrong with CSS?

It's so, so not DRY:

  • You often need to repeat big lines of selectors as you target more and more deeply nested items
@radavis
radavis / cli.md
Last active February 12, 2018 15:19

Using the OS X Command Line

Directory Shortcuts

~ - Home Directory
. - Current Directory
.. - Enclosing Directory
/ - Root Directory
@liamcurry
liamcurry / gist:2597326
Created May 4, 2012 19:56
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@kyleturner
kyleturner / Remove Submodule
Created January 5, 2012 01:07
How to remove a submodule from a Github project
To remove a submodule you need to:
Delete the relevant line from the .gitmodules file.
Delete the relevant section from .git/config.
Run git rm --cached path_to_submodule (no trailing slash).
Commit and delete the now untracked submodule files.
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')