Skip to content

Instantly share code, notes, and snippets.

View jramshur's full-sized avatar

John Ramshur jramshur

View GitHub Profile
@jramshur
jramshur / humanBarGraft.dax
Last active August 30, 2023 15:59
Power BI - SVG human bar graft
humanImageURL =
// Refernce: https://hatfullofdata.blog/svg-in-power-bi-part-3/
// user defined variables
VAR _kpiValue = [_test_SVG_testvalue] //bar value between 0 and 1, use this to inject your kpi value
VAR _ColorForgroundColor = "#4040ef"
VAR _ColorBackground = "gray"
// User defined Icon path for svg. This defines the icon shape.
VAR _svg_IconPath =
@jramshur
jramshur / .gitignore
Last active September 14, 2015 23:49 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
n = input('Enter a number: ');
switch n
case -1
disp('negative one')
case 0
disp('zero')
case 1
disp('positive one')