Skip to content

Instantly share code, notes, and snippets.

View taxigy's full-sized avatar
🦆
flap flap flap flap

Rishat taxigy

🦆
flap flap flap flap
View GitHub Profile
PHP-разработчик
В команду, занимающуюся разработкой программного обеспечения и сервисов для служб такси, требуется разработчик с огнем в глазах и хорошим знанием PHP.
Требования: 
— знание PHP5, ООП; 
— знание MySQL, умение оптимизировать тяжёлые запросы; 
— HTML, CSS, AJAX, JavaScript; 
— умение быстро разбираться в чужом коде; 
— опыт работы с MVC-фреймворками;
Frontend-разработчик / верстальщик
В команду, занимающуюся разработкой программного обеспечения и сервисов для служб такси, требуется волшебник, способный нарисовать Джоконду при помощи CSS.
Требования:
— cвободное владение JavaScript, jQuery, опыт написания плагинов;
— знание HTML/CSS, особенностей браузера (для создания кроссбраузерных решений);
— английский язык на уровне чтения технической документации;
— дисциплинированность, ответственность, обучаемость, ориентированность на результат;
— желание и умение развиваться.
@taxigy
taxigy / expectations.md
Last active June 9, 2017 06:54
Rishat's Expectations

Rishat's Expectations

As a full-time traveling freelance programmer and coding mentor, I love working with nice people and discover solutions to interesting problem. I value both intelligence and emotional maturity in people, and it's great pleasure for me to work with those who rate that highly in return. However, I'm completely comfortable with people being mad or crazy about anything, and I completely don't mind if you curse or raise your voice up to eleven, although in reasonable amounts.

What you can expect from me

I write clean code. It is concise, it works, it is maintainable, it documents itself, and it is easy to pick up for any other programmer you'll get on-boarded sooner or later.

I make it possible for other programmers to spend less time marveling upon the code and get straight to the productive part instead. I use modern tools, l

@taxigy
taxigy / flatten.js
Created June 20, 2016 22:08
Flatten an array with ES6 generators
const a = [[1,2,[3]],4];
function* flatten(e) {
const [first, ...rest] = e;
if (first instanceof Array && first.length) {
yield* flatten(first);
} else {
yield first;
}
@taxigy
taxigy / App.js
Created February 8, 2017 21:57
Refactoring of rows+columns
// Let's say that every new row is represented by an object with just two
// properties, "className" and "columns", with default values:
const EMPTY_ROW = {
columns: [{
className: 'col-md-12',
text: ''
}]
};
class App extends React.Component {
@taxigy
taxigy / prettier.js
Created April 20, 2017 16:39
Prettier problem
// IN
const renderIndexPage = data => indexPage.replace('<!-- {{ data }} -->', `
<script>
window.CONTENTFUL_DATA = ${data};
</script>
`);
// OUT
const renderIndexPage = data =>
indexPage.replace(
@taxigy
taxigy / styles.css
Created April 21, 2017 09:53
Variables in CSS styles
/* ONE: nested media query and calc */
:root {
--value: 30px;
}
.element {
border-radius: var(--value);
@media (min-width: 768px) {
border-radius: calc(var(--value) * 2);
@taxigy
taxigy / first.md
Created April 28, 2017 14:25
Learning Clojure
layout title date categories crossposted
post
How I learned Clojure while solving easy coding challenges
2015-08-03
coding
logdown

I decided to learn Clojure (and therefore ClojureScript, since the two intersect significantly) by doing. Who'd ever blame me with that?

@taxigy
taxigy / index.js
Created May 23, 2017 15:23
Express won't match route with declared param when param is a zero-length string
const app = require('express')();
app.get('/:locale/(:slug|:version/:slug)', (req, res) => {
res.json(req.params);
});
app.listen(3001);
@taxigy
taxigy / README.md
Last active June 26, 2017 19:44
Boyd

Boyd's Law of Iteration

Colonel John Boyd was interested not just in any dogfights, but specifically in dogfights between MiG-15s and F-86s. As an ex-pilot and accomplished aircraft designer, Boyd knew both planes very well. He knew the MiG-15 was a better aircraft than the F-86. The MiG-15 could climb faster than the F-86. The MiG-15 could turn faster than the F-86. The MiG-15 had better distance visibility.

The F-86 had two points in its favor. First, it had better side visibility. While the MiG-15 pilot could see further in front, the F-86 pilot could see slightly more on the sides. Second, the F-86 had a hydraulic flight control. The MiG-15 had a manual flight control.

The standing assumption on the part of airline designers was that maneuverability was the key component of winning dogfights. Clearly, the MiG-15, with its faster turning and climbing ability, could outmaneuver the F-86.

There was just one problem with all this. Even though the MiG-15 was considered a superior aircraft by airc