Skip to content

Instantly share code, notes, and snippets.

@hoschi
hoschi / esbuild.md
Last active October 19, 2022 13:02 — forked from Med-H/esbuild.md
esbuild with hot reload, typescript server as well as eslint server

An extremely fast JavaScript bundler written in Go.

structure path

  • public
    • favicon.ico
    • locales
  • ...
@hoschi
hoschi / README.md
Last active February 2, 2016 16:43 — forked from mbostock/.block
Multi-Series Line Chart
@hoschi
hoschi / index.html
Last active August 29, 2015 14:03 — forked from mbostock/.block
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.link {
fill: none;
stroke: #666;
stroke-width: 1.5px;
}
@hoschi
hoschi / README.md
Last active December 26, 2015 23:49 — forked from mbostock/.block
This example demonstrates how to rotate axis labels by 45° using post-selection. With funny bounce effect :)

This example demonstrates how to rotate axis labels by 45° using post-selection. With funny bounce effect :)

@hoschi
hoschi / README.md
Last active December 26, 2015 09:59 — forked from mbostock/.block
SVG Path transition

This example demonstrates path interpolation using SVG's getPointAtLength feature. The source path and the target path are sampled uniformly using a configurable precision in pixels (here, 4px). During the transition, the path is replaced with a piecewise linear curve, or polyline, for easier interpolation. When the transition finishes, the path is restored to the original cubic Bézier. This technique is handy because it works for any path expressible with SVG's path data mini-language.

See also the circular shape tweening example.

@hoschi
hoschi / index.html
Last active December 25, 2015 14:29 — forked from mbostock/.block
Example how it looks without 'defined' usage.
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path, .axis line {
fill: none;
@hoschi
hoschi / index.html
Last active July 2, 2018 18:23 — forked from mbostock/.block
Testing scale with very long labels
<!DOCTYPE html>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
<style>
svg {
font: 10px sans-serif;
}
.axis {
@hoschi
hoschi / another.js
Created April 13, 2012 09:43 — forked from dukex/jasmine.js
qUnit Vs Jasmine
describe("menu", function () {
beforeEach(function(){
var ac = $('#menu1').menu();
var item0 = $("li:eq(0) a");
});
it("should has should have aria features", function() {
var item;
expect(ac.hasClass("ui-menu ui-widget ui-widget-content ui-corner-all")).toEqual(true);
expect(ac.attr("role")).toEqual("listbox");