Skip to content

Commit

Permalink
Replace http with https in files
Browse files Browse the repository at this point in the history
  • Loading branch information
alanbato committed Jun 5, 2019
1 parent 7232779 commit 6de3a85
Show file tree
Hide file tree
Showing 70 changed files with 266 additions and 266 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ We use [jekyll](https://github.com/mojombo/jekyll) to generate the site. In orde

should do. Now, build the site with `make`. This will create a copy of the lessons in the `web.out` folder.

For development, you'll also need to install [RedCloth](http://redcloth.org/).
For development, you'll also need to install [RedCloth](https://redcloth.org/).

$ gem install RedCloth
$ gem install jekyll-textile-converter

Then `make serve` will launch `jekyll` in serving mode: a web server will be launched on port 4000, and changing files will automatically rebuild the site.

To publish to http://twitter.github.io/scala_school:
To publish to https://twitter.github.io/scala_school:

$ make publish
2 changes: 1 addition & 1 deletion lesson_7/notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Exceptions
@Throws
Erasure!

Annotation ref http://www.scala-lang.org/node/106
Annotation ref https://www.scala-lang.org/node/106

Traits
2 classes defined
Expand Down
2 changes: 1 addition & 1 deletion lesson_7/project/plugins/Plugins.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sbt._

class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
val twitterMaven = "twitter.com" at "http://maven.twttr.com/"
val twitterMaven = "twitter.com" at "https://maven.twttr.com/"
val defaultProject = "com.twitter" % "standard-project" % "0.9.0"
}
2 changes: 1 addition & 1 deletion searchbird/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ end

set :user, :twitter
set :application, "searchbird"
set :repository, "http://git.local.twitter.com/ro/#{application}"
set :repository, "https://git.local.twitter.com/ro/#{application}"

task :staging do
role :app, "server1", "server2", "etc"
Expand Down
2 changes: 1 addition & 1 deletion searchbird/Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# use "bundle install" to update gems; "gem install bundler" to install bundler.
source :rubygems
source "http://gems.local.twitter.com"
source "https://gems.local.twitter.com"
gem "thrift_client", "0.6.2"
gem "thrift", "0.6"
gem "railsless-deploy"
Expand Down
2 changes: 1 addition & 1 deletion searchbird/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ scala-bootstrapper README.rdoc file.
If you want to setup Intellij, it has to happen off to the side:

$ sbt
> *sbtIdeaRepo at http://mpeltonen.github.com/maven/
> *sbtIdeaRepo at https://mpeltonen.github.com/maven/
> *idea is com.github.mpeltonen sbt-idea-processor 0.4.0
> update
> idea
8 changes: 4 additions & 4 deletions searchbird/TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The IDL for your service is in `src/main/thrift/searchbird.thrift`. The
Thrift compiler uses the IDL to generate bindings for various
languages, making it easy for scripts in those languages to talk to
your service. More information about Thrift and how to write an IDL
for your service can be found [here](http://wiki.apache.org/thrift/Tutorial).
for your service can be found [here](https://wiki.apache.org/thrift/Tutorial).

### Call your service from ruby

Expand Down Expand Up @@ -70,7 +70,7 @@ requests. You can view the stats via that port:
...

Ostrich also stores historial stats data and can build
[graphs](http://localhost:9900/graph/) for you.
[graphs](https://localhost:9900/graph/) for you.

### Stop the service

Expand Down Expand Up @@ -123,7 +123,7 @@ example:

### Specs: let's add some tests

[Specs](http://code.google.com/p/specs/) is a Behavior-Driven Design
[Specs](https://code.google.com/p/specs/) is a Behavior-Driven Design
framework that allows you to write semi-human-readable descriptions of
how your service should behave and test that those descriptions are
valid. You already have some Specs code for your project in
Expand All @@ -150,7 +150,7 @@ TODO: add link to scala school lesson on Specs
By now you've had to Ctrl-C your server and restart it to get changes
to show up. This gets a little tiresome. The build tool we are
using,
[SBT (simple build tool)](http://code.google.com/p/simple-build-tool/)
[SBT (simple build tool)](https://code.google.com/p/simple-build-tool/)
has a console that you can access by just running "sbt" from the
command line.

Expand Down
2 changes: 1 addition & 1 deletion searchbird/project/build/SearchbirdProject.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ class SearchbirdProject(info: ProjectInfo) extends StandardServiceProject(info)

override def mainClass = Some("com.twitter.searchbird.Main")

override def subversionRepository = Some("http://svn.local.twitter.com/maven-public")
override def subversionRepository = Some("https://svn.local.twitter.com/maven-public")
}
10 changes: 5 additions & 5 deletions searchbird/project/plugins/Plugins.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
def isSBTTwitter = environment.get("SBT_TWITTER").isDefined

override def repositories = if (isSBTOpenTwitter) {
Set("twitter.artifactory" at "http://artifactory.local.twitter.com/open-source/")
Set("twitter.artifactory" at "https://artifactory.local.twitter.com/open-source/")
} else if (isSBTTwitter) {
Set("twitter.artifactory" at "http://artifactory.local.twitter.com/repo/")
Set("twitter.artifactory" at "https://artifactory.local.twitter.com/repo/")
} else {
super.repositories ++ Set(
"twitter.com" at "http://maven.twttr.com/",
"scala-tools" at "http://scala-tools.org/repo-releases/",
"freemarker" at "http://freemarker.sourceforge.net/maven2/"
"twitter.com" at "https://maven.twttr.com/",
"scala-tools" at "https://scala-tools.org/repo-releases/",
"freemarker" at "https://freemarker.sourceforge.net/maven2/"
)
}
override def ivyRepositories = Seq(Resolver.defaultLocal(None)) ++ repositories
Expand Down
2 changes: 1 addition & 1 deletion searchbird/src/scripts/searchbird.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ case "$1" in
exit 0
fi

curl -m 5 -s http://localhost:${ADMIN_PORT}/shutdown.txt > /dev/null
curl -m 5 -s https://localhost:${ADMIN_PORT}/shutdown.txt > /dev/null
tries=0
while running; do
tries=$((tries + 1))
Expand Down
24 changes: 12 additions & 12 deletions web/_includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
<div class="row">
<div class="span16">
<p>
Built at <a href="http://twitter.com/twitter"
Built at <a href="https://twitter.com/twitter"
target="_blank">@twitter</a> by
<a href="http://twitter.com/stevej" target="_blank">@stevej</a>,
<a href="http://twitter.com/marius" target="_blank">@marius</a>, and
<a href="http://twitter.com/lahosken" target="_blank">@lahosken</a>
<a href="https://twitter.com/stevej" target="_blank">@stevej</a>,
<a href="https://twitter.com/marius" target="_blank">@marius</a>, and
<a href="https://twitter.com/lahosken" target="_blank">@lahosken</a>
with much help from
<a href="http://twitter.com/evanm" target="_blank">@evanm</a>,
<a href="http://twitter.com/sprsquish" target="_blank">@sprsquish</a>,
<a href="http://twitter.com/kevino" target="_blank">@kevino</a>,
<a href="http://twitter.com/zuercher" target="_blank">@zuercher</a>,
<a href="http://twitter.com/timtrueman" target="_blank">@timtrueman</a>,
<a href="http://twitter.com/wickman" target="_blank">@wickman</a>,
<a href="http://twitter.com/mccv" target="_blank">@mccv</a>
<a href="https://twitter.com/evanm" target="_blank">@evanm</a>,
<a href="https://twitter.com/sprsquish" target="_blank">@sprsquish</a>,
<a href="https://twitter.com/kevino" target="_blank">@kevino</a>,
<a href="https://twitter.com/zuercher" target="_blank">@zuercher</a>,
<a href="https://twitter.com/timtrueman" target="_blank">@timtrueman</a>,
<a href="https://twitter.com/wickman" target="_blank">@wickman</a>,
<a href="https://twitter.com/mccv" target="_blank">@mccv</a>
and <a href="https://github.com/garciparedes" target="_blank">@garciparedes</a>;
Russian translation by
<a href="https://github.com/appigram">appigram</a>;
Expand All @@ -26,7 +26,7 @@
Korean translation by
<a href="https://github.com/enshahar">enshahar</a>;<br />
<br />
Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>.
Licensed under the <a href="https://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>.
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<!-- Le styles -->
Expand Down
2 changes: 1 addition & 1 deletion web/_layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<!-- Le styles -->
Expand Down
4 changes: 2 additions & 2 deletions web/advanced-types.textile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ scala> (new Container[Float]).addIt(123.2F)

h2(#otherbounds). Other type bounds

Methods can enforce more complex type bounds via implicit parameters. For example, <code>List</code> supports <code>sum</code> on numeric contents but not on others. Alas, Scala's numeric types don't all share a superclass, so we can't just say <code>T <: Number</code>. Instead, to make this work, Scala's math library <a href="http://www.azavea.com/blogs/labs/2011/06/scalas-numeric-type-class-pt-1/">defines an implicit <code>Numeric[T]</code> for the appropriate types T</a>. Then in <code>List</code>'s definition uses it:
Methods can enforce more complex type bounds via implicit parameters. For example, <code>List</code> supports <code>sum</code> on numeric contents but not on others. Alas, Scala's numeric types don't all share a superclass, so we can't just say <code>T <: Number</code>. Instead, to make this work, Scala's math library <a href="https://www.azavea.com/blogs/labs/2011/06/scalas-numeric-type-class-pt-1/">defines an implicit <code>Numeric[T]</code> for the appropriate types T</a>. Then in <code>List</code>'s definition uses it:

<pre>
sum[B >: A](implicit num: Numeric[B]): B
Expand All @@ -74,7 +74,7 @@ Methods may ask for some kinds of specific "evidence" for a type without setting
|A <:< B|A must be a subtype of B|
|A <%< B|A must be viewable as B|

(If you get errors trying to use <:< or <%<, be aware that those went away in Scala 2.10. Scala School examples work with "Scala 2.9.x":http://www.scala-lang.org/download/2.9.3.html . You can use a newer Scala, but expect errors.)
(If you get errors trying to use <:< or <%<, be aware that those went away in Scala 2.10. Scala School examples work with "Scala 2.9.x":https://www.scala-lang.org/download/2.9.3.html . You can use a newer Scala, but expect errors.)

<pre>
scala> class Container[A](value: A) { def addIt(implicit evidence: A =:= Int) = 123 + value }
Expand Down
8 changes: 4 additions & 4 deletions web/basics.textile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Scala is not just a nicer Java. You should learn it with a fresh mind- you will

h3. Get Scala

Scala School's examples work with "Scala 2.9.x":http://www.scala-lang.org/download/2.9.3.html . If you use Scala 2.10.x or newer, _most_ examples work OK, but not all.
Scala School's examples work with "Scala 2.9.x":https://www.scala-lang.org/download/2.9.3.html . If you use Scala 2.10.x or newer, _most_ examples work OK, but not all.

h3. Start the Interpreter

Expand Down Expand Up @@ -345,7 +345,7 @@ class ScientificCalculator(brand: String) extends Calculator(brand) {
}
</pre>

*See Also* Effective Scala points out that a <a href="http://twitter.github.com/effectivescala/#Types%20and%20Generics-Type%20aliases">Type alias</a> is better than <code>extends</code> if the subclass isn't actually different from the superclass. A Tour of Scala describes <a href="http://www.scala-lang.org/node/125">Subclassing</a>.
*See Also* Effective Scala points out that a <a href="https://twitter.github.com/effectivescala/#Types%20and%20Generics-Type%20aliases">Type alias</a> is better than <code>extends</code> if the subclass isn't actually different from the superclass. A Tour of Scala describes <a href="https://www.scala-lang.org/node/125">Subclassing</a>.

h3. Overloading methods

Expand Down Expand Up @@ -408,7 +408,7 @@ class BMW extends Car with Shiny {
}
</pre>

*See Also* Effective Scala has opinions about <a href="http://twitter.github.com/effectivescala/#Object oriented programming-Traits">trait</a>.
*See Also* Effective Scala has opinions about <a href="https://twitter.github.com/effectivescala/#Object oriented programming-Traits">trait</a>.

*When do you want a Trait instead of an Abstract Class?* If you want to define an interface-like type, you might find it difficult to choose between a trait or an abstract class. Either one lets you define a type with some behavior, asking extenders to define some other behavior. Some rules of thumb:

Expand All @@ -417,7 +417,7 @@ class BMW extends Car with Shiny {
<li>If you need a constructor parameter, use an abstract class. Abstract class constructors can take parameters; trait constructors can't. For example, you can't say <code>trait t(i: Int) {}</code>; the <code>i</code> parameter is illegal.
</ul>

You are not the first person to ask this question. See fuller answers at "stackoverflow:Scala traits vs abstract classes":http://stackoverflow.com/questions/1991042/scala-traits-vs-abstract-classes, "Difference between Abstract Class and Trait":http://stackoverflow.com/questions/2005681/difference-between-abstract-class-and-trait, and "Programming in Scala: To trait, or not to trait?":http://www.artima.com/pins1ed/traits.html#12.7
You are not the first person to ask this question. See fuller answers at "stackoverflow:Scala traits vs abstract classes":https://stackoverflow.com/questions/1991042/scala-traits-vs-abstract-classes, "Difference between Abstract Class and Trait":https://stackoverflow.com/questions/2005681/difference-between-abstract-class-and-trait, and "Programming in Scala: To trait, or not to trait?":https://www.artima.com/pins1ed/traits.html#12.7

h2(#types). Types

Expand Down
2 changes: 1 addition & 1 deletion web/basics2.textile
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Notice how we captured the value in the variable 'i'.

The <code>_</code> in the last case statement is a wildcard; it ensures that we can handle any statement. Otherwise you will suffer a runtime error if you pass in a number that doesn't match. We discuss this more later.

*See Also* Effective Scala has opinions about <a href="http://twitter.github.com/effectivescala/#Functional programming-Pattern matching">when to use pattern matching</a> and <a href="http://twitter.github.com/effectivescala/#Formatting-Pattern matching">pattern matching formatting</a>. A Tour of Scala describes <a href="http://www.scala-lang.org/node/120">Pattern Matching</a>
*See Also* Effective Scala has opinions about <a href="https://twitter.github.com/effectivescala/#Functional programming-Pattern matching">when to use pattern matching</a> and <a href="https://twitter.github.com/effectivescala/#Formatting-Pattern matching">pattern matching formatting</a>. A Tour of Scala describes <a href="https://www.scala-lang.org/node/120">Pattern Matching</a>

h3. Matching on type

Expand Down
Loading

0 comments on commit 6de3a85

Please sign in to comment.