ack3
advent
Our great sponsors
ack3 | advent | |
---|---|---|
21 | 8 | |
669 | 0 | |
1.8% | - | |
4.3 | 1.8 | |
about 2 months ago | over 2 years ago | |
Perl | Jupyter Notebook | |
GNU General Public License v3.0 or later | - |
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.
ack3
-
Any Linux admins willing to try Pygrep?
fyi ack is like this but for perl instead of python https://beyondgrep.com/
-
Vim: ZZ and zz: Do you know the difference?
If you just need a single shell command you can do :!. Example:
:!ack "stupid_structure->who_wrote_this_crap.oooohhhhh\s+="
(and if you wonder what "ack" means: https://beyondgrep.com/)
-
Share your little shell functions and one-liners that make your life easier
Ack is consistent with grep but will sensibly handle the recursive stuff for you.
-
Found malware in the source code for my companyβs website
Scan the file tree containing the website for the links, or part of tje links, for example with ack which is an easy to use, recursive reimplementation of grep.
-
What is something you want to make, but python is too slow for it?
I've thought about redoing ack in Python but it wasn't any faster than the current Perl.
-
I made grep -- but better
Ever hear of ack it might be a faster alternative.
-
Ask HN: Can I see your scripts?
No, but thanks for pointing out its existence. Homepage:
https://beyondgrep.com/
-
Can't run freeze_graph python script, No module named 'tensorflow.python'
(ack comes from ack-grep, a better version of grep, but you can just replace it with grep -r)
-
Using Ack To Search Elixir Code
I've been a fan of ack for quite some time. Somehow (and I'm not quite sure how) once or twice it's found stuff in source code that VSCode simply misses (likely I was searching wrong with VSCode). And there are a few things I've found that make it even more effective in searching Elixir code that I thought I'd share.
-
ripgrep: grep but better
Very much agreed. I'm a developer and I honestly prefer ack (https://beyondgrep.com/) myself. But it has the exact same issue. It's not standard.
advent
-
-π- 2021 Day 25 Solutions -π-
Day 25 Solution
-
[2021 Day 20 (Part 1)][Python] Is there a flaw in my logic?
I can't find an answer to what causes my script to give the right answer to the example but not to the real input. The workflow looks like this: 1. the padding-character is "." 2. expand the input-matrix by 1 padding-character in each direction 3. for each pixel of the expanded image query the surrounding 8 pixels. If out of bounds add the pudding character instead. 4. flip the pudding from "." to "#" or from '#' to '.' if necessary. 5. Go back to step 2 and repeat the process with the new image
-
[2021 Day 18 (Part 1)][Python 3] bug in final example
With the help of reddit users and endless patience I got this far: https://github.com/martino-vic/Advent/blob/master/day18/day18_3.ipynb It passes all the tests, *except* for the final example homework assignment, which I have saved in file "i3". I'd actually not only be curious what the bug here might be, but maybe in this case it would be more useful to learn how to debug these kind of cases efficiently. What worked until now was a print() and input() statement in the while loop so I could track step by step what is happening. But with this many additions and reductions it's simply impossible to catch a bug that way. So I'm thinking about what strategies could exist to identify a bug in a scenario like this, especially if all the previous tests (including the "slightly larger example") are passing. Any help - as always - much appreciated!
-
[2021 Day 18 (Part 1)][Python 3] infinite loop at "[[[0,[4,5]],[0,0]],[[[4,5],[2,6]],[9,5]]] [7,[[[3,7],[4,3]] + [[6,3],[8,8]]]]"
I spent the entire day with this but didn't manage to get a silver star: https://github.com/martino-vic/Advent/blob/master/day18/day18_2.ipynb I intensly hope someone can help me out... I cleaned up the code so it's easier to see what's going on. It works well until the " Here's a slightly larger example: "-part. I have the feeling it must be some trivial mistake but I can't figure it out and with my current tiredness level I've lost hope that I will. At one point the code enters an infinite loop and I can't figure out how to snap out of it. I've put an input() statement in one line, so that the while loop doesn't run away and one can track round by round what is happening. Maybe someone had some similar issue as me and can quickly point out the issue? Any hints and any help much appreciated!
-
[2021 Day 15 (Part 1)][Python] correct for easy example wrong for real input
Didn't manage to get a silver star, similar situation as yesterday: I get the correct output for the easier input-example and for the real input the answer is wrong and it's a complete mystery to me why. Tinkered around for 2.5h before I gave up: https://github.com/martino-vic/Advent/tree/master/day15
-
poly 40 iterations
[2021 14 #part2] Python 3: https://github.com/martino-vic/Advent/tree/master/day14
-
-π- 2021 Day 10 Solutions -π-
Python 3 part1: https://github.com/martino-vic/Advent/tree/master/day14 got a silver star quite quickly by using nltk's ngrams. Part 2 tripped me up, works only for the easy input but for the proper one it gives me the wrong output, no idea why :/
What are some alternatives?
fzf.vim - fzf :heart: vim
advent-of-code - My solutions for the Advent of Code
ripgrep - ripgrep recursively searches directories for a regex pattern while respecting your gitignore
AdventOfCode2021
the_silver_searcher - A code-searching tool similar to ack, but faster.
AdventOfCode
net-amqp-rabbitmq - Perl bindings to the librabbitmq-c AMQP library.
aoc_2021scala - scala version aoc 2021
website - The source code for the beyondgrep.com website
ttygif - Convert terminal recordings to animated gifs
autobots - β‘οΈ Scripts & dotfiles for automation and/or bootstrapping new system setup
perl5 - πͺ The Perl programming language