- Open Source being officially part of the job, not just an "after job fun" instead of spending time with the family.
- Colleagues one can learn from, not those one needs to clean up after.
- Money matters. Only a stupid person can think that money doesn't matter in our capitalistic society. This also includes social security, medical ensurance and any other expenses. I am not mercantile, no.
- Soft deadlines. Having time to do things right.
- No pressure in being at time every day in the office. We all got our issues.
- Workout during working hours. Possibility to go quickly for a run or to the gym.
- Office is optional. I prefer to work from any location I want. Sometimes being in the office is nice though.
- Good sitting conditions: good chairs, gym ball, stay desk, sofas.
- Relaxation room or nap room.
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 * as React from 'react'; | |
import { Component } from 'react'; | |
export default function HOCBaseRender<Props, State, ComponentState>( | |
Comp: new() => Component<Props & State, ComponentState>) { | |
return class HOCBase extends Component<Props, State> { | |
render() { | |
return <Comp {...this.props} {...this.state}/>; | |
} | |
} |
Лучшее определение: «Замыкание - это когда объект локальных переменных [[scope]] внешней функции остается жить после ее завершения. Внутренняя функция может обратиться к нему в любой момент и получить переменную внешней функции».
MDN:
Closures are functions that refer to independent (free) variables. In other words, the function defined in the closure 'remembers' the environment in which it was created.
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
/** | |
* Задачи на позицию «frontend-разработчик» | |
*/ | |
// --------- #1 ---------- | |
// Дан список сотрудников в виде массива | |
var employees = [{ | |
sex: 'male', | |
salary: 100 | |
}, { |
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
module.exports = (phantomcss, snap) -> | |
casper.test.begin 'Landing', 5, suite = (test) -> | |
casper.start PAGE | |
casper.viewport 1240, 1024 | |
# Full page snap | |
casper.then -> | |
snap 'landing_full' | |
# Click into looker button |
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
module.exports = function(grunt) { | |
'use strict'; | |
require('matchdep') | |
.filterDev('grunt-*') | |
.forEach(grunt.loadNpmTasks); | |
grunt.initConfig({ | |
// ... |
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
❯ cat .git/hooks/prepare-commit-msg | |
#!/bin/bash | |
b=`git symbolic-ref HEAD| sed -e 's|^refs/heads/||' | sed -e 's|_.*||'` | |
c=`cat $1` | |
if [ -n "$b" ] && [[ "$c" != "[$b]:"* ]] | |
then | |
echo "[$b]: $c" > $1 | |
fi |
NewerOlder