Skip to content

Instantly share code, notes, and snippets.

View nemerovchenko's full-sized avatar
🇺🇦

Zhenya Nemerovchenko nemerovchenko

🇺🇦
View GitHub Profile
@nemerovchenko
nemerovchenko / parse_utm.js
Created January 12, 2021 13:05 — forked from hunty/parse_utm.js
Парсит UTM метки и подставляет в скрытые поля
window.onload = function() {
// Parse the URL
function getParameterByName(name) {
var name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)");
var results = regex.exec(location.search);
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
// Give the URL parameters variable names
var source = getParameterByName('utm_source');
@nemerovchenko
nemerovchenko / reset.css
Created July 22, 2020 14:36 — forked from DavidWells/reset.css
CSS reset. Follow me on the twitters for more tips: https://twitter.com/davidwells
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@nemerovchenko
nemerovchenko / GLSL-Noise.md
Created February 23, 2018 12:32 — 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);
}
.row {
box-sizing: border-box;
display: flex;
margin-right: -15px;
margin-left: -15px;
}
[class*="col-xs-"] {
box-sizing: border-box;
padding-right: 15px;
@nemerovchenko
nemerovchenko / index.html
Created January 30, 2016 21:33
Full-screen animated gif background
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>horse</title>
<link href='http://fonts.googleapis.com/css?family=Spirax' rel='stylesheet' type='text/css'>
</head>
<body>
<h1>Sallie Gardner at a Gallop</h1>
</body>
@nemerovchenko
nemerovchenko / Mobile Menu Toggle Button.markdown
Created January 18, 2016 04:17
Mobile Menu Toggle Button