Skip to content

Instantly share code, notes, and snippets.

@fabiovalse
fabiovalse / README.md
Last active May 4, 2017 13:00
Isolario powergraph II

This gist, as the previous one, aims to analyze the outcome of power graph analysis tool.

The scatterplot shows on the x-axis the leaf count of the power nodes while on the y-axis their maximum level of depth.

(We talk about "node depth" since every power node is actually a tree.)

@fabiovalse
fabiovalse / README.md
Last active April 28, 2017 15:04
Isolario Powergraph

This gist aims to analyze the outcome of power graph analysis tool.

Power graphs analysis consists of a technique for analysing large graphs and representing them in a more compact way.

Input data, provided by the Isolario project, consists in ~140.000 connections between ~54.000 Autonomous Systems.

The input has been analyzed using Power graphs and 61.524 nodes and power nodes have been generated within the output (file .bbl). Then, by taking the IN relationships contained in the output, a forest has been constructed using D3 stratify. The forest is composed by 2614 trees.

The top diagram shows the trees on the x-axis ordered by the number of leaves they contain in their corresponding sub-hierarchy. The diagram shows t

@fabiovalse
fabiovalse / README.md
Last active June 8, 2019 00:54
OpenSeadragon for Geo Tiles and Tiled Image

This gist demonstrates how to use OpenSeadragon in order to overlap two tiled images and switch between them using an opacity slider control.

When the opacity slider is moved a problem occours if the wrapHorizontal option is used. Infact, only the central image is affected by the opacity changes while the ones repeated on its left and right are not.

@fabiovalse
fabiovalse / README.md
Created March 31, 2017 07:55
OpenSeadragon & Pasquale D\'Elia
@fabiovalse
fabiovalse / README.md
Last active March 30, 2017 07:46
OpenSeadragon & multiple images

This gist demonstrates how to use OpenSeadragon in order to overlap two tiled images and switch between them using an opacity slider control.

When the opacity slider is moved a problem occours if the wrapHorizontal option is used. Infact, only the central image is affected by the opacity changes while the ones repeated on its left and right are not.

@fabiovalse
fabiovalse / OpenSeadragon.coffee
Last active December 1, 2018 21:57
OpenSeadragon + SVG overlay + Vue.js
window.OpenSeadragonComponent =
props:
config:
type: Object
required: true
overlay:
type: Object
mounted: () ->
### OpenSeadragon viewer creation
@fabiovalse
fabiovalse / README.md
Last active March 24, 2017 13:16
OpenSeadragon + SVG overlay
@fabiovalse
fabiovalse / README.md
Last active March 24, 2017 11:42
OpenSeadragon

This gist demonstrates how to use OpenSeadragon in order to show a high resolution image with a zoom and pan control.

Images must be transformed in a specific tile format in order to be shown. OpenSeadragon supports DZI, TMS and IIIF.

In this gist MagickSlicer has been used in order to convert this Wikimedia Commons image to DZI format.

@fabiovalse
fabiovalse / NotoSansCJKsc-Medium.otf
Last active August 31, 2017 08:07
Chinese radicals II
This file has been truncated, but you can view the full file.
@fabiovalse
fabiovalse / README.md
Last active February 27, 2017 13:43
CSS writing modes for asian scripts

This gist shows how to use CSS writing modes for supporting both latin and asian writing modes.

Initially the latin mode is loaded, then the asian mode can be enabled using the switch on the top right.