4
4
< meta charset ="utf-8 ">
5
5
< meta name ="generator " content ="pandoc ">
6
6
< title > </ title >
7
- < meta name ="apple-mobile-web-app-capable " content ="yes " / >
8
- < meta name ="apple-mobile-web-app-status-bar-style " content ="black-translucent " / >
9
- < meta name ="viewport " content ="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no ">
10
- < link rel ="stylesheet " href ="reveal.js/css/reveal.css "/ >
7
+ < meta name ="apple-mobile-web-app-capable " content ="yes ">
8
+ < meta name ="apple-mobile-web-app-status-bar-style " content ="black-translucent ">
9
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui ">
10
+ < link rel ="stylesheet " href ="reveal.js/css/reveal.css ">
11
11
< style type ="text/css "> code {white-space : pre;}</ style >
12
12
< style type ="text/css ">
13
13
div .sourceCode { overflow-x : auto; }
48
48
code > span .in { color : # 7f9f7f ; font-weight : bold; } /* Information */
49
49
</ style >
50
50
< link rel ="stylesheet " href ="reveal.js/css/theme/black.css " id ="theme ">
51
- <!-- If the query includes 'print-pdf', include the PDF print sheet -->
51
+ <!-- Printing and PDF exports -->
52
52
< script >
53
- if ( window . location . search . match ( / p r i n t - p d f / gi ) ) {
54
- var link = document . createElement ( 'link' ) ;
55
- link . rel = 'stylesheet' ;
56
- link . type = 'text/css' ;
57
- link . href = 'reveal.js/css/print/pdf.css' ;
58
- document . getElementsByTagName ( 'head' ) [ 0 ] . appendChild ( link ) ;
59
- }
53
+ var link = document . createElement ( 'link' ) ;
54
+ link . rel = 'stylesheet' ;
55
+ link . type = 'text/css' ;
56
+ link . href = window . location . search . match ( / p r i n t - p d f / gi ) ? 'reveal.js/css/print/pdf.css' : 'reveal.js/css/print/paper.css' ;
57
+ document . getElementsByTagName ( 'head' ) [ 0 ] . appendChild ( link ) ;
60
58
</ script >
61
59
<!--[if lt IE 9]>
62
60
<script src="reveal.js/lib/js/html5shiv.js"></script>
67
65
< div class ="slides ">
68
66
69
67
70
- < section > < section id ="programmering-i-python " class ="titleslide slide level1 "> < h1 > Programmering i Python</ h1 > </ section > < h3 id ="lærerkonferanse-oslo- 2016 "> Lærerkonferanse Oslo 2016</ h3 > < section id ="hva-ser-jeg-nå " class ="slide level2 ">
68
+ < section > < section id ="programmering-i-python " class ="titleslide slide level1 "> < h1 > Programmering i Python</ h1 > </ section > < h3 id ="norconsult---sandvika- 2016 "> Norconsult - Sandvika 2016</ h3 > < section id ="hva-ser-jeg-nå " class ="slide level2 ">
71
69
< h1 > Hva ser jeg nå?</ h1 >
72
70
< p > Nettleseren Chromium som viser nettsiden < code > http://teodorlu.github.io/python-intro/</ code > i fullskjerm.</ p >
73
71
< p > Gå inn her på egen maskin! Da kan du se tidligere lysbilder, og er ikke avhengig av hvor vi er.</ p >
72
+ </ section > < section id ="hva-gjør-jeg-nå " class ="slide level2 ">
73
+ < h1 > Hva gjør jeg nå?</ h1 >
74
+ < p > Du er på Python-kurs! Kurs med fartstid:</ p >
75
+ < ul >
76
+ < li > < a href ="http://kidsakoder.no/konferanser/juni2016/ "> Lærerkonferanse Teknologihuset, juni 2016</ a > </ li >
77
+ < li > Kodeklubben høsten 2016</ li >
78
+ < li > < a href ="http://kidsakoder.no/konferanser/oslo2016/ "> Lærerkonferanse Teknologihuset, november 2016</ a > </ li >
79
+ < li > Lærerkonferanse Gardermoen, november 2016</ li >
80
+ < li > Internkurs Norconsult, Sandvika, november 2016</ li >
81
+ </ ul >
74
82
</ section > < section id ="hvem-er-vi " class ="slide level2 ">
75
83
< h1 > Hvem er vi?</ h1 >
76
84
< p > Teodor Heggelund</ p >
77
85
< figure >
78
- < img src ="http://www.norconsult.com/Images/Logos/logo_norconsult_200x200.jpg " alt ="" />
86
+ < img src ="http://www.norconsult.com/Images/Logos/logo_norconsult_200x200.jpg " />
79
87
</ figure >
80
88
</ section > < section class ="slide level2 ">
81
89
82
90
< p > Alexander Perry</ p >
83
91
< figure >
84
- < img src ="http://kampanje.com/contentassets/ef767832064f4b5b853db52dee9ca940/logo_bouvet_222x222px.png " alt ="" />
92
+ < img src ="http://kampanje.com/contentassets/ef767832064f4b5b853db52dee9ca940/logo_bouvet_222x222px.png " />
85
93
</ figure >
86
94
</ section > </ section >
87
95
< section > < section id ="hvorfor-python " class ="titleslide slide level1 "> < h1 > Hvorfor Python?</ h1 > </ section > < section id ="for-begynnere " class ="slide level2 ">
@@ -101,24 +109,23 @@ <h1><em>og</em> viderekommende</h1>
101
109
</ section > < section id ="driver-new-york-times " class ="slide level2 ">
102
110
< h1 > Driver New York Times</ h1 >
103
111
< figure >
104
- < img src ="http://www.slate.com/content/dam/slate/articles/life/culturebox/2014/01/140108_CBOX_NYTimesRedesign.jpg.CROP.promo-mediumlarge.jpg " alt ="" />
112
+ < img src ="http://www.slate.com/content/dam/slate/articles/life/culturebox/2014/01/140108_CBOX_NYTimesRedesign.jpg.CROP.promo-mediumlarge.jpg " />
105
113
</ figure >
106
114
</ section > < section id ="brukes-av-nasa " class ="slide level2 ">
107
115
< h1 > Brukes av NASA</ h1 >
108
116
< figure >
109
- < img src ="http://www.nasa.gov/sites/default/files/thumbnails/image/ocs_iss_0.jpg " alt ="" />
117
+ < img src ="http://www.nasa.gov/sites/default/files/thumbnails/image/ocs_iss_0.jpg " />
110
118
</ figure >
111
119
</ section > < section id ="brukes-av-google " class ="slide level2 ">
112
120
< h1 > Brukes av Google</ h1 >
113
121
< figure >
114
- < img src ="https://www.google.com/selfdrivingcar/images/home-where.jpg " alt ="" />
115
- </ figure >
116
- </ section > < section id ="driver-beregninger " class ="slide level2 ">
117
- < h1 > Driver beregninger</ h1 >
118
- < p > Troll II, 1995</ p >
119
- < figure >
120
- < img src ="http://www.norskpetroleum.no/wp-content/uploads/Troll-A-platform-Photo-%C3%98yvind-Hagen-Statoil.jpg " alt ="" />
122
+ < img src ="https://www.google.com/selfdrivingcar/images/home-where.jpg " />
121
123
</ figure >
124
+ <!-- ## Driver beregninger
125
+
126
+ Troll II, 1995
127
+
128
+  -->
122
129
</ section > </ section >
123
130
< section > < section id ="verktøy " class ="titleslide slide level1 "> < h1 > Verktøy</ h1 > </ section > < section id ="hva-trenger-vi " class ="slide level2 ">
124
131
< h1 > Hva trenger vi?</ h1 >
@@ -138,7 +145,7 @@ <h1>Last ned Python</h1>
138
145
< h1 > Python-skallet i IDLE</ h1 >
139
146
< p > Et skall lar oss skrive en linje og tolke den.</ p >
140
147
< figure >
141
- < img src ="assets/idle-shell.png " alt ="" />
148
+ < img src ="assets/idle-shell.png " />
142
149
</ figure >
143
150
</ section > < section id ="python-skallet-i-idle-1 " class ="slide level2 ">
144
151
< h1 > Python-skallet i IDLE</ h1 >
@@ -149,32 +156,32 @@ <h1>Python-skallet i IDLE</h1>
149
156
</ section > < section id ="teksteditoren-i-idle " class ="slide level2 ">
150
157
< h1 > Teksteditoren i IDLE</ h1 >
151
158
< figure >
152
- < img src ="assets/idle-new-file.png " alt ="" />
159
+ < img src ="assets/idle-new-file.png " />
153
160
</ figure >
154
161
</ section > < section id ="teksteditoren-i-idle-1 " class ="slide level2 ">
155
162
< h1 > Teksteditoren i IDLE</ h1 >
156
163
< p > Vi åpner teksteditoren ved å lage en ny fil fra Python-skallet:</ p >
157
164
< p > < code > File</ code > --> < code > New file</ code > (< code > Ctrl+N</ code > ) gir oss en tom fil:</ p >
158
165
< figure >
159
- < img src ="assets/idle-empty-file.png " alt ="" />
166
+ < img src ="assets/idle-empty-file.png " />
160
167
</ figure >
161
168
</ section > < section id ="teksteditoren-i-idle-2 " class ="slide level2 ">
162
169
< h1 > Teksteditoren i IDLE</ h1 >
163
170
< p > Først lagrer vi filen der vi vil ha den, og kaller den < code > hello.py</ code > ...</ p >
164
171
< figure >
165
- < img src ="assets/idle-save-as.png " alt ="" />
172
+ < img src ="assets/idle-save-as.png " />
166
173
</ figure >
167
174
</ section > < section id ="teksteditoren-i-idle-3 " class ="slide level2 ">
168
175
< h1 > Teksteditoren i IDLE</ h1 >
169
176
< p > ... så kjører vi den for å se at alt er i orden ...</ p >
170
177
< figure >
171
- < img src ="assets/idle-run-module.png " alt ="" />
178
+ < img src ="assets/idle-run-module.png " />
172
179
</ figure >
173
180
</ section > < section id ="teksteditoren-i-idle-4 " class ="slide level2 ">
174
181
< h1 > Teksteditoren i IDLE</ h1 >
175
182
< p > ... og en tom fil gjør ... ingenting.</ p >
176
183
< figure >
177
- < img src ="assets/idle-nothing-happened.png " alt ="" />
184
+ < img src ="assets/idle-nothing-happened.png " />
178
185
</ figure >
179
186
</ section > </ section >
180
187
< section > < section id ="variabler " class ="titleslide slide level1 "> < h1 > Variabler</ h1 > </ section > < section id ="hva-er-en-variabel " class ="slide level2 ">
@@ -224,12 +231,12 @@ <h1>Tekstmanipulering</h1>
224
231
< section > < section id ="stemningen-i-python " class ="titleslide slide level1 "> < h1 > Stemningen i Python</ h1 > </ section > < section id ="navnet " class ="slide level2 ">
225
232
< h1 > Navnet?</ h1 >
226
233
< figure >
227
- < img src ="http://www.anglotopia.net/wp-content/uploads/2015/05/Monty-Python-and-The-Holy-Grail-40th_640.jpg " alt ="" />
234
+ < img src ="http://www.anglotopia.net/wp-content/uploads/2015/05/Monty-Python-and-The-Holy-Grail-40th_640.jpg " />
228
235
</ figure >
229
236
</ section > < section class ="slide level2 ">
230
237
231
238
< figure >
232
- < img src ="http://imgs.xkcd.com/comics/python.png " alt ="" />
239
+ < img src ="http://imgs.xkcd.com/comics/python.png " />
233
240
</ figure >
234
241
< p > Fra < a href ="http://xkcd.com/353/ "> XKCD</ a > .</ p >
235
242
</ section > </ section >
@@ -414,7 +421,7 @@ <h1>Hva er for-løkker?</h1>
414
421
</ ul >
415
422
</ section > < section id ="for-løkker-i-python " class ="slide level2 ">
416
423
< h1 > For-løkker i Python</ h1 >
417
- < div class ="sourceCode "> < pre class ="sourceCode python "> < code class ="sourceCode python "> < span class ="cf "> for</ span > i < span class ="op "> in</ span > < span class ="bu "> range</ span > (< span class ="dv "> 100</ span > ):
424
+ < div class ="sourceCode "> < pre class ="sourceCode python "> < code class ="sourceCode python "> < span class ="cf "> for</ span > i < span class ="kw "> in</ span > < span class ="bu "> range</ span > (< span class ="dv "> 100</ span > ):
418
425
< span class ="bu "> print</ span > (i)</ code > </ pre > </ div >
419
426
< ul >
420
427
< li > < code > range(4)</ code > gir < code > [0, 1, 2, 3]</ code > </ li >
@@ -424,7 +431,7 @@ <h1>For-løkker i Python</h1>
424
431
</ section > < section id ="flere-for-løkker-i-python " class ="slide level2 ">
425
432
< h1 > Flere for-løkker i Python</ h1 >
426
433
< div class ="sourceCode "> < pre class ="sourceCode python "> < code class ="sourceCode python "> mangeTall < span class ="op "> =</ span > [< span class ="dv "> 1</ span > ,< span class ="dv "> 2</ span > ,< span class ="dv "> 3</ span > ,< span class ="dv "> 4</ span > ,< span class ="dv "> 5</ span > ,< span class ="dv "> 6</ span > ,< span class ="dv "> 7</ span > ,< span class ="dv "> 8</ span > ,< span class ="dv "> 9</ span > ]
427
- < span class ="cf "> for</ span > tall < span class ="op "> in</ span > mangeTall
434
+ < span class ="cf "> for</ span > tall < span class ="kw "> in</ span > mangeTall
428
435
< span class ="bu "> print</ span > (< span class ="st "> "Sjekker om "</ span > < span class ="op "> +</ span > < span class ="bu "> str</ span > (tall) < span class ="op "> +</ span > < span class ="st "> " er et partall"</ span > )
429
436
430
437
< span class ="cf "> if</ span > tall < span class ="op "> %</ span > < span class ="dv "> 2</ span > :
@@ -441,10 +448,10 @@ <h1>Oppgave: mattespill 2!</h1>
441
448
< section > < section id ="programmer-ditt-eget-gjettespill " class ="titleslide slide level1 "> < h1 > Programmer ditt eget gjettespill!</ h1 > </ section > < section id ="hø " class ="slide level2 ">
442
449
< h1 > Hø?</ h1 >
443
450
< figure >
444
- < img src ="assets/guess_my_number_illustration.png " alt ="" />
451
+ < img src ="assets/guess_my_number_illustration.png " />
445
452
</ figure >
446
- </ section > < section id ="attributter " class ="slide level2 ">
447
- < h1 > Attributter </ h1 >
453
+ </ section > < section id ="takk-til-barski " class ="slide level2 ">
454
+ < h1 > Takk til Barski </ h1 >
448
455
< p > Spill og illustrasjon er hentet fra den strålende boka "Land of Lisp" av Conrad Barski, og tilpasset Python.</ p >
449
456
< p > Musikkvideo:</ p >
450
457
< iframe width ="560 " height ="315 " src ="https://www.youtube.com/embed/HM1Zb3xmvMc " frameborder ="0 " allowfullscreen >
@@ -537,11 +544,144 @@ <h1>Hva når vi vinner?</h1>
537
544
< span class ="co "> 'Yippie!!!'</ span > </ code > </ pre > </ div >
538
545
</ section > < section id ="binærsøk " class ="slide level2 ">
539
546
< h1 > "Binærsøk"</ h1 >
540
- < p > Gratulerer, dere har nå implementert et binærsøk!</ p >
547
+ < p > Gratulerer, dere har nå implementert et binærsøk! Binærsøk er en av grunnene til at Google-søk er raske.</ p >
548
+ </ section > </ section >
549
+ < section > < section id ="python-og-abaqus " class ="titleslide slide level1 "> < h1 > Python og Abaqus</ h1 > </ section > < section id ="skallet-i-abaqus " class ="slide level2 ">
550
+ < h1 > Skallet i Abaqus</ h1 >
551
+ </ section > < section id ="kjøre-filer-i-abaqus " class ="slide level2 ">
552
+ < h1 > Kjøre filer i Abaqus</ h1 >
553
+ </ section > < section id ="oppgave-a-abaqus " class ="slide level2 ">
554
+ < h1 > Oppgave A: Abaqus</ h1 >
555
+ < p > Parametrisering av plate:</ p >
556
+ < p > < strong > Sett inn bilde.</ strong > </ p >
557
+ </ section > < section id ="oppgave-del-a1 " class ="slide level2 ">
558
+ < h1 > Oppgave del A1</ h1 >
559
+ < p > < strong > Modeller fritt opplagt plate i Abaqus: < code > plate.cae</ code > </ strong > </ p >
560
+ < ul >
561
+ < li > Størrelse: 4m x 6m x 200 mm.</ li >
562
+ < li > Dekke: 0.2 m betong, E=30e9 Pa, ν=0.2</ li >
563
+ < li > Dimensjonerende last: 10 kN/m2</ li >
564
+ </ ul >
565
+ </ section > < section id ="oppgave-del-a2 " class ="slide level2 ">
566
+ < h1 > Oppgave del A2</ h1 >
567
+ < p > < strong > Gjør om til script</ strong > </ p >
568
+ < ul >
569
+ < li > Kopier journal (< code > plate.jnl</ code > ) til < code > generate-plates.py</ code > .</ li >
570
+ < li > Endre koden til å generere 2 modeller:</ li >
571
+ < li > < code > plate_4_6_200_10</ code > som før</ li >
572
+ < li > < code > plate_4_6_260_20</ code > med tykkelse 300 mm og last 20 kN/m2</ li >
573
+ </ ul >
574
+ </ section > < section id ="oppgave-del-a3 " class ="slide level2 ">
575
+ < h1 > Oppgave del A3</ h1 >
576
+ < p > < strong > Parametriser over tykkelse og kraft</ strong > </ p >
577
+ < ul >
578
+ < li > Trekk ut tykkelse og kraft som variabler</ li >
579
+ < li > Generer 9 parts i samme modell:
580
+ < ul >
581
+ < li > Tykkelse 150 mm, 200 mm eller 260 mm</ li >
582
+ < li > Kraft 7 kN/m2, 10 kN/m2 eller 20 kN/m2</ li >
583
+ </ ul > </ li >
584
+ < li > Lag navn fra parametre:</ li >
585
+ </ ul >
586
+ < pre > < code > plate_4_6_160_7
587
+ plate_4_6_160_10
588
+ plate_4_6_160_10
589
+ plate_4_6_200_7
590
+ plate_4_6_200_10
591
+ ...</ code > </ pre >
592
+ </ section > < section id ="ferdig-alt " class ="slide level2 ">
593
+ < h1 > Ferdig alt?</ h1 >
594
+ < p > < strong > Len deg tilbake og nyt hva du har fått til.</ strong > </ p >
595
+ < p > Mulig vei videre: - Generer jobb for hver modell - Kjør jobber - Åpne ODB og sammenlikne!</ p >
596
+ </ section > < section id ="ressurser-for-python-og-abaqus " class ="slide level2 ">
597
+ < h1 > Ressurser for Python og Abaqus</ h1 >
598
+ < figure >
599
+ < img src ="assets/abaqus-documentation.png " />
600
+ </ figure >
601
+ </ section > < section id ="ressurser-for-python-og-abaqus-1 " class ="slide level2 ">
602
+ < h1 > Ressurser for Python og Abaqus</ h1 >
603
+ < ul >
604
+ < li > < a href ="http://50.16.225.63/v2016/books/cmd/default.htm "> Abaqus Scripting User's Guide</ a > går gjennom hvordan hvordan du gjør ting som å generere CAE-modeller og manipulere view i en ODB</ li >
605
+ < li > < a href ="http://50.16.225.63/v2016/books/ker/default.htm "> Abaqus Scripting Reference Guide</ a > lister opp alle funksjoner og klasser for programmering av CAE og ODB-modulene og definerer hva de gjør</ li >
606
+ </ ul >
607
+ </ section > < section id ="ressurser-for-python-og-abaqus-2 " class ="slide level2 ">
608
+ < h1 > Ressurser for Python og Abaqus</ h1 >
609
+ < ul >
610
+ < li > < a href ="http://50.16.225.63/v2016/books/cus/default.htm "> Abaqus GUI Toolkit User's Guide</ a > går gjennom hvordan hvordan du kan lage grafiske grensesnitt som ANDIM og PROCESS-PLUGIN</ li >
611
+ < li > < a href ="http://50.16.225.63/v2016/books/gui/default.htm "> Abaqus GUI Toolkit Reference Guide</ a > lister opp alle funksjoner og klasser for programmering av grafikk</ li >
612
+ </ ul >
613
+ </ section > </ section >
614
+ < section > < section id ="python-og-dynamo " class ="titleslide slide level1 "> < h1 > Python og Dynamo</ h1 > </ section > < section id ="input-til-python-i-dynamo " class ="slide level2 ">
615
+ < h1 > Input til Python i Dynamo</ h1 >
616
+ < p > ... TODO. Bilde.</ p >
617
+ </ section > < section id ="output-fra-python-i-dynamo " class ="slide level2 ">
618
+ < h1 > Output fra Python i Dynamo</ h1 >
619
+ < p > ... TODO. Bilde.</ p >
620
+ </ section > < section id ="oppgave-d-dynamo " class ="slide level2 ">
621
+ < h1 > Oppgave D: Dynamo</ h1 >
622
+ < p > Betongbjelke med varierende tverrsnitt.</ p >
623
+ </ section > < section id ="oppgave-del-d1 " class ="slide level2 ">
624
+ < h1 > Oppgave del D1</ h1 >
625
+ < p > Definer en momentdiagrammet matematisk for en fritt opplagt bjelke med jevnt fordelt last.</ p >
626
+ < ul >
627
+ < li > Bjelkelengde: L [m]</ li >
628
+ < li > Linjelast: q [N/m]</ li >
629
+ < li > Avstand fra venstre opplegg: x [m]</ li >
630
+ </ ul >
631
+ < p > M(L,q,x) = ...</ p >
632
+ < p > Hva er M(8,30000,3)?</ p >
633
+ </ section > < section id ="oppgave-del-d2 " class ="slide level2 ">
634
+ < h1 > Oppgave del D2</ h1 >
635
+ < ul >
636
+ < li > Implementer < code > M(L,q,x)</ code > i Python:</ li >
637
+ </ ul >
638
+ < div class ="sourceCode "> < pre class ="sourceCode python "> < code class ="sourceCode python "> < span class ="kw "> def</ span > M(L,q,x):
639
+ < span class ="co "> # Regn ut moment!</ span >
640
+ moment < span class ="op "> =</ span > < span class ="co "> # ... unngår å bruke navnet på funksjonen (M)</ span >
641
+ < span class ="cf "> return</ span > moment</ code > </ pre > </ div >
642
+ < ul >
643
+ < li > Hva beregner funksjonen din for < code > M(8,30000,3)</ code > ?</ li >
644
+ </ ul >
645
+ </ section > < section id ="oppgave-del-d3 " class ="slide level2 ">
646
+ < h1 > Oppgave del D3</ h1 >
647
+ < p > Tegn momentdiagrammet streker i Dynamo. Velg passe skala. 50 kNm <--> 1 m OK?</ p >
648
+ </ section > < section id ="oppgave-del-d4 " class ="slide level2 ">
649
+ < h1 > Oppgave del D4</ h1 >
650
+ < p > Nå skal vi velge høyde på bjelken. Dette gjør vi enkelt:</ p >
651
+ < ol type ="1 ">
652
+ < li > Regner ut nødvendig indre momentarm < code > d</ code > </ li >
653
+ < li > Legger på < code > 100 mm</ code > for å få ca nødvendig høyde</ li >
654
+ </ ol >
655
+ < p > Vi neglisjerer effekt fra skjærkrefter.</ p >
656
+ < p > Definer en matematisk funksjon for berening av nødvendig høyde.</ p >
657
+ < ul >
658
+ < li > Armeringsmengde As [m2]</ li >
659
+ </ ul >
660
+ < p > h(L,q,As,x) = ...</ p >
661
+ < ul >
662
+ < li > Hva er h(8,30000,3,0.00164)?</ li >
663
+ </ ul >
664
+ </ section > < section id ="oppgave-del-d5 " class ="slide level2 ">
665
+ < h1 > Oppgave del D5</ h1 >
666
+ < ul >
667
+ < li > Implementer < code > h(L,q,As,x)</ code > i Python:</ li >
668
+ </ ul >
669
+ < div class ="sourceCode "> < pre class ="sourceCode python "> < code class ="sourceCode python "> < span class ="kw "> def</ span > h(L,q,As,x):
670
+ moment < span class ="op "> =</ span > M(L,q,x)
671
+ height < span class ="op "> =</ span > < span class ="co "> # ... unngår å bruke navnet på funksjonen (h)</ span >
672
+ < span class ="cf "> return</ span > height</ code > </ pre > </ div >
673
+ < ul >
674
+ < li > Hva beregner funksjonen din for < code > h(8,30000,3,0.00164)</ code > ?</ li >
675
+ </ ul >
676
+ </ section > < section id ="tegn-bjelke " class ="slide level2 ">
677
+ < h1 > Tegn bjelke!</ h1 >
541
678
</ section > </ section >
542
679
< section > < section id ="veien-videre " class ="titleslide slide level1 "> < h1 > Veien videre</ h1 > </ section > < section id ="lykke-til " class ="slide level2 ">
543
680
< h1 > Lykke til!</ h1 >
544
- < p > Dere gjør en viktig oppgave!</ p >
681
+ < ul >
682
+ < li > Spis elefanten én bit av gangen</ li >
683
+ < li > Du må selv skrive kode om du skal lære programmering</ li >
684
+ </ ul >
545
685
</ section > < section id ="videre-ressursser " class ="slide level2 ">
546
686
< h1 > Videre ressursser</ h1 >
547
687
< ul >
@@ -557,32 +697,22 @@ <h1>Videre ressursser</h1>
557
697
</ div >
558
698
</ div >
559
699
560
-
561
700
< script src ="reveal.js/lib/js/head.min.js "> </ script >
562
701
< script src ="reveal.js/js/reveal.js "> </ script >
563
702
564
703
< script >
565
704
566
- // Full list of configuration options available here :
705
+ // Full list of configuration options available at :
567
706
// https://github.com/hakimel/reveal.js#configuration
568
707
Reveal . initialize ( {
569
- controls : true , // Display controls in the bottom right corner
570
- progress : true , // Display a presentation progress bar
571
- history : true , // Push each slide change to the browser history
572
- center : true , // Vertical centering of slides
573
- maxScale : 1.5 , // Bounds for smallest/largest possible content scale
574
- slideNumber : false , // Display the page number of the current slide
575
- theme : Reveal . getQueryHash ( ) . theme , // available themes are in /css/theme
576
- transition : Reveal . getQueryHash ( ) . transition || 'default' , // default/cube/page/concave/zoom/linear/fade/none
577
708
578
- // Optional libraries used to extend on reveal.js
709
+ // Optional reveal.js plugins
579
710
dependencies : [
580
711
{ src : 'reveal.js/lib/js/classList.js' , condition : function ( ) { return ! document . body . classList ; } } ,
581
- { src : 'reveal.js/plugin/zoom-js/zoom.js' , async : true , condition : function ( ) { return ! ! document . body . classList ; } } ,
582
- { src : 'reveal.js/plugin/notes/notes.js' , async : true , condition : function ( ) { return ! ! document . body . classList ; } } ,
583
- // { src: 'reveal.js/plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; }, }
584
- // { src: 'reveal.js/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
585
- ] } ) ;
712
+ { src : 'reveal.js/plugin/zoom-js/zoom.js' , async : true } ,
713
+ { src : 'reveal.js/plugin/notes/notes.js' , async : true }
714
+ ]
715
+ } ) ;
586
716
</ script >
587
717
</ body >
588
718
</ html >
0 commit comments