Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

Knit One Compute One - For Knitters!

158 vues

Publié le

This talk was given at the NSW Knitters Guild Camp on June 18, 2017.

Publié dans : Technologie
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

Knit One Compute One - For Knitters!

  1. 1. P H O T O : L I S A C O C K B U R N KNIT ONE COMPUTE ONE Kris Howard @web_goddess
  2. 2. for num in number { if num%15 == 0{ print("(num) fizz buzz") } else if num % 3 == 0 { print("(num) fizz") } else if num % 5 == 0 { print("(num) buzz") } else { print(num) } }
  3. 3. Worked over a multiple of 24 stitches. Row 1 (RS): Knit Row 2: Purl Row 3: *(k2tog) 4 times, (yo, k1) 8 times, (k2tog) 4 times; rep from * to end. Row 4: Purl Repeat rows 1-4 until desired length.
  4. 4. Programming Knitting
  5. 5. Programming Knitting
  6. 6. Programming Knitting Me
  7. 7. BASIC CONCEPTS
  8. 8. COMPUTERS ARE DUMB
  9. 9. VARIABLES Integers, strings, Booleans
  10. 10. $needlesize = 4; $hooksize = “G”; $mysize = 38; $mysize = “large”; $increases = 75; $rows = 14; $length = 80; $neckline = “crew”; $pockets = 1;
  11. 11. CONTROL STRUCTURES
  12. 12. if ($mysize == “small”) { dothis; } else { dothis; }
  13. 13. if ($length == 85) { dothis; } else { dothis; }
  14. 14. if ($neckline == “crew”) { dothis; } else if ($neckline == “boat”) { dothis; } else { dothis; }
  15. 15. IF STATEMENT
  16. 16. Cast on 24 stitches.
  17. 17. FOR LOOP
  18. 18. $stitches = 24; for ($i = 0; $i < $stitches; i++) { caston(); }
  19. 19. Repeat to end of row.
  20. 20. WHILE LOOP
  21. 21. $currentStitch = 0; $lastStitch = 60; while ($currentStitch < $lastStitch) { knit(); currentStitch++; }
  22. 22. Cast on 242 (256, 270, 284) sts.
  23. 23. SWITCH STATEMENT
  24. 24. $mysize = 38; switch ($mysize) { case 38: caston(242); case 41: caston(256); case 43: caston(270); case 45: caston(284); }
  25. 25. SUBROUTINES
  26. 26. COROUTINES
  27. 27. Row 1: Side,O,*D,C,F,X,F,O,F,X*, D,B,D,A,E,B,E,**X,F,O,F,X,F,X,E**, O,Side,O,rep from * to * once, pm,F,O,F,X,F,C,F,W,F,O,F,pm, rep from ** to ** once, O.
  28. 28. PATTERN LANGUAGES
  29. 29. stitch-maps.com
  30. 30. Rows 1 and 3 (WS): Purl. Row 2: K1, *k2tog, k2, yo, k1, yo, k2, ssk, repeat from *. Row 4: *K2tog, k2, yo, k1, yo, k2, ssk, repeat from * to last st, k1.
  31. 31. https://knitml.sourceforge.io/
  32. 32. <pattern:pattern xmlns:pattern="http://www.knitml.com/schema/pattern" xmlns="http://www.knitml.com/schema/operations" xmlns:common="http:// www.knitml.com/schema/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.knitml.com/schema/pattern http://www.knitml.com/ schema/pattern-0.7.xsd http://www.knitml.com/schema/operations http:// www.knitml.com/schema/operations-0.7.xsd http://www.knitml.com/schema/common http://www.knitml.com/schema/common-0.7.xsd" version="0.7" xml:lang="en"> <pattern:directives> <pattern:instruction-definitions> <inline-instruction id="cross-2-over-2" label="2/2 LC"> <cross-stitches first="2" next="2" type="front" /> <knit>4</knit> </inline-instruction> <inline-instruction id="cross-2-behind-2" label="2/2 RC"> <cross-stitches first="2" next="2" type="back" /> <knit>4</knit> </inline-instruction> </pattern:instruction-definitions> </pattern:directives> <pattern:general-information> <pattern:name>Color Sampler Swatch</pattern:name> <pattern:description>A basic 2-color swatch sampler</pattern:description> <pattern:dimensions /> <pattern:gauge type="stockinette">
  33. 33. Pattern "en" { Directives { InstructionDefinitions { InlineInstruction 'cross-2-over-2' [label:"2/2 LC"] { cross 2 inFrontOf 2, k4 } InlineInstruction 'cross-2-behind-2' [label:"2/2 RC"] { cross 2 behind 2, k4 } } } GeneralInformation { Name: "Color Sampler Swatch" Description: "A basic 2-color swatch sampler" Dimensions Gauge 'stockinette' { StitchGauge: 5 stitchesPerInch RowGauge: 7 rowsPerInch } Techniques { Technique: "stranded knitting" KnittingEL
  34. 34. Time for some knitting…
  35. 35. KNITTING IS BINARY F L I C K R : S T E P H A N I E A S H E R
  36. 36. “DECODERHAT”BYZABETSTEWART
  37. 37. “BINARYSCARF”BYHEYCARRIEANN
  38. 38. “THEVIRALKNITTINGPROJECT"
  39. 39. R A V E L R Y : C Y NF L I C K R : D E V A B U R G E R
  40. 40. F L I C K R : A D A M K N I T S
  41. 41. F L I C K R : J A C Q U E L I N E - W
  42. 42. “MORSECODE”BYKATEATHERLEY
  43. 43. “BRAILLESOCKS”BYJESSICALANDERS
  44. 44. “ S C O R E B O A R D ” B Y M I C H E L L E H U N T E R F L I C K R : T O N Y & W A Y N E
  45. 45. F L I C K R : W E M A K E M I L A N O
  46. 46. FLICKR:MARCANET
  47. 47. SMEECH.CO.UK
  48. 48. SMEECH.CO.UK
  49. 49. A N D R E W S A L O M O N E P H O T O : B E C K Y S T E R N
  50. 50. knityak.com
  51. 51. F L I C K R : B E R Z O W S K A E - T E X T I L E S
  52. 52. F L I C K R : K A T H Y R E I D
  53. 53. Knitty: Know It All Bag
  54. 54. FLICKR:ST3F4N @web_goddess Kris Howard

×