Skip to content

Instantly share code, notes, and snippets.

Ruurtjan ruurtjan

Block or report user

Report or block ruurtjan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
return Utils.toPositive(Utils.murmur2(keyBytes)) % numPartitions;
ruurtjan / VectorImplicits.scala
Created Jul 13, 2018
Learning linear algebra with Scala - vector implicits sample
View VectorImplicits.scala
import MatrixImplicits._
import model.{Matrix2, Vector2}
object VectorImplicits {
implicit class ArithmeticVectorImplicits(v: Vector2) {
def +(v2: Vector2): Vector2 = ???
def *(scalar: Float): Vector2 = ???
def *(m: Matrix2): Vector2 = ???
def isLinearlyDependent(v2: Vector2): Boolean = ???
ruurtjan / MatrixImplicits.scala
Created Jul 13, 2018
Learning linear algebra with Scala - matrix implicits sample
View MatrixImplicits.scala
import VectorImplicits._
import model.{Matrix2, Vector2}
object MatrixImplicits {
implicit class ArithmeticMatrixImplicits(m: Matrix2) {
def *(m2: Matrix2): Matrix2 = ???
def *(scalar: Float): Matrix2 = ???
def determinant(): Float = ???
def changesOrientation(): Boolean = ???
ruurtjan / get-windows-product-key.vbs
Last active Jun 26, 2018
A product key retrieval script that was used by Microsoft support. Save it with the `.vbs` extension, right click and select `Open with Command Prompt`.
View get-windows-product-key.vbs
Set WshShell = CreateObject("WScript.Shell")
Key = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
DigitalID = WshShell.RegRead(key & "DigitalProductId")
ProductName = "Product Name: " & WshShell.RegRead(Key & "ProductName") & vbNewLine
ProductID = "Product ID: " & WshShell.RegRead(Key & "ProductID") & vbNewLine
ProductKey = "Installed Key: " & ConvertToKey(DigitalID)
ProductID = ProductName & ProductID & ProductKey
If vbYes = MsgBox(ProductId & vblf & vblf & "Save to a file?", vbYesNo + vbQuestion, "Windows Key Information") then
Save ProductID
End if
View gist:0907566ea8617fe4d49fb89cfb431811
### Keybase proof
I hereby claim:
* I am ruurtjan on github.
* I am ruurtjan ( on keybase.
* I have a public key ASDrUF-JhLiWYlDnwjSHRsKzDYfQWupmAxQyB9huh-FQLAo
To claim this, I am signing this object:
You can’t perform that action at this time.