This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | |
<!-- Generated by graphviz version 2.26.3 (20100126.1600) | |
--> | |
<!-- Title: LibreOffice Pages: 1 --> | |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1057pt" height="1306pt" viewBox="0.00 0.00 1057.00 1306.00"> | |
<g id="graph1" class="graph" transform="scale(1 1) rotate(0) translate(4 1302)"> | |
<title>LibreOffice</title> | |
<polygon fill="white" stroke="white" points="-4,5 -4,-1302 1054,-1302 1054,5 -4,5"/> | |
<!-- UnoControls --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$xml = simplexml_load_file($argv[1]); | |
$xml->registerXPathNamespace('s', 'http://www.w3.org/2000/svg'); | |
$objs = $xml->xpath("/s:svg/s:g[@id='graph1']/s:g[@class='node']/s:text"); | |
foreach($objs as &$v) { | |
$text = (string)$v[0]; | |
$v[0] = null; | |
$a = $v->addChild("a", "{$text}"); | |
$a->addAttribute("xlink:href", "{$text}.html", "http://www.w3.org/1999/xlink"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
digraph LibreOffice { | |
node [shape="Mrecord", color="#BBBBBB"] | |
node [fontname=Verdana, color="#BBBBBB", fontsize=10, height=0.02, width=0.02] | |
edge [color="#31CEF0", len=0.4] | |
edge [fontname=Arial, fontsize=10, fontcolor="#31CEF0"] | |
UnoControls -> tools; | |
accessibility -> svtools; | |
animations -> cppuhelper; | |
avmedia -> sfx2; | |
avmedia -> vcl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Mono.Unix.Native; | |
using System.IO; | |
static bool TryLockProcess(string file_to_lock) | |
{ | |
int pid = Syscall.getpid(); | |
int fd = Syscall.open(file_to_lock, OpenFlags.O_CREAT | OpenFlags.O_RDWR, FilePermissions.DEFFILEMODE); | |
if (fd > 0) { | |
// a write (exclusive) lock | |
Flock wl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main(i,n){for(puts("\n L .--^--\nLOL= [] \\\n L \\______]\n __I__I__/");n=i?"ROFL":" ";i^=1)printf("\033[1;1H %s:LOL:%s",n,n);} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenLayers.Strategy.MinvuCustomCluster = OpenLayers.Class(OpenLayers.Strategy.Cluster, { | |
cluster: function (event) { | |
var isPan = (event && event.type == "moveend" && !event.zoomChanged); | |
if ((!event || event.zoomChanged || isPan) && this.features) { | |
var resolution = this.layer.map.getResolution(); | |
if (resolution != this.resolution || !this.clustersExist() || (event && event.recluster)) { | |
this.resolution = resolution; | |
var clusters = []; | |
var feature, clustered, cluster; | |
for (var i = 0; i < this.features.length; ++i) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var map, proj, selectControl, selectedFeature, sectorLayer; | |
proj = new OpenLayers.Projection("EPSG:4326"); | |
OpenLayers.Popup.MinvuPopup = OpenLayers.Class(OpenLayers.Popup.FramedCloud, { | |
autoSize: true, | |
maxSize: new OpenLayers.Size(300, 157), | |
minSize: new OpenLayers.Size(300, 157), | |
calculateRelativePosition: function () { | |
return 'tr'; | |
}, |
NewerOlder