This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Again with the markdown. Imagine if we'd changed the method instead of the views! Oh well this is one that is in Hyrax as well. 📑 app/views/hyrax/my/collections/_list_collections.html.erb | |
Again with the markdown. 📑 app/views/hyrax/dashboard/works/_list_works.html.erb | |
Alters rendering of component's CSS also has some additional logic. Likely keep. 📑 app/views/catalog/_index_list_default.html.erb | |
Bring over Hyrax updates but we need version logic 📑 app/assets/javascripts/hyrax/editor.es6 | |
Compare and merge into i35's app/controllers/concerns/hyku/works_controller_behavior.rb 📑 app/controllers/concerns/hyrax/works_controller_behavior.rb | |
Consider removing as we should have this config section hidden; and wouldn't need another view override. 📑 app/views/hyrax/dashboard/show_admin.html.erb | |
Consider removing if the underlying flash message bug is fixed 📑 app/views/layouts/hyrax/dashboard.html.erb | |
Convert to decorator with default image based on Site 📑 app/services/hyrax/thumbnail_path_service.rb | |
Cr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; An alternate implementation of Howard Abrams' `org-get-headings'. | |
;; | |
;; https://howardism.org/Technical/Emacs/tiddly-wiki-in-org.html | |
;; | |
;; I have not run any performance comparisons. The main difference being that | |
;; this implementation does not require defining the `unpropertize' function. | |
(defun org-get-headings () | |
"Return a list of an org document's headings." | |
(org-element-map | |
(org-element-parse-buffer 'headline nil t) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
module Hyrax | |
## | |
# @api public | |
# | |
# Cast an object to its AccessControlList | |
# | |
# @param [Object] an object to try to cast | |
# |
Referenced in Private Slack: https://assaydepot.slack.com/archives/C0313NKG2DA/p1706027615344669
tl;dr It appears that the memory adapter has a bug in the double_combo
branch of Hyrax.
Note: I have run the below in double_combo
and have run the code in main
. In double_combo
I'm seeing duplicate resources. In main
, I'm not. Which highlights that perhaps the persister is not doing it's job correctly.
Reviewing spec/services/hyrax/access_control_list_spec.rb#L156 (see below), I added a debug in the change { }
to see the values before and after calling acl.save
.
it 'deletes the permission policy' do
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: change_set.apply | |
class_name: Hyrax::Transactions::ApplyChangeSet | |
events: [] | |
steps: | |
- class_name: Hyrax::Transactions::Steps::SetModifiedDate | |
steps: [] | |
events: [] | |
name: change_set.set_modified_date | |
- class_name: Hyrax::Transactions::Steps::SetUploadedDateUnlessPresent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -w | |
############################################################## | |
# | |
# Begin Commentary | |
# | |
############################################################## | |
# | |
# First, if you want to use this, I recommend you change the | |
# the file mode to executable: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Articles | |
module Feeds | |
# @api private | |
# | |
# This is an experimental object that we're refining to be a | |
# competetor to the existing feed strategies. | |
# | |
# It works to implement conceptual parity with two methods of | |
# Articles::Feeds::LargeForemExperimental: | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; See | |
;; http://takeonrules.com/2021/08/22/ever-further-refinements-of-org-roam-usage/ | |
;; for details on this configuration. | |
;; | |
;; See https://takeonrules.com/2021/08/23/diving-into-the-implementation-of-subject-menus-for-org-roam/ | |
;; for a walk through of the implementation. | |
;; | |
;; A Property List of my `org-roam' capture templates. | |
(setq jnf/org-roam-capture-templates-plist | |
(list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Calculate the probability of stabilization with treatment" | |
task :probability_swn_stabilize do | |
# This class encapsulates the probability calculations based on | |
# the given :distribution. | |
class Universe | |
def initialize(label:, distribution:) | |
@label = label | |
@distribution = distribution | |
@max = distribution.keys.max | |
@size = distribution.values.sum.to_f |
NewerOlder