Skip Navigation

Posts
1
Comments
64
Joined
11 mo. ago

  • It's prison slang. Quicker to say, and quicker to type here.

  • Let's see how well I do:

    1. Coursera
    2. ?
    3. Python
    4. C++
    5. JavaScript
    6. Swift
    7. Docker
    8. The importance of clean code?
    9. ?
    10. Hannah Montana Linux
    11. Visual Studio Code
    12. C#
    13. Scala
    14. Anime children in general?
    15. ?
    16. PHP
    17. Linux
    18. ?
    19. ?
    20. Amazon Web Services
    21. Java
    22. Git
    23. Red Hat
  • And it will trickle up.

  • sudo alien -d bigfuckinmistake.rpm

  • bigfuckinmistake.rpm

  • nyarch

    Jump
  • Install appimages easily with gearlever

    How many AppImage managers are there now?

  • How did it go?

  • unofficial

    You appear to be looking at their official website. Services tend to not advertise unofficial clients

  • Most people? Is that true?

  • Subscription price is increasing this autumn.

  • Here is my cheatsheet that has been very helpful. Obviously, this will not teach you how RegEx works, but is a good quick reference when I forget the exact syntax for something.

    RegExp

    Character classes

    | Pattern | Description | | ------------- | ---------------------------------------- | | . | Any character, except newline | | \w | Word | | \d | Digit | | \s | Whitespace | | \W | Not word | | \D | Not digit | | \S | Not whitespace | | [abc] | Any of a, b, or c | | [a-e] | Characters between a and e | | [1-9] | Digit between 1 and 9 | | [[:print:]] | Any printable character including spaces | | [^abc] | Any character except a, b or c |

    Anchors

    | Pattern | Description | | ------- | ---------------------- | | \G | Start of match | | ^ | Start of string | | $ | End of string | | \A | Start of string | | \Z | End of string | | \z | Absolute end of string | | \b | A word boundary | | \B | Non-word boundary | | ^abc | Start with abc | | abc$ | End with abc |

    For multiline patterns (m flag), ^ and $ will act as start and end of line.

    Escaped characters

    | Pattern | Description | | ---------- | -------------------------------------- | | \. \* \\ | Escape special character used by regex | | \t | Tab | | \n | Newline | | \r | Carriage return |

    Groups

    | Pattern | Description | | --------- | -------------------------------------------------------- | | (abc) | Capture group | | (a\|b) | Match a or b | | (?:abc) | Match abc, but don't capture | | \1 | Substituted with text matched of the 1st capturing group |

    Quantifiers

    | Pattern | Description | | -------- | --------------------- | | a* | Match 0 or more | | a+ | Match 1 or more | | a? | Match 0 or 1 | | a{5} | Match exactly 5 | | a{,3} | Match up to 3 | | a{3,} | Match 3 or more | | a{1,3} | Match between 1 and 3 |

    Lookahead & Lookbehind

    | Pattern | Description | | --- | --- | | a(?=b) | Match a in baby but not in bay | | a(?!b) | Match a in Stan but not in Stab | | (?<=a)b | Match b in crabs but not in cribs | | (?<!a)b | Match b in fib but not in fab | | (?<![a-z])abc(?![a-z]) | Match abc without any letters before/after |

      markdown
        
    # RegExp
    
    ## Character classes
    
    | Pattern       | Description                              |
    | ------------- | ---------------------------------------- |
    | `.`           | Any character, except newline            |
    | `\w`          | Word                                     |
    | `\d`          | Digit                                    |
    | `\s`          | Whitespace                               |
    | `\W`          | Not word                                 |
    | `\D`          | Not digit                                |
    | `\S`          | Not whitespace                           |
    | `[abc]`       | Any of a, b, or c                        |
    | `[a-e]`       | Characters between `a` and `e`           |
    | `[1-9]`       | Digit between `1` and `9`                |
    | `[[:print:]]` | Any printable character including spaces |
    | `[^abc]`      | Any character except `a`, `b` or `c`     |
    
    ## Anchors
    
    | Pattern | Description            |
    | ------- | ---------------------- |
    | `\G`    | Start of match         |
    | `^`     | Start of string \*     |
    | `$`     | End of string \*       |
    | `\A`    | Start of string        |
    | `\Z`    | End of string          |
    | `\z`    | Absolute end of string |
    | `\b`    | A word boundary        |
    | `\B`    | Non-word boundary      |
    | `^abc`  | Start with `abc`       |
    | `abc$`  | End with `abc`         |
    
    For multiline patterns (`m` flag), `^` and `$` will act as start and end of line.
    
    ## Escaped characters
    
    | Pattern    | Description                            |
    | ---------- | -------------------------------------- |
    | `\. \* \\` | Escape special character used by regex |
    | `\t`       | Tab                                    |
    | `\n`       | Newline                                |
    | `\r`       | Carriage return                        |
    
    ## Groups
    
    | Pattern   | Description                                              |
    | --------- | -------------------------------------------------------- |
    | `(abc)`   | Capture group                                            |
    | `(a\|b)`  | Match `a` or `b`                                         |
    | `(?:abc)` | Match `abc`, but don't capture                           |
    | `\1`      | Substituted with text matched of the 1st capturing group |
    
    
    ## Quantifiers
    
    | Pattern  | Description           |
    | -------- | --------------------- |
    | `a*`     | Match 0 or more       |
    | `a+`     | Match 1 or more       |
    | `a?`     | Match 0 or 1          |
    | `a{5}`   | Match exactly 5       |
    | `a{,3}`  | Match up to 3         |
    | `a{3,}`  | Match 3 or more       |
    | `a{1,3}` | Match between 1 and 3 |
    
    ## Lookahead & Lookbehind
    
    | Pattern                  | Description                                  |
    | ---                      | ---                                          |
    | `a(?=b)`                 | Match `a` in `baby` but not in `bay`         |
    | `a(?!b)`                 | Match `a` in `Stan` but not in `Stab`        |
    | `(?<=a)b`                | Match `b` in `crabs` but not in `cribs`      |
    | `(?<!a)b`                | Match `b` in `fib` but not in `fab`          |
    | `(?<![a-z])abc(?![a-z])` | Match `abc` without any letters before/after |
    
      
  • How so? I have been getting much more comfortable with it lately, but I am curious what downsides there are

  • I think this is why OP typed it incorrectly. OP and this community are both on an instance that arbitrarily censors language.

  • Thanks, Satan.

  • I do cokeSo I can ~work longer~ be thinnerSo I can earn moreSo I can do more coke

  • Cockpit?

  • From what I understand, this is a Bing ~bug~ feature that makes its way "downstream" to DuckDuckGo results. Someone please correct me if I am wrong.

  • I remember before the Steam Deck was released, and people were discussing all the potential capabilities of the upcoming device, it was often asked if this might be a feature. Of course, there were the usual "It's a PC, so yes" answers, but the more accurate answers along the lines of "If it's not, someone will make it work" are finally coming true now.

  • Ask Lemmy @lemmy.world

    Why did you set an avatar for your profile?