This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rake-pipeline-web-filters' | |
output "public" | |
class Rake::Pipeline::DSL::PipelineDSL | |
def production? | |
ENV['RAKEP_MODE'] == 'production' | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Erma | |
Test2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Erma | |
Test2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define [ | |
'underscore' | |
], (_) -> | |
# Support for listening to change events of attributes through multiple indirection. | |
class ChangeWatcher | |
# The initialTarget becomes the first event dispatcher and also the calling context of the callback. | |
# It is usually initialized with `this`. The initialChain is an array of attribues to follow. | |
# Each attribute is looked for in its predecessor. | |
# The callback is called in the context of initialTarget and receives as parameters the old and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
save_state = (stateInfo) -> | |
currentState = {} | |
for term in window.location.href.split(/\?|&/) | |
[key, value] = term.split('=') | |
continue unless value? | |
currentState[key] = decodeURIComponent(value) | |
for key, value of stateInfo | |
if value? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Robert C. Martin / Uncle Bob | |
https://sites.google.com/site/unclebobconsultingllc/home/articles | |
http://butunclebob.com/ArticleS.UncleBob | |
http://www.objectmentor.com/resources/publishedArticles.html | |
http://confreaks.com/videos/759-rubymidwest2011-keynote-architecture-the-lost-years | |
http://www.viddler.com/v/6726f23c | |
http://www.viddler.com/v/914a911f | |
Bücher bei Amazon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""nginx_error_rate -- Munin plugin to report the error rate in an access log. | |
The access log defaults to `/var/log/nginx/access.log`. This may be | |
customized with the following stanza in your munin plugin conf: | |
[nginx_error_rate] | |
env.access_log /path/to/access.log | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------------------------------------------------------------------------- | |
# config/application.rb | |
#----------------------------------------------------------------------------------------------- | |
require File.expand_path('../boot', __FILE__) | |
require 'rails/all' | |
Bundler.require(:default, Rails.env) if defined?(Bundler) | |
# Bring in the Railtie that will set Rails' various logger variables to | |
# instances of Logging::Logger instead of Rails' built-in ActiveSupport::BufferedLogger. |