Skip to content

Instantly share code, notes, and snippets.

View haehn's full-sized avatar
🤠

Daniel Haehn haehn

🤠
View GitHub Profile
@haehn
haehn / sam.js
Created May 12, 2023 02:38
SegmentAnything for Cornerstone.js (JS injection!)
//
// VISIT DANIELHAEHN.COM !
//
// Thanks to Alireza Seghi and Kevin Wang for all the help!
//
//
//
// GET EMBEDDING FOR CANVAS
element = cornerstone.getEnabledElements()[0];
@haehn
haehn / creative_commons_4_by_license.tex
Created January 12, 2019 21:23
Creative Commons Attribution 4.0 International Public License LaTeX Code
%
%
% Creative Commons Attribution 4.0 International Public License
% from: https://creativecommons.org/licenses/by/4.0/legalcode
%
\RequirePackage{enumitem} % we need this
\setlistdepth{9} % and this
\section{Creative Commons Attribution 4.0 International Public License}
@swederik
swederik / xtkCTM.html
Last active December 17, 2015 18:29
Testing CTM support for XTK
<html>
<head>
<title>XTK TEST WITHOUT COMPILATION</title>
<script type="text/javascript" src="http://localhost:8000/X/lib/google-closure-library/closure/goog/base.js"></script>
<script type="text/javascript" src="http://localhost:8000/X/xtk-deps.js"></script>
<script type="text/javascript" src="http://localhost:8000/xtktest/lzma.js"></script>
<script type="text/javascript">
@shama
shama / jmpress-step-events.html
Created March 14, 2012 05:03
How to use jmpress.js step events
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>jmpress.js | how to use jmpress.js step events</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="jmpress.js"></script>
</head>