Skip to content

Instantly share code, notes, and snippets.

View leakyMirror's full-sized avatar

Justas leakyMirror

  • Vilnius, Lithuania
View GitHub Profile
@leakyMirror
leakyMirror / README.md
Created December 21, 2014 19:39
Strange warnings in VW

Command:

cat train.vw | vw --nn 12 --passes 10 -c -k --loss_function squared
@leakyMirror
leakyMirror / index.html
Last active December 27, 2015 15:09
Sidebar, wich comes out if the mouse is moved to the edge of the screen
<div id="sidebar-holder">
<div>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<title>Drag And Drop</title>
</head>
<body>
<div id="viz"></div>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Treemap</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js"></script>
<script type="text/javascript" src="http://simiantics.net/d3/lib/jquery/jquery.min.js"></script>
<script type="text/javascript" src="http://simiantics.net/d3/lib/jquery-ui/jquery-ui.min.js"></script>
<style type="text/css"> @import url("http://simiantics.net/d3/lib/jquery-ui/jquery-ui.css"); text { font-family: sans-serif; } </style>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<title>Drag And Drop</title>
</head>
<body>
<div id="viz"></div>

This is an example of the power of the D3 library and how you can use the drag behavior of D3 to control the position and shape of the SVG element.