176 Matching Annotations
  1. Jun 2022
  2. May 2022
    1. ```html

      Choose your monster's colors:

      <div> <input type="color" id="head" name="head" value="#e66465"> <label for="head">Head</label> </div> <div> <input type="color" id="body" name="body" value="#f6b73c"> <label for="body">Body</label> </div>


      ```js colorPicker.addEventListener("input", updateFirst, false); colorPicker.addEventListener("change", watchColorPicker, false);

      function watchColorPicker(event) { document.querySelectorAll("p").forEach(function(p) { p.style.color = event.target.value; }); } ```

    1. DICER1 syndrome is a rare genetic condition predisposing to hereditary cancer and caused by variants in the DICER1

      GeneName: DICER1 PMCID: PMC7859642 HGNCID: Unavailable Inheritance Pattern: Autosomal dominant. Disease Entity: Familial pleuropulmonary blastoma (PPB), cervix embryonal rhabdomyosarcoma, multinodular goiter, nasal chondromesenchymal hemartoma, Ciliary body medulloepithelioma, Sertoli-Leydig Cell Tumor (SLCT), differentiated thyroid carcinoma, pituitary blastoma, pineoblastoma, cystic nephroma, Wilm's tumor and sarcomas of different sites including, amongst others, the uterine cervix, kidney and brain. Mutation: Germline Zygosity: Heterozygose Variant: No ClinVarID present. Family Information: No family outline Case: No specified information of patients included. CasePresentingHPO's: n/a CasePrevious Testing: n/a gnomAD: n/a Mutation Type: nonsense, frameshift, or splice affected.

    1. DICER1 syndrome is an autosomal-dominant,pleiotropic, tumor-predisposition disorder arisingfrom pathogenic germline variants in DICER1, whichencodes an endoribonuclease integral to processingmicroRNAs

      DICER1 is the gene name. PubMed ID, HGCNCID, and Variant: I can't find Inheritance Pattern: autosomal-dominant The disease entity: DICER1 syndrome The type of mutation: germline. Zygosity: not known. Family Information: a family was used, DICER1 carriers, and non DICER1 variant used, some of the family members had tumors from DICER1 Case Information: mean age is 34, the range of age is 18.6 to 43 years, male, and female used, ethnicity can't find Case Presenting HPO: cancer testing, chemotherapy, radiotherapy gnomeAD: 9.2,8.3.2 Mutation type: Pleiotropic, loss of function, missense

  3. Apr 2022
    1. As we all experience the world differently, the way of learning each of us is diverse. Comprehending how we learn things would help the teachers to understand their students and they don’t have to see any students lagging. Every kid doesn’t come first in the class. It is not because they have a smaller brain size. It is because their brain would acknowledge a different procedure of learning. In this article we are going to discuss the 4 types of learning styles so that you can understand – what type of learner are you?
    1. Marc Lipsitch. (2021, July 20). At the risk of boiling down too much and certainly losing some detail, one way to summarize this wonderful thread is that when we think about vaccine effectiveness, we should think of 4 key variables: 1 which vaccine, 2 age of the person, 3 how long after vax, 4 vs what outcome. [Tweet]. @mlipsitch. https://twitter.com/mlipsitch/status/1417595538632060931

    1. Gutenberg used his second edition of the Catholicon to experiment with casting type not letter by letter but in two- line slugs that could be reused in later printings, saving the labor of distributing then resetting the type letter by letter.
  4. Mar 2022
    1. assumes that the function identifier f has a particular type

      How is the initial assumption choosen? Does it start with a completely generic type and then tries to narrow it down?

  5. Feb 2022
    1. Deepti Gurdasani. (2022, January 10). Lots of people dismissing links between COVID-19 and all-cause diabetes. An association that’s been shown in multiple studies- whether this increase is due to more diabetes or SARS2 precipitating diabetic keto-acidosis allowing these to be diagnosed is not known. A brief look👇 [Tweet]. @dgurdasani1. https://twitter.com/dgurdasani1/status/1480546865812840450

    1. Su, Y., Yuan, D., Chen, D. G., Ng, R. H., Wang, K., Choi, J., Li, S., Hong, S., Zhang, R., Xie, J., Kornilov, S. A., Scherler, K., Pavlovitch-Bedzyk, A. J., Dong, S., Lausted, C., Lee, I., Fallen, S., Dai, C. L., Baloni, P., … Heath, J. R. (2022). Multiple Early Factors Anticipate Post-Acute COVID-19 Sequelae. Cell, 0(0). https://doi.org/10.1016/j.cell.2022.01.014

  6. Jan 2022
  7. Dec 2021
    1. Similar to the idea of {{ if .Title }}, does Micro.blog (or Hugo) have a way to identify if a post only contains images and capture that to a variable?

      Another potential method (or an additional filter) for finding posts with photos, or more specifically posts whose main purpose is a photo or image is to use use the post type discovery algorithm. Given that Micro.blog is built on a variety of IndieWeb building blocks, most photos could/should have a class of u-photo on their img tags, so you could search for these instead or in addition to. I believe there are a set of parsers and tools out there that do this in a few languages already and someone in the IndieWeb Dev chat can direct you to them if they’re not linked to the page above.

    1. Over these two centuries, an in-creasing impatience for the ancient art of memory based on the use of imagi-nation could be detected in the academic milieu.

      Following the invention of moveable type, the information overload created in the two centuries between 1550 and 1750, placed a major burden and impatience, particularly on academic scholars, on the use of the ancient arts of memory based on the use of imagination. In addition to the education reforms by those like Peter Ramus, this may have been a major motivating factor for forgetting this prior tradition of knowledge acquisition and management.

      What is one to do when there's seemingly "too much to memorize"?

    1. All this bears little resemblance to modern literary ideals, in which the author is constructed somewhat heroically as an individual creative source.

      This is broadly true in the early West, but becomes far more prevalent after the time of Konrad Gessner (1516 - 1565) whose work coincided with the explosion of information following the use of moveable type in Europe.

    1. Behind this order of paper slips that guarantees mobility and rearrange-ment, one can recognize the same economy of signs that a century earlier contributes to a major paradigmatic shift. Johannes Gutenberg ’ s invention of the printing press not only forges most obviously associations of typeset-ting, steel models, pouring mechanisms for individual letter types, special alloys, and composing sticks for setting lines of type. 28

      Much the same way printing was automated with Johannes Gutenberg's moveable type invention, the writing of longer pieces may be automated with moveable ideas. Ideas written down on slips (index cards) can be moved around easily and re-used as necessary in composing longer articles.

  8. Nov 2021
    1. the name union comes from type theory. The union number | string is composed by taking the union of the values from each type. Notice that given two sets with corresponding facts about each set, only the intersection of those facts applies to the union of the sets themselves.
    2. For example, if we had a room of tall people wearing hats, and another room of Spanish speakers wearing hats, after combining those rooms, the only thing we know about every person is that they must be wearing a hat.
    3. Type aliases and interfaces are very similar, and in many cases you can choose between them freely. Almost all features of an interface are available in type, the key distinction is that a type cannot be re-opened to add new properties vs an interface which is always extendable.
    1. Regarding mapped types, remember that { [K in T]: U } is a special form - it can't be combined with other properties within the { }. So there's not really a name for the [K in T: U] part because it's just part of the overall "mapped type" syntax { [K in T]: U }
    2. Which... is confusing because Palette technically does have an index signature Palette is a mapped type, and mapped types don't have index signatures. The fact that both use [ ] is a syntactic coincidence.
    1. So now the question is, why does Session, an interface, not get implicit index signatures while SessionType, an identically-structured typealias, *does*? Surely, you might again think, the compiler does not simply deny implicit index signatures tointerface` types? Surprisingly enough, this is exactly what happens. See microsoft/TypeScript#15300, specifically this comment: Just to fill people in, this behavior is currently by design. Because interfaces can be augmented by additional declarations but type aliases can't, it's "safer" (heavy quotes on that one) to infer an implicit index signature for type aliases than for interfaces. But we'll consider doing it for interfaces as well if that seems to make sense And there you go. You cannot use a Session in place of a WithAdditionalParams<Session> because it's possible that someone might merge properties that conflict with the index signature at some later date. Whether or not that is a compelling reason is up for rather vigorous debate, as you can see if you read through microsoft/TypeScript#15300.
    1. The type-fest package contains only types, meaning they are only used at compile-time and nothing is ever compiled into actual JavaScript code. This package contains functions that are compiled into JavaScript code and used at runtime.
  9. Oct 2021
    1. Hulme, W. J., Williamson, E. J., Green, A., Bhaskaran, K., McDonald, H. I., Rentsch, C. T., Schultze, A., Tazare, J., Curtis, H. J., Walker, A. J., Tomlinson, L., Palmer, T., Horne, E., MacKenna, B., Morton, C. E., Mehrkar, A., Fisher, L., Bacon, S., Evans, D., … Goldacre, B. (2021). Comparative effectiveness of ChAdOx1 versus BNT162b2 COVID-19 vaccines in Health and Social Care workers in England: A cohort study using OpenSAFELY [Preprint]. Epidemiology. https://doi.org/10.1101/2021.10.13.21264937

    1. When I was looking for a way to build small, maintainable websites as an independent contractor, I found a local Vancouver company, Chloi, that was working on a static site generator called Harp. It was a plus that Kenneth Ormandy of Type Brigade had been involved in the project. (See his contributions on GitHub)

  10. Sep 2021
  11. Aug 2021
    1. the tuple() function you need can be succinctly written as: export type Lit = string | number | boolean | undefined | null | void | {}; export const tuple = <T extends Lit[]>(...args: T) => args;
    2. const list = ['a', 'b', 'c'] as const; // TS3.4 syntax type NeededUnionType = typeof list[number]; // 'a'|'b'|'c';
    3. possible to tell the compiler to infer the type of a tuple of literals as a tuple of literals, instead of as, say, string[], by using the as const syntax.
    4. Or, maybe better, interpret the list as a tuple type: const list: ['a','b','c'] = ['a','b','c']; // tuple
    5. One problem is the literal ['a','b','c'] will be inferred as type string[], so the type system will forget about the specific values.
    1. function strictIsDog<T extends Dog extends T ? unknown : never>( // like <T super Dog> candidate: Dog | T // if Dog extends T then Dog | T is T ): candidate is Dog { // compiler recognizes that Dog | T can narrow to T return "bark" in candidate; } if (strictIsDog(animal)) {} // okay if (strictIsDog(dog)) {} // okay if (strictIsDog(mixed)) {} // okay if (strictIsDog(cat)) {} // error! // ~~~ <-- Cat is not assignable to Dog
    2. * Now it's correct within the laws of the type system, but makes zero practical sense, * because there exists no runtime representation of the type `Date & string`. * * The type system doesn't care whether a type can be represented in runtime though.

      new tag?: makes zero practical sense

      makes zero practical sense because there exists no runtime representation of the type

    3. Using the second type guard forces the user to write a more precise type and therefore manifest any nonsensical type guards that produce never, like: function silly<T extends number>(candidate: T): candidate is T & boolean { … }
    1. function isKeyOfMcuParams(x: string): x is keyof McuParams { switch (x) { case 'foo': case 'bar': case 'baz': return true; default: return false; } }
    2. Is it possible to write a user defined type guard for a keyof string type such as keyOf foo when foo is defined ONLY as a type (and not in an array)?
    1. It means that when having a type guard:TypeScript and JavaScript runtime are tied to the same behaviour.
    2. Inside the if statement, TypeScript will assume that amount cannot be anything else than a string, which is true also at the runtime thanks to typeof JavaScript operator.
    3. This “gap” between what we call “runtime” and “static analysis” can be filled using TypeScript Type Guards.
    1. we use a type guard here to say that, if this function returns true, any further usage of key will be of the specified type. Otherwise, it's still just a string.
    2. function hasKey<O>(obj: O, key: PropertyKey): key is keyof O { return key in obj }
    1. Adding to the accepted answer, if you happen to need to use a type guard against a mixin, you'll get this error too, since the is operator doesn't behave as an implements would.
    2. Regarding the error message, the predicate type must be assignable to the value type because the type guard is used to check whether a value with a less-specific type is in fact a value with a more-specific type. For example, consider this guard: function isApe(value: Animal): value is Ape { return /* ... */ } Ape is assignable to Animal, but not vice versa.
    3. If there is no relationship between the value's type and the type in the type predicate, the guard would make no sense. For example, TypeScript won't allow a user-defined guard like this: function isString(value: Date): value is string { return typeof value === "string"; }
    1. Type Annotations:These annotations can be applied to any place where a type is being used. For example, we can annotate the return type of a method.
    1. We can also define these properties for data types that we do not control, for example providing a custom way of hashing a data type implemented by someone else
    1. Moss points out the implied analogy between the commonplace-book and "moveable type, capable of both setting a page of text in an apparentiy immutable form and of rearranging all the eléments of that page into other pattems for other meanings" (p. 252); with characteristie prudence, she mentions this analogy only when it finally becomes explicit in one of her later texts, Jean Oudart's Methode des orateurs oí 1668

      The ideas of moveable type and moveable information can be an important idea in the evolution of commonplace books to zettelkasten and thence into digital forms of commonplaces.

  12. May 2021
  13. Mar 2021
    1. We added the X-Content-Type-Options: nosniff header to our raw URL responses way back in 2011 as a first step in combating hotlinking. This has the effect of forcing the browser to treat content in accordance with the Content-Type header. That means that when we set Content-Type: text/plain for raw views of files, the browser will refuse to treat that file as JavaScript or CSS.
    1. The distinction in computer programming between classes and objects is related, though in this context, "class" sometimes refers to a set of objects (with class-level attribute or operations) rather than a description of an object in the set, as "type" would.
    2. The distinction is important in disciplines such as logic, linguistics, metalogic, typography, and computer programming.
    3. The sentence "they drive the same car" is ambiguous. Do they drive the same type of car (the same model) or the same instance of a car type (a single vehicle)?
    1. In the simple biology example, dog is a hypernym and Fido is one of its hyponyms. A word can be both a hyponym and a hypernym. For example, dog is a hyponym of mammal and also a hypernym of Fido.

      I wish they hadn't used tokens/objects in this example. Wouldn't it be just as clear or clearer if they had stuck to only comparing types/classes?

      It may be okay to mix them like that in some contexts, but in other cases it seems like this would be suffering from ignoring/conflating/[better word?] the Type–token distinction.

      Does linguistics just not make the https://en.wikipedia.org/wiki/Type%E2%80%93token_distinction ?

      This statement seems to reinforce that idea:

      words that are examples of categories are hyponyms

      because an example of a category/class/type could be either a sub-class or an instance of that category/class/type, right?

    2. words that are examples of categories are hyponyms
    1. “There is very little incentive for Microsoft to make a significant change to features that are used extremely widely by the rest of the massive community of Excel users.”

      Microsoft did the right thing here. Most users are not geneticists and they rely on automatic date conversion.

  14. Feb 2021
    1. this implies direct work with nil-able values which may end up with errors.
    2. To get the final value you can use value_or which is a safe way to unwrap a nil-able value.
    3. In other words, once you've used Maybe you cannot hit nil with a missing method. This is remarkable because even &. doesn't save you from omitting || "No state" at the end of the computation. Basically, that's what they call "Type Safety".
    1. A type constructor M that builds up a monadic type M T
    2. Monads achieve this by providing their own data type (a particular type for each type of monad), which represents a specific form of computation
    3. To emphasize how Just acts on the underlying value by wrapping it, it can be redefined as a function too, called eta for now
    4. Maybe T can be understood as a "wrapping" type, wrapping the type T into a new type with built-in exception handling
    1. For now I've worked around this by putting all the key-value pairs into an array before passing them into the interaction, then re-building the hash inside the interaction. It works, but it requires some extra code
    2. You can use it by allowing a hash with arbitrary keys, but that loses type-safety one that object.
    1. div:nth-of-type(3n+1) { grid-column: 1; } div:nth-of-type(3n+2) { grid-column: 2; } div:nth-of-type(3n+3) { grid-column: 3; } div:nth-of-type(-n+3) { grid-row: 1; }
    2. #ttt > * { border: 1px solid black; border-width: 0 1px 1px 0; display: flex; /* flex styling to center content in divs */ align-items: center; justify-content: center; } #ttt > *:nth-of-type(3n) { border-right-width: 0; } #ttt > *:nth-of-type(n+7) { border-bottom-width: 0; }
  15. Nov 2020
    1. keystroke biometrics, ID capture, and facial analysis

      I feel like I'm seeing various responses to what data is actually captured. To me, it doesn't seem like they are consistent in their responses about the types of data collected.

    1. Reviewing pre-prints with hypothes.is?

      After conversion using the hypothes.is API tool: https://jonudell.info/h/CopyAnnotations/ , this annotation has been copied to a public annotation (which I subsequently edited).

      Drawback: you can only use it with one user log-in and on a single web domain (so you'd have to run it for every single article someone has reviewed).

      Original annotation (see in group—that one stays there, usefully!)

      This annotation should be private to the group only.

      Tags are permitted, they can be any free text.

  16. Oct 2020
    1. Informative data about objects that are considered prototypes for the role. Base concept is similar to type, but without inheritance of limitations and properties. Base concepts are designed as a substitute for inheritance for external concepts. A base concept is like a related concept except that the base concept is almost identical to the role definition.
  17. Sep 2020
    1. It’s become increasingly common to divide code into components, rather than by file type. React, for example, allows for the collocation of a components markup and JavaScript. In Svelte, this is taken one logical step further: the Javascript, markup and styling for a component can all exist together in a single `.svelte`​ file
  18. Aug 2020
  19. Jul 2020
    1. Många upplever sina största svårigheter i relationer med andra särskilt med de mest nära, kära och intima. Lev livet fullt ut visar oss hur våra relationer kan vara en ingång till ett andligt uppvaknande, om vi använder oss av dem på ett klokt och vist sätt.

      Och här låter det som att den som TÄNKER för mycket behöver balansera det med motsatsen att KÄNNA, vilket man har god nytta av i relationer exempelvis.

      Igen, Carl Jungs typteori. Medicinhjulets väderstreck, elementens eld (tänkande) och dess motsats vatten (känslor)

  20. Jun 2020
  21. May 2020
  22. Mar 2020
    1. Alert: New office locations are now accepting reservations for license and permit transactions at the Adam Clayton Powell Jr. State Office Building in Harlem, Empire State College in Selden, and Shirley A. Chisholm State Office Building in Brooklyn.

      General information types of products Location of service

  23. Nov 2019
    1. with perhaps a dash of British formality and wit

      type design is cultural

    2. created a Greek alphabet carefully honed to convey scientific meaning rather than typical Greek-language prose

      type design as a means to convey scientific meaning

  24. Oct 2019
    1. When you request a file from raw.githubusercontent.com, gist.githubusercontent.com, bitbucket.org or gitlab.com, they are usually served (in the case of JavaScript, HTML, CSS, and some other file types) with a Content-Type of text/plain. As a result, most modern browsers won't actually interpret it as JavaScript, HTML, or CSS.
    1. Let's make the example even easier. function convertDate<T extends string | undefined>(isoDate?: string): T { return undefined } 'undefined' is assignable to the constraint of type 'T' Means: What you return in the function (undefined), matches the constraints of your generic type parameter T (extends string | undefined). , but 'T' could be instantiated with a different subtype of constraint 'string | undefined'. Means: TypeScript does not consider that as safe. What if you defined your function like this at compile time: // expects string return type according to generics // but you return undefined in function body const res = convertDate<string>("2019-08-16T16:48:33Z") Then according to your signature, you expect the return type to be string. But at runtime that is not the case! This discrepancy that T can be instantiated with a different subtype (here string) than you return in the function (undefined) is expressed with the TypeScript error.