Skip to content

Instantly share code, notes, and snippets.

@MaggieLeber
MaggieLeber / ServerMill
Last active August 29, 2015 13:56
Generating a Packer template from Scala using the Play Framework JSON library to allow annotations as comments.
package io.point.servermill
import play.api.libs.json.Json
import java.io.File
object ServerMill extends App {
// generate a Packer template to build an AMI for a
// server instance on AWS.
//
@MaggieLeber
MaggieLeber / gist:e311695a430abedfca93
Created January 30, 2016 19:32
Scala parallel collections benchmark
// http://docs.scala-lang.org/overviews/parallel-collections/performance.html
import collection.parallel.mutable.ParTrieMap
import collection.parallel.ForkJoinTaskSupport
object Map extends testing.Benchmark {
val length = sys.props("length").toInt
val par = sys.props("par").toInt
val partrie = ParTrieMap((0 until length) zip (0 until length): _*)
partrie.tasksupport = new ForkJoinTaskSupport(new scala.concurrent.forkjoin.ForkJoinPool(par))

Some background here: https://www.class-central.com/report/coursera-old-platform-shutdown-download-courses/

Here's the email Coursera sent:

###Save course materials for some courses by June 30

Dear , We wanted to inform you of an update to our technology platform that will affect access to some courses you previously joined. In 2014, Coursera began developing a new technology platform to improve your learning experience, and to allow courses to run more frequently. The majority of our courses are now offered on the new platform.

@MaggieLeber
MaggieLeber / spacegaming.MD
Last active August 29, 2021 12:06
Spaceflight Simulation/Gaming Tools

Spaceflight Simulation/Gaming Tools

WARNING: This product warps space and time in its vicinity.

WARNING: This product attracts every other piece of matter in the Universe, including the products of other manufacturers, with a force proportional to the product of the masses and inversely proportional to the distance between them.

CAUTION: The mass of this product contains the energy equivalent of 85 million tons of TNT per net ounce of weight.

HEALTH WARNING: Care should be taken when lifting this product, since its mass, and thus its weight, is dependent on its velocity relative to the user.

ADVISORY: There is an extremely small but nonzero chance that, through a process known as "tunneling," this product may spontaneously disappear from its present location and reappear at any random place in the universe, including your neighbor's domicile. The manufacturer will not be responsible for any damages or inconvenience that may result.

<?xml version="1.0" encoding="UTF-8"?>
<Diagram>
<ID>JAVA</ID>
<OriginalElement>com.rajant.core.proxy.session</OriginalElement>
<nodes>
<node x="370.7291666666667" y="76.0">com.rajant.core.proxy.session.ProxyCallback</node>
<node x="176.72916666666669" y="126.0">com.rajant.core.proxy.session.ProxySecurityException</node>
<node x="0.0" y="252.0">com.rajant.core.proxy.session.ProxyClientSession</node>
<node x="199.72916666666669" y="0.0">com.rajant.core.proxy.session.ProxyException</node>
<node x="344.0" y="322.0">com.rajant.core.proxy.session.ProxyServerSession</node>
@MaggieLeber
MaggieLeber / javanoob.md
Last active November 26, 2023 08:13
Java learning resources

Keybase proof

I hereby claim:

  • I am maggieleber on github.
  • I am maggiel (https://keybase.io/maggiel) on keybase.
  • I have a public key ASBw5sQLkFKTqThgd8gfhiaSzl_ACl160Mtb_IScPQ8Fcwo

To claim this, I am signing this object:

Hello, Recruiter!

Here's how I usually work with recruiters I don't know:

I don't do phone interviews or provide resumes until I've qualified my interest in an opportunity; my LinkedIn profile provides all the information that I would put in a resume that's not tuned to a specific opportunity.

I am willing to review details of opportunities you may be working on when they include

  • a description of the role