Skip to content

Instantly share code, notes, and snippets.

View Hugoberry's full-sized avatar

Igor Cotruta Hugoberry

View GitHub Profile
@Hugoberry
Hugoberry / customEdge.html
Created January 17, 2024 09:22 — forked from davidjgraph/customEdge.html
Custom edge example for mxGraph
<!--
$Id: markers.html,v 1.4 2013/10/28 08:44:55 gaudenz Exp $
Copyright (c) 2006-2014, JGraph Ltd
Demonstrates creating a custom edge in mxGraph
-->
<html>
<head>
<title>Custom edge example for mxGraph</title>
@Hugoberry
Hugoberry / .block
Last active July 8, 2022 21:34 — forked from drzax/.block
Narrative Charts
license: mit
scrolling: true
height: 300
@Hugoberry
Hugoberry / rtlcompress.c
Created February 22, 2020 18:04 — forked from odzhan/rtlcompress.c
Compression using NT Layer DLL API
/**
BSD 3-Clause License
Copyright (c) 2019 Odzhan. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
@Hugoberry
Hugoberry / .gitattributes
Created February 11, 2020 22:49 — forked from SeanSobey/.gitattributes
Git to diff zip (or any compressed) files. See this (https://tante.cc/2010/06/23/managing-zip-based-file-formats-in-git/) article.
*[7z,.xz,.bzip2,.gzip,.tar,.zip,.wim,.ar,.arj,.cab,.chm,.cpio,.cramfs,.dmg,.ext,.fat,.gpt,.hfs,.ihex,.iso,.lzh,.lzma,.mbr,.msi,.nsis,.ntfs,.qcow2,.rar,.rpm,.squashfs,.udf,.uefi,.vdi,.vhd,.vmdk,.wim,.xar,.z] diff=archive
@Hugoberry
Hugoberry / CreateAzureBLOBusingPowershell
Last active September 16, 2019 21:43 — forked from jamiekt/CreateAzureBLOBusingPowershell
List Azure File Shared Storage using the REST API and Powershell
$method = "GET"
$headerDate = '2017-04-17'
$headers = @{"x-ms-version"="$headerDate"}
$StorageAccountName = "<your account name>"
$StorageAccountKey = "<your account key>"
$Url = "https://$StorageAccountName.file.core.windows.net/?comp=list"
$xmsdate = (get-date -format r).ToString()
$headers.Add("x-ms-date",$xmsdate)
$signatureString = "$method$([char]10)$([char]10)$([char]10)$contentLength$([char]10)$([char]10)$([char]10)$([char]10)$([char]10)$([char]10)$([char]10)$([char]10)$([char]10)"
@Hugoberry
Hugoberry / watchdog.ps1
Created August 21, 2019 21:43 — forked from ptman/watchdog.ps1
SuperMicro IPMI Watchdog for Windows
# coding: utf-8
# vim: set ts=4 sw=4 sts=4 si ai et ft=powershell:
# Copyright (c) 2013, ZenRobotics Ltd.
# author: Paul Tötterman <paul.totterman@zenrobotics.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
@Hugoberry
Hugoberry / gist:9561e5a41473ce19ca282a0e5e6cc1c6
Created October 16, 2018 08:57 — forked from sean3z/gist:b6426ed9dae521c4b56948ce2c6062b1
AB Benchmark Node.js (via Restify) - 10,000 requests (10 concurrent)
D:\www\apache-2.4.25\bin>ab.exe -n 10000 -c 10 http://localhost:8080/
This is ApacheBench, Version 2.3 <$Revision: 1757674 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software:
Server Hostname: localhost
Server Port: 8080
@Hugoberry
Hugoberry / .block
Created September 13, 2018 08:45 — forked from micahstubbs/.block
Sankey Particles | d3v4 & es2015+
border: no
license: Apache-2.0
@Hugoberry
Hugoberry / README.md
Last active September 13, 2018 08:44 — forked from 1wheel/README.md
regl-ladder

Rough draft of this chart.

We started out with a SVG animation, tried out Elijah's canvas sankey particles and ended up rewriting in regl to get more dots on the screen.

The final version gets better performance by passing in array of attibutes to the vertex shader - I'm not sure why that is.

Update: Ricky Reusser points out that I was creating a new array of points every frame with:

attributes: {x: () => data.map(d => d.x)}

Sparkline Line =
// Static line color
VAR LineColor = "#01B8AA"
// "Date" field used in this example along the X axis
VAR XMinDate = MIN('Table'[Date])
VAR XMaxDate = MAX('Table'[Date])
// Obtain overall min and overall max measure values when evaluated for each date