Skip to content

Instantly share code, notes, and snippets.

View Sebastian-Nielsen's full-sized avatar
🌍

Sebastian Nielsen Sebastian-Nielsen

🌍
  • Denmark
View GitHub Profile
-- Actions ---
$Copy <C-C> <C-Ins>
$Cut <C-X> <S-Del>
$Delete <Del>
$LRU
$Paste <C-V> <S-Ins>
$Redo <C-S-Z> <A-S-BS>
$SearchWeb
$SelectAll <C-A>
$Undo <C-Z> <A-BS>
import React, {useState} from 'react';
import {createStyles, makeStyles, Theme} from '@material-ui/core/styles';
import InputLabel from '@material-ui/core/InputLabel';
import Select from '@material-ui/core/Select';
import MenuItem from '@material-ui/core/MenuItem';
import FormControl from '@material-ui/core/FormControl';
import {FormHelperText} from '@material-ui/core';
const useStyles = makeStyles((theme: Theme) =>
createStyles({
@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");
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
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
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 = """ """
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
@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"
https://farm5.staticflickr.com/4443/36824719563_e03102a892_o.jpg
None
1
5000
f8UG3Hy82S
9
aA0!bBcC"1dDeE2f#FgG3%hHi&I4/jJ(kK)5l=Lm?M6@nNoO7pPqQ8rRsS9tTuUvVwWxXyYzZ
1aAbBc2CdDeE3fFgG4hHjJ5kKlLm6iIwWMnNo7OpPq8QrRsS9tTuUvVxXyYzZ
4 501
0
@Sebastian-Nielsen
Sebastian-Nielsen / Twitter contest bot
Last active June 16, 2018 06:18
A python bot that automatically joins contests on twitter.
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