Skip to content

Instantly share code, notes, and snippets.

View milushov's full-sized avatar
😏
crafting new bugs

roma milushov

😏
crafting new bugs
View GitHub Profile
var __markRead = IM.markRead;
IM.onMyTyping = function() {}
IM.markRead = function() {
var is_roma = location.href.match(/788157/)
if (is_roma) {
__markRead.apply(this, arguments);
}
}
.container
h1 Редактирование статьи
- if current_user.has_role?(:editor, :advanced) || (params[:editor] == 'full')
- content_for :nicedit do
= javascript_include_tag "marvin/editor"
= stylesheet_link_tag "marvin/editor"
= render 'posts/editor/full_editor'
- else
TeaserEditor.setImage(@params.teaser_cropped)
TeaserEditor.title.setFont(TeaserEditor.settings.title.font)
TeaserEditor.title.setSize(TeaserEditor.settings.title.size)
TeaserEditor.title.setPosition(TeaserEditor.settings.title.horizontal_position)
TeaserEditor.title.setPosition(TeaserEditor.settings.title.vertical_position)
TeaserEditor.title.setTitleColor(TeaserEditor.settings.title.color)
TeaserEditor.title.setTitleColor(TeaserEditor.settings.title.shadow_color, shadow: 'yep')
@import './plugins/base'
@import './plugins/blank-separator'
@import './plugins/line-separator'
@import './plugins/photo'
@import './plugins/table'
@import './plugins/text-area'
// font stacks
$tahoma: Tahoma, Geneva, Verdana, sans-serif
$georgia: Georgia, Palatino, "Palatino Linotype", Times, "Times New Roman", serif
form.find('#post_photo').fileupload
dataType: "json"
dropZone: $(this)
done: (e, data) ->
photo = data.result.photo
form.find('.gallery').append( $("<img height='100' width='100' src='" + photo.url + "' class='img-rounded' style='margin: 0 10px 10px 0'>") )
photos.data.push {id: photo.id, src: { main: photo.url, mini: photo.url }}
console.log photos
let g:ctrlp_map = '<leader>,'
let g:ctrlp_cmd = 'CtrlPMixed'
nmap <leader>. :CtrlPClearCache<cr>:CtrlP<cr>
nmap <leader>i :CtrlPBookmarkDir<cr>
nmap <leader>ia :CtrlPBookmarkDirAdd<cr>
nmap <leader>l :CtrlPLine<cr>
nmap <leader>b :CtrlPBuff<cr>
nmap <leader>m :CtrlPBufTag<cr>
nmap <leader>M :CtrlPBufTagAll<cr>
.list-search
article.masonry-item
margin: -9px -9px 15px 15px!important
padding: 9px
background: none!important
&:hover
background: #fff!important
.images, .foot-post
background: #fff
.images
// http://xn--80aaolconwfghg9cwh.xn--p1ai/
res = {};
$('table:eq(1) tr:lt(144):gt(110)').each(function(i, v){
res[$(v).find('td:last').text()] = $(v).find('td:first').text()
});
tree 306822e52b2fc95a94fe6b1d764be12cbb2ff83f
parent 195c82f868c7753b530e5b3c39f3e47d68260a09
author Andrey Filippov <[email protected]> Fri Aug 23 16:25:26 2013 +0400
committer Andrey Filippov <[email protected]> Fri Aug 23 16:25:26 2013 +0400
cleanup _photo partial (post_v2)
diff --git a/app/views/posts_v2/editor_plugins/_photo.html.haml b/app/views/posts_v2/editor_plugins/_photo.html.haml
index bf666df..a79f0b5 100644
match '/:year/:month/:day/:id',
:to => lambda{|env|
Rack::Response.new(['301 Permanently Moved'], 301, {'Location' => "/blog#{env['PATH_INFO']}"}).to_a
}, :as => "old_blog_post", :requirements => { :year => /\d{4}/, :month => /\d{2}/, :day => /\d{1,2}/ }