Skip to content

Instantly share code, notes, and snippets.

<html ng-app="main"><head><style type="text/css">@charset "UTF-8";[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\:form{display:block;}</style>
<title ng-bind="pageTitle ? pageTitle : 'goLance'">Dashboard</title>
<meta charset="utf-8">
<meta property="og:title" content="goLance">
<meta property="og:site_name" content="goLance">
<meta property="og:image" content="https://res.cloudinary.com/golance/image/upload/v1455012811/logo-square_slnrua.png">
<meta property="og:description" content="goLance is an online platform where you will find the most skilled Freelancers from around the World . Dozens of Quality Programers, Designers, Developers, writers, etc.. are here to resolve all your Business needs.">
<meta property="description" content="goLance is an online platform where you will find the most skilled Freelancers from around the World . Dozens of Quality Programers, Designers, Developers, writers, etc.. are her
import React from 'react';
import _ from 'lodash';
import { View, Text } from 'react-native';
import StarRating from 'react-native-star-rating';
import { colors } from 'ios/styles/variables';
import styles from './Rating.styles';
const Rating = ({ feedbackScore, size }) => {
const rating = _.isNumber(feedbackScore) ? feedbackScore : feedbackScore.total || 0;
function toJson(obj, pretty) {
if (typeof obj === 'undefined') return undefined;
if (!isNumber(pretty)) {
pretty = pretty ? 2 : null;
}
return JSON.stringify(obj, toJsonReplacer, pretty);
}
function toJsonReplacer(key, value) {
var val = value;
<header>
<button (click)=“sidebar.show()”></button>
<sidebar #sidebar></sidebar>
</header>
@Component({
selector: 'sidebar',
})
class ChildComponent{
@IharKrasnik
IharKrasnik / format.scss
Last active July 10, 2016 12:14
format errors
/* Wrong format */
.container {
margin: 10px;
border: 1px solid;
.content {
font-weight: bold;
}
.footer {
background: black;
@IharKrasnik
IharKrasnik / dropdowns.md
Last active June 7, 2016 10:39
Test task
  1. Create server using KOA.js

  2. Add middleware for AJAX requests. Check token from request parameters and if it is not equal to 'abcde' return unauthorized code.

  3. Serve single-page application with angular.js, angular-ui.js + SemanticUI (bower repo: Semantic-UI-CSS,include both Semantic-UI-CSS/semantic.min.js and Semantic-UI-CSS/semantic.css)

  4. Add menu with 2 options (HOME, APP).

  5. Create directive for ui dropdown (from Semantic UI http://semantic-ui.com/modules/dropdown.html#/examples)

  6. Add collection to mongodb for dropdown options and API for it to GET values (example doc {title: 'Dropdown 1', options: [{id: 'option1', label: 'Option 1'}]}...)

  7. Resolve dropdowns from server API in APP state definition. Render dropdowns with title and options in APP view using directive. Add default option 'Not Selected'. Show selected values in layout

  8. Use ES6-7 features both on server and client. Add gulpfile to build ES6 with Babel

  9. Pack application in Docker (include npm install,bower install and `

@IharKrasnik
IharKrasnik / front
Created April 5, 2016 11:34
Hello!
Приглашаем front-end разработчиков присоединиться к команде Paralect в Минске. Мы проектируем и разрабатываем стартап-продукты для наших клиентов и решаем множество технических и не только технических задач. Мы ищем серьезных, но в то же время веселых, чтобы вместе продолжать становиться профессионалами своего дела.
Paralect — это маленькая и дружелюбная компания, основанная 5 лет назад. У нас просторный офис, площадью 700 кв.м., рядом с пл. Якуба Коласа.
**Проверьте себя:**
Ниже мы приводим наиболее важные навыки и знания, которыми, мы надеемся, вы обладаете.
> **HTML+CSS**
> *Отличные знания*
Приглашаем front-end разработчиков присоединиться к команде Paralect в Минске. Мы проектируем и разрабатываем стартап-продукты для наших клиентов и решаем множество технических и не только технических задач. Мы ищем серьезных, но в то же время веселых, чтобы вместе продолжать становиться профессионалами своего дела.
Paralect — это маленькая и дружелюбная компания, основанная 5 лет назад. У нас просторный офис, площадью 700 кв.м., рядом с пл. Якуба Коласа.
**Проверьте себя:**
Ниже мы приводим наиболее важные навыки и знания, которыми, мы надеемся, вы обладаете.
> **HTML+CSS**
> *Отличные знания*
  1. Reduce interactions via eventdispatcher
  • emit commands directly to target service (tracker, payments). ex. payments needed 3 services to proceed(app_processor, app_event_dispatcher and app_payment_processor), now only 1 - payment processor.
  • do not duplicate sql entities (payments) in write db
  • now processors are able to read and write from write db and we do not emit too many events and do not rely on event dispatcher (eventually we may not need it at all and reduce risks on it dependency)
  • created separate app_scheduler service for background tasks, emit commands directly to services
  1. Separate read handler and view handler - all background counters and handlers are in read handler now instead of view handler

  2. Use elasticsearch db instead of mongodb for main search pages (browse jobs and golancers) to increase search perfomance and reduce mongodb load

@IharKrasnik
IharKrasnik / docker-compose.yml
Created February 15, 2016 11:43
docker-compose
redis:
image: redis:latest
ports:
- "6380:6379"
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"