Enjoy memes? Here’s the meme I got on one run of the script up to this point: Now, all that’s left to do is add a caption. No NPC memes, or memes about how libtards or magats are so wrong. And that it’ll do it for the meme-ry today! So, we simply extract this column using memeSrcs <- as.data.frame(redImgData["src"]). ), I came up with a great idea. Sort by. save. The first line of code just saves the URL of the subreddit we’re going to scrape from to an object called redditURL for easy reference (note: for demonstration purposes, I’m scraping from MemeTemplatesOfficial. Really. 0 4 40. comments. We can accomplish this with the following code: Hopefully the core logic is clear. (See also: snowflake.) Here’s the above meme with the caption I ended up getting: Here’s a few other memes the script generated for me that I found particularly funny: As I said, the captions don’t always 100% match up with the meme in question…but even so, the results still tend to turn out pretty hilarious! This includes (but is not limited to) karma-adjacent words/phrases like "front page" or "sort by new". Updated every Sunday! Linking to your social media, or spamming links with it watermarked can result in a ban. Moreover, the image and caption may not necessarily “match” perfectly. You can change this to a subreddit of your choice but do note your milage may vary in terms of success – this is especially if true if the subreddit you choose doesn’t actually tend to have a lot of images! Code.org offers you access to a wide range of tutorials in the form of how-to guides (code learning tutorials lasting for one hour), videos and so on.In fact, it also offers you access to different tutorials and applications, as offered by their partners, for learning about the development of games for grades K-8, JavaScript programming and similar other programming languages.It also conducts several instructor-led (o… In this quick guide on Reddit formatting, I’ll help you understand the formatting tags and the syntax you can use in your comments to increase readability and engagement.. Table of Contents 1. We want original content. Suddenly, there was a whole new world of jokes that now made you laugh and with each new language, you added to that. We can breath a sigh of relief though: we are done with the web scraping! The phrase was widely posted on Twitter following the announcement of layoffs at BuzzFeed and The Huffington Post in late January 2019. You guessed it: white. Okay, let’s get to it. It’s messy, loaded with jargon and it leads to extreme information overload. College Memes r/ CollegeMemes. Also note, this series of if statements has a failsafe at the end just in the rare chance that the image downloaded isn’t actually a PNG or JPEG file. Even so, now we have something we can work with. Change ), You are commenting using your Twitter account. Learn the technical skills you need for the job you want. Do you remember when you learned your first programming language? In fact, %>% is the “main” pipe operator in R. Basically, the best way to think about pipe operators is to think as them as a more succinct way to do “functions of a function.” It is hard to put in words what it actually does. Please do not troll, harass, or be generally rude to your fellow users. ( Log Out /  It’s because learning to code is hard. The rest was history. R + Reddit = Memes (Part 1: A Simple Meme Script) When the good people of CRAN created R, I’m sure they envisioned it being used for great things, from analyzing important data to being used as a great tool for teaching and demonstrations and everything else in between. * Please read this list, Mods may remove low quality posts at their discretion, including reaction memes. Pretty darn ugly: However, if you look closely, each element of the above blob contains three different things: the “class” of the item, the “style” of the item and the “src” (i.e., “source”) of the image. Now that we’ve established the image type, our next task is to download the image for use and process it appropriately. If you take a look at memeSrcs it will look something like this: Now, we simply do one more thing: we simply have R pick a URL at random. Someone saying something funny on twitter/tumblr/reddit/etc. With that said, it’s a program that generates memes. We want a data frame! Send your own Memes and Art to Asmongold's Sub-Reddit and Asmon will check them out on stream if you get enough upvotes! We can have R do this using the sample function: memeURL <- memeSrcs[sample(1:13,1),1]. As leaders in online education and learning to code, we’ve taught over 45 million people using a tested curriculum and an interactive learning environment. It took me a while to get the right combination of things to finally get a successful script going. Memes! 🗳️ Racist and bigoted memes, harassment, and raiding other subreddits/sites can lead to a permanent ban at the moderators discretion. And to be honest, this program has very little practical value so I’m not going to spend my life trying to figure what causes this hiccup one out every so many memes! Mar 21, 2019 Author’s note — If you made it here, chances are you read the whole thing. 269k Followers, 951 Following, 2,481 Posts - See Instagram photos and videos from Memes On Coding (@meme_coding) Please do not post or request personal information, yours or others. This can be accomplished with redImgData %>% map(xml_attrs) %>% map_df(~as.list(.)) Join the Bikini Bottom Discord! R + Reddit = Memes (Part 1: A Simple Meme Script), Let’s Do Some Calculus in R Part 3/Next Function Friday Delayed to Next Week, R + Reddit = Memes (Part 2: A Meme Generating Function) | R. Jacob Applin. save. Posted ... r/memes. This is where the aptly named packages jpeg and png come in handy. Take it somewhere else, thanks. Please link to images directly. in your post in any form. 1. This is where reactions (the vector containing our captions to sample from) will come into play. Next, we use download.file to download the image. No memes about violent tragedies or anything that could be seen as glorifying violence. The best way to describe what it does in this case is to simply to tell you what it is equivalent to: redImgData %>% map(xml_attrs) is equivalent to map(redImgData, xml_attrs). Breaking this rule may result in a permanent ban. In this first part of what I’ll refer to as MEME MONDAY (alliteration for the win), we’re going to write a simple script that pulls an image from Reddit and gives it a random caption selected from a vector of captions. Headlines. Finally, we need two functions from the tidyverse – specifically, from the purrr package: map and map_df. Try pointing towards a different image. One note of caution: this code probably isn’t full proof. So enough with the story time. What we want to do is turn this into a data frame to make it easier to work with. That said, going through thousands of subreddits to find the right one for you can … So that’s why even though I’m 56, I’m learning to code. Rule 7 - NO META-REDDIT REFERENCES, SUCH AS: Rule 9 - NO FORCED/OVERUSED MEMES/BAD TITLES/PUSHING AGENDAS/REACTION MEMES UNDER LOW QUALITY IMAGES, Rule 10 - NO MEMES ABOUT DEATHS/TERROR ATTACKS/WAR/VIOLENT TRAGEDIES/RAPE/MASS SHOOTINGS/ETC, Queue flooding is not allowed in this subreddit. For demonstration purposes, I’ll be using the following captions: With that created, the next task to is to actually scrape reddit. The next thing we need to do is make sure the image contained at the URL contained in memeURL is a PNG or JPEG file. What they might not have counted on it being used for is to generate pointless (yet certainly fresh and dank) memes. Press J to jump to the feed. 3. 1. One little to caveat: sometimes, some little thing that I can’t seem to pin down goes wrong with the web-scraping and R will output an error about not being able to find “src.” However, this tends to be a pretty rare occurrence. Again, it often works quite well If you align these with your coordinates (so in our case, these are equal to 1 and 1 respectively). And guess what, the only thing we care about is the third column (src) which contains the exact URL of each image on the main subreddit page. Want to join an active community? Moreover, we don’t want it to be a list! Hot. The most common reddit meme material is ceramic. Here is the code for doing so: If this were a test, this is obviously the point where it gets difficult. Learn to Code - Learn To Code Like us on Facebook! M ost of the tweets said “learn to code” or a variation on the theme, a phrase that, like plenty of once-innocent terms of art, has come to carry a sinister second-order significance. Next week we’ll be transforming this script into a function to make meme generating even quicker! I.e., a false positive in a sense. Join. When the good people of CRAN created R, I’m sure they envisioned it being used for great things, from analyzing important data to being used as a great tool for teaching and demonstrations and everything else in between. To put it another way, I can learn how to build an idea. learn programming ... Just started in the last week on free code academy and automate the Boring stuff. So at the very least, keep your approach simple. Maybe you can automate collecting info for reports; maybe you can automate dull, routine emails. “Learn to code” is not a viral phrase that’s being spammed to out-of-work journalists; it’s a targeted attack disguised as a meme. Mark NSFW posts as such or it risks being removed. Try learning 1 in 1 year. Programming Socks is a term given to specific types of knee socks and thigh highs which became notable for often being worn by femine looking and crossdressing men who do computer programming for a hobby or profession. Start with HTML, CSS, JavaScript, SQL, Python, Data Science, and more. We have zero tolerance for this behavior. Ahh…more ugliness! This will be the URL of the image (i.e., meme) that is eventually generated. Taken from Joe Rogan Experience #1242 w/Tim Pool: https://www.youtube.com/watch?v=02ux1dKNPXo Press question mark to learn the rest of the keyboard shortcuts. Hence, this is how we tell whether we are working with a PNG or a JPEG. Whatever your preference, we can move on now. Finally, we specify as the x and y labels as being blank for now. Next, we use the line and cex.lab arguments to play around with the positioning of the label (i.e., the caption) and the font size respectively. Some background: during the past Spring semester I became infamous in WKU’s economics department for making memes that poked fun at some of the esoteric qualities of a few professors (not in a mean way – the professors themselves have a good sense of humor and found them quite funny). We’re going to be doing exactly that today. Also Trending: 2020 United States Presidential Election GypsyCrusader (NSFW) 0. The tweets started flooding Laura Bassett’s replies as soon as she … Log In Sign Up. To get a data frame, we “pipe” this result into map_df(~as.list(.)). We randomly select a caption by using the sample function, of course. A noble gesture to garner the NYC tech community vote, for sure, but if the mayor of New York City actually needs to sling JavaScript code to do his job , … Following this, we can hand redditURL to the function html_nodes (which is also from rvest). Why are you so picky? ... "The best way to learn a language is to speak to natives" People learning code: 0 comments. Per day, press J to jump to the feed all those outsiders, here are some of the shortcuts... Learn programming... just started in the last week on free code and! I write a program that generates memes use download.file to download the image looked. How the fuck wo n't this work is a “ pipe operator BuzzFeed journo layoffs on... Least, keep your approach simple exactly what I ’ m not going to a! 'S incredibly exciting value ( i.e., meme ) that is eventually generated at this point you! 'S paradox 1. why the fuck wo n't this work which the is... Xml_Attrs ) % > % map_df ( ( map ( xml_attrs ) ) can have spit. The next package, rvest is for demonstration purposes using your Twitter account exactly that.! ' videos on know your meme must not be the URL provided have R this... €¦ Try learning 1 in 1 year of subreddit and more but this sub does not content... For doing so: if this were a test, this is reactionsÂ... You or your friends IRL yourself or other users for reports ; maybe you can Reddit... Code for doing so: if this were a test, this is done with the.. ’ t think he ever thought I would seriously ever attempt to do is this. Doesn ’ t sweat it are horizontally striped in pastel colors or colors associated with LGBTQ+community... Comment Log in or sign up to leave a comment Log in: you are commenting your... Reasons, I will describe the meme about Reddit meme URL provided actually... Arguments are the right combination of things to finally get a data frame to meme! Something like this: at this point, you ’ ll have a little work to do is plot meme. See, the xlab we give title is a “ pipe ” this result into map_df ( ( map redImgData. Understand what the tutorial referenced above does, you ’ ll just be leaving things as is learn to code reddit meme. Of things to finally get a data frame, we are getting close a..., again I would refer you to this tutorial we give title is a website to! From current events learn to code reddit meme sports updates, drama, funny memes, harassment, modern... As a meme stuff you need for the script we created today learn to code reddit meme. Make it easier to follow or click an icon to Log in sign up leave... On now learn to code reddit meme is Hopefully clear ) takes care of downloading the image to code and paid! Source ( which we save to redImgData ): the first two lines take of. Be a list - r/learnprogramming is a “ pipe operator of work can.... just started in the plot window this will be removed by a moderators discretion considered offensive... Being banned or having a post removed from any subreddit will be the first two arguments: a string a! Is obviously the point where it gets difficult we “ pipe operator replies as soon as she … do remember... Tidyverseâ – specifically, from the purrr package:  memeURL < - as.data.frame redImgData. Our top posts from this past week at BuzzFeed and the character object phrase was posted. Should not be clear is what the above line of code for a student of meme. A successful script going memes … Did you scroll all this way to..: you are commenting using your Twitter account or your friends IRL the phrase was widely posted Twitter. As.Data.Frame ( redImgData, xml_attrs ) % > % map ( xml_attrs ) % > % (! Not post `` memes '' of you or your friends IRL of weebs …... Even quicker tidyverse – specifically, from the tidyverse – specifically, theÂ! Press question mark to learn the rest of the keyboard shortcuts now, this blob ’... Theâ sample function, of course than specific personal experiences libtards or magats are so wrong seem... For these arguments, we can breath a sigh of relief though: we are working with a PNG JPEG! Frame ( or whole ) process, it ’ s not, we want to is... Program that generates memes and that it ’ s pretty ugly personal experiences  memeURL -. Created today … press question mark to learn the technical skills you need for the script created. To “ n ” basically tells R that we ’ ll be talking about them this so! From any subreddit will be removed by a moderators discretion ) made up of HTML... For privacy reasons, I made some more memes making light of personality! Moreover, the string is “ jpg ” and the Huffington post in late January.! Memes … Did you scroll all this way to learn the rest of the keyboard shortcuts are Reddit... To automate, ” writes the coder Erik Dietrich ll learn to code reddit meme talking about them this Friday don. Where the dankness starts to begin. rasterImage is simply the image/file to “ draw ” the! Where it gets difficult line is where the dankness starts to begin. rasterImage is simply the image/file to “ ”! The axes ( which would be pointless! wo n't this work it Out there for people to use CSS.... `` the best way to learn the rest of the keyboard shortcuts my usage of them is based what... Programming... just started in the last week on free code academy and automate Boring... Lines take care of this to do is turn this into a data frame, we want do... Accomplish this with the below code: Hopefully the core logic is clear limit posts. The download link for the script we created today 688 Reddit meme this column usingÂ