This file contains 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
<div class="schedule"><div class="schedule__filters"><div class="schedule__filter"><div class="schedule__filter-item schedule__filter-item--main">Класс</div> <!----></div> <div class="schedule__filter"><div class="schedule__filter-item schedule__filter-item--main">Тренер</div> <!----></div> <div class="schedule__filter"><div class="schedule__filter-item schedule__filter-item--main">День</div> <!----></div></div> <div class="schedule__table" style="height: 3031px;"><div class="schedule__weeks"><div class="schedule__week schedule__week--active"> | |
02/10 - 08/10 | |
</div><div class="schedule__week"> | |
09/10 - 15/10 | |
</div></div> <div class="schedule__days schedule__days--active"><div class="schedule__day schedule__day--odd"><div class="schedule__day-header"> | |
понедельник | |
<div>02/октябрь</div> <div class="schedule__days-arrow schedule__days-arrow--right"></div> <div class="schedule__days-arrow schedule__ |
This file contains 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
$(function() { | |
if ($(".schedule").length > 0) | |
var e = new Vue({ | |
el: ".schedule", | |
data: { | |
slickInit: !1, | |
isFiltered: !1, | |
currentClasses: [], | |
currentClassId: null, | |
currentClass: "", |
This file contains 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
import React, {Component} from 'react' | |
import PropTypes from 'prop-types' | |
class Comment extends Component { | |
render(){ | |
let {comment} = this.props | |
return ( |
This file contains 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
import React, {Component} from 'react' | |
import Comment from './Comment' | |
class CommentList extends Component { | |
render(){ | |
const {comments} = this.props | |
const commentList = comments.map((comment) => <li key={comment.id}> | |
<Comment comment={comment} /> |
This file contains 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
import React, {Component} from 'react' | |
import PropTypes from 'prop-types' | |
import CommentList from './CommentList' | |
class Article extends Component { | |
render() { | |
const {article, isOpen, onButtonClick} = this.props | |
const body = isOpen && <section>{article.text}</section> |
This file contains 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
let list = { | |
value: 1, | |
next: { | |
value: 2, | |
next: { | |
value: 3, | |
next: { | |
value: 4, | |
next: null | |
} |
This file contains 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
function finda(arr) { | |
let sumOfNumbers = (arr.length + 1) * (arr.length + 2) / 2; | |
let sumOfArr = arr.reduce((a, b) => a + b, 0); | |
console.log(sumOfNumbers - sumOfArr) | |
} | |
finda([10, 5, 3, 8, 2, 1, 7, 9, 6]); |
This file contains 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
// Example webpack configuration with asset fingerprinting in production. | |
'use strict'; | |
var path = require('path'); | |
var webpack = require('webpack'); | |
var StatsPlugin = require('stats-webpack-plugin'); | |
var ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
var autoprefixer = require('autoprefixer'); | |
var CompressionPlugin = require("compression-webpack-plugin"); |
This file contains 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
def update | |
self.resource = resource_class.to_adapter.get!(send(:"current_#{resource_name}").to_key) | |
prev_unconfirmed_email = resource.unconfirmed_email if resource.respond_to?(:unconfirmed_email) | |
resource_updated = update_resource(resource, account_update_params) | |
yield resource if block_given? | |
if resource_updated | |
if is_flashing_format? | |
flash_key = update_needs_confirmation?(resource, prev_unconfirmed_email) ? | |
:update_needs_confirmation : :updated |
This file contains 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
def png | |
img = Magick::Image::from_blob(@doc.to_xml) | |
return img[0].to_blob { | |
self.format = 'PNG' | |
} | |
end |
NewerOlder