Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pmp-accessibility
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
teaching-materials
pmp-accessibility
Merge requests
!39
An error occurred while fetching the assigned milestone of the selected merge_request.
Added compiled knit code
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Added compiled knit code
week7-edits
into
CSE590b-23WI
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Jennifer Mankoff
requested to merge
week7-edits
into
CSE590b-23WI
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
CSE590b-23WI
CSE590b-23WI (base)
and
latest version
latest version
25c7207d
1 commit,
2 years ago
1 file
+
29
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
slides/3dprinting.html
+
29
−
0
Options
@@ -689,7 +689,36 @@ with Carrier as c1:{
@@ -689,7 +689,36 @@ with Carrier as c1:{
knit_colored_stripe(c2); // will use c2
knit_colored_stripe(c2); // will use c2
knit_stripe(); // starts using c1 again
knit_stripe(); // starts using c1 again
}
}
```
```
---
# Compiled Code
```python
;!knitout-2
;;Machine: SWG091N2
;;Position: Center
inhook 1 ;Activating carrier 1
;KS: Cast on 20loops
tuck - f19 1 ; tuck loops: [0 on yarn C1.1]. # happens 9 more times on odd needles
[...]
tuck - f1 1 ; tuck loops: [9 on yarn C1.1].
releasehook 1 ;
tuck + f0 1 ; tuck loops: [10 on yarn C1.1]. # happens 9 more times on even needles
[...]
tuck + f18 1 ; tuck loops: [19 on yarn C1.1].
knit - f19 1 ;knit loops: [20 on yarn C1.1]. # knits 20 loops (all needles)
[...]
knit - f0 1 ;knit loops: [39 on yarn C1.1].
knit + f0 1 ;knit loops: [40 on yarn C1.1]. # knits 20 loops (all needles)
[...]
knit + f19 1 ;knit loops: [59 on yarn C1.1]. # continues to do more rows
[...]
inhook 2 ;Activating carrier 2 # changes carrier (color)
[...]
```
---
---
# Knitting a stripe
# Knitting a stripe
Loading