Skip to content

Instantly share code, notes, and snippets.

View Alimjanov-Ibragim's full-sized avatar
🎯
Focusing

Ibragim Alimjanov-Ibragim

🎯
Focusing
View GitHub Profile
@Alimjanov-Ibragim
Alimjanov-Ibragim / Sandwich
Created December 5, 2018 18:31 — forked from FARCER/Sandwich
Sandwich
.sandwich
.sandwich__line.sandwich__line--top
.sandwich__line.sandwich__line--middle
.sandwich__line.sandwich__line--bottom
.sandwich {
cursor: pointer;
display: none;
height: 20px;
position: relative;
@Alimjanov-Ibragim
Alimjanov-Ibragim / customize-scrollbar.css
Created January 22, 2019 13:42 — forked from spemer/customize-scrollbar.css
Customize website's scrollbar like Mac OS. Not supports in Firefox and IE.
/* Customize website's scrollbar like Mac OS
Not supports in Firefox and IE */
/* total width */
body::-webkit-scrollbar {
background-color:#fff;
width:16px
}
/* background of the scrollbar except button or resizer */
@Alimjanov-Ibragim
Alimjanov-Ibragim / fixed_header
Created February 24, 2019 15:35 — forked from mserikov/fixed_header
Фиксированная шапка при прокрутке страницы
Taken from http://webcoder.kz/fiksirovannaya-shapka-pri-prokrutke-stranicy
HTML разметка:
<header></header>
<div class="content">
<p>
Сюда вставляете очень много контента, для того чтобы появился вертикальный скролл...
</p>
</div>
@Alimjanov-Ibragim
Alimjanov-Ibragim / modern_js.md
Created June 4, 2019 11:36 — forked from gaearon/modern_js.md
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
@Alimjanov-Ibragim
Alimjanov-Ibragim / sketch-never-ending.md
Created June 17, 2020 13:37 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@media (your-own-screen-restrictions) {
.react-tabs__tab-list {
display: block;
overflow-y: auto;
width: 100%;
white-space: nowrap;
}
}
@Alimjanov-Ibragim
Alimjanov-Ibragim / netlify.toml
Created July 30, 2020 16:32 — forked from rickyhaswifi/netlify.toml
React Router Netlify - Fix for not found page
#https://stackoverflow.com/questions/58065603/netlify-renders-404-on-page-refresh-using-react-and-react-router
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
import React, { useEffect, useState } from "react";
let App = () => {
const [windowWidth, setWindowWidth] = useState(0);
const [windowHeight, setWindowHeight] = useState(0);
let resizeWindow = () => {
setWindowWidth(window.innerWidth);
setWindowHeight(window.innerHeight);
};
@Alimjanov-Ibragim
Alimjanov-Ibragim / gist:b85929010fdef811ce5071f877949afd
Created December 21, 2021 07:10 — forked from borismus/gist:1032746
Convert a base64 string into a binary Uint8 Array
var BASE64_MARKER = ';base64,';
function convertDataURIToBinary(dataURI) {
var base64Index = dataURI.indexOf(BASE64_MARKER) + BASE64_MARKER.length;
var base64 = dataURI.substring(base64Index);
var raw = window.atob(base64);
var rawLength = raw.length;
var array = new Uint8Array(new ArrayBuffer(rawLength));
for(i = 0; i < rawLength; i++) {
@Alimjanov-Ibragim
Alimjanov-Ibragim / UA parser
Created June 24, 2022 05:37 — forked from KamaMakh/UA parser
Detect Browser, Engine, OS, CPU, and Device
export const isSafari = () => {
const ua = window.navigator.userAgent.toLowerCase();
return (
ua.includes('safari') &&
!ua.includes('crios') &&
!ua.includes('fxios') &&
!ua.includes('android')
);
};