Skip to content

Instantly share code, notes, and snippets.

View jodaka's full-sized avatar

Anton Kudris jodaka

View GitHub Profile
var __articleView=function(e,t){var n=" .__av-body-hidden{display:none!important}.__av-overlay{position:absolute;height:100%;width:100%;margin:0;border:0}.__av-body{background-color:#FFF;margin:0;height:100%;width:100%}.__av-content{font-size:100%;overflow-y:scroll!important;overflow-x:hidden}adiv{display:block}avtext{display:block;padding:1ex 0;font-size:120%;font-style:normal;text-align:left}avtext a{text-decoration:underline!important}.__av-body-m0 .__av-content{margin:0 5% 0 5%}.__av-body-m1 .__av-content{margin:0 10% 0 10%}.__av-body-m2 .__av-content{margin:0 15% 0 15%}div.__av-author,div.__av-date{display:inline-block;opacity:0.3;font-size:2ex!important}.__av-author{margin-right:1ex}.__av-title{padding-top:1.5ex;margin:0.7ex 0 0.3ex 0;font-size:4.2ex!important;line-height:2.3ex}.__av-article{padding-top:4ex}.__av-content img{display:block}.__av-tagline{border-bottom:1px solid #000;padding:1em 0 0.3em 0;opacity:0.3}.__av-meta{border-top:1px solid black;padding:2ex 0 0 0;margin:2ex 0 0 0;opacity:0.5}.__av
var __articleView=function(e,t){var n=" .__av-body-hidden{display:none!important}.__av-overlay{position:absolute;height:100%;width:100%;margin:0;border:0}.__av-body{background-color:#FFF;margin:0;height:100%;width:100%}.__av-body p:empty,.__av-body div:empty{display:none}.__av-body-lh0 ul,.__av-body-lh0 p,.__av-body-lh0 div{padding-bottom:1em}.__av-body-lh1 ul,.__av-body-lh1 p,.__av-body-lh1 div{padding-bottom:1.5em}.__av-body-lh2 ul,.__av-body-lh2 p,.__av-body-lh2 div{padding-bottom:2em}.__av-body-lh0 p,.__av-body-lh0 div,.__av-body-lh0 li,.__av-body-lh0 pre,.__av-body-lh0 a{line-height:1em!important}.__av-body-lh1 p,.__av-body-lh1 div,.__av-body-lh1 li,.__av-body-lh1 pre,.__av-body-lh1 a{line-height:1.3em!important}.__av-body-lh2 p,.__av-body-lh2 div,.__av-body-lh2 li,.__av-body-lh2 pre,.__av-body-lh2 a{line-height:1.7em!important}.__av-body-bg0{background-color:#FFF!important}.__av-body-bg1{background-color:#515151!important}.__av-body-bg2{background-color:#CACACA!important}.__av-body-bg3{background-color:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
<title></title>
<style>
body {
color: #fff;
/*
This library was developed by Will Honey.
It is licensed under the GPLv3 Open Source License
This library requires the underscore library found at http://documentcloud.github.com/underscore/
This library requires the underscore string library found at http://edtsech.github.com/underscore.string/
This library requires the support of localStorage. Updates could be easily made to change that.
*/
/* jslint adsafe: false, devel: true, regexp: true, browser: true, vars: true, nomen: true, maxerr: 50, indent: 4 */
@jodaka
jodaka / fav.js
Created August 14, 2012 19:28
fav
/*global moment, Handlebars, i18n, Ya, BEM, Lego */
(function(y, $){
"use strict";
/**
* Экспортирует только один метод: init, который получает на вход данные
* и отрисовывает список эпизодов
*/
y.fav = (function(){
my $client = {
'rich' => 13456,
'poor' => 4,
'newitem' => 555,
};
@jodaka
jodaka / gist:993270
Created May 26, 2011 14:33
HTML/CSS3 for vertical div centering in Webkit
<style>
#outer {
position: fixed;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
}
#inner {