Skip to content

Instantly share code, notes, and snippets.

Simon Uhrmann suhrmann

Block or report user

Report or block suhrmann

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
@suhrmann
suhrmann / EFI tree
Last active Mar 7, 2020
MacOS Catalina 10.15.3 on Asus Z370-A, Intel i8700K, Radeon RX 5700 XT
View EFI tree
$/Volumes/EFI/EFI tree
.
├── BOOT
│   └── BOOTX64.efi
├── CLOVER
│   ├── ACPI
│   │   ├── WINDOWS
│   │   ├── origin
│   │   └── patched
│   │   ├── SSDT-DTPG.aml
@suhrmann
suhrmann / Example.py
Created Nov 27, 2019
twosigma/flint/example/Flint Example.ipynb as Python script
View Example.py
from pyspark import SparkContext, SQLContext
from pyspark.sql import Row
from pyspark.sql.types import StructType, StructField, TimestampType, DoubleType, StringType
import ts.flint
from ts.flint import FlintContext
flintContext = FlintContext(sqlContext)
sp500 = spark.read.option('header', True).option('inferSchema', True).csv('sp500.csv').withColumnRenamed('Date', 'time')
sp500 = flintContext.read.dataframe(sp500)
@suhrmann
suhrmann / Stocks.py
Created Nov 27, 2019
Fixed @sryza/spark-ts-examples/python/Stocks.py
View Stocks.py
from datetime import datetime
from pyspark import SparkConf, SparkContext, SQLContext
from pyspark.sql import Row
from pyspark.sql.types import StructType, StructField, TimestampType, DoubleType, StringType
from sparkts.datetimeindex import uniform, BusinessDayFrequency
from sparkts.timeseriesrdd import time_series_rdd_from_observations
def lineToRow(line):
@suhrmann
suhrmann / DEVELOPER-INSTRUCTIONS.md
Last active May 12, 2017
Instructions for developing on viktorgino/headunit-desktop
View DEVELOPER-INSTRUCTIONS.md

Development Instructions for HeadUnit Desktop


!!! IMPORTANT NOTE !!!

I created this document mostly for myself to document the steps to contribute in the headunit-desktop project, but I thought it can help one or two.
I continue writing on it and some points may be incomplete or even wrong.
Feel free to leave feedback in the comment section. For discussions there's a Gitter chat

How-To

You can simply follow @viktorgino's build and install instructions for headunit-desktop.

@suhrmann
suhrmann / random_kick_with_sound.js
Last active Jun 8, 2017
A Script for sinusbot to kick a player who's randomly choosen and play a sound shortly before the kick.
View random_kick_with_sound.js
registerPlugin({
name: 'Random Kick With Sound',
version: '1.0',
description: 'If someone sends "!rkick" to the bot, he will randomly kick one member from the channel while playing a medley.',
author: 'vadammt <vadammt@mordsgau.de>',
vars: {
message: {
title: 'Message which user activated random kick. (%n = nickname)',
type: 'string'
},
You can’t perform that action at this time.