Skip to content

Instantly share code, notes, and snippets.

View danielschulz's full-sized avatar

Daniel Schulz danielschulz

View GitHub Profile
@skrb
skrb / Test.java
Created April 8, 2012 02:04
JavaFX WebView Sample
import java.io.IOException;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class Test extends Application {
@colanconnon
colanconnon / Dockerfile
Created December 26, 2018 11:38
Apache Livy docker
FROM continuumio/miniconda3
ENV APACHE_SPARK_VERSION 2.3.1
ENV HADOOP_VERSION 2.7
RUN apt-get -y update && \
apt-get install --no-install-recommends -y openjdk-8-jre-headless ca-certificates-java && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
@salilsaxena
salilsaxena / Full_Description.md
Last active April 13, 2021 13:41
CUDA + CuDNN install in Fedora/Ubuntu for Tensorflow-gpu guide.

We will not be using anacond, just classic old pip3
Works on python <= 3.8
Recomended OS: Fedora29(Have reached End of Life), Ubuntu 18.04(End of life: 2023). You can also use Later versions of same OS.
Step 1:
 Install Nvidia Propiatary Drivers:
  For ubuntu: link[https://medium.com/@redowan/no-bullshit-guide-on-installing-tensorflow-gpu-ubuntu-18-04-18-10-238924cc4a6a]. //Just follow the part where he shows how to install drivers.
  For Fedora using optimus: link[https://www.reddit.com/r/Fedora/comments/ga1ek6/optimus_setting_the_nvidia_gpu_as_primary/]. I personally stopped before Step 8(in tutorial).
 I know they are Lenghty process(may require several Reboots, but stay with me.
Step 2:
 Install Cuda10.1 for tf2.2 and tf1.15{only for python<3.8}, using this link1[https://developer.nvidia.com/cuda-10.1-download-archive-base?target_os=Linux]. A local .deb/.rpm method is recomended.

@htcai
htcai / Fedora-27-tf-gpu.md
Last active April 13, 2021 16:06
Install NVIDIA Driver and TensorFlow-GPU on Fedora 27 (GNOME3)

Acknowledgement

This blog benefits a lot from the helpful guidance from mdda and wangruohui.

Notice

Desktop environment sensitivity

The strategy presented below applies to the default desktop environment GNOME3 of Fedora 27, but may not work for others such as KDE Plasma. For instance, KDE tends to crash after installation of NVIDIA drivers. Actually, this is also confirmed by my own recent experience with Fedora KDE Plasma.

@syaffers
syaffers / tes-names-dataset-2.py
Created May 15, 2019 07:19
The second iteration of the TES names dataset with major additions and updates
import os
from sklearn.preprocessing import LabelEncoder
from torch.utils.data import Dataset
import torch
class TESNamesDataset(Dataset):
def __init__(self, data_root, charset):
self.data_root = data_root
self.charset = charset
self.samples = []
@NikkiSmit
NikkiSmit / Snowboards Sold Data
Last active August 26, 2021 16:50
Snowboard Data
Date Quantity
2009-01 168,00
2009-02 177,00
2009-03 198,00
2009-04 193,50
2009-05 181,50
2009-06 202,50
2009-07 222,00
2009-08 222,00
2009-09 204,00
@yzhong52
yzhong52 / readme.md
Last active November 28, 2021 08:53
System Design in Layman's Terms - Design a Coffee Shop
  • Client (Customer)
  • Load Balancer (Greeter)
  • Data Center (Coffee Shop)
  • Distributed Message Queue (Bulletin Board w/ Sticky Notes)
    • Producer (Cashier)
    • Consumer (Barista)
  • Database (Ledger Book)
@hslatman
hslatman / fluent-filebeat-comparison.md
Created November 7, 2018 09:27 — forked from StevenACoffman/fluent-filebeat-comparison.md
Fluentd Fluent-bit FileBeat memory and cpu resources

Fluent-bit rocks

A short survey of log collection options and why you picked the wrong one. 😜

Who am I? Where am I from?

I'm Steve Coffman and I work at Ithaka. We do JStor (academic journals) and other stuff. How big is it?

Number what it means
101,332,633 unique visitors in 2017
@marco79cgn
marco79cgn / schnelltest-availability.js
Last active December 15, 2021 22:55
Shows the available amount of Covid Tests in your local drug store and online
let country = "de"; // replace with 'at' for shops in Austria
let storeId = 251;
let param = args.widgetParameter;
if (param != null && param.length > 0) {
if (param.indexOf(";") > 0) {
const paramSplit = param.split(";");
storeId = paramSplit[0];
country = paramSplit[1].toLowerCase();
} else {
storeId = param;
@rgkobashi
rgkobashi / Clean Code - SOLID Principles - Video Series Summary.md
Created February 19, 2020 08:20
Personal notes/summary of Clean Code SOLID Principles Video Series by Uncle Bob

Foundations of the SOLID principles (Episode 8)

  • Design smells:
    • Immobility
    • Viscosity: how easy is to add design-preserving code to a system
    • Needles complexity
  • Dependency management principles:
    • SOLID
    • Component cohesion principles
    • Component coupling principles