Skip to content

Instantly share code, notes, and snippets.

function themeChange() {
var currentTheme = document.getElementById("theme-dropdown").value;
var theme1 = document.getElementById("theme-1").value;
var theme2 = document.getElementById("theme-2").value;
var theme3 = document.getElementById("theme-3").value;
var theme4 = document.getElementById("theme-4").value;
var docBody = document.getElementById("body");
var leftPanel = document.getElementById("left-panels");
var mainPanel = document.getElementById("main-panel");
var scrollingPanel = document.getElementById("scrolling-panel");
''=~( '(?{' .('`' |'%') .('[' ^'-')
.('`' |'!') .('`' |',') .'"'. '\\$'
.'==' .('[' ^'+') .('`' |'/') .('['
^'+') .'||' .(';' &'=') .(';' &'=')
.';-' .'-'. '\\$' .'=;' .('[' ^'(')
.('[' ^'.') .('`' |'"') .('!' ^'+')
.'_\\{' .'(\\$' .';=('. '\\$=|' ."\|".( '`'^'.'
).(('`')| '/').').' .'\\"'.+( '{'^'['). ('`'|'"') .('`'|'/'
).('['^'/') .('['^'/'). ('`'|',').( '`'|('%')). '\\".\\"'.( '['^('(')).
'\\"'.('['^ '#').'!!--' .'\\$=.\\"' .('{'^'['). ('`'|'/').( '`'|"\&").(
# Based on http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1812-default_scope-cant-take-procs
ActiveRecord::Base.class_eval do
class << self
private
def find_last(options)
order = options[:order]