-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Aug 21, 2023
1 parent
d15851d
commit ffaf691
Showing
65 changed files
with
13,192 additions
and
1,373 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,230 @@ | ||
<!DOCTYPE html> | ||
<html lang="en-US" data-theme="light"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>An Interactive Version of colorcubes - hpc.social - Aggregated Commercial Blog</title> | ||
<meta name="description" content="Vendor and commercial posts in the hpc.social community"> | ||
<meta name="keywords" content=""> | ||
<base href="https://hpc.social/commercial-blog" /> | ||
|
||
<meta content="2022-10-21T20:58:02-06:00" property="article:published_time"> | ||
<meta content="https://hpc.social/about/" property="article:author"> | ||
|
||
<meta property="og:site_name" content="hpc.social - Aggregated Commercial Blog"> | ||
<meta property="og:type" content="article" /> | ||
<meta property="og:url" content="https://hpc.social/commercial-blog/2022/an-interactive-version-of-colorcubes/"/> | ||
<meta property="og:title" content="An Interactive Version of colorcubes - hpc.social - Aggregated Commercial Blog" /> | ||
<meta property="og:description" content="Vendor and commercial posts in the hpc.social community" /> | ||
<meta property="og:image" content="https://hpc.social/commercial-blog/assets/images/hpc-social-blue.png"/> | ||
<meta name="twitter:site" content="@hpc_social" /> | ||
<meta name="twitter:creator" content="@hpc_social" /> | ||
<meta name="twitter:card" content="summary"/> | ||
<meta property="twitter:title" content="An Interactive Version of colorcubes - hpc.social - Aggregated Commercial Blog" /> | ||
<meta property="twitter:description" content="Vendor and commercial posts in the hpc.social community" /> | ||
<meta property="twitter:image" content="https://hpc.social/commercial-blog/assets/images/hpc-social-blue.png" /> | ||
<link rel="stylesheet" href="/commercial-blog/assets/css/highlight.css"> | ||
|
||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Catamaran:wght@300&display=swap" rel="stylesheet"> | ||
|
||
<link rel="stylesheet" href="/commercial-blog/assets/css/style.css"> | ||
<link rel="shortcut icon" href="/commercial-blog/assets/images/hpc-social-blue.png" /> | ||
<link rel="alternate" type="application/atom+xml" title="hpc.social - Aggregated Commercial Blog" href="https://hpc.social/commercial-blog/atom.xml"> | ||
<link rel="alternate" type="application/json" title="hpc.social - Aggregated Commercial Blog" href="https://hpc.social/commercial-blog/feed.json" /> | ||
<link rel="sitemap" type="application/xml" title="sitemap" href="https://hpc.social/commercial-blog/sitemap.xml" /> | ||
<script type="application/ld+json"> | ||
{"@context":"https://schema.org","@type":"WebSite","author":{"@type":"Person","name":"hpc.social"},"description":"Vendor and commercial posts in the hpc.social community","headline":"hpc.social - Aggregated Commercial Blog","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"https://hpc.social/commercial-blog/assets/images/hpc-social-blue.png"},"name":"hpc.social"},"sameAs":["https://twitter.com/","https://github.com/"],"url":"https://hpc.social/commercial-blog"}</script> | ||
</head> | ||
<body> | ||
|
||
<div class="container"> | ||
<div class="profile"> | ||
<a href="https://hpc.social/commercial-blog/"><img src="/commercial-blog/assets/images/hpc-social-blue.png" class="profile-image"></a> | ||
<div class="profile-about"> | ||
<h2 style="margin-bottom: 0; font-weight: 700;">hpc.social</h2> | ||
|
||
|
||
<a href="https://twitter.com/hpc_social" target="_blank"><img src="/commercial-blog/assets/images/icon/twitter.svg" class="social-icon"></a> | ||
|
||
|
||
|
||
|
||
<a href="https://github.com/hpc-social" target="_blank"><img src="/commercial-blog/assets/images/icon/github.svg" class="social-icon"></a> | ||
|
||
|
||
<a href="/commercial-blog/about/"><img src="/commercial-blog/assets/images/icon/me.svg" class="social-icon"></a> | ||
<br> | ||
High Performance Computing <br> Practitioners <br> and friends /#hpc | ||
<br> | ||
<div class="mode" id="mode-switcher" onclick="toggleNightMode();"> | ||
<span></span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="post-header"> | ||
<div class="post-date">21.10.2022 · <span class="reading-time" title="Estimated read time"> | ||
|
||
2 mins read </span> | ||
</div> | ||
<div class="post-share"> | ||
Share: | ||
<a href="https://twitter.com/intent/tweet?source=tweetbutton&original_referer=https://hpc.social/an-interactive-version-of-colorcubes&text=An Interactive Version of colorcubes - https://hpc.social/an-interactive-version-of-colorcubes" target="_blank"><img src="https://hpc.social/commercial-blog/assets/images/icon/twitter.svg" class="social-icon"></a> | ||
</div> | ||
</div> | ||
|
||
<div class="tags-container" style="padding:10px; font-size:18px; font-style:italic"> | ||
This is a crosspost from <a target="_blank" href="https://blogs.mathworks.com/cleve">Cleve’s Corner: Cleve Moler on Mathematics and Computing</a> Cleve Moler is the author of the first MATLAB, one of the founders of MathWorks, and is currently Chief Mathematician at the company. He writes here about MATLAB, scientific computing and interesting mathematics.. See the original post <a target="_blank" href="https://blogs.mathworks.com/cleve/2022/10/21/an-interactive-version-of-colorcubes/?s_tid=feedtopost">here</a>.</div> | ||
|
||
<div class="blog-post-content"> | ||
<h1>An Interactive Version of colorcubes</h1> | ||
<div class="content"><!--introduction--><p>A 231-character static version of <a href="https://www.mathworks.com/matlabcentral/communitycontests/contests/5/entries/11543">colorcubes</a> in the current <a href="https://www.mathworks.com/matlabcentral/communitycontests/contests/5/entries">MiniHack</a> generated quite a bit of interest. So I am posting the full version, where you can change number of cubes and the view point, <a href="https://blogs.mathworks.com/cleve/files/colorcubes.m">at this link</a>.</p> | ||
<!--/introduction--><h3>Contents</h3><div><ul><li><a href="https://feeds.feedburner.com/mathworks/moler#2842fcd2-e0df-4ec2-bc84-82fad5a13e51">Animation</a></li><li><a href="https://feeds.feedburner.com/mathworks/moler#530668b0-ea28-4376-a885-fa4d1a9c2037">Quiz</a></li></ul></div> | ||
<h4>Animation<a name="2842fcd2-e0df-4ec2-bc84-82fad5a13e51"></a></h4><p><img alt="" hspace="5" src="http://blogs.mathworks.com/cleve/files/color_cubes.gif" vspace="5" /> </p> | ||
<h4>Quiz<a name="530668b0-ea28-4376-a885-fa4d1a9c2037"></a></h4><p>What is the color of the cubelet, or cubelets, in the center?</p> | ||
<!-- | ||
function grabCode_0796b1601674403b8501c6cc237cbce2() { | ||
// Remember the title so we can use it in the new page | ||
title = document.title; | ||
// Break up these strings so that their presence | ||
// in the Javascript doesn't mess up the search for | ||
// the MATLAB code. | ||
t1='0796b1601674403b8501c6cc237cbce2 ' + '##### ' + 'SOURCE BEGIN' + ' #####'; | ||
t2='##### ' + 'SOURCE END' + ' #####' + ' 0796b1601674403b8501c6cc237cbce2'; | ||
b=document.getElementsByTagName('body')[0]; | ||
i1=b.innerHTML.indexOf(t1)+t1.length; | ||
i2=b.innerHTML.indexOf(t2); | ||
code_string = b.innerHTML.substring(i1, i2); | ||
code_string = code_string.replace(/REPLACE_WITH_DASH_DASH/g,'--'); | ||
// Use /x3C/g instead of the less-than character to avoid errors | ||
// in the XML parser. | ||
// Use '\x26#60;' instead of '<' so that the XML parser | ||
// doesn't go ahead and substitute the less-than character. | ||
code_string = code_string.replace(/\x3C/g, '\x26#60;'); | ||
copyright = 'Copyright 2022 The MathWorks, Inc.'; | ||
w = window.open(); | ||
d = w.document; | ||
d.write('<pre>\n'); | ||
d.write(code_string); | ||
// Add copyright line at the bottom if specified. | ||
if (copyright.length > 0) { | ||
d.writeln(''); | ||
d.writeln('%%'); | ||
if (copyright.length > 0) { | ||
d.writeln('% _' + copyright + '_'); | ||
} | ||
} | ||
d.write('</pre>\n'); | ||
d.title = title + ' (MATLAB code)'; | ||
d.close(); | ||
} | ||
--><p style="text-align: right; font-size: xx-small; font-weight: lighter; font-style: italic; color: gray;"><br /><a href=""><span style="font-size: x-small; font-style: italic;">Get | ||
the MATLAB code <noscript>(requires JavaScript)</noscript></span></a><br /><br /> | ||
Published with MATLAB® R2022a<br /></p> | ||
</div> | ||
<!-- | ||
0796b1601674403b8501c6cc237cbce2 ##### SOURCE BEGIN ##### | ||
%% An Interactive Version of colorcubes | ||
% A 231-character static version of | ||
% <https://www.mathworks.com/matlabcentral/communitycontests/contests/5/entries/11543 | ||
% colorcubes> in the current | ||
% <https://www.mathworks.com/matlabcentral/communitycontests/contests/5/entries | ||
% MiniHack> generated quite a bit of interest. | ||
% So I am posting the full version, where you can change number of cubes | ||
% and the view point, | ||
% <https://blogs.mathworks.com/cleve/files/colorcubes.m | ||
% at this link>. | ||
%% Animation | ||
% | ||
% <<color_cubes.gif>> | ||
% | ||
%% Quiz | ||
% What is the color of the cubelet, or cubelets, in the center? | ||
##### SOURCE END ##### 0796b1601674403b8501c6cc237cbce2 | ||
--> | ||
|
||
</div> | ||
<div class="tags-container"> | ||
|
||
</div> | ||
<style> | ||
#uppy { | ||
position: fixed; | ||
bottom: 50px; | ||
right: 50px; | ||
z-index: 99; | ||
border: none; | ||
outline: none; | ||
background-color: darkturquoise; | ||
color: black; | ||
cursor: pointer; | ||
margin:15px; | ||
border-radius: 10px; | ||
width: 100px; | ||
height: 20px; | ||
} | ||
|
||
#returnTop:hover { | ||
background-color: #555; | ||
} | ||
</style> | ||
|
||
<button id="uppy" title="Return to Top" class="btn btn-lg">Back to top</button> | ||
|
||
<script> | ||
(function() { | ||
|
||
var scrollTop = function() { | ||
window.scrollTo(0, 0); | ||
}; | ||
|
||
document.getElementById('uppy').onclick = scrollTop; | ||
|
||
})(); | ||
</script> | ||
|
||
|
||
<div class="navigation"> | ||
|
||
<a class="prev" href="/commercial-blog/2022/modfun-a-short-program-produces-impressive-graphics/">< modfun, A Short Program Produces Impressive Graphics</a> | ||
|
||
<a class="next" href="/commercial-blog/2022/christian-reinsch-roland-bulirsch-and-the-svd/">Christian Reinsch, Roland Bulirsch, and the SVD ></a> | ||
|
||
</div> | ||
|
||
<div class="footer"> | ||
<span style="padding-right:10px"><font color="red">©️ </font><a href="https://hpc.social"><b>hpc.social</b> community</a></span> | ||
| <a style="padding-left:10px; padding-right:10px" href="/commercial-blog/archive/">Archive</a> | ||
| <a style="padding-left:10px; padding-right:10px" href="/commercial-blog/">Posts</a> | ||
| <a style="padding-left:10px; padding-right:10px" href="/commercial-blog/about/">About</a> | ||
| <a style="padding-left:10px; padding-right:10px" href="https://hpc.social/blog">hpc.social blogs</a> | ||
| <a style="padding-left:37%;" target="_blank" href="https://github.com/hpc-social/commercial-blog">Add Your Blog</a> | ||
</div> | ||
</div> | ||
<script src="/commercial-blog/assets/scripts.js"></script> | ||
<script type="text/javascript"> | ||
if (localStorage.theme === 'light') { | ||
document.documentElement.setAttribute('data-theme', 'light'); | ||
document.getElementById('mode-switcher').classList.add('active'); | ||
} else if (localStorage.theme === 'dark' || localStorage.theme === '' || (!('theme' in localStorage))) { | ||
document.documentElement.setAttribute('data-theme', 'dark'); | ||
document.getElementById('mode-switcher').classList.add('active'); | ||
} | ||
</script> | ||
</body> | ||
</html> | ||
|
Oops, something went wrong.