- Feb 2024
-
unesdoc.unesco.org unesdoc.unesco.org
- Aug 2023
-
www.liberation.fr www.liberation.fr
-
In Grönland ist die Bevölkerung gezwungen, sich extrem schnell an die globale Erhitzung anzupassen, die am Polarkreis viermal so schnell verläuft wie im globalen Durchschnitt. Manche Verantwortliche verstehen sich als Pioniere der Klima-Anpssung. Dazu gehören intensive Forschung, Umstellung und Entwicklung von Branchen. Traditionelle Lebensformen wie jahreszeitliches Nomadentum können Vorbildcharakter für andere Regionen haben. Reportage in der Libération.
-
- Mar 2023
-
stackoverflow.com stackoverflow.com
-
What you're actually trying to do is to have the exact same behaviour that native Devise implementation but on an Engine via API
-
-
-
github.com github.com
-
More maintained alternative: https://github.com/tinfoil/devise-two-factor
Tags
Annotators
URL
-
- Nov 2022
-
github.com github.com
-
Sidekiq uses all of the data structures Redis provides: lists, sorted sets, hashes.
-
- Aug 2022
-
www.youtube.com www.youtube.com
-
🚀A walkthrough of Obsidian x PPT workflow 🥳Obsidian 與 PPT 工作流整合 ☕中英對照影片 0:59 Install obsidian pandoc plugin 1:45 install homebrew 2:18 install pandoc 3:15 Pandoc path 3:56 introduce the example file
-
Integrating Logseq and Zotero: A great combination for academic writing
-
Using Logseq for PDF note-taking
.
-
- Jun 2021
-
stackoverflow.com stackoverflow.com
-
Or if you're looking for a core extension that adds this to the Array class, I'd recommend the facets gem (require 'facets/array/average'). Then you can just do array.average. And, from looking at the source, it turns out they do the exact same thing as the instance_eval approach above. The only difference is that it's implemented as a method—which of course already has self pointing to itself—instead of a block): def average; return nil if empty?; reduce(:+) / length.to_f; end Main advantage of this is that it's even more concise/readable and it handles the empty? case.
-
- Apr 2021
-
github.com github.com
-
This gem uses a Rack middleware to clear the store object after every request, but that doesn't translate well to background processing with Sidekiq. A companion library, request_store-sidekiq creates a Sidekiq middleware that will ensure the store is cleared after each job is processed, for security and consistency with how this is done in Rack.
-
-
github.com github.com
-
# authenticated :user, lambda {|u| u.role == "admin"} do # root to: "admin/dashboard#show", as: :user_root # end
-
-
github.com github.com
-
class LoggedInConstraint def self.matches?(request) request.env['warden'].authenticate? end end
(have not tried)
-
-
stackoverflow.com stackoverflow.com
-
authenticated :user do root 'calendars#index', as: :authenticated_root end unauthenticated :user do root 'pages#home', as: :unauthenticated_root end
-
- Mar 2021
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
data = {}.extend XKeys::Auto # Vs ::Hash, uses arrays for int keys data[:users, 0, :name] # nil data[:users, 0, :name, :raise => true] # KeyError data[:users, :[], :name] = 'Matz' # :[] is next index, 0 in this case # {:users=>[{:name=>"Matz"}]} pick = [:users, 0, :name] data[*pick] # Matz data[:users, 0, :accesses, :else => 0] += 1 # {:users=>[{:name=>"Matz", :accesses=>1}]}
-
-
github.com github.com
-
No docs?!
[ Some docs here; First saw it here: ] https://bugs.ruby-lang.org/issues/11747#note-7
-
-
trailblazer.to trailblazer.to
-
definitely less rough to work with than Devise
-
- Feb 2021
- Oct 2020
-
dmitripavlutin.com dmitripavlutin.com
-
for...of is a gem because:
-
- Sep 2020
- Jul 2020
-
github.com github.com
-
-
Another Ruby gem, Spira, allows graph data to be used as model objects
-
-
-
Unlike the webpack config, webpacker.yml settings are determined by the current RAILS_ENV.
-
All this to say: your webpack test config, i.e. config/webpack/test.js, is essentially useless unless your application: a. uses a Node.js test runner for JavaScript unit test AND configure it to use your webpack config a. overrides the defaults so that the test config is loaded in your Rails tests (just be sure to change Babel behavior)
-
- May 2020
-
github.com github.com
-
# If you are using devise, you must extend engines's controller with devise helpers in order to get current_user PolicyManager::UserTermsController.send(:include, Devise::Controllers::Helpers)
Tags
Annotators
URL
-
- Apr 2020
-
github.com github.com
-
Remember to call super in any subclasses that override teardown.
And yet the Rails core chose not to use RSpec, citing how it would be too easy to write
subject == expected
on accident?
-
-
github.com github.com
-
github.com github.com
Tags
Annotators
URL
-
-
help.github.com help.github.com
-
GitHub Pages supports two Markdown processors: kramdown and GitHub's own extended CommonMark processer, which is used to render GitHub Flavored Markdown throughout GitHub.
-
-
idratherbewriting.com idratherbewriting.com
-
Github Pages is a sweet service that builds your Jekyll site for you when you commit changes to a Github repo. If you were using redcarpet and Pygments, you now should switch to Kramdown and Rouge to stay updated with the recommended Markdown filter and syntax highlighter supported by Github Pages.
-
-
github.com github.com
-
Switch from redcarpet to kramdown, the new Github Pages default
-
-
github.com github.com
Tags
Annotators
URL
-
-
github.com github.com
-
guides.rubyonrails.org guides.rubyonrails.org
-
Rails also adds a test method that takes a test name and a block. It generates a normal Minitest::Unit test with method names prefixed with test_. So you don't have to worry about naming the methods, and you can write something like:
Or you could use the "it" format mentioned on https://devhints.io/minitest.
Or better yet, just use rspec...
-
-
github.com github.com
-
stackoverflow.com stackoverflow.com
-
github.com github.com
Tags
Annotators
URL
-
-
github.com github.com
-
github.com github.com
Tags
Annotators
URL
-
-
github.com github.com
-
I need that model created despite being invalid, so it actually works in my favor (I have an after-signup profile creation process users through
-
-
github.com github.com
-
github.com github.com
-
Prefer over this: https://github.com/michaelbanfield/devise-pwned_password
-
- Mar 2020
-
github.com github.com
- Dec 2019
-
github.com github.com
- Oct 2019
-
www.rubyraptor.org www.rubyraptor.org
-
stackoverflow.com stackoverflow.com
-
Rack middleware is more than "a way to filter a request and response" - it's an implementation of the pipeline design pattern for web servers using Rack. It very cleanly separates out the different stages of processing a request - separation of concerns being a key goal of all well designed software products.
-
-
github.com github.com
-
site_prism
-
-
github.com github.com