Skip to content

Instantly share code, notes, and snippets.

View my8bit's full-sized avatar
🔑
💀‎‍💻忍者🐒

Ihor Pavlenko my8bit

🔑
💀‎‍💻忍者🐒
View GitHub Profile
@my8bit
my8bit / loader.css
Last active November 9, 2016 11:56
loading
/*
* https://projects.lukehaas.me/css-loaders/
*/
.loader-container {
width: 50%;
height: 50%;
overflow: auto;
margin: auto;
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
@my8bit
my8bit / bl.ocks.org test
Created October 1, 2016 21:05
index.html
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<h1>it works</h1>
</body>
</html>
@my8bit
my8bit / index.html
Created October 1, 2016 18:12
scatch for blog
<div id="md"></div>
<script src="//cdnjs.cloudflare.com/ajax/libs/markdown.js/0.5.0/markdown.min.js"></script>
<script>
fetch("https://gist.githubusercontent.com/my8bit/d0a7ca21c0492efd8680/raw/")
.then(function(response) {
return response.text()
})
.then(function(raw) {
var md = document.getElementById('md');
md.innerHTML = markdown.toHTML(raw);
@my8bit
my8bit / ind-data.json
Last active January 8, 2017 10:12
ind-data
[
{"name": "\"K\" Line (Nederland) B.V."},
{"name": "\"Taipei\" Acupuncture "},
{"name": "\"Vertraco\" Shipping B.V."},
{"name": "*bliep Holding B.V."},
{"name": "@Leisure BR B.V."},
{"name": "1%Club B.V."},
{"name": "100 Grams Software B.V."},
{"name": "12Connect B.V."},
{"name": "VI Technologies B.V."},
@my8bit
my8bit / example.json
Last active February 29, 2016 20:35
example
[{
"date": "24/02/2016 12:11:57",
"amount": "27.4"
}, {
"date": "24/02/2016 09:30:22",
"amount": "27.6"
}, {
"date": "24/02/2016 09:19:21",
"amount": "27.60"
}, {
@my8bit
my8bit / bundle.js
Created February 11, 2016 18:42
Currency widget
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
@my8bit
my8bit / most-common-word-in-text.js
Last active November 1, 2015 19:02 — forked from anonymous/index.html
Most common word in text. Simple algorithm.
var text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse iaculis nunc a quam condimentum, eget vestibulum magna aliquet. Cras a quam id odio congue viverra id nec purus. Proin in pharetra arcu. Aliquam vel vulputate urna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec rutrum sem. Praesent a mi metus. Integer vitae facilisis nulla, a lacinia velit. Quisque tempor varius lectus nec finibus. Sed quis quam tempor justo mattis mattis. Proin vel ante risus. Sed maximus scelerisque commodo. Pellentesque ut placerat nisi.";
function findMostCommonWordInText(text) {
var wordCounter = {},
max = 1,
mostCommonWord = "";
text.split(" ").forEach(function(word) {
if (wordCounter[word]) {
wordCounter[word] += 1;
@my8bit
my8bit / CV - Ihor Pavlenko - JavaScript developer.md
Last active February 21, 2018 20:43
Ihor Pavlenko - JavaScript developer - CV
@my8bit
my8bit / Ялюблютебя.txt
Created July 3, 2014 21:07
Ышо Ышо - Я люблю тебя
Em..............C.......................Am........ .............H
Наш мир как Вавилон - столпотворение множества людей
Em..........C...................Am.............H
И полон он нагромождением ненужных нам вещей
Em............D....Am..............H
Ты посмотри Куда мы гонимся, зачем
Em...........D............................Am...... .......H
Закрыв глаза, представь что в этом мире мы с тобой одни
C...........................................Em
@my8bit
my8bit / инерция.txt
Created April 12, 2014 13:30
7 раса - Инерция
Оригинал - http://users.i.kiev.ua/~slider_g/7paca.htm#1
Вступление:
D5 A5
D5 A5
Куплет 1:
А`5 B/D