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
/*jslint node*/ | |
"use strict"; | |
const jscad = require("@jscad/modeling"); | |
const {vec2, vec3} = jscad.maths; | |
const {colorize} = jscad.colors; | |
const {cylinder, sphere, torus} = jscad.primitives; | |
const {rotate, scale, translate} = jscad.transforms; | |
let edgeCylinder = cylinder({height: 1, radius: 0.01}); // cached |
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
m=2^500000500001-1; | |
## | |
d=2 * 1663403835355 * 500000500001 + 1; | |
## | |
m%d | |
## | |
#binary(d) | |
## |
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
#!/bin/bash | |
set -x | |
apt-get update 2>&1 > /dev/null | |
apt-get install -y git 2>&1 > /dev/null | |
usermod -a -G video root | |
echo ROC_ENABLE_PRE_VEGA=1 >> /etc/environment | |
echo HSA_OVERRIDE_GFX_VERSION=8.0.3 >> /etc/environment |
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
#!/bin/bash | |
set -x | |
apt-get update 2>&1 > /dev/null | |
apt-get install -y git 2>&1 > /dev/null | |
usermod -a -G video root | |
echo ROC_ENABLE_PRE_VEGA=1 >> /etc/environment | |
echo HSA_OVERRIDE_GFX_VERSION=8.0.3 >> /etc/environment |
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
See comment |
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
const jscad = require('@jscad/modeling') | |
const { translate } = jscad.transforms | |
const { subtract } = jscad.booleans | |
const { extrudeLinear } = jscad.extrusions | |
const { rectangle } = jscad.primitives | |
const { geom2 } = jscad.geometries | |
h=43 | |
l1=78 | |
l2=95 |
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
\\ a b c d e | |
\\ l m n f o | |
\\ k p g u v | |
\\ j h x r y | |
\\ i q w t s | |
\\ps=[3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 61, 71, 73, 79, 83, 101, 103, 107, 109, 113]; | |
ps=[3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 113]; | |
used=Vec(0,25); |
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
readvec("mpe.gp"); | |
srch(P)={ | |
my(M=oo); | |
my(S=[]); | |
my(used=Vec(0, 9*P[#P])); | |
my(ismpe=Vec(0,mpe[#mpe])); | |
foreach(mpe,p,ismpe[p]=1); | |
foreach(P,a,used[a]=1; | |
foreach(P,b,if(!used[b],used[b]=1; |
This file has been truncated, but you can view the full file.
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
p=2^136279841-1; | |
## |
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
//======================================================================= | |
// Copyright 2024 | |
// Author: Hermann Stamm-Wilbrandt | |
// | |
// Distributed under the Boost Software License, Version 1.0. (See | |
// accompanying file LICENSE_1_0.txt or copy at | |
// http://www.boost.org/LICENSE_1_0.txt) | |
//======================================================================= | |
#include <iostream> | |
#include <boost/graph/undirected_graph.hpp> |
NewerOlder