Skip to content

Instantly share code, notes, and snippets.

Ioan Szatmari epiicme

  • Copenhagen
Block or report user

Report or block epiicme

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
@epiicme
epiicme / PyTwitter.py
Created Apr 8, 2018
Copenhacks2018PythonTwitterAPI
View PyTwitter.py
import tweepy
consumer_key = "0D1k9X4rvKeNjJMU6AjyOYfv2"
consumer_secret = "L2sPX4appghs9F4afaT1ISNyHxWgGJAXSoEumzJOQS6IjvltCF"
access_token = "434339373-8DKIoTsy5K2OfH8DYdvofQUtAILjZ6ZFQWj4DwJc"
access_token_secret = "MbNois2Rfcmtv2EvHb31jjIqm5cHV5oUZQHA5pRJrw6MX"
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
@epiicme
epiicme / MyHandler.java
Created Apr 8, 2018
Copenhacks2018JavaHandler
View MyHandler.java
package com.copenhacks2018;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
import java.io.IOException;
import java.io.OutputStream;
public class MyHandler implements HttpHandler {
@Override
@epiicme
epiicme / GetSentiment.java
Created Apr 8, 2018
Copenhacks2018MSGetSentiment
View GetSentiment.java
package com.copenhacks2018;
import java.io.*;
import java.net.*;
import java.util.*;
import javax.net.ssl.HttpsURLConnection;
/*
* Gson: https://github.com/google/gson
* Maven info:
@epiicme
epiicme / Main.java
Created Apr 8, 2018
Copenhacks2018JavaServer
View Main.java
package com.copenhacks2018;
import static com.copenhacks2018.GetSentiment.prettify;
import java.io.IOException;
import java.net.InetSocketAddress;
import com.sun.net.httpserver.HttpServer;
import twitter4j.*;
public class Main {
You can’t perform that action at this time.