Skip to content

Instantly share code, notes, and snippets.

View Fokko's full-sized avatar
🚀

Fokko Driesprong Fokko

🚀
View GitHub Profile
@Fokko
Fokko / Matches
Created June 3, 2015 08:40
Matches of the output of Carelink-decode with the Carelink-CSV
This file has been truncated, but you can view the full file.
[
{
"packet_size": 4,
"name": "10-Something",
"raw": "55-4a-19-0f",
"date": "2015-05-25T21:10:00",
"date_type": "minSpecific",
"_tell": 1014,
"op": "0x10",
"related": [
08-16 23:22:12.602 29774-29788/com.gxwtech.rtdemo W/BluetoothConnection﹕ Got valid package: com.gxwtech.rtdemo.decoding.packages.MedtronicSensor@357cc308 raw data: F603AB0F26C88F0D0B12611F58204900504FA4212F216C2165219921D122212274000A82
08-16 23:22:12.892 29774-29788/com.gxwtech.rtdemo W/BluetoothConnection﹕ Got valid package: com.gxwtech.rtdemo.decoding.packages.MedtronicSensor@29bbaaa1 raw data: F504AB0F26C88F0D0B12701FBC1F58004F50A42049212F216C2165219921D122210089EC
08-16 23:22:13.042 29774-29783/com.gxwtech.rtdemo W/BluetoothConnection﹕ Got valid package: com.gxwtech.rtdemo.decoding.packages.MedtronicSensor@c6ae4c6 raw data: F505AB0F26C88F0D0B12711FBC1F58004F
08-16 23:22:13.332 29774-29783/com.gxwtech.rtdemo W/BluetoothConnection﹕ Got valid package: com.gxwtech.rtdemo.decoding.packages.MedtronicSensor@125bec87 raw data: F906AB0F26C88F0D0B12001F811FBC004F4FA41F582049212F216C2165219921D100
08-16 23:22:13.622 29774-29783/com.gxwtech.rtdemo W/BluetoothConnection﹕ Got valid package: com.gxwtech.rtdemo.dec
@Fokko
Fokko / cc
Created February 7, 2016 16:37
Crash & Compile
val Date = "24 - 02 - 2016"
val Location = "Ubbo Emmiussingel 112"
val Time = "17:00"
if( meedoen )
println("Mail naar [email protected]")
package frl.driesprong
import scala.io.Source
// https://code.google.com/codejam/contest/3264486/dashboard#s=p0
object ProblemA extends App {
case class ProblemCase(pancakes: List[Boolean], K: Int)
package frl.driesprong
import scala.annotation.tailrec
import scala.io.Source
object ProblemB extends App {
case class ProblemCase(pancakes: List[Boolean], K: Int)
[INFO] Scanning for projects...
[WARNING] The project io.druid:druid-benchmarks:jar:0.11.1-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] io.druid:druid
[INFO] java-util
[INFO] druid-api
[INFO] druid-common
[INFO] druid-hll
[INFO] Scanning for projects...
[WARNING] The project io.druid:druid-benchmarks:jar:0.11.1-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] io.druid:druid
[INFO] java-util
[INFO] druid-api
[INFO] druid-common
[INFO] druid-hll
package com.godatadriven
object Day3 extends App {
import scala.annotation.tailrec
case class Pos(x: Int, y: Int) {
def +(other: Pos): Pos = Pos(x + other.x, y + other.y)
}
import requests as rq
import argparse
import random
from pyspark.sql import SparkSession
spark = SparkSession.builder.appName('Set Vincent\'s cluster on fire').getOrCreate()
def f(_):
current_max = {'score': 0.0};
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.avro.tool.TestJsonToFromBinaryFragmentTools
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.099 sec - in org.apache.avro.tool.TestJsonToFromBinaryFragmentTools
Running org.apache.avro.tool.TestTetherTool
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 47.272 sec - in org.apache.avro.tool.TestTetherTool
Running org.apache.avro.tool.TestConcatTool
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 28.597 sec - in org.apache.avro.tool.TestConcatTool
Running org.apache.avro.tool.TestCreateRandomFileTool