Skip to content

Instantly share code, notes, and snippets.

Avatar

ALEKSANDR ROSHAL teacplusplus

  • Russia
View GitHub Profile
View turbolinks.js.coffee
View jQuery Form Styler v1.7.3
/*
* jQuery Form Styler v1.7.3
* https://github.com/Dimox/jQueryFormStyler
*
* Copyright 2012-2015 Dimox (http://dimox.name/)
* Released under the MIT license.
*
* Date: 2015.09.05
*
*/
View rules
#modal_reuse.modal.modal_800
.modal__head.clearfix
.modal__title.clearfix
- if @profile_present
| Народная модерация
- else
| Народная модерация. Режим обучения.
.modal__close.arcticmodal-close title="Закрыть"
.modal__body.moder.clearfix
.modal__content.modal__content_wide.clearfix
View clean_cookies.rb
# Rack middleware that drops non properly encoded cookies that would hurt the ActionDispatch::Cookies middleware.
#
# This is actually a hotfix for issues
# * https://github.com/rack/rack/issues/225
# * https://github.com/rails/rails/issues/2622
module CleanCookies
# Tests whether a string may be decoded as a form component
def decodable?(string)
URI.decode_www_form_component(string)
true