Skip to content

Instantly share code, notes, and snippets.

Avatar
🌍

Sebastian Nielsen Sebastian-Nielsen

🌍
View GitHub Profile
View stackedit_custom_style.css
@font-face {
font-family: KaTeX_AMS;
src: url(/static/fonts/KaTeX_AMS-Regular.e78e28b.woff2) format("woff2"), url(/static/fonts/KaTeX_AMS-Regular.7f06b4e.woff) format("woff"), url(/static/fonts/KaTeX_AMS-Regular.aaf4eee.ttf) format("truetype");
font-weight: 400;
font-style: normal
}
@font-face {
font-family: KaTeX_Caligraphic;
src: url(/static/fonts/KaTeX_Caligraphic-Bold.4ec58be.woff2) format("woff2"), url(/static/fonts/KaTeX_Caligraphic-Bold.1e802ca.woff) format("woff"), url(/static/fonts/KaTeX_Caligraphic-Bold.021dd4d.ttf) format("truetype");
View Main.py
import tkinter as tk
from tkinter import *
from tkinter import messagebox
from tkinter.ttk import Combobox, Progressbar, Separator, Style
import tkinter.font as font
import sys, os, re, platform, bisect, pyperclip, requests, logging, webbrowser, random, getpass, locale, csv
from random import randint
from bs4 import BeautifulSoup
View Main.py
import tkinter as tk
from tkinter import *
from tkinter import messagebox
from tkinter.ttk import Combobox, Progressbar, Separator, Style
import tkinter.font as font
import sys, os, re, platform, bisect, pyperclip, requests, logging, webbrowser, random, getpass, locale
from random import randint
from bs4 import BeautifulSoup
View Text summarizer.py
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize, sent_tokenize
from nltk.stem.snowball import SnowballStemmer
import nltk
# If you get an error uncomment this line and download the necessary libraries
#nltk.download()
text = """ """
View Danish sentiment analysis.py
from afinn import Afinn # https://github.com/fnielsen/afinn
from collections import namedtuple
afinn = Afinn(language='da', emoticons=True)
ScoreTuple = namedtuple('scores', 'score word line')
def sentiment_score_of_words(text, ignore_neutral_sentiment=True, show_analysis=True):
text = clean_text(text)
lineNr = 1
View Disable_spotify_ads.bat
@echo
title Spotify-noad
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
) ELSE (
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
@Sebastian-Nielsen
Sebastian-Nielsen / Twitter contest bot
Last active Jun 16, 2018
A python bot that automatically joins contests on twitter.
View Twitter contest bot
import tweepy, random, colorama
from time import sleep
from colorama import init, Fore, Back, Style
from time import ctime
update_messages = ['I am having a great day today! :)', 'What a wonderful day today.', 'Feeling good #excellent :D', 'Having fun today', 'Why are pugs so cute?', 'I am bored :(', 'Watching a movie tonight.', 'I hope I win this contest #FeelsGoodMan', 'I Love Cake #cake', 'Much memes everywhere', 'Why u do dis to me :( Feelsbadman', 'Icecream is the best thing in the world!', 'Have a nice day everyone!', 'I am feeling tired today :/', 'I just joined a giveaway #Feeling lucky :D', 'Icecream is the best thing in the world! :D', 'Hell yeah, getting pizza tonight #FeelsGoodMan', 'Lmao, I got shit on my shoe.', 'I got a lot of homework today to do. :( #Homework #FML','I got a lot of homework today to do. :( #Homework #FML']
hashtags = ['#Follow #WIN', '#COMPETITION', '#giveaway', '#win',]
consumer_key = '' # WRITE_HERE
consumer_secret = '' # WRITE_HERE