Skip to content

Instantly share code, notes, and snippets.

View YSavir's full-sized avatar

Yaniv Savir YSavir

  • New York, New York
View GitHub Profile
@maxim
maxim / rails_load_path_tips.md
Last active April 13, 2023 13:28
How to use rails load paths, app, and lib directories.

In Rails 3

NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths

If you add a dir directly under app/

Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.

If you add a dir under app/something/

@panthar1
panthar1 / KDiceFlagEnhancer.user.js
Last active August 29, 2015 14:06
KDice Flag Enhancer
// ==UserScript==
// @name KDice Flag Enhancer
// @version 1.3.4
// @namespace panthar
// @run-at document-end
// @description KDice flag system enhancements.
// @include http://*kdice.com*
// @copyright 2014+, Bobby Kramer, http://www.panthar.net
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @downloadURL https://gist.github.com/panthar1/d53edf48599a7557a419/raw/KDiceFlagEnhancer.user.js