Skip to content

Instantly share code, notes, and snippets.

View Ivan-Mitkov's full-sized avatar

Ivan Mitkov Ivan-Mitkov

View GitHub Profile
import axios from "axios";
const customRequest = axios.create({
baseURL: 'https://example.com/api/',
headers: {'Request-Origin': 'website'}
});
customRequest.interceptors.request.use((config) => {
const accessToken = localStorage.getItem("token");
# Unix (Terminal)
open -a "Google Chrome" --args --disable-gpu-vsync --disable-frame-rate-limit
# Windows (Command prompt)
start chrome --args --disable-gpu-vsync --disable-frame-rate-limit
@Ivan-Mitkov
Ivan-Mitkov / GLSL-Noise.md
Created April 20, 2021 12:50 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
@Ivan-Mitkov
Ivan-Mitkov / sample.md
Created July 1, 2020 15:12 — forked from bradtraversy/sample.md
Markdown Cheat Sheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This text is italic

const bigArray = new Array(1000).fill(1);
const createArrPromises = bigArray => {
return bigArray.map((x, i) => {
return new Promise((resolve, rej) => {
setTimeout(() => {
resolve(i);
}, 100);
});
});
@Ivan-Mitkov
Ivan-Mitkov / Second level
Last active October 24, 2018 15:05
Array from object
const a={
head:{h1:2,h2:3},
row1:{td1:{ar1:1,ar2:2},td2:4},
row2:{td1:4,td2:5}
}
//first level
const allArr=(a)=>Object
.keys(a)