Skip to content

Instantly share code, notes, and snippets.

View tavriaforever's full-sized avatar

Nickolay Ilchenko tavriaforever

View GitHub Profile
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';
const fragmentUser = `
fragment fragmentUser on User {
id
username
email
firstName
lastName
name
avatarLink
phoneNumber
/**
* 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"
const { createStore, applyMiddleware } = Redux;
const { Provider } = ReactRedux;
const { connect } = ReactRedux;
const { combineReducers } = Redux;
// Actions
const SET_MOOD = "SET_MOOD";
function setMood() {
const moods = [
function isNumber(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
if (isNumber(data.points) && data.points >= 0) { return 'blablabla'; }
// Полная запись deps-сущности
{
block : 'bBlock',
elem : 'elem',
mod : 'modName',
val : 'modValue',
tech : 'techName', // технология, для которой собираются зависимости (например, js)
mustDeps : [], // подключатся до блока
shouldDeps : [], // порядок подключения не важен (важно лишь подключить)
“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
block('ball')(
def()(function () {
var myFunc = function () {
console.log('common function');
};
return applyNext({ _myFunc: myFunc });
}),
content()(function () {
[
// Чтобы собирать клиентский bemhtml
{
tech: 'js',
mustDeps: [
// обязательное
{
block: 'i-bem',
tech: 'bemhtml'
},
<ul class="nav">
<li class="nav__item">
<a class="nav__link" href="#" title="">
<div class="nav__label">Пункт меню</div>
</a>
</li>
</ul>