Skip to content

Instantly share code, notes, and snippets.

View JeroenKnoops's full-sized avatar
💻
Computering

Jeroen Knoops JeroenKnoops

💻
Computering
View GitHub Profile
@JeroenKnoops
JeroenKnoops / gist:7d77e0517e9a52be6a2d2fd91bfac9e1
Last active April 21, 2023 09:26
ratchet github actions without blank-lines
$ find . -name "*.y*" -path "./.github/workflows/*" -exec ratchet pin {} \;
$ git diff -U0 -w --no-color --ignore-blank-lines | git apply --cached --ignore-whitespace --unidiff-zero -
$ git commit -sm "Pin GH actions
Dependabot is also capable of pinning to future tag releases
and will maintain the comment that describes the shasum.
https://github.com/dependabot/dependabot-core/issues/4691"
This is a test.

Keybase proof

I hereby claim:

  • I am jeroenknoops on github.
  • I am jeroenknoops (https://keybase.io/jeroenknoops) on keybase.
  • I have a public key ASDp_Tf1Oy4BFCaWSciv5FNpbOeHjOmYmQBpEyGH75TZ5Qo

To claim this, I am signing this object:

@JeroenKnoops
JeroenKnoops / gist:4542188
Created January 15, 2013 21:22
Difference between RubyParser 2.3.1 and RubyParser 3.1.1
RubyParser.new.parse ('"#{_("test3")}"')
=> s(:dstr, "", s(:evstr, s(:call, nil, :_, s(:arglist, s(:str, "test3"))))) # 2.3.1
=> s(:dstr, "", s(:evstr, s(:call, nil, :_, s(:str, "test3")))) # 3.1.1
RubyParser.new.parse ('_("test")')
=> s(:call, nil, :_, s(:arglist, s(:str, "test"))) # 2.3.1
=> s(:call, nil, :_, s(:str, "test")) # 3.1.1