Due to the high usage of this guide and the lack of comfort in Gist's commenting area, I decided to make a blog post out of this which you can find here:
http://blog.frd.mn/install-os-x-10-10-yosemite-in-virtualbox/
Due to the high usage of this guide and the lack of comfort in Gist's commenting area, I decided to make a blog post out of this which you can find here:
http://blog.frd.mn/install-os-x-10-10-yosemite-in-virtualbox/
| #!/usr/bin/env sh | |
| open "tel://$*" |
This guide sets up a non-clustered Nutch crawler, which stores its data via HBase. We will not learn how to setup Hadoop et al., but just the bare minimum to crawl and index websites on a single machine.
| #!/usr/bin/env python3 | |
| ''' | |
| Filter to wrap Pandoc's CodeBlocks into minted blocks when using latex. | |
| Pandoc's `fence_code_attributes` can be used to provide: | |
| - the language (first class) | |
| - minted's argumentless options (following classes) | |
| - minted's options with arguments (attributes) | |
| ''' |
chrome://extensionsDeveloper modeLoad unpacked extension... and select the extracted folderCreated by the SMU CS Society
| /** | |
| * Example of T-Digest plus method with Algebird Semigroup | |
| */ | |
| import com.tdunning.math.stats.TDigest | |
| import com.twitter.algebird.{Group, Semigroup} | |
| import io.koff.t_digest._ | |
| case object TDigestSemigroup extends Semigroup[TDigest] { |
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
| // summary : Just ONE ammonite script file to execute a load performance test using gatling ! | |
| // keywords : scala, gatling, ammonite, scala, load-test, performance | |
| // publish : gist | |
| // authors : David Crosson | |
| // license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) | |
| // id : ea7a4259-9461-44a8-99fa-1ec6ec3c48ed | |
| // created-on : 2018-09-22T07:41:07Z | |
| // managed-by : https://github.com/dacr/code-examples-manager | |
| // run-with : scala-cli $file |
| object Ex { | |
| import Lib._ | |
| case class Person(name: String, age: Int) | |
| case class PersonOpt(name: Option[String], age: Option[Int]) | |
| def mergePerson(p: Person, po: PersonOpt) = | |
| Person(po.name.getOrElse(p.name), po.age.getOrElse(p.age)) | |
| case class Contact(person: Person, phone: String) |