Skip to content

Instantly share code, notes, and snippets.

View philipphager's full-sized avatar

Philipp Hager philipphager

View GitHub Profile
@philipphager
philipphager / plant-a-lot demo peripheral
Created December 23, 2016 11:07
Demo implementation of a plant-a-lot peripheral according to the peripheral sepcs using Arduino CurieBLE
/**
Exemplary implementation of a plant-a-lot peripheral according to the
plant-a-lot peripheral sepcification using Arduino CurieBLE.
Peripheral specification: https://github.com/philipphager/plant-a-lot-peripheral
Official Genuino 101 docs: https://www.arduino.cc/en/Guide/Arduino101
Official CurieBLE docs: https://www.arduino.cc/en/Reference/CurieBLE
*/
#include <CurieBLE.h>
@AutoValue public abstract class LibraryInfo implements Library.SelectByWithAppCountModel {
public static final RowMapper<LibraryInfo> MAPPER =
new LibraryModel.SelectWithAppCountMapper<>(LibraryInfo::create);
public static LibraryInfo create(String id, String title, long appCount) {
return new AutoValue_LibraryInfo(id, title, appCount);
}
}
@philipphager
philipphager / A.java
Last active May 2, 2017 21:21
Delighting Leandro
@AutoValue public abstract class A implements AModel {
/**
* SQLDelight Factories contain all SQL statement that were defined in the
* corresponding A.sq file in form of a SQLDelightStatement.
+ They are a sort of prepared statement,
* that contain the actual SQL string and provide type safe mappings.
* A usage of the SQLDelightStatement is demonstrated in Repository.java.
* The Factory also provides mapper, that map a row inside a cursor result
* to a Java model.
* Therefore the Factory's constructor takes a creator, that knows how to build
<!DOCTYPE html>
<html>
<head>
<title>Terms & Conditions</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
Für die Erstellung Ihrer individuellen Datenschutzerklärung benötigen wir noch Ihre Elemente auf der Webseite<strong>Die Kontaktdaten des Unternehmens: </strong><p class="cf-configurator-username">Name: Philipp Hager</p><p class="cf-configurator-phone">Telefonnummer (optional): +4917643428801</p><p class="cf-configurator-mail">E-Mail Adresse: philipp.konstantin.hager@gmail.com</p><p class="cf-configurator-company">Unternehmensbezeichnung: </p><strong>Die Kontaktdaten des Datenschutzbeauftragten: </strong><p class="cf-configurator-username">Name: Philipp Hager</p><p class="cf-configurator-phone">Telefonnummer (optional): </p><p class="cf-configurator-mail">E-Mail Adresse: philipp.konstantin.hager@gmail.com</p><p class="cf-configurator-company">Unternehmensbezeichnung: </p><strong>Datenschutzerklärung</strong>
<p>
Sie erhalten als Nutzer unserer Internetse
We can't make this file beautiful and searchable because it's too large.
-0.2565920948982239 -0.23162657022476196 -0.32010871171951294 -0.044813934713602066 -0.17666055262088776 -0.46567362546920776 -0.10305771231651306 -0.283006489276886 0.18145105242729187 -0.20418845117092133 -0.39315247535705566 0.17549411952495575 -0.299421489238739 0.25821229815483093 0.08510322123765945 -0.4288938641548157 0.17732606828212738 -0.08473576605319977 0.07192555069923401 0.2844376266002655 -0.33953890204429626 0.13467112183570862 0.15844862163066864 0.5566718578338623 0.14930282533168793 -0.08448687195777893 -0.3237502872943878 -0.05345028638839722 0.09889501333236694 -0.4275214374065399 0.060086462646722794 0.1460605412721634 -0.18268966674804688 -0.6222821474075317 0.260347455739975 -0.14236381649971008 0.3405199646949768 0.2262057214975357 -0.056046318262815475 -0.03913075104355812 0.1489534080028534 -0.3680129945278168 -0.08402061462402344 -0.42124366760253906 -0.11526351422071457 0.06546539068222046 -0.21604260802268982 0.40399619936943054 0.18332044780254364 0.27995696663856506 0.134080365
@philipphager
philipphager / prime-meta.tsv
Created May 6, 2019 14:01
Fasttext Embedding for Prime Video Reviews
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
follower
crisis
timid
tryst
watchman
annis
dichotomy
pumping
righting
matching
@philipphager
philipphager / prime.config
Last active May 6, 2019 14:09
Settings file for projector.tensorflow.org for Prime Video Dataset
{
"embeddings": [
{
"tensorName": "My tensor",
"tensorShape": [
1000,
50
],
"tensorPath": "https://gist.githubusercontent.com/philipphager/47cb4a11d3a1d90798be42231d6b3bca/raw/df4d31a01210f79128ed0faf9d70287fe17319e8/prime-tensor.tsv",
"metadataPath": "https://gist.githubusercontent.com/philipphager/0eb7107308edd04b109b59befa2c299b/raw/85346f36c23ac4e238ca1700ee845f9117dd2926/prime-meta.tsv"
@philipphager
philipphager / word-2-vec-tensor.tsv
Last active May 7, 2019 07:48
Word2Vec Embedding for Prime Video Dataset
We can't make this file beautiful and searchable because it's too large.
-0.045706913 0.30585727 -0.035342585 0.073817454 0.027168615 -0.007677051 -0.12477071 -0.13671759 -0.028741503 -0.06406718 -0.09465194 0.18167421 0.024413325 -0.035261717 -0.123358406 -0.028613098 0.006569881 0.096095264 0.0537913 0.07545384 0.0028597992 0.066315554 0.02318037 0.018929208 -0.10739591 0.13760614 -0.13718557 0.020370366 0.020194191 -0.051938593 -0.105849706 0.07474335 0.013643867 -0.13587312 -0.06226042 0.1404782 -0.006735392 -0.11090239 0.09764515 0.11872706 -0.12148369 0.19498137 0.06430403 0.068087794 0.29772076 0.13119532 0.04606703 -0.13092415 0.13915189 0.074174196 -0.06321168 0.14663415 -0.08537185 -0.18759735 0.12143317 0.01708801 -0.11909505 -0.05818373 0.05620106 -0.15173313 0.04383486 0.18599313 0.06545563 -0.04472025 0.056377266 0.009878585 -0.0128651345 -0.1316982 -0.060614653 -0.033385176 0.02585074 0.043304265 -0.06635272 0.1069556 0.08209329 -0.13574818 -0.21313773 -0.01548819 -0.029777387 0.062272582 -0.04779019 0.030823868 -0.07995703 0.048718106 0.0078293355 0.13999689 -0.078
@philipphager
philipphager / word-2-vec-meta.tsv
Created May 7, 2019 07:36
Word2Vec Embedding for Prime Video Dataset
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
appeal
big
boring
detective
english
expectation
guy
investigative
love
particular
@philipphager
philipphager / word-2-vec-prime.config
Last active May 7, 2019 07:51
Word2Vec Embedding for Prime Video Dataset
{
"embeddings": [
{
"tensorName": "My tensor",
"tensorShape": [
26352,
100
],
"tensorPath": "https://gist.githubusercontent.com/philipphager/8efbce1b26b34249a6e6ebe7233ee6fd/raw/037b49bede0fd17e598469e1cd8d46ca229028ea/word-2-vec-tensor.tsv",
"metadataPath": "https://gist.githubusercontent.com/philipphager/d606e5185dd45d8cf3afa39709717eff/raw/2be669e6629ea6bf40d78de4108efb5827088b4d/word-2-vec-meta.tsv"