Skip to content

Instantly share code, notes, and snippets.

View fjahr's full-sized avatar
🏠
Working from home

Fabian Jahr fjahr

🏠
Working from home
View GitHub Profile
@fjahr
fjahr / .cVimrc
Created March 29, 2017 23:24
cVimrc
let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*", "@https://mail.google.com/mail/*"]
@fjahr
fjahr / application.html.erb
Last active October 4, 2021 10:35 — forked from suryart/application.html.erb
Displaying Rails 5 flash messages with Twitter Bootstrap 4 (last tested on Alpha-v6). Updated version of https://gist.github.com/suryart/7418454
// layout file
<body>
<div class="container">
<%= flash_messages %>
<%= yield %>
</div><!-- /container -->
</body>

How to use React-intl with PhraseApp

1. Keep your messages in a separate JSON file.

You can use nesting for React-intl v1 or omit it to comply with v2.

en-US.json

{
 'hello_world': 'Hello World'

Keybase proof

I hereby claim:

  • I am fjahr on github.
  • I am fjahr (https://keybase.io/fjahr) on keybase.
  • I have a public key whose fingerprint is CC3E 7047 449F B0CF AF2E E759 445A AC9B B405 55D1

To claim this, I am signing this object: