Skip to content

Instantly share code, notes, and snippets.

View Taump's full-sized avatar
💪
Not give up is my magic

Alexander Ponomarev Taump

💪
Not give up is my magic
View GitHub Profile
heightDetect();
function heightDetect(){
$(".main_head").css('height',$(window).height());
};
$(window).resize(function(){
heightDetect();
});
@Taump
Taump / HTML5shiv
Created June 25, 2017 10:14
Поддержка ie тегов html5
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
@Taump
Taump / breakpoints.css
Created June 29, 2017 10:25 — forked from MatthewEppelsheimer/breakpoints.css
Responsive Break Point Media Query Boilerplate
// Mobile First
@media screen and (min-width: 321px) { // iPhone landscape
}
@media screen and (min-width: 481px) { // iPad portrait
}
@Taump
Taump / todo.js
Created November 4, 2017 13:04
Todo React
import React, {Component} from 'react';
import './App.css';
class App extends Component {
constructor() {
super();
this.state = {
data: [],
inputVal: '',
}
@Taump
Taump / react_tz.md
Created May 5, 2018 14:41 — forked from beshkenadze/react_tz.md
Тестовое задание для ReactJS Frontend-разработчика

##Погодное одностраничное веб-приложение

(!) Данные можно взять с сайта openweathermap.org или с любого другого сервиса.

(!) Обязательно использовать react.js и redux.

Приложение должно уметь:

  • Добавлять/удалять города
  • Сохранять локально данные
.menu__item_active:after {
content: "";
display: block;
width: 100%;
height: 2px;
background: url(../img/border.svg) no-repeat;
position: absolute;
background-size: cover;
left: 0;
bottom: -5px;
@Taump
Taump / ManageOrdersRelay.js
Created September 6, 2019 09:55 — forked from feus4177/ManageOrdersRelay.js
Example using createPaginationContainer from RelayJS.
import React from 'react';
import PropTypes from 'prop-types';
import {graphql, QueryRenderer, createPaginationContainer} from 'react-relay';
import {Button} from 'react-bootstrap';
import environment from '@/environment';
import PageBar from '@/components/PageBar';
import Loading from '@/components/Loading';
import OrderTableRelay from '@/components/OrderTableRelay';
@Taump
Taump / useWindowSize.js
Last active January 23, 2020 07:15
hook windows resize
import { useLayoutEffect, useState } from "react";
export const useWindowSize = () => {
const [size, setSize] = useState([0, 0]);
useLayoutEffect(() => {
function updateSize() {
setSize([window.innerWidth, window.innerHeight]);
}
window.addEventListener("resize", updateSize);
updateSize();
@Taump
Taump / useLocalStorage.js
Created January 23, 2020 07:16
hook local storage
import { useState } from "react";
export const useLocalStorage = (key, initialValue) => {
const [storedValue, setStoredValue] = useState(() => {
try {
const item = window.localStorage.getItem(key);
return item ? JSON.parse(item) : initialValue;
} catch (error) {
console.log(error);
return initialValue;
{
base_aa: 'GGLDAQJOMIACSC3WSF7YI47OERBN3LYK',
params: {
oracle: 'F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N',
overcollateralization_ratio: 1.5,
max_loan_value_in_underlying: 10000000,
decimals: 2,
auction_period: 3000,
liquidation_ratio: 1.3,
feed_name: 'GBYTE_USD',