This file contains hidden or 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
| SHELL = /bin/bash | |
| OUT = $(shell basename `pwd`) | |
| watch: | |
| ulimit -v 1000000 | |
| set -m | |
| trap 'pkill -P $$$$' EXIT INT TERM | |
| pgrep f3d || f3d --watch $(OUT).step & | |
| ls Makefile config.ini $(OUT)*.step | entr make $(OUT).gcode & | |
| ghcid -r & | |
| gcodeviewer $(OUT).gcode |
This file contains hidden or 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
| {-# LANGUAGE BlockArguments #-} | |
| {-# LANGUAGE ForeignFunctionInterface #-} | |
| {-# LANGUAGE QuasiQuotes #-} | |
| {-# LANGUAGE ScopedTypeVariables #-} | |
| {-# LANGUAGE TemplateHaskell #-} | |
| {-# LANGUAGE ViewPatterns #-} | |
| -- | propagate face colors | |
| module Rapids.Color | |
| ( setColor, |
This file contains hidden or 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
| {-# LANGUAGE ForeignFunctionInterface #-} | |
| {-# LANGUAGE QuasiQuotes #-} | |
| {-# LANGUAGE ScopedTypeVariables #-} | |
| {-# LANGUAGE TemplateHaskell #-} | |
| {-# LANGUAGE ViewPatterns #-} | |
| {-# LANGUAGE BlockArguments #-} | |
| module Color where | |
| -- import Waterfall.Internal.Solid |
This file contains hidden or 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
| SHELL = /bin/bash | |
| OUT = $(shell basename `pwd`) | |
| watch: | |
| ulimit -v 1000000 | |
| set -m | |
| trap 'pkill -P $$$$' EXIT | |
| pgrep f3d || f3d --watch $(OUT).step & | |
| ls Makefile config.ini $(OUT)*.step | entr make $(OUT).gcode & | |
| ghcid -r & | |
| gcodeviewer $(OUT).gcode |
This file contains hidden or 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
| 7663 , 788 , 722 , 779 , 854 , 193 , 194 | |
| *ELEMENT,TYPE=C3D6,ELSET=contactelements_st1_in1_at1_it2 | |
| 7664 , 788 , 722 , 779 , 854 , 193 , 194 | |
| *ELEMENT,TYPE=C3D6,ELSET=contactelements_st1_in1_at1_it2 | |
| 7665 , 788 , 722 , 779 , 854 , 193 , 194 | |
| *ELEMENT,TYPE=C3D6,ELSET=contactelements_st1_in1_at1_it2 | |
| 7666 , 788 , 722 , 779 , 854 , 193 , 194 | |
| *ELEMENT,TYPE=C3D6,ELSET=contactelements_st1_in1_at1_it2 | |
| 7667 , 788 , 722 , 779 , 854 , 193 , 194 | |
| *ELEMENT,TYPE=C3D6,ELSET=contactelements_st1_in1_at1_it2 |
This file contains hidden or 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
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE TypeOperators #-} | |
| {-# LANGUAGE BlockArguments #-} | |
| -- | cascade, waterfall, rapids | |
| -- simplify waterfall-cad expressions by complicating the types and type errors | |
| -- same as before with a fromInteger 0 case added | |
| module Rapids (module Rapids, module Linear, module Control.Lens, module Waterfall) where | |
| import Control.Lens hiding (prism) |
This file contains hidden or 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
| // https://youtu.be/1A2gVRfUDPY | |
| // start the window, resize it, press enter to start recording out.mp4 | |
| #ifndef RAYLIBD | |
| #include "raygui.h" | |
| #include "raylib.h" | |
| #include "raymath.h" | |
| #include <math.h> | |
| #include <stdbool.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> |
This file contains hidden or 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
| echo ================= | |
| sed '/\*MATERIAL, NAME=MaterialSolid/{ n; N; c\ | |
| *HYPERELASTIC, NEO-HOOKE\ | |
| 0.738,1e3 | |
| }' -i FEMMeshNetgen.inp | |
| # freecad uses MPa, | |
| # it converges for high values of *SURFACE BEHAVIOR | |
| # | |
| # https://rsmith.home.xs4all.nl/engineering/mooney-rivlin-rubber-data-for-calculix.html |
This file contains hidden or 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
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE TypeOperators #-} | |
| -- moved to https://github.com/aavogt/battery-adapter | |
| -- | cascade, waterfall, rapids | |
| -- simplify waterfall-cad expressions by complicating the types and type errors | |
| module Rapids (module Rapids, module Linear, module Control.Lens, module Waterfall) where | |
| import Control.Lens hiding (prism) | |
| import Data.Maybe | |
| import Data.Proxy (Proxy (..)) |
This file contains hidden or 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
| -- | 2d version of https://gist.github.com/aavogt/8fb7162e572d72049748e1e42b12bbd2 | |
| -- | |
| -- Example output: | |
| -- https://i.ibb.co/yFBtS903/cup.png | |
| -- | |
| -- > p0 = execPath $ | |
| -- > do | |
| -- > hliner 140 | |
| -- > vliner 160 | |
| -- > hliner 140 |
NewerOlder