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
/* | |
Thrust bearing by Hans Loeblich | |
License CC BY-SA | |
*/ | |
/* [Hidden] */ | |
// constants | |
in = 25.4; | |
$fa = 0.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
//use <polyround.scad> // https://github.com/Irev-Dev/Round-Anything/blob/master/polyround.scad | |
$fs = 0.2; | |
$fa = 0.2; | |
total_h = 90; | |
fingers = 4; | |
d2 = 3; | |
d1 = (total_h - (fingers+1)*d2) / fingers; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Created in 2018 by Ryan A. Colyer. | |
// This work is released with CC0 into the public domain. | |
// https://creativecommons.org/publicdomain/zero/1.0/ | |
include <plot_function.scad> // https://www.thingiverse.com/thing:2391851 | |
finger_spacing = 21; | |
oblong_factor = 1.8; | |
ripple_sharpness = 0.6; // range [0:1] | |
grip_width = 20; |
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
from FreeCAD import Base | |
import math | |
class Protractor: | |
"""Reports the angle between two edges. | |
Select the edges and the result will be shown in Report View""" | |
def __init__(self): | |
self.firstEdge = None | |
Gui.Selection.addObserver(self) | |
FreeCAD.Console.PrintMessage("Select any 2 edges\n") |
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
-c | |
CMakeFiles/OpenSCAD.dir/src/export_amf.cc.o | |
-DEIGEN_DONT_ALIGN | |
-DENABLE_CGAL | |
-DENABLE_EXPERIMENTAL | |
-DENABLE_LIB3MF | |
-DENABLE_LIBZIP | |
-DENABLE_OPENCSG | |
-D__GCC | |
-DNDEBUG |
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
root@f12677981478:/mxe# make update-package-eigen && \ | |
> make JOBS=6 -j8 \ | |
> MXE_PLUGIN_DIRS=plugins/gcc7 \ | |
> MXE_TARGETS=x86_64-w64-mingw32.static.posix \ | |
> eigen | |
NEW eigen 3.2.5 --> 3.3.7 | |
sed -i 's/^\([^ ]*_VERSION *:=\).*/\1 3.3.7/' '/mxe/src/eigen.mk' | |
make -f 'Makefile' 'update-checksum-eigen' || { sed -i 's/^\([^ ]*_VERSION *:=\).*/\1 3.2.5/' '/mxe/src/eigen.mk'; exit 1; } | |
make[1]: Entering directory '/mxe' | |
mkdir -p '/mxe/pkg' && ( (wget --user-agent='Wget/1.18' -T 30 -t 3 -O '/mxe/pkg/.tmp-eigen-3.3.7.tar.bz2' 'https://bitbucket.org/eigen/eigen/get/3.3.7.tar.bz2' && true) ) && cat '/mxe/pkg/.tmp-eigen-3.3.7.tar.bz2' > '/mxe/pkg/eigen-3.3.7.tar.bz2' && rm '/mxe/pkg/.tmp-eigen-3.3.7.tar.bz2' || ( echo; echo 'Download failed!'; echo; rm -f '/mxe/pkg/eigen-3.3.7.tar.bz2' '/mxe/pkg/.tmp-eigen-3.3.7.tar.bz2'; ) && sed -i 's/^\([^ ]*_CHECKSUM *:=\).*/\1 '"`openssl dgst -sha256 '/mxe/pkg/eigen-3.3.7.tar.bz2' 2>/dev/null | sed -n 's,^.*\([0-9a-f]\{64\}\)$,\1,p'`"'/' '/mxe/src/eigen.mk' |
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
class A { private: friend int &operator<<(int &i, const A &value) { return i; } }; | |
#pragma GCC optimize ("-fno-ipa-cp-clone") | |
class B { }; | |
int &operator<<(int &i, const B &ast); |
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
#surface.dat | |
10 9 8 7 6 5 5 5 5 5 | |
9 8 7 6 6 4 3 2 1 0 | |
8 7 6 6 4 3 2 1 0 0 | |
7 6 6 4 3 2 1 0 0 0 | |
6 6 4 3 2 1 1 0 0 0 | |
6 6 3 2 1 1 1 0 0 0 | |
6 6 2 1 1 1 1 0 0 0 | |
6 6 1 0 0 0 0 0 0 0 | |
3 1 0 0 0 0 0 0 0 0 |
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
#include <gmp.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "../gmp-6.1.2/gmp-impl.h" | |
#include "../gmp-6.1.2/longlong.h" | |
static inline mp_limb_t | |
getbits (const mp_ptr p, mp_bitcnt_t bi, int nbits) | |
{ | |
int nbits_in_r; |