Skip to content

Commit

Permalink
Rewrite SSG in Node and frontend in Lit & Vite
Browse files Browse the repository at this point in the history
After deciding on Web Components, Go types had to be duplicated in JSDoc
syntax for the JS client code. Although rewriting the static site
generation in Node makes SSG slower for a total build, the developer
experience can actually be faster because reloading Web Components is
fast.

Initially native Web Components were working well, but the value of
reactive state mounted. Lit Elements add reactive state to Web Component
standards, so that, unlike React, it's a small dependency, and requires
no build step.

The client UI itself is now a two sidebar layout, both attached to the
left of the viewport, each scrollable. One for filters, and one for
results, with content being loading in the page body.

Pagefind performance improves a lot with this commit following the
adoption of an IntersectionObserver for loading data as discussed in
CloudCannon/pagefind#371. Rurther reductions to initalisation times
to follow with the proposed fixes in that issue.

Client JS now uses modules (as opposed to synchronous plain JS) in the
browser. This approach initially broke support for some older browsers,
specifically iOS 16.3 and it's lack of support for import maps. To solve
this Vite is now being used to compile client code in a way that's
compatible with older browsers.
  • Loading branch information
marcuswhybrow committed Oct 3, 2024
1 parent 38c87a2 commit c1322a2
Show file tree
Hide file tree
Showing 101 changed files with 6,807 additions and 4,125 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ build

/.direnv
/node_modules
/nodebuild
/json
/dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,63 @@ added:
author: Marcus Whybrow
date: "2024-08-16"
---

## Introduction by Stanley Krippner, PhD

The importance of contemporary Soviet psychology has been acknowledged by many authorities. Gardner Murphy and J.K. Kovach, in the third edition of their book, Historical Introduction to Modern Psychology, take up this issue. Speaking of psychology in the U.S.S.R., they describe "the magnitude of its existing and potential impact on the entire body of modern psychology...," stressing the point that "Soviet psychology is not a closed system." These points are reinforced in Mind and Tissue. Its author, Ray Peat, has presented a cogent summary of Soviet psychology, highlighting the contributions it has made to our understanding of human behavior. Peat traces the philosophical origins of Soviet psychology as well as the tradition afforded by Dostoyevski, Tolstoy, and other writers. The gargantuan contributions of Pavlov are described, beginning with the differentiation of the "first signal system," of sense perception from the "second signal system" of language. Ray Peat then emphasizes a point often ignored: Pavlov took the position that the whole organism had to be the subject of scientific study. Since presumably it is the whole organism which is conscious, a psychology which studies isolated behavioral reactions can easily avoid a confrontation with the issue of consciousness. This was not true of Pavlov, who advances ideas concerning sleep, dreaming, hypnosis, and imagery which contributed to our understanding of human abilities.

Pavlov's successors continue to study brain function, observing that plasticity is the outstanding property of the nervous system. This viewpoint is an optimistic one as it gives parents, educators, and rehabilitationists a chance to develop those in their care by paying attention to the "latent reserves" of a child, student, or patient.

The reader of Mind and Tissue will enjoy the special discussion of such Soviet psychological concepts as "inhibition," the "orienting reflex," the "effect of person," the effects of magnetic fields on behavior, and the notion of time as a possible source of "energy." The current enthusiasm among some American psychologists for explaining behavior through differences between brain hemispheres could be moderated by examining the Soviet work on cerebral function which emphasizes a more holographic approach. In addition, the Soviet delineating of mental imagery components (space, body awareness, sequencing) leads to an emphasis on meaning and experience in describing brain function. Indeed, it is easy to follow the historical thread that links Pavlov's hypotheses on mental imagery with Lisina's pioneering work in biofeedback. Additional work in what the Soviets call "psychic self-regulation," has been done at Kazakh State University; practical applications of this work are to be found in many Soviet clinics and hospitals.

Finally, psychology in the U.S.S.R. views creativity not as a psychosexual sublimation or a lack of proper social conditioning but as an essential human trait, part of the need for self-realization through productive work. There is a richness in Soviet psychology that is often overlooked by American scientists. Ray Peat's assertion that materialists emphasize change while idealists emphasize the status quo may well be true. If so, it confirms Murphy's and Kovach's description of Soviet psychology as an open rather than a closed system.

## Introduction by Peter Marin

## Preface

## 1. In the Spirit of Matter

## 2. The Image

## 3. The Orienting Reflex

## 4. Reflecting Conditions

## 5. Doubleness and Perspective

## 6. Sexual Energy and the Cortex of the Brain

## 7. Group Energy

## 8. Scrotum, Brain and Biological Order

## 9. A Visual Scanning System and Intentionality

## 10. Inhibition and Recuperation

### Note to Chapter 10

## 11. Hyperactivity

## 12. Implied Therapeutic Approaches

## 13. Ideas on Electrons in Cells

## 14. Brain and Magnetic Fields

## 15. Effect of Person

## 16. Resolution and Transformation

## 17. Dream Energy

## 18. The Flow of Energy into the World

## 19. About Objective Consciousness (No Duality)

## 20. End of Science?

## 21. More Generous Perception

## References
210 changes: 210 additions & 0 deletions assets/1993-00-00-nutrition-for-women.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,213 @@ added:
author: Marcus Whybrow
date: "2024-08-16"
---

## Preface

## 1. Hormones

### Hormones and Physical States

### Why Prescribe Estrogen?

### Some Symptoms of Estrogen Excess

### Estrogen and Sex

### Vitamin E and Sex

### Estrogen and Thyroid

### Thyroid

### Progesterone in Orthomolecular Medicine

### Dosage of Progesterone

### Transdermal Progesterone for Premenstrual Syndrome

### Topical Progesterone for Acne

### Progesterone and Body Temperature

### Breast Soreness. Cystic Ovaries

## 2. Stress

### Blood Sugar

### Stress and Special Nutritional Requirements

### Sugar and the Pancreas

### Emotional Problems

### People Diagnosed As "Psychotic"

### Cancer Produces Stress

### Arthritis and Stress

### Cortisone

## 3. Aging

### Aging

### Menopausal Flushing

### Similarity of Menopause and Cushing's Syndrome

### Cholesterol

### Aging Skin

### Estrogen and Osteoporosis

### Blood Pressure — Vitamin E and Other Nutrients

## 4. Some Diseases

### Nearsightedness (Myopia)

### Colitis, Regional Enteritis (Crohn's Disease), Inflammation, and Fibrous Diseases, and "Collagen Disease"

### Heart Diseases

### Arteriosclerosis

### Polio: A Chronology (or isn't science wonderful?)

### Multiple Sclerosis

### Infections

### Food Allergies

### A Note on Glaucoma

### Insomnia

### Low Blood Pressure

### Skin Feeding

### Identifying Deficiencies

### Warburg's Cancer Theory, Cachexia and Thyroid Therapy

### Cancer, Stress, and Nutrition: A Summary

### The Cervical Cancer Scare

### Asthma, Migraine, Psoriasis

## 5. Pregnancy and Children

### Age and Pregnancy

### Precocious Babies

### Nutrition-Related Ideas For Mothers

### Iron Sickness

### Fertility

### Breast Feeding

### Brain Damage and the Public Health Protectors

### Hyperactivity

### Flouride

## 6. Diets

### Appetite

### Fasting

### Coffee. Tea, and Colas

### Natural Vitamins and Minerals - Any Difference?

### Additives and Quality

### Warning About Supplements

### Vitamin C: Many Effects

### Interactions

### Cereals, Seeds, and Beans

### Vinegar, Honey, and Fasting

### Margarine or Butter

### Liquid Oils

### Laxatives

### Specific Dynamic Action

### HCG

### Note for Dieters

### Popular Reducing Diets

### Diet Pills

### Fat: Ideas For Getting Off A Plateau

### One Woman's Typical Diet for a Day

### Swelling Up (Edema)

### Exercise

### One Megavitamin Program

### Adapting to a New Diet

### Energy Itself: CrP and ATP

### General Principles of Good Nutrition

## 7. The Future

### Hidden Motives

### Disestablish the Professions

### A Proposed Study

### Protein and Starvation

### Reasoning About Health

### Dietetics or Nutrition?

### Nutrition and Consciousness

### About Feelings

### Desire, The Liberator of Sexual Objects

### Fertile Pairing

### from "Evolution as Human Sculpture, 1967

## Appendix

### Some Definitions

### Units

### Nutrients: Plant Sources; Places Concentrated in Animals; Functions

### Holistic Physiology: A Diagram

### A Note on References
58 changes: 58 additions & 0 deletions assets/1993-00-00-progesterone-in-orthomolecular-medicine.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,61 @@ added:
author: Marcus Whybrow
date: "2024-08-17"
---

## 1. Progesterone's Biological Generality

### 1.1. Intrinsic general properties

### 1.2. Steroid precursor function

### 1.3. Anti-estrogen functions

### 1.4. Effects on development

### 1.5. Progesterone and magnesium

### 1.6. References

## 2. Steroids

## 3. Thyroid

## 4. Warburg's Cancer Theory, Cachexia and Thyroid Therapy

### 4.1. References

## 5. The Cervical Cancer Scare

## 6. Menopause and its Causes

### 6.1. References

## 7. Dosage of Progesterone

### 7.1. References

## 8. The Progesterone Deceptions

### 8.1. References

## 9. Origins of Progesterone Therapy

### 9.1. Progesterone, the Protective Substance of Youth

### 9.2. Some Aspects of Basic Progesterone Research

### 9.3. Practical Issues

### 9.4. Economic Questions

### 9.5. References

## 10. Transdermal Progesterone for Premenstrual Syndrome

## 11. A List of Signs and Symptoms that Respond to Progesterone Therapy

### 11.1. References

## 12. An Efficient Oral Therapy

### 12.1. References
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,49 @@ added:
author: Marcus Whybrow
date: "2024-08-16"
---

## Introduction

## Part One: Aspects of Wholeness

### 1. Aspects of Wholeness

### 2. Another View of Evolution

### 3. Vernadsky's Holistic Science

### 4. The Centrality of Anticipation

### 5. The Life of Nature

### 6. The Ex-Rainforests of the Pacific Northwest

## Part Two: Energy Problems

### 7. A Unifying Principle

### 8. Steroids

### 9. Thyroid

### 10. The Stress of Darkness

### 11. Pregnenolone

### 12. Restoring Hair Color

### 13. Arthritis and Hormone Balancing

### 14. The Carpal Tunnel Syndrome

### 15. The Premenstrual Syndrome

### 16. Restoring Fertility

## Part Three: Regenerating Knowledge

### 17. Youth, Energy, and Regeneration

### 18. The Tradition of Truth

### 19. The Expanding Earth
Loading

0 comments on commit c1322a2

Please sign in to comment.