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 { | |
View, | |
StyleSheet, | |
ActivityIndicator, | |
Dimensions, | |
Platform, | |
} from 'react-native'; | |
import Swiper from 'react-native-swiper'; |
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
const fragmentUser = ` | |
fragment fragmentUser on User { | |
id | |
username | |
firstName | |
lastName | |
name | |
avatarLink | |
phoneNumber |
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
/** | |
* Copyright (c) 2015-present, Facebook, Inc. | |
* All rights reserved. | |
* | |
* This source code is licensed under the BSD-style license found in the | |
* LICENSE file in the root directory of this source tree. An additional grant | |
* of patent rights can be found in the PATENTS file in the same directory. | |
*/ | |
#import "RCTNativeModule.h" |
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
const { createStore, applyMiddleware } = Redux; | |
const { Provider } = ReactRedux; | |
const { connect } = ReactRedux; | |
const { combineReducers } = Redux; | |
// Actions | |
const SET_MOOD = "SET_MOOD"; | |
function setMood() { | |
const moods = [ |
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 isNumber(n) { | |
return !isNaN(parseFloat(n)) && isFinite(n); | |
} | |
if (isNumber(data.points) && data.points >= 0) { return 'blablabla'; } |
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
// Полная запись deps-сущности | |
{ | |
block : 'bBlock', | |
elem : 'elem', | |
mod : 'modName', | |
val : 'modValue', | |
tech : 'techName', // технология, для которой собираются зависимости (например, js) | |
mustDeps : [], // подключатся до блока | |
shouldDeps : [], // порядок подключения не важен (важно лишь подключить) |
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
“A man sat at a metro station in Washington DC and started to play the violin; it was a cold January morning. He played six Bach pieces for about 45 minutes. During that time, since it was rush hour, it was calculated that 1,100 people went through the station, most of them on their way to work. | |
Three minutes went by, and a middle aged man noticed there was musician playing. He slowed his pace, and stopped for a few seconds, and then hurried up to meet his schedule. | |
A minute later, the violinist received his first dollar tip: a woman threw the money in the till and without stopping, and continued to walk. | |
A few minutes later, someone leaned against the wall to listen to him, but the man looked at his watch and started to walk again. Clearly he was late for work. | |
The one who paid the most attention was a 3 year old boy. His mother tugged him along, hurried, but the kid stopped to look at the violinist. Finally, the mother pushed hard, and the child continued to walk, turning his head all the time. This |
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
block('ball')( | |
def()(function () { | |
var myFunc = function () { | |
console.log('common function'); | |
}; | |
return applyNext({ _myFunc: myFunc }); | |
}), | |
content()(function () { |
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
[ | |
// Чтобы собирать клиентский bemhtml | |
{ | |
tech: 'js', | |
mustDeps: [ | |
// обязательное | |
{ | |
block: 'i-bem', | |
tech: 'bemhtml' | |
}, |
NewerOlder