Skip to content

Instantly share code, notes, and snippets.

@popovevgeny
popovevgeny / gist:a2f3a0b2d3a21268f7f1
Last active August 29, 2015 14:17
Multicolumn directive
// <div data-multicolumn-layout data-column-count="2" data-items="items">{{item}}</div>
(function () {
'use strict';
angular
.module('app')
.directive('multicolumnLayout', multicolumnLayout);
multicolumnLayout.$inject = ['$compile'];
@popovevgeny
popovevgeny / index.html
Last active August 29, 2015 14:01 — forked from jfsiii/.block
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>SVG colored patterns via mask</title>
<style>
/* FF seems to need explicit dimensions */
svg {
width: 500px;
height: 500px;
@popovevgeny
popovevgeny / index.html
Last active August 29, 2015 13:57
Simple slider above menu items
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
.menu {
width: 540px;
position: relative;
margin: 25% auto;
<!DOCTYPE html>
<html>
<head>
<title>Welcome to d3!</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}