Skip to content

Instantly share code, notes, and snippets.

View Siedlerchr's full-sized avatar

Christoph Siedlerchr

  • Germany
  • 06:59 (UTC +02:00)
View GitHub Profile
@Siedlerchr
Siedlerchr / ObjectListener.php
Created December 23, 2017 15:19 — forked from soyuka/ObjectListener.php
Streaming big json files the good way with php with https://soyuka.me/streaming-big-json-files-the-good-way/
<?php
namespace Fry;
use JsonStreamingParser\Listener;
/**
* This implementation allows to process an object at a specific level
* when it has been fully parsed
*/
import codecs
import os
from nltk import word_tokenize
from nltk.corpus.reader.plaintext import PlaintextCorpusReader
from nltk.corpus import stopwords
from googletrans import Translator
from PyDictionary import PyDictionary
from googletrans import Translator
@Siedlerchr
Siedlerchr / Test.java
Created July 20, 2017 16:59
MWE for Linux bug in javafx/swing accents
package application;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javafx.application.Platform;
import javafx.embed.swing.JFXPanel;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.TextField;
#!/usr/bin/env python3
"""Simple HTTP Server With Upload and basic auth.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
Code is based on:
see: https://gist.github.com/UniIsland/3346170
"""