Skip to content

Instantly share code, notes, and snippets.

View Zmoki's full-sized avatar
🩷

Zarema Khalilova Zmoki

🩷
View GitHub Profile
@Zmoki
Zmoki / index.html
Created January 28, 2016 00:16 — forked from anonymous/index.html
JS Bin // source http://jsbin.com/bijeso
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://wzrd.in/standalone/expect@latest"></script>
<script src="https://wzrd.in/standalone/deep-freeze@latest"></script>
</head>
<body>
@Zmoki
Zmoki / index.html
Created January 27, 2016 23:07 — forked from anonymous/index.html
JS Bin // source http://jsbin.com/bijeso
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://wzrd.in/standalone/expect@latest"></script>
<script src="https://wzrd.in/standalone/deep-freeze@latest"></script>
</head>
<body>
@Zmoki
Zmoki / links.md
Last active August 29, 2015 14:27
"Привет, ES6!"
@Zmoki
Zmoki / lead_zero.js
Created June 28, 2012 15:04
Lead zero function
function leadZero(number, length) {
while(number.toString().length < length){
number = '0' + number;
}
return number;
}
@Zmoki
Zmoki / lead_zero_two.js
Created June 28, 2012 15:03
Lead zero and two-digit number
str = num < 10 ? '0' + num : num;
@Zmoki
Zmoki / next_day.js
Created June 28, 2012 15:01
Get next day of date
var nextDay = new Date(+ new Date(dateVal) + 24*60*60*1000);
@Zmoki
Zmoki / mysql_convert_latin1_utf8.sql
Created June 28, 2012 14:55
Convert text encoded with latin1 to utf8 in MySQL
UPDATE table SET col = CONVERT(CONVERT(CONVERT(col USING latin1) USING binary) using utf8);