
Research
/Security News
11 Malicious Go Packages Distribute Obfuscated Remote Payloads
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
RubyのCUI上でループ時のアニメーションが簡単に作れるメソッドです。
ループが終了する予測時間も測定してくれます。
Each_with_anim is easiest to make progress bar and other cool animations in CUI.
$ gem install each_with_anim
each_with_animは,アニメーションを表示する以外は基本的にeachと同じ振る舞いをします。
Use "each_with_anim" like "each" method.
require "each_with_anim"
list = %w(hage hoge foo) * 1000
list.each_with_anim do |elem|
#something
end
もちろんwith_indexとかも使えます。
あとeach_with_animationはeach_with_animのエイリアスになってます。ただ長いので非推奨。
also, if you want to use "with_index",
list = %w(hage hoge foo) * 1000
list.each_with_animation.with_index do |elem,i|
#something
end
同様に,引数を取ってアニメーションを変えることができます。今はまだ2つだけ。
暇なときに増やして行きます。
if you want to change animation,
list = %w(hage hoge foo) * 1000
list.each_with_anim(1) do |elem|
#something
end
each_with_anim内でprintすると表示がバグります。
解決策を絶賛探し中。
list = %w(hage hoge foo) * 10
list.each_with_anim do |elem|
puts "piyoo"
end
Bug reports and pull requests are welcome on GitHub at https://github.com/7rpn/each_with_anim. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
なんでもok
すごい顔文字師がいたら助けてください笑
The gem is available as open source under the terms of the MIT License.
自由に使ってください。
FAQs
Unknown package
We found that each_with_anim demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).