Skip to content

Commit 0757058

Browse files
committed
Use https instead of http in all documents
1 parent fc5920b commit 0757058

File tree

229 files changed

+767
-767
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+767
-767
lines changed

_ba/cheatsheets/index.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Scala Cheatsheet
55
partof: cheatsheet
66

77
by: Brendan O'Connor
8-
about: Zahvaljujući <a href="http://github.com/%3Cspan%20class="x x-first x-last">http://brenocon.com/">Brendan O'Connor</a>u ovaj cheatsheet teži da bude kratki pregled sintakse Scale. Licenca pripada Brendan O'Connor-u, pod CC-BY-SA 3.0 licencom.
8+
about: Zahvaljujući <a href="http://github.com/%3Cspan%20class="x x-first x-last">https://brenocon.com/">Brendan O'Connor</a>u ovaj cheatsheet teži da bude kratki pregled sintakse Scale. Licenca pripada Brendan O'Connor-u, pod CC-BY-SA 3.0 licencom.
99

1010
language: ba
1111
---
@@ -47,7 +47,7 @@ language: ba
4747
| `var (x,y,z) = (1,2,3)` | destrukturirajuće vezivanje: otpakivanje torke podudaranjem uzoraka (pattern matching). |
4848
| <span class="label important">Loše</span>`var x,y,z = (1,2,3)` | skrivena greška: svim varijablama dodijeljena cijela torka. |
4949
| `var xs = List(1,2,3)` | lista (nepromjenjiva). |
50-
| `xs(2)` | indeksiranje zagradama ([slajdovi](http://www.slideshare.net/Odersky/fosdem-2009-1013261/27)). |
50+
| `xs(2)` | indeksiranje zagradama ([slajdovi](https://www.slideshare.net/Odersky/fosdem-2009-1013261/27)). |
5151
| `1 :: List(2,3)` | cons. |
5252
| `1 to 5` _isto kao_ `1 until 6` <br> `1 to 10 by 2` | šećer za raspon (range). |
5353
| `()` _(prazne zagrade)_ | jedina instanca Unit tipa (slično kao u C/Java void). |
@@ -56,11 +56,11 @@ language: ba
5656
| `if (check) happy` _isto kao_ <br> `if (check) happy else ()` | sintaksni šećer za uslov. |
5757
| `while (x < 5) { println(x); x += 1}` | while petlja. |
5858
| `do { println(x); x += 1} while (x < 5)` | do while petlja. |
59-
| `import scala.util.control.Breaks._`<br>`breakable {`<br>` for (x <- xs) {`<br>` if (Math.random < 0.1) break`<br>` }`<br>`}`| break ([slajdovi](http://www.slideshare.net/Odersky/fosdem-2009-1013261/21)). |
59+
| `import scala.util.control.Breaks._`<br>`breakable {`<br>` for (x <- xs) {`<br>` if (Math.random < 0.1) break`<br>` }`<br>`}`| break ([slajdovi](https://www.slideshare.net/Odersky/fosdem-2009-1013261/21)). |
6060
| `for (x <- xs if x%2 == 0) yield x*10` _isto kao_ <br>`xs.filter(_%2 == 0).map(_*10)` | for komprehensija: filter/map. |
6161
| `for ((x,y) <- xs zip ys) yield x*y` _isto kao_ <br>`(xs zip ys) map { case (x,y) => x*y }` | for komprehensija: destrukturirajuće vezivanje. |
6262
| `for (x <- xs; y <- ys) yield x*y` _isto kao_ <br>`xs flatMap {x => ys map {y => x*y}}` | for komprehensija: međuproizvod (vektorski proizvod). |
63-
| `for (x <- xs; y <- ys) {`<br> `println("%d/%d = %.1f".format(x, y, x/y.toFloat))`<br>`}` | for komprehensija: imperativ-asto.<br>[sprintf-stil.](http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) |
63+
| `for (x <- xs; y <- ys) {`<br> `println("%d/%d = %.1f".format(x, y, x/y.toFloat))`<br>`}` | for komprehensija: imperativ-asto.<br>[sprintf-stil.](https://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) |
6464
| `for (i <- 1 to 5) {`<br> `println(i)`<br>`}` | for komprehensija: iteracija uključujući gornju granicu. |
6565
| `for (i <- 1 until 5) {`<br> `println(i)`<br>`}` | for komprehensija: iteracija ne uključujući gornju granicu. |
6666
| <span id="pattern_matching" class="h2">podudaranje uzoraka (pattern matching)</span> | |

_ba/tour/annotations.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ Java ima korisnički definisane metapodatke u formi [anotacija](https://docs.ora
8282
I upotrijebiti je ovako:
8383

8484
```
85-
@Source(URL = "http://coders.com/",
85+
@Source(URL = "https://coders.com/",
8686
8787
public class MyClass extends HisClass ...
8888
```
8989

9090
Primjena anotacije u Scali izgleda kao poziv konstruktora, dok se za instanciranje Javinih anotacija moraju koristiti imenovani argumenti:
9191

9292
```
93-
@Source(URL = "http://coders.com/",
93+
@Source(URL = "https://coders.com/",
9494
9595
class MyScalaClass ...
9696
```
@@ -108,30 +108,30 @@ ako se koristi naziv `value` onda se u Javi može koristiti i konstruktor-sintak
108108
I upotrijebiti je kao:
109109

110110
```
111-
@SourceURL("http://coders.com/")
111+
@SourceURL("https://coders.com/")
112112
public class MyClass extends HisClass ...
113113
```
114114

115115
U ovom slučaju, Scala omogućuje istu sintaksu:
116116

117117
```
118-
@SourceURL("http://coders.com/")
118+
@SourceURL("https://coders.com/")
119119
class MyScalaClass ...
120120
```
121121

122122
Element `mail` je specificiran s podrazumijevanom vrijednošću tako da ne moramo eksplicitno navoditi vrijednost za njega.
123123
Međutim, ako trebamo, ne možemo miješati dva Javina stila:
124124

125125
```
126-
@SourceURL(value = "http://coders.com/",
126+
@SourceURL(value = "https://coders.com/",
127127
128128
public class MyClass extends HisClass ...
129129
```
130130

131131
Scala omogućuje veću fleksibilnost u ovom pogledu:
132132

133133
```
134-
@SourceURL("http://coders.com/",
134+
@SourceURL("https://coders.com/",
135135
136136
class MyScalaClass ...
137137
```

_ba/tour/singleton-objects.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Kao i `val`, singlton objekti mogu biti definisani kao članovi [trejta](traits.
3434
Singlton objekt može naslijediti klase i trejtove.
3535
Ustvari, [case klasa](case-classes.html) bez [tipskih parametara](generic-classes.html)
3636
će podrazumijevano kreirati singlton objekt s istim imenom,
37-
i implementiranim [`Function*`](http://www.scala-lang.org/api/current/scala/Function1.html) trejtom.
37+
i implementiranim [`Function*`](https://www.scala-lang.org/api/current/scala/Function1.html) trejtom.
3838

3939
## Kompanjoni (prijatelji) ##
4040

_ba/tour/unified-types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Dijagram ispod prikazuje hijerarhiju Scala klasa.
2121

2222
## Hijerarhija tipova u Scali ##
2323

24-
[`Any`](http://www.scala-lang.org/api/2.12.1/scala/Any.html) je nadtip svih tipova, zove se još i vrh-tip.
24+
[`Any`](https://www.scala-lang.org/api/2.12.1/scala/Any.html) je nadtip svih tipova, zove se još i vrh-tip.
2525
Definiše određene univerzalne metode kao što su `equals`, `hashCode` i `toString`.
2626
`Any` ima dvije direktne podklase, `AnyVal` i `AnyRef`.
2727

_books/1-programming-in-scala-3rd.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: "Programming in Scala, 3rd ed"
3-
link: http://booksites.artima.com/programming_in_scala_3ed
3+
link: https://booksites.artima.com/programming_in_scala_3ed
44
image: /resources/img/books/ProgrammingInScala.gif
55
status: Updated for Scala 2.12
66
authors: ["Martin Odersky", "Lex Spoon", "Bill Benners"]
77
publisher:
88
---
99

10-
(First edition [available for free online reading](http://www.artima.com/pins1ed/))
10+
(First edition [available for free online reading](https://www.artima.com/pins1ed/))
1111

12-
Being co-written by the language's designer, Martin Odersky, you will find it provides additional depth and clarity to the diverse features of the language. The book provides both an authoritative reference for Scala and a systematic tutorial covering all the features in the language. Once you are familiar with the basics of Scala you will appreciate having this source of invaluable examples and precise explanations of Scala on hand. The book is available from [Artima](http://booksites.artima.com/programming_in_scala_3ed). Award winning book - [Jolt Productivity award](http://www.drdobbs.com/joltawards/232601431) for Technical Books.
12+
Being co-written by the language's designer, Martin Odersky, you will find it provides additional depth and clarity to the diverse features of the language. The book provides both an authoritative reference for Scala and a systematic tutorial covering all the features in the language. Once you are familiar with the basics of Scala you will appreciate having this source of invaluable examples and precise explanations of Scala on hand. The book is available from [Artima](https://booksites.artima.com/programming_in_scala_3ed). Award winning book - [Jolt Productivity award](https://www.drdobbs.com/joltawards/232601431) for Technical Books.

_books/2-scala-for-the-impatient.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Scala for the Impatient"
3-
link: http://www.horstmann.com/scala/index.html
3+
link: https://www.horstmann.com/scala/index.html
44
image: /resources/img/books/scala_for_the_impatient.png
55
status: Available Now
66
authors: ["Cay S. Horstmann"]

_books/3-programming-scala.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: "Programming Scala"
3-
link: http://shop.oreilly.com/product/0636920033073.do
3+
link: https://shop.oreilly.com/product/0636920033073.do
44
image: /resources/img/books/ProgrammingScala-final-border.gif
55
status: Updated for Scala 2.11
66
authors: ["Alex Payne", "Dean Wampler"]
77
publisher: O’Reilly
8-
publisherLink: http://www.oreilly.com/
8+
publisherLink: https://www.oreilly.com/
99
---
1010

1111
Both are industry experts, Alex Payne being the lead API programmer at Twitter, a social networking service based on Scala. O’Reilly, the publisher, writes: "Learn how to be more productive with Scala, a new multi-paradigm language for the Java Virtual Machine (JVM) that integrates features of both object-oriented and functional programming. With this book, you'll discover why Scala is ideal for highly scalable, component-based applications that support concurrency and distribution. You'll also learn how to leverage the wealth of Java class libraries to meet the practical needs of enterprise and Internet projects more easily."

_books/4-functional-programming-in-scala.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ image: /resources/img/books/FPiS_93x116.png
55
status: Available now
66
authors: ["Paul Chiusano", "Rúnar Bjarnason"]
77
publisher: Manning
8-
publisherLink: http://www.manning.com/
8+
publisherLink: https://www.manning.com/
99
---
1010

1111
"Functional programming (FP) is a style of software development emphasizing functions that don't depend on program state... Functional Programming in Scala is a serious tutorial for programmers looking to learn FP and apply it to the everyday business of coding. The book guides readers from basic techniques to advanced topics in a logical, concise, and clear progression. In it, you'll find concrete examples and exercises that open up the world of functional programming."

_books/5-scala-in-depth.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: "Scala in Depth"
3-
link: http://www.manning.com/suereth
3+
link: https://www.manning.com/suereth
44
image: /resources/img/books/icon_Scala_in_Depth_93x116.png
55
status: Available now
66
authors: ["Joshua D. Suereth"]
77
publisher: Manning
8-
publisherLink: http://www.manning.com/
8+
publisherLink: https://www.manning.com/
99
---
1010

1111
"While information about the Scala language is abundant, skilled practitioners, great examples, and insight into the best practices of the community are harder to find. Scala in Depth bridges that gap, preparing you to adopt Scala successfully for real world projects. Scala in Depth is a unique new book designed to help you integrate Scala effectively into your development process. By presenting the emerging best practices and designs from the Scala community, it guides you though dozens of powerful techniques example by example. There's no heavy-handed theory here-just lots of crisp, practical guides for coding in Scala."

_books/6-scala-puzzlers.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: "Scala Puzzlers"
3-
link: http://www.artima.com/shop/scala_puzzlers
3+
link: https://www.artima.com/shop/scala_puzzlers
44
image: /resources/img/books/scala-puzzlers-book.jpg
55
status: Available now
66
authors: ["Andrew Phillips", "Nermin Šerifović"]
77
publisher: Artima Press
8-
publisherLink: http://www.artima.com/index.jsp
8+
publisherLink: https://www.artima.com/index.jsp
99
---
1010

1111
"Getting code to do what we want it to do is perhaps the essence of our purpose as developers. So there are few things more intriguing or important than code that we think we understand, but that behaves rather contrary to our expectations. Scala Puzzlers is a collection of such examples in Scala. It is not only an entertaining and instructive way of understanding this highly expressive language better. It will also help you recognize many counter-intuitive traps and pitfalls and prevent them from inflicting further production bug hunt stress on Scala developers."

_cheatsheets/index.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Scala Cheatsheet
55
partof: cheatsheet
66

77
by: Brendan O'Connor
8-
about: Thanks to <a href="http://github.com/%3Cspan%20class="x x-first x-last">http://brenocon.com/">Brendan O'Connor</a>, this cheatsheet aims to be a quick reference of Scala syntactic constructions. Licensed by Brendan O'Connor under a CC-BY-SA 3.0 license.
8+
about: Thanks to <a href="http://github.com/%3Cspan%20class="x x-first x-last">https://brenocon.com/">Brendan O'Connor</a>, this cheatsheet aims to be a quick reference of Scala syntactic constructions. Licensed by Brendan O'Connor under a CC-BY-SA 3.0 license.
99

1010
languages: [ba, fr, ja, pl, pt-br, zh-cn, th, ru]
1111
---
@@ -176,7 +176,7 @@ languages: [ba, fr, ja, pl, pt-br, zh-cn, th, ru]
176176
</tr>
177177
<tr>
178178
<td><pre class="highlight"><code>xs(2)</code></pre></td>
179-
<td>Paren indexing (<a href="http://www.slideshare.net/Odersky/fosdem-2009-1013261/27">slides</a>).</td>
179+
<td>Paren indexing (<a href="https://www.slideshare.net/Odersky/fosdem-2009-1013261/27">slides</a>).</td>
180180
</tr>
181181
<tr>
182182
<td><pre class="highlight"><code>1 :: List(2, 3)</code></pre></td>
@@ -227,7 +227,7 @@ breakable {
227227
break
228228
}
229229
}</code></pre></td>
230-
<td>Break (<a href="http://www.slideshare.net/Odersky/fosdem-2009-1013261/21">slides</a>).</td>
230+
<td>Break (<a href="https://www.slideshare.net/Odersky/fosdem-2009-1013261/21">slides</a>).</td>
231231
</tr>
232232
<tr>
233233
<td><pre class="highlight"><code>for (x &lt;- xs if x % 2 == 0)
@@ -261,7 +261,7 @@ breakable {
261261
val div = x / y.toFloat
262262
println("%d/%d = %.1f".format(x, y, div))
263263
}</code></pre></td>
264-
<td>For-comprehension: imperative-ish.<br /><a href="http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax"><code>sprintf</code> style</a>.</td>
264+
<td>For-comprehension: imperative-ish.<br /><a href="https://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax"><code>sprintf</code> style</a>.</td>
265265
</tr>
266266
<tr>
267267
<td><pre class="highlight"><code>for (i &lt;- 1 to 5) {

_es/overviews/core/actors.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ la ejecución del argumento por nombre `fun`.
438438
## Actores remotos
439439

440440
Esta sección describe el API de los actores remotos. Su principal interfaz es el objecto
441-
[`RemoteActor`](http://www.scala-lang.org/api/2.9.1/scala/actors/remote/RemoteActor$.html) definido
441+
[`RemoteActor`](https://www.scala-lang.org/api/2.9.1/scala/actors/remote/RemoteActor$.html) definido
442442
en el paquete `scala.actors.remote`. Este objeto facilita el conjunto de métodos necesarios para crear
443443
y establecer conexiones a instancias de actores remotos. En los fragmentos de código que se muestran a
444444
continuación se asume que todos los miembros de `RemoteActor` han sido importados; la lista completa
@@ -452,7 +452,7 @@ de importaciones utilizadas es la siguiente:
452452
### Iniciando actores remotos
453453

454454
Un actore remot es identificado de manera unívoca por un
455-
[`Symbol`](http://www.scala-lang.org/api/2.9.1/scala/Symbol.html). Este símbolo es único para la instancia
455+
[`Symbol`](https://www.scala-lang.org/api/2.9.1/scala/Symbol.html). Este símbolo es único para la instancia
456456
de la máquina virual en la que se está ejecutando un actor. Un actor remoto identificado con el nombre
457457
`myActor` puede ser creado del siguiente modo.
458458

_es/overviews/core/string-interpolation.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Este nuevo mecanismo permite a los usuarios incluir referencias a variables de m
2121
val name = "James"
2222
println(s"Hello, $name") // Hello, James
2323

24-
En el ejemplo anterior, el literal `s"Hello, $name"` es una cadena "procesada". Esto significa que el compilador debe realizar un trabajo adicional durante el tratamiento de dicha cadena. Una cadena "procesada" se denota mediante un conjunto de caracteres que preceden al símbolo `"`. La interpolación de cadenas ha sido introducida por [SIP-11](http://docs.scala-lang.org/sips/pending/string-interpolation.html), el cual contiene todos los detalles de implementación.
24+
En el ejemplo anterior, el literal `s"Hello, $name"` es una cadena "procesada". Esto significa que el compilador debe realizar un trabajo adicional durante el tratamiento de dicha cadena. Una cadena "procesada" se denota mediante un conjunto de caracteres que preceden al símbolo `"`. La interpolación de cadenas ha sido introducida por [SIP-11](https://docs.scala-lang.org/sips/pending/string-interpolation.html), el cual contiene todos los detalles de implementación.
2525

2626
## Uso
2727

@@ -61,7 +61,7 @@ El interpolador `f` es seguro respecto a tipos. Si pasamos un número real a una
6161
f"$height%4d"
6262
^
6363

64-
El interpolador `f` hace uso de las utilidades de formateo de cadenas disponibles en java. Los formatos permitidos tras el carácter `%` son descritos en [Formatter javadoc](http://docs.oracle.com/javase/1.6.0/docs/api/java/util/Formatter.html#detail). Si el carácter `%` no aparece tras la definición de una variable, `%s` es utilizado por defecto.
64+
El interpolador `f` hace uso de las utilidades de formateo de cadenas disponibles en java. Los formatos permitidos tras el carácter `%` son descritos en [Formatter javadoc](https://docs.oracle.com/javase/1.6.0/docs/api/java/util/Formatter.html#detail). Si el carácter `%` no aparece tras la definición de una variable, `%s` es utilizado por defecto.
6565

6666
### Interpolador `raw`
6767

@@ -87,7 +87,7 @@ En Scala, todas las cadenas "procesadas" son simples transformaciones de código
8787

8888
id"string content"
8989

90-
la transforma en la llamada a un método (`id`) sobre una instancia de [StringContext](http://www.scala-lang.org/api/current/index.html#scala.StringContext). Este método también puede estar disponible en un ámbito implícito. Para definiir nuestra propia cadena de interpolación simplemente necesitamos crear una clase implícita que añada un nuevo método a la clase `StringContext`. A continuación se muestra un ejemplo:
90+
la transforma en la llamada a un método (`id`) sobre una instancia de [StringContext](https://www.scala-lang.org/api/current/index.html#scala.StringContext). Este método también puede estar disponible en un ámbito implícito. Para definiir nuestra propia cadena de interpolación simplemente necesitamos crear una clase implícita que añada un nuevo método a la clase `StringContext`. A continuación se muestra un ejemplo:
9191

9292
// Note: We extends AnyVal to prevent runtime instantiation. See
9393
// value class guide for more info.

_es/overviews/parallel-collections/architecture.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@ paralelas referirse al artículo \[[1][1]\]
115115

116116
1. [On a Generic Parallel Collection Framework, Aleksandar Prokopec, Phil Bawgell, Tiark Rompf, Martin Odersky, June 2011][1]
117117

118-
[1]: http://infoscience.epfl.ch/record/165523/files/techrep.pdf "flawed-benchmark"
118+
[1]: https://infoscience.epfl.ch/record/165523/files/techrep.pdf "flawed-benchmark"

0 commit comments

Comments
 (0)