- Sep 2024
-
www.ncbi.nlm.nih.gov www.ncbi.nlm.nih.gov
-
heterozygous c.G380A variant in GP1BA (NM_000173.7) (Figure 1B), resulting in a missense substitution of an arginine with a glutamine at position 127
Disease: platelet-type von Willebrand disease (PT-VWD)
Patient: 14 yo, Male
Variant: GP1BA NM_000173.7:c.389G>A p.(Arg127Gln), Heterozygous, Gain-of-Function (GOF)
Located in LRR5 domain of GP1BA
Family: Mother did not refer any bleeding symptoms (variant absent in mother) Father not available for collection of clinical history or platelet function testing
-
- Jul 2024
-
www.ncbi.nlm.nih.gov www.ncbi.nlm.nih.gov
-
RRID:IMSR_JAX:001
DOI: 10.1093/function/zqae024
Resource: RRID:IMSR_JAX:001929
Curator: @evieth
SciCrunch record: RRID:IMSR_JAX:001929
-
- Mar 2024
-
-
Abstract
结论:预测结果,好于MOST(MO估计系统地低估了湍流通量的大小,改善了与观测值和减小与观测通量偏离的总幅度。),不同地点的泛化能力 不足:不含物质通量,预测结果待提升,结果因稳定性而异常,不同季节的泛化能力,运用了不易获得的变量(找到最小观测集)
Tags
Annotators
-
- Feb 2024
-
docdrop.org docdrop.org
-
american mathematician alfred bartlett 00:01:12 in his long teaching career repeatedly said the greatest weakness of the human race is its inability to understand the exponential function
for - quote - Alfred Bartlett - exponential function
quote - Alfred Bartlett - The greatest weakness of the human race is its inability to understand the exponential function
-
- Jan 2024
-
greattransition.org greattransition.org
-
So organized, initiatives can collectively co-evolve and co-emerge into a purposeful transformation system oriented towards whole system change
for - quote - whole system change - bottom up whole system change - open function SRG/ Deep Humanity/ Indyweb / Indranet / TPF framework - definition - transformation catalyst
quote - (see below) - A transformation catalyst is an actor who - brings together numerous initiatives and actors around a shared and co-defined set of interests - with an action agenda in mind. - The TC stewards these actors through a set of three general (dialogue- and action-based) processes that can be adapted - to the unique context, needs, and interests - of each system and its players. - So organized, initiatives can collectively co-evolve and co-emerge - into a purposeful transformation system - oriented towards whole system change in a given context (which could happen - locally, - regionally, - bioregionally, or even more broadly - depending on the actors and orientations involved
-
-
mongoosejs.com mongoosejs.com
-
Instance methods Instances of Models are documents. Documents have many of their own built-in instance methods. We may also define our own custom document instance methods. // define a schema const animalSchema = new Schema({ name: String, type: String }, { // Assign a function to the "methods" object of our animalSchema through schema options. // By following this approach, there is no need to create a separate TS type to define the type of the instance functions. methods: { findSimilarTypes(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); } } }); // Or, assign a function to the "methods" object of our animalSchema animalSchema.methods.findSimilarTypes = function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); }; Now all of our animal instances have a findSimilarTypes method available to them. const Animal = mongoose.model('Animal', animalSchema); const dog = new Animal({ type: 'dog' }); dog.findSimilarTypes((err, dogs) => { console.log(dogs); // woof }); Overwriting a default mongoose document method may lead to unpredictable results. See this for more details. The example above uses the Schema.methods object directly to save an instance method. You can also use the Schema.method() helper as described here. Do not declare methods using ES6 arrow functions (=>). Arrow functions explicitly prevent binding this, so your method will not have access to the document and the above examples will not work.
Certainly! Let's break down the provided code snippets:
1. What is it and why is it used?
In Mongoose, a schema is a blueprint for defining the structure of documents within a collection. When you define a schema, you can also attach methods to it. These methods become instance methods, meaning they are available on the individual documents (instances) created from that schema.
Instance methods are useful for encapsulating functionality related to a specific document or model instance. They allow you to define custom behavior that can be executed on a specific document. In the given example, the
findSimilarTypes
method is added to instances of theAnimal
model, making it easy to find other animals of the same type.2. Syntax:
Using
methods
object directly in the schema options:javascript const animalSchema = new Schema( { name: String, type: String }, { methods: { findSimilarTypes(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); } } } );
Using
methods
object directly in the schema:javascript animalSchema.methods.findSimilarTypes = function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); };
Using
Schema.method()
helper:javascript animalSchema.method('findSimilarTypes', function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); });
3. Explanation in Simple Words with Examples:
Why it's Used:
Imagine you have a collection of animals in your database, and you want to find other animals of the same type. Instead of writing the same logic repeatedly, you can define a method that can be called on each animal instance to find similar types. This helps in keeping your code DRY (Don't Repeat Yourself) and makes it easier to maintain.
Example:
```javascript const mongoose = require('mongoose'); const { Schema } = mongoose;
// Define a schema with a custom instance method const animalSchema = new Schema({ name: String, type: String });
// Add a custom instance method to find similar types animalSchema.methods.findSimilarTypes = function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); };
// Create the Animal model using the schema const Animal = mongoose.model('Animal', animalSchema);
// Create an instance of Animal const dog = new Animal({ type: 'dog', name: 'Buddy' });
// Use the custom method to find similar types dog.findSimilarTypes((err, similarAnimals) => { console.log(similarAnimals); }); ```
In this example,
findSimilarTypes
is a custom instance method added to theAnimal
schema. When you create an instance of theAnimal
model (e.g., a dog), you can then callfindSimilarTypes
on that instance to find other animals with the same type. The method uses thethis.type
property, which refers to the type of the current animal instance. This allows you to easily reuse the logic for finding similar types across different instances of theAnimal
model.
Tags
Annotators
URL
-
-
gitlab.com gitlab.com
-
we should break down and MR into "Blocks"
-
- Dec 2023
-
superfastpython.com superfastpython.com
-
Measure Execution Time With time.thread_time()
The
time.thread_time()
reports the time that the current thread has been executing.The time begins or is zero when the current thread is first created.
Return the value (in fractional seconds) of the sum of the system and user CPU time of the current thread.
It is an equivalent value to the
time.process_time()
, except calculated at the scope of the current thread, not the current process.This value is calculated as the sum of the system time and the user time.
thread time = user time + system time
The reported time does not include sleep time.
This means if the thread is blocked by a call to
time.sleep()
or perhaps is suspended by the operating system, then this time is not included in the reported time. This is called a “thread-wide” or “thread-specific” time. -
Measure Execution Time With time.process_time()
The
time.process_time()
reports the time that the current process has been executed.The time begins or is zero when the current process is first created.
Calculated as the sum of the system time and the user time:
process time = user time + system time
System time is time that the CPU is spent executing system calls for the kernel (e.g. the operating system)
User time is time spent by the CPU executing calls in the program (e.g. your code).
When a program loops through an array, it is accumulating user CPU time. Conversely, when a program executes a system call such as
exec
orfork
, it is accumulating system CPU time.The reported time does not include sleep time.
This means if the process is blocked by a call to
time.sleep()
or perhaps is suspended by the operating system, then this time is not included in the reported time. This is called a “process-wide” time.As such, it only reports the time that the current process was executed since it was created by the operating system.
-
Measure Execution Time With time.perf_counter()
The time.perf_counter() function reports the value of a performance counter on the system.
It does not report the time since epoch like time.time().
Return the value (in fractional seconds) of a performance counter, i.e. a clock with the highest available resolution to measure a short duration. It does include time elapsed during sleep and is system-wide.
The returned value in seconds with fractional components (e.g. milliseconds and nanoseconds), provides a high-resolution timestamp.
Calculating the difference between two timestamps from the time.perf_counter() allows high-resolution execution time benchmarking, e.g. in the millisecond and nanosecond range.
The timestamp from the
time.perf_counter()
function is consistent, meaning that two durations can be compared relative to each other in a meaningful way.The
time.perf_counter()
function was introduced in Python version 3.3 with the intended use for short-duration benchmarking.The
perf_counter()
function was specifically designed to overcome the limitations of other time functions to ensure that the result is consistent across platforms and monotonic (always increasing).For accuracy, the
timeit
module uses thetime.perf_counter()
internally. -
Measure Execution Time With time.time()
The time.time() function reports the number of seconds since the epoch (epoch is January 1st 1970, which is used on Unix systems and beyond as an arbitrary fixed time in the past) as a floating point number.
The result is a floating point value, potentially offering fractions of a seconds (e.g. milliseconds), if the platforms support it.
The
time.time()
function is not perfect.It is possible for a subsequent call to
time.time()
to return a value in seconds less than the previous value, due to rounding.Note: even though the time is always returned as a floating point number, not all systems provide time with a better precision than 1 second. While this function normally returns non-decreasing values, it can return a lower value than a previous call if the system clock has been set back between the two calls.
-
-
stackoverflow.com stackoverflow.com
-
I was getting an error indicating I was using an invalid access_token. It turns out that I wasn't waiting for getLoginStatus to complete prior to making an API call
-
-
stackoverflow.com stackoverflow.com
-
stackoverflow.com stackoverflow.com
-
-
because the value isn't there yet. A promise is just a marker that it will be available at some point in the future. You cannot convert asynchronous code to synchronous, though. If you order a pizza, you get a receipt that tells you that you will have a pizza at some point in the future. You cannot treat that receipt as the pizza itself, though. When you get your number called you can "resolve" that receipt to a pizza. But what you're describing is trying to eat the receipt.
-
-
stackoverflow.com stackoverflow.com
- Nov 2023
-
markgrabe.substack.com markgrabe.substack.com
-
Grabe, Mark. “Student and Professional Note-Taking.” Substack newsletter. Mark’s Substack (blog), November 10, 2023. https://markgrabe.substack.com/p/student-and-professional-note-taking?publication_id=1857743&utm_campaign=email-post-title&r=77i35.
Educator Mark Grabe looks at some different forms of note taking with respect to learning compared lightly with note taking for productivity or knowledge management purposes.
Note taking for: - learning / sensemaking - personal knowledge management - productivity / projects - thesis creation/writing/other creative output (music, dance, etc.)
Not taken into account here is the diversity of cognitive abilities, extent of practice (those who've practiced at note taking for longer are likely to be better at it), or even neurodiversity, which becomes an additional layer (potentially noise) on top of the research methodologies.
-
- Sep 2023
-
www.reddit.com www.reddit.com
-
I don't know why I can't do Evergreen and Atomic Notes.. .t3_16r8k0b._2FCtq-QzlfuN-SwVMUZMM3 { --postTitle-VisitedLinkColor: #9b9b9b; --postTitleLink-VisitedLinkColor: #9b9b9b; --postBodyLink-VisitedLinkColor: #989898; }
reply to u/SouthernEremite at https://www.reddit.com/r/Zettelkasten/comments/16r8k0b/i_dont_know_why_i_cant_do_evergreen_and_atomic/
If you're not using your notes to create or write material and only using them as a form of sensemaking, then perhaps you don't need to put as much work or effort into the permanent notes portion of the work? Ask yourself: "Why are you taking notes? What purpose do they serve?" Is the form and level you're making them in serving those purposes? If not, work toward practicing to make those two align so that your notes are serving an actual purpose for you. Anything beyond this is make-work and you could spend your time more profitably somewhere else.
-
-
stackoverflow.com stackoverflow.com
-
def self.make_lazy(*methods) methods.each do |method| define_method method do |*args, &block| lazy.public_send(method, *args, &block) end end end
-
- Jun 2023
-
optimumpatientcareorg.sharepoint.com optimumpatientcareorg.sharepoint.com
-
Lung Function:
Sinthia's comment: Strictly speaking it should just be PEF, not PEFR, because flow is a rate.
-
-
docdrop.org docdrop.org
-
The function symbol notation is the least used notational system in jazz. As the namesuggests, this notation specifies the harmonic function of individual chords and evencomplete chord progressions. It has the potential of being useful to notate specificbehaviors of chords that may not—at least, not on the surface level—indicate that theybelong to a particular functional family of chords. As such, function symbols enable theperception of harmonic progressions from a more structural perspective. Function symbolsindicate neither the architecture nor the specific scale degrees of chords. This style ofnotation is more conceptual than it is representative of a specific surface event. The termssurface level and structural level are used to describe musical events and the degree oftheir importance. “Structural” events occur beneath the musical “surface” and areresponsible for the overall tonal, harmonic, and melodic forces controlling the piece.Function symbols use three labels: T for tonic-type chords, PD for predominant-typechords, and D for dominant-type chords.
-
harmonic functioncan be defined as a contextual feature that can be attributed to a chord, a family of chords,harmonic progressions, or even to complete melodic phrases. These features are uniquefor each of the following functions: the tonic, the predominant, and the dominant. Theinteraction between these three creates a system of functional tonality, which undergirdsthe structure of tonal jazz and common-practice music
-
Chapter 3 defines harmonic function
-
- Apr 2023
-
eco-exp2.netlify.app eco-exp2.netlify.app
-
car
F检验用到
-
dplyr
这是很常用的数据处理包,包含select,mutate等实用函数
-
-
beiner.substack.com beiner.substack.com
-
Daniel Schmachtenberger has spoken at length about the ‘generator functions’ of existential risk, in essence the deeper driving causes.
Definition - generator function of existential risk - the deeper driving cause of existential risk - two examples of deep causes - rivalrous dynamics - complicated systems consuming their complex substrate
Claim - Alexander Beiner claims that - the generator function of these generator functions is physicalism
-
-
www.semanticscholar.org www.semanticscholar.org
-
a random function f
a random function not many or several
-
- Mar 2023
-
www.typescriptlang.org www.typescriptlang.org
-
A Method Decorator is declared just before a method declaration.
-
- Dec 2022
-
www.reddit.com www.reddit.com
-
His note taking technique has a high distraction potential and is time consuming.
highlight from https://www.reddit.com/user/ManuelRodriguez331/ <br /> https://www.reddit.com/r/Zettelkasten/comments/zigwo3
Anecdotal evidence of how some might view zettelkasten note-taking practices, particularly when they have no end goal or needs in mind.
Form follows function
/comment/izs0u3b/?utm_source=reddit&utm_medium=web2x&context=3
-
-
www.zhihu.com www.zhihu.com
-
JavaScript中对 function 的参数进行重新赋值的影响?
Tags
Annotators
URL
-
- Nov 2022
-
nautil.us nautil.us
-
phytoncides, antibacterial and antimicrobial substances that trees and other plants release into the air to help them fight diseases and harmful organisms. When humans breathe in these substances—typically by spending time in nature—their health can improve. Across several studies, phytoncides have been shown to boost immune function, increase anticancer protein production, reduce stress hormones, improve mood, and help people relax.
I always feel better during and after a forest walk.
-
- Sep 2022
-
Local file Local file
-
IntertextsAs Jonathan Culler writes: “Liter-ary works are not to be consideredautonomous entities, ‘organicwholes,’ but as intertextual con-structs: sequences which havemeaning in relation to other textswhich they take up, cite, parody,refute, or generally transform.” ThePursuit of Signs (Ithaca, NY: CornelUniversity Press, 1981), 38.
Throughout Rewriting: How To Do Things With Texts (Utah State University Press, 2006) Joseph Harris presents highlighted sidebar presentations he labels "Intertexts".
They simultaneously serve the functions of footnotes, references, (pseudo-)pull quotes, and conversation with his own text. It's not frequently seen this way, but these intertexts serve the function of presenting his annotations of his own text to model these sorts of annotations and intertextuality which he hopes the reader (student) to be able to perform themselves. He explicitly places them in a visually forward position within the text rather than hiding them in the pages' footnotes or end notes where the audience he is addressing can't possibly miss them. In fact, the reader will be drawn to them above other parts of the text when doing a cursory flip through the book upon picking it up, a fact that underlines their importance in his book's thesis.
This really is a fantastic example of the marriage of form and function as well as modelling behavior.
cc: @remikalir
-
-
blog.saeloun.com blog.saeloun.com
- Aug 2022
-
juejin.cn juejin.cn
-
不得不说集成 SpringCloud Function 之后,消息的发送和接收又迈进了一个崭新的阶段,但 <functionName> + -in- + <index> 这样的配置规约我觉得让我有些难受......甚至目前我认为 3.1 之前被废弃的注解方式也许更适合我们开发使用
新趋势
-
- Jul 2022
-
-
randomFormat starts with a lowercase letter, making it accessible only to code in its own package (in other words, it's not exported).
function name starts with a lowercase
Tags
Annotators
URL
-
-
-
Any Go function can return multiple values. For more, see Effective Go.
function can return multiple values.
func Hello(name string) (string, error) { return name, nil }
-
- Jun 2022
-
www.php.net www.php.net
-
<?php$base = array("orange", "banana", "apple", "raspberry");$replacements = array(0 => "pineapple", 4 => "cherry");$replacements2 = array(0 => "grape");$basket = array_replace($base, $replacements, $replacements2);print_r($basket);?> The above example will output: Array ( [0] => grape [1] => banana [2] => apple [3] => raspberry [4] => cherry )
array_replace() replaces the values of array with values having the same keys in each of the following arrays.
-
- May 2022
-
www-ncbi-nlm-nih-gov.proxy-bloomu.klnpa.org www-ncbi-nlm-nih-gov.proxy-bloomu.klnpa.org
-
disrupts the biogenesis and processing of miRNAs with subsequent disruption in control of gene
effects miRNA
-
-
www.ncbi.nlm.nih.gov www.ncbi.nlm.nih.gov
-
DICER1 variants cause a hereditary cancer predisposition
-Gene: DICER1 -PMID: 29343557 -Inheritance Pattern: DICER1 is inherited as an autosomal dominant condition with decreased penetrance -Disease Entity: earlier onset disease, multisite disease, 0-2 site disease, cystic lung disease, familial disease, bilateral disease, stage IA/IB, bilateral disease -mutation: germline loss-of-function mutation, missense mutation, Intronic mutations, hotspot mutation, second somatic mutation, truncating mutations, biallelic mutation -zygosity: heterozygosity -Family History: -testing should be considered for those with a family history of DICER1-associated conditions so that appropriate surveillance can be undertaken. -Individuals at 50% risk of a germline pathogenic variant based on family history who do not pursue genetic testing should follow surveillance guidelines as -if they have a DICER1 mutation unless/until genetic testing confirms that they did not inherit the familial mutation When a pulmonary cyst is identified in a young child with a pathogenic germline -DICER1 variant or family history of a DICER1-associated condition, it should be assumed to be Type I PPB until proven otherwise
Other Information: -Case: Risk for most DICER1-associated neoplasms is highest in early childhood and decreases in adulthood -affected phenotype may simply result from probabilities of generating the characteristic “loss-of-function plus hotspot” two hit typical of a DICER1 syndrome neoplasm. -Caseprevioustesting: presymptomatic testing of a minor child, should be discussed and factored into the decision process, as some individuals may choose, and have the right to choose, not to know their/their child’s genetic status. -gnomAD: n/a
-
- Apr 2022
-
docdrop.org docdrop.org
-
All of the major books that were to follow – Sade /Fourier / Loyola (1997), The Pleasure of the Text (1975), RolandBarthes by Roland Barthes (1977), A Lover’s Discourse (1990), andCamera Lucida (1993) – are texts that are ‘plural’ and ‘broken’, andwhich are ‘constructed from non-totalizable fragments and fromexuberantly proliferating “details”’ (Bensmaïa, 1987: xxvii-xxxviii).In all of the above cases the fragment becomes the key unit ofcomposition, with each text structured around the arrangement ofmultiple (but non-totalisable) textual fragments.
Does the fact that Barthes uses a card index in his composition and organization influence the overall theme of his final works which could be described as "non-totalizable fragments"?
-
- Mar 2022
-
www.ncbi.nlm.nih.gov www.ncbi.nlm.nih.gov
-
he basic function of an anaesthesia machine is to prepare a gas mixture of precisely known, but variable composition. The gas mixture can then be delivered to a breathing system.
-
- Feb 2022
-
twitter.com twitter.com
-
Kevin Courtney #NEU💝NHS. (2022, January 5). Ventilation isn’t just for Covid.... ...It’s for Education This study looks at the impact of CO2 not just as a marker of pollution but as a pollutant in itself. It shows that as CO2 rises above 700/800 ppm cognitive function begins to be impaired https://dash.harvard.edu/bitstream/handle/1/27662232/4892924.pdf?sequence=1&fbclid=IwAR2kWIHIJfssa_sw72MD6W1hnkDvSm4bikK5FOLxwQxhjYLEYjfPCfzXz3E [Tweet]. @cyclingkev. https://twitter.com/cyclingkev/status/1478778857536860170
-
-
github.com github.com
-
There is nothing stopping you from creating store objects which scrapes XE for the current rates or just returns rand(2):
-
- Jan 2022
-
www.cdc.gov www.cdc.gov
-
French, G. (2021). Impact of Hospital Strain on Excess Deaths During the COVID-19 Pandemic—United States, July 2020–July 2021. MMWR. Morbidity and Mortality Weekly Report, 70. https://doi.org/10.15585/mmwr.mm7046a5
-
-
blog.atomist.com blog.atomist.com
-
My gut told me calling an async function from the setTimeout callback was a bad thing. Since the setTimeout machinery ignores the return value of the function, there is no way it was awaiting on it. This means that there will be an unhandled promise. An unhandled promise could mean problems if the function called in the callback takes a long time to complete or throws an error.
-
-
-
const originalUnhandledRejection = window.onunhandledrejection; window.onunhandledrejection = (e) => { console.log('we got exception, but the app has crashed', e); // or do Sentry.captureException(e); originalUnhandledRejection(e); }
Tags
Annotators
URL
-
-
www.npmjs.com www.npmjs.comco1
-
co(function* () { var result = yield Promise.resolve(true); return result;}).then(function (value) { console.log(value);}, function (err) { console.error(err.stack);});
-
-
www.nbcnewyork.com www.nbcnewyork.com
-
•. (n.d.). Even Mild COVID Infections Can Have Lasting Impacts Like ‘Chemo Brain,’ Study Finds. NBC New York. Retrieved 12 January 2022, from https://www.nbcnewyork.com/news/coronavirus/even-mild-covid-infections-can-have-lasting-impacts-like-chemo-brain-study-finds/3489958/
-
- Nov 2021
-
www.cell.com www.cell.com
-
ey use local computations to interpolate over task-rele-vant manifolds in a high-dimensional parameter space.
Tags
Annotators
URL
-
- Oct 2021
-
-
const fetchWithJSONHeaders = applyDefaults(fetch, { headers: { "Content-Type": "application/json" } }); const fetchWithTextHeaders = applyDefaults(fetch, { headers: { "Content-Type": "application/text" } }); // Fetch JSON content const response = await fetchWithJSONHeaders("/users", { method: "GET" });
-
-
trackjs.com trackjs.com
-
But there is a lot of things we didn’t handle: How do we pass function arguments through? How do we maintain scope (the value of this)? How do we get the return value? What if an error happens?
-
-
stackoverflow.com stackoverflow.com
-
A wrapper function is a design concept where a very minimal function is using another function to do it's "work" for it, sometimes using a slightly different set of arguments.
-
-
www.orgroam.com www.orgroam.com
-
org-roam-dailies-goto-next-note
-
org-roam-dailies-goto-previous-note
-
org-roam-dailies-find-directory
-
org-roam-dailies-goto-date
-
org-roam-dailies-capture-date
-
org-roam-dailies-goto-yesterday
-
org-roam-dailies-capture-yesterday
-
org-roam-dailies-goto-today
-
org-roam-dailies-capture-today
-
org-roam-alias-remove
-
org-roam-buffer-display-dedicated
-
org-roam-buffer-toggle
Tags
Annotators
URL
-
-
blog.gdeltproject.org blog.gdeltproject.org
-
BigQuery + UDF = Identifying The Earliest Glimmers Of Covid-19 – The GDELT Project. (n.d.). Retrieved May 14, 2021, from https://blog.gdeltproject.org/bigquery-udf-identifying-the-earliest-glimmers-of-covid-19/
-
- Jul 2021
-
-
annotationCou
function to count annotations
-
-
www.cell.com www.cell.com
-
Keerthivasan, S., Şenbabaoğlu, Y., Martinez-Martin, N., Husain, B., Verschueren, E., Wong, A., Yang, Y. A., Sun, Y., Pham, V., Hinkle, T., Oei, Y., Madireddi, S., Corpuz, R., Tam, L., Carlisle, S., Roose-Girma, M., Modrusan, Z., Ye, Z., Koerber, J. T., & Turley, S. J. (2021). Homeostatic functions of monocytes and interstitial lung macrophages are regulated via collagen domain-binding receptor LAIR1. Immunity, 54(7), 1511-1526.e8. https://doi.org/10.1016/j.immuni.2021.06.012
-
-
github.com github.com
-
this happens with getClient and setClient because it is a svelte context which is only available at component initialization (construction) and cannot be in an event handler.
-
- Jun 2021
-
www.bmj.com www.bmj.com
-
Darby, Alistair C., and Julian A. Hiscox. ‘Covid-19: Variants and Vaccination’. BMJ 372 (23 March 2021): n771. https://doi.org/10.1136/bmj.n771.
-
-
www.technologyreview.com www.technologyreview.com
-
The problem is, algorithms were never designed to handle such tough choices. They are built to pursue a single mathematical goal, such as maximizing the number of soldiers’ lives saved or minimizing the number of civilian deaths. When you start dealing with multiple, often competing, objectives or try to account for intangibles like “freedom” and “well-being,” a satisfactory mathematical solution doesn’t always exist.
We do better with algorithms where the utility function can be expressed mathematically. When we try to design for utility/goals that include human values, it's much more difficult.
-
-
www.postgresql.org www.postgresql.org
-
json_array_elements_text ( json ) → setof text jsonb_array_elements_text ( jsonb ) → setof text Expands the top-level JSON array into a set of text values. select * from json_array_elements_text('["foo", "bar"]') → value ----------- foo bar
-
-
dba.stackexchange.com dba.stackexchange.com
-
The clean way to call a set-returning function is LEFT [OUTER] JOIN LATERAL. This includes rows without children. To exclude those, change to a [INNER] JOIN LATERAL
-
-
www.apollographql.com www.apollographql.com
-
graphqlSync is a relatively recent addition to GraphQL.js that lets you execute a query that you know is going to return synchronously and get the result right away, rather than getting a promise. Since we know that introspection won’t require calling any asynchronous resources, we can safely use it here.
-
- May 2021
-
github.com github.com
-
fetch: fetcher
Personally, I don't like how the local/custom/wrapper version of
fetch
is calledfetcher
. I feel like{prefix}_fetch
orfetch_{prefix}
would have been better.
-
-
kit.svelte.dev kit.svelte.dev
-
This function runs on every request, for both pages and endpoints, and determines the response. It receives the request object and a function called resolve, which invokes SvelteKit's router and generates a response accordingly.
-
- Apr 2021
-
en.wikipedia.org en.wikipedia.org
-
The role of the terminal emulator process is:
Shows the relationship between a "terminal emulator" and a pseudoterminal, as alluded to in the intro:
is a pair of pseudo-devices, one of which, the slave, emulates a hardware text terminal device, the other of which, the master, provides the means by which a terminal emulator process controls the slave.
-
-
en.wikipedia.org en.wikipedia.org
-
Example
This clarifies that (one of) the terminal's responsibility is:
- provides line editing
-
-
en.wikipedia.org en.wikipedia.org
-
Other physicists and mathematicians at the turn of the century came close to arriving at what is currently known as spacetime. Einstein himself noted, that with so many people unraveling separate pieces of the puzzle, "the special theory of relativity, if we regard its development in retrospect, was ripe for discovery in 1905."
Interesting. This acts as evidence for the hypothesis that environments/conditions are powerful forcing functions.
It also acts as evidence against the argument of the "lone genius".
-
- Mar 2021
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
Would it be desirable to specify the new object in a block? That would make it somewhat symmetrical to how Hash.new takes a block as a default value.
-
-
trailblazer.to trailblazer.to
-
This could be an operation, a workflow, or hand-baked Ruby code completely unrelated to Trailblazer.
-
-
github.com github.com
-
Or if you need to change the way the string is assembled, you can provide a proc, for example: if defined?(BetterErrors) BetterErrors.editor = proc { |file, line| "vscode://file/%{file}:%{line}" % { file: URI.encode_www_form_component(file), line: line } } end
-
-
psyarxiv.com psyarxiv.com
-
Davies, Catherine, Alexandra Hendry, Shannon P. Gibson, Teodora Gliga, Michelle McGillion, and Nayeli Gonzalez-Gomez. ‘Early Childhood Education and Care (ECEC) during COVID-19 Boosts Growth in Language and Executive Function’. PsyArXiv, 10 March 2021. https://doi.org/10.31234/osf.io/74gkz.
-
-
medium.com medium.com
-
There’s several benefits to splitting code into multiple packages, whether it be a library, micro-services or micro-frontends.
-
-
www.theatlantic.com www.theatlantic.com
-
Cushing, E. (2021, March 8). Late-Stage Pandemic Is Messing With Your Brain. The Atlantic. https://www.theatlantic.com/health/archive/2021/03/what-pandemic-doing-our-brains/618221/
-
-
trailblazer.to trailblazer.to
-
Suppose that the validate task was getting quite complex and bloated. When writing “normal” Ruby, you’d break up one method into several. In Trailblazer, that’s when you introduce a new, smaller activity.
-
- Feb 2021
-
www.coursera.org www.coursera.org
-
Attribution requires knowledge of two facts: who holds the asset, and who has created it and is party to the contract.
Basic functions of blockchain: Attribution
-
-
en.wikipedia.org en.wikipedia.org
-
Though rarer in computer science, one can use category theory directly, which defines a monad as a functor with two additional natural transformations. So to begin, a structure requires a higher-order function (or "functional") named map to qualify as a functor:
rare in computer science using category theory directly in computer science What other areas of math can be used / are rare to use directly in computer science?
-
-
github.com github.com
-
# Set the model name to change the field names generated by the Rails form helpers def self.model_name=(name) @_model_name = ActiveModel::Name.new(self, nil, name) end
-
-
en.wikipedia.org en.wikipedia.org
-
The central ideas of this design pattern closely mirror the semantics of first-class functions and higher-order functions in functional programming languages. Specifically, the invoker object is a higher-order function of which the command object is a first-class argument.
-
-
github.com github.com
-
def self.attribute(name, type = ActiveModel::Type::Value.new, **options) super attribute_type = attribute_types[name.to_s] # Add the ? method for boolean attributes alias_boolean(name) if attribute_type.is_a?(ActiveModel::Type::Boolean) # store date attribute names so we can merge the params during # initialization date_attributes << name if attribute_type.class.in?(DATE_TYPES) end
-
- Jan 2021
-
developingchild.harvard.edu developingchild.harvard.edu
-
Executive Function & Self-Regulation
article on executive function and self-reg
-
-
developer.mozilla.org developer.mozilla.org
-
While custom iterators are a useful tool, their creation requires careful programming due to the need to explicitly maintain their internal state. Generator functions provide a powerful alternative: they allow you to define an iterative algorithm by writing a single function whose execution is not continuous. Generator functions are written using the function* syntax.
-
-
stackoverflow.com stackoverflow.com
-
It works much like a normal AJAX request except instead of calling an anonymous function, we have to use named functions.
-
- Dec 2020
-
chem.libretexts.org chem.libretexts.org
-
Nodes A wave function node occurs at points where the wave function is zero and changes signs. The electron has zero probability of being located at a node.
Nodes
Tags
Annotators
URL
-
-
thecodebarbarian.com thecodebarbarian.com
-
Remember that async functions always return promises. This promise rejects if any uncaught error occurs in the function. If your async function body returns a promise that rejects, the returned promise will reject too.
-
- Nov 2020
-
github.com github.com
-
// DO NOT INLINE this variable. For backward compatibility, foundations take a Partial<MDCFooAdapter>. // To ensure we don't accidentally omit any methods, we need a separate, strongly typed adapter variable.
I wish I understood what they meant and why this is necessary
-
-
www.plymouth.edu www.plymouth.edu
-
proteases
Is a group of enzymes whose catalytic function is hydrolyzing peptide bonds of proteins. Also referred to as proteolytic enzymes or even proteinases.
-
-
stackoverflow.com stackoverflow.com
-
I have created a thin wrapper around fetch() with many improvements if you are using a purely json REST API:
-
()
-
-
stackoverflow.com stackoverflow.com
-
news.ycombinator.com news.ycombinator.com
-
Frontend frameworks are a positive sum game! Svelte has no monopoly on the compiler paradigm either. Just like I think React is worth learning for the mental model it imparts, where UI is a (pure) function of state, I think the frontend framework-as-compiler paradigm is worth understanding. We're going to see a lot more of it because the tradeoffs are fantastic, to where it'll be a boring talking point before we know it.
-
-
github.com github.com
-
// Rewrite submit function form.submit = () => { const result = originalSubmit.call(form)
-
-
en.wiktionary.org en.wiktionary.org
-
διαδικασία Definition from Wiktionary, the free dictionary Jump to navigation Jump to search Greek
Greek Noun
διαδικασία • (diadikasía) f (plural διαδικασίες)
- procedure, process, method, protocol
- (computing) function, subroutine, procedure
-
- Oct 2020
-
stackoverflow.com stackoverflow.com
-
If you don't like to create an extra function and remove the items 'inline'
-
-
stackoverflow.com stackoverflow.com
-
Final Form makes the assumption that your validation functions are "pure" or "idempotent", i.e. will always return the same result when given the same values. This is why it doesn't run the synchronous validation again (just to double check) before allowing the submission: because it's already stored the results of the last time it ran it.
-
-
github.com github.com
-
Another example:
const expensiveOperation = async (value) => { // return Promise.resolve(value) // console.log('value:', value) await sleep(1000) console.log('expensiveOperation: value:', value, 'finished') return value } var expensiveOperationDebounce = debounce(expensiveOperation, 100); // for (let num of [1, 2]) { // expensiveOperationDebounce(num).then(value => { // console.log(value) // }) // } (async () => { await sleep(0 ); console.log(await expensiveOperationDebounce(1)) })(); (async () => { await sleep(200 ); console.log(await expensiveOperationDebounce(2)) })(); (async () => { await sleep(1300); console.log(await expensiveOperationDebounce(3)) })(); // setTimeout(async () => { // console.log(await expensiveOperationDebounce(3)) // }, 1300)
Outputs: 1, 2, 3
Why, if I change it to:
(async () => { await sleep(0 ); console.log(await expensiveOperationDebounce(1)) })(); (async () => { await sleep(200 ); console.log(await expensiveOperationDebounce(2)) })(); (async () => { await sleep(1100); console.log(await expensiveOperationDebounce(3)) })();
Does it only output 2, 3?
-
-
github.com github.com
-
Methods have fixed arities to support auto-currying.
-
// `lodash/padStart` accepts an optional `chars` param. _.padStart('a', 3, '-') // ➜ '--a' // `lodash/fp/padStart` does not. fp.padStart(3)('a'); // ➜ ' a'
-
The lodash/fp module promotes a more functional programming (FP) friendly style by exporting an instance of lodash with its methods wrapped to produce immutable auto-curried iteratee-first data-last methods.
-
-
en.wikipedia.org en.wikipedia.org
-
One of the significant differences between the two is that a call to a partially applied function returns the result right away, not another function down the currying chain; this distinction can be illustrated clearly for functions whose arity is greater than two.
-
Currying and partial function application are often conflated.
-
-
stackoverflow.com stackoverflow.com
-
It looks like you accidentally passed resolve() (immediately invoking the function) directly to setTimeout rather than passing a function to invoke it. So it was being resolved immediately instead of after a 1000 ms delay as intended.
I guess this is the "immediately invoked function" problem.
Not to be confused with: immediately invoked function expression. (Since it is a regular named function and not a function expression.)
-
You should not create a new debounce function on every render with: return new Promise(resolve => { debounce(() => resolve(this.getIsNameUnique(name)), 2000); }); Instead you should just wrap your whole function isNameUnique with the debounce (see my sandbox). By creating a new debounce function on every hit, it cannot 'remember' that is was called or that is will be called again. This will prevent the debouncing.
-
-
final-form.org final-form.org
-
If you define a variable outside of your form, you can then set the value of that variable to the handleSubmit function that 🏁 React Final Form gives you, and then you can call that function from outside of the form.
-
-
med.libretexts.org med.libretexts.org
-
The results of a DEXA scan are most often reported as T-scores. A T-score compares a person’s bone density to the average peak bone density of a healthy 30-year-old population of the same gender. A T-score of −1.0 or above indicates normal bone density. A person with a T-score between −1.0 and −2.5 has low bone density, which is a condition referred to as osteopenia. A person with a T-score of −2.5 or below is diagnosed with osteoporosis.
T score levels for bone density.
-
-
medium.com medium.com
-
reduce is a higher-order function which takes two values
-
-
med.libretexts.org med.libretexts.org
-
In the third step of bone remodeling, the site is prepared for building. In this stage, sugars and proteins accumulate along the bone’s surface, forming a cement line which acts to form a strong bond between the old bone and the new bone that will be made. These first three steps take approximately two to three weeks to complete.
Bone remodeling process.
-
In adulthood, our bones stop growing and modeling, but continue to go through a process of bone remodeling.
I would challenge that fact.
-
Bone tissue cells include osteoprogenitor cells, osteoblasts, osteoclasts, and osteocytes. The osteoprogenitor cells are cells that have not matured yet. Once they are stimulated, some will become osteoblasts, the bone builders, and others will become osteoclasts, the cells that break bone down. Osteocytes are the most abundant cells in bone tissue. Osteocytes are star-shaped cells that are connected throughout the bone and exchange nutrients from bones to the blood and lymph.
The Asteo Class of Bone Tissue
-
Your bones are stronger than reinforced concrete. Bone tissue is a composite of fibrous collagen strands that resemble the steel rebar in concrete and a hardened mineralized matrix that contains large amounts of calcium, just like concrete.
What Is Bone?
-
-
github.com githu