cheatsheets
RegExr
Our great sponsors
cheatsheets | RegExr | |
---|---|---|
60 | 579 | |
5,596 | 9,541 | |
1.5% | - | |
7.6 | 0.0 | |
5 days ago | about 1 month ago | |
TeX | JavaScript | |
Creative Commons Attribution 4.0 | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cheatsheets
-
Tools a Data Scientist should know:
If you're an R user, stringr + its cheatsheet gets you very close to remembering what to do without needing to look further!
-
JSON to PDF Magic: Harnessing LaTeX and JSON for Effortless Customization and Dynamic PDF Generation
For more information on how to use ggplot2 and create charts consult the ggplot2 official page or the ggplot2 cheat graphic.
-
Best packages to learn?
I'd suggest you have a look at cheatsheets (or download them from GitHub) if you want to get to know your way around a package or set if functions, it saves you a lot of time.
-
How do I make these shapes (pictured below) in ggplot?
You could use geom_hline and geom_vline, geom_abline, or geom_segment for this. (The ggplot cheat sheet is very useful for answering these kinds of questions, BTW.)
-
Why does my scatter plot look like this?
I can't say for sure because I don't know what your ultimate aim is for your visualization. Check out the cheat sheet for ggplot2 here.
-
Import from Excel
Finally just do your analysis. You should also should give a try and see the cheat sheet for data importing on the tidyverse package.
-
[Request] How to best visualize percentages with R?
That said, when Iām trying to come up with an interesting way to visualize data, I find the ggplot cheat sheet very helpful: https://github.com/rstudio/cheatsheets/raw/main/data-visualization-2.1.pdf
-
Need help with variables
Here's a cheat sheet: https://github.com/rstudio/cheatsheets/blob/main/strings.pdf
-
Data manipulation in R
The cheat sheet of the stringr package should give you good overview of string manipulation/ regex in R.
-
I'm trying to recreate this plot but I keep failing
I would very highly recommend that rather than trying to get started by translating an existing graph, you check out some documentation about ggplot first. If nothing else, the ggplot cheat sheet from RStudio should help explain what the component parts of the code are, and that might help you figure out what you actually want to do.
RegExr
-
Hot Springs
When thinking about how I might compare an arrangement to the contiguous group of damaged springs, I used regexr.com to experiment with very specific regexs that used the numbers.
-
Demystifying Regular Expressions (Regex): A Chat Sheet Guide
There are plenty of online regex tools to test and experiment with regex patterns. Some popular ones include RegExr, RegEx101, and RegexPlanet.
-
Camel Cards
Using regexr.com it at least appears to work as expected.
-
[2023 Day 2] [Python] Stuck on the first task
If you are going to use RE's, use something like https://regexr.com/ to double check that they're doing what you want. I was suspicious of your 'cols = re.findall(r'\d+ .....', i)' line, and indeed it does miss some columns. You should rethink your column detection, and either not use REs or learn how to use capture groups and \w. There would then be no reason to use yet another RE in your column iterator to extract the numbers which you've already detected.
-
2023 Day 2 Part A [Java] regex pattern not matching
First time posting here, let me know if I need to edit post to conform to any rules. My issue is that I'm trying to match regex pattern to separate out the number of cubes drawn and its color but my Matcher object seems to not be returning any matches so it's throwing a no match found exception when I try to call digitMatcher.group(). I have tested my regex pattern on sites like regexr and it seems to pass there but it's not working for some reason here. I use the same type of regex on day one and it work there so I'm not sure where my regex pattern is failing here. I'm talking about specifically in my isGameValid() method where I create a matcher base on a pattern I made above. Through debugging I know that I separated the string color pairing correctly and that my Matcher object has the correct regex pattern, it's just not matching for some reason. Any help would be appreciated. Code below:
-
Trebuchet?!
Regexr has been an invaluable tool as a beginner.
-
10 Lesser-Known Tools and Websites to Spice Up Your Developer Toolbox
RegExr simplifies working with regular expressions. This online tool provides a visual interface for building and testing regex patterns in real-time, making regex less intimidating.
- What regex flavour does vscode use in language-configuration.json
-
Regex not working
Ho did you arrive at the regex? I usually use a website to , such as https://regex101.com/, https://regexr.com/, https://regex-generator.olafneumann.org/ in combination of each other, as some explain better than the other.
-
Capture the first instance, but don't stop?
I pulled this into regexr.com and it yielded the same results except it removed :41:
What are some alternatives?
tidytuesday - Official repo for the #tidytuesday project
RegEx101 - This repository is currently only used for issue tracking for www.regex101.com
forcats - šššš: tools for working with categorical variables (factors)
RegExpBuilder
mostly-adequate-guide - Mostly adequate guide to FP (in javascript)
Visual Studio Code - Visual Studio Code
ggplot2-book - ggplot2: elegant graphics for data analysis
CyberChef - The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis
mech - š¦¾ Main repository for the Mech programming language. Start here!
self-hosted - Sentry, feature-complete and packaged up for low-volume deployments and proofs-of-concept
ggplot2 - An implementation of the Grammar of Graphics in R
Regexly - WYSIWYG Regex playground for those who JavaScript