Skip to content

Instantly share code, notes, and snippets.

View sanzhardanybayev's full-sized avatar
💭
Coding 🤸‍♀️

Sanzhar Danybayev sanzhardanybayev

💭
Coding 🤸‍♀️
  • Almaty, Kazakhstan
View GitHub Profile
@sanzhardanybayev
sanzhardanybayev / kzborders.js
Created January 28, 2020 19:30
Returns Array of coordinates for Polygon to draw Kazakhstan Borders
"42.93856 75.844711,42.945229 75.903175,42.946758 76.11554,42.941895 76.240265,42.936897 76.324913,42.923985 76.377472,42.910233 76.424149,42.899399 76.616928,42.90023 76.733734,42.918709 76.819153,42.952454 76.848732,42.978352 76.980957,42.995789 77.138596,42.96759 77.158035,42.958847 77.208191,42.918152 77.268326,42.916344 77.407211,42.920792 77.535538,42.921341 77.668877,42.91523 77.722206,42.914951 77.944572,42.895092 77.965546,42.88607 77.992897,42.869812 78.097763,42.857319 78.120255,42.862179 78.152481,42.868843 78.180542,42.870789 78.452202,42.887466 78.516373,42.884686 78.536926,42.879402 78.670258,42.827179 79.03138,42.75996 79.057068,42.765095 79.109848,42.786625 79.138596,42.792732 79.175392,42.797596 79.205818,42.783707 79.202217,42.758152 79.197899,42.735092 79.199707,42.711342 79.215271,42.679123 79.233047,42.658844 79.264709,42.632595 79.296654,42.617313 79.324577,42.614403 79.360466,42.602943 79.388046,42.566345 79.406372,42.52607 79.423805,42.490646 79.443863,42.472176 79.469711,42.465508 79
@sanzhardanybayev
sanzhardanybayev / GetDayNameFromDate.js
Last active August 8, 2018 10:56
Simple date function that can be used anywhere. For now it has only Russian Language 👅 If you wish more, feel free to make push requests
const days = [
'Воскресенье','Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Суббота'
]
const getDayName = (date) => {
if(date)
if(typeof date === 'number')
return days[new Date(date).getDay()]
else if (typeof date === 'object')
return days[date.getDay()]
@sanzhardanybayev
sanzhardanybayev / statelessComponent.js
Created June 15, 2017 09:49
React Stateless component
import React, {PropTypes} from 'react';
const StateLessComponentName = (props) => {
return (
<div>
</div>
);
}
@sanzhardanybayev
sanzhardanybayev / stateFullComponent.js
Created June 15, 2017 09:47
React Statefull component
import React, {PropTypes} from 'react';
import {Link, IndexLink} from 'react-router';
class componentName extends React.Component {
constructor(props) {
super(props);
}
componentDidMount(){