Skip to content

Instantly share code, notes, and snippets.

@cvkmohan
cvkmohan / application.html.erb
Created July 27, 2021 04:11
Rails Flash Messages using Tailwind, Stimulus and ViewComponents
<% flash.each do |type, title| %>
<%= render FlashComponent.new(type: type, title: title) %>
<% end %>
# -*- coding: utf-8 -*-
import re
import tweepy
from tweepy import OAuthHandler
from textblob import TextBlob
class TwitterClient(object):
'''
Generic Twitter Class for sentiment analysis.
# -*- coding: utf-8 -*-
import re
import tweepy
from tweepy import OAuthHandler
from textblob import TextBlob
class TwitterClient(object):
'''
Generic Twitter Class for sentiment analysis.