- What Makes People Engage With Math
- The Discovery That Transformed Pi
- What does it feel like to invent math?
- This Is the Calculus They Won't Teach You
- Calculus at a Fifth Grade Level
- Essence of calculus ー Series
- What is Jacobian? | The right way of thinking derivatives and integrals
- How Imaginary Numbers were Invented
- Imaginary Numbers are Real ー Series
- 500 years of NOT teaching THE CUBIC FORMULA
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
// @ts-nocheck | |
// biome-ignore lint: Handwritten script for performance. | |
;(function () { | |
try { | |
const d = document.documentElement | |
const ls = localStorage | |
// Run `fn` without css transitions. | |
// See https://paco.me/writing/disable-theme-transitions. | |
const withoutTransitions = (fn) => { |
I'm gonna assume the response from /v13/deployments/:id
is the ideal response and compare it to the deployment interfaces responded from other endpoints.
id
isuid
aliasAssignedAt
isaliasAssigned
, note thataliasAssigned
is a boolean field in the ideal responsecreatedAt
is duplicated intocreated
, there're two fields with the same value in there,created
andcreatedAt
- the
creator
field returns two more properties,email
andgithubLogin
readyState
is renamed asstate
, the ideal response here is duplicating it though, thev13/deployments/:id
respond with bothstatus
andreadyState
, they are the same- it's missing a lot of fields, including the ones on aliases
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
{ | |
"removed": [ | |
"codicon-bell-slash", | |
"codicon-bell-slash-dot", | |
"codicon-blank", | |
"codicon-circle", | |
"codicon-circle-large", | |
"codicon-circle-small", | |
"codicon-circle-small-filled", | |
"codicon-comment-draft", |
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
import {Module, Inject, Injectable, ConfigurableModuleBuilder} from '@nestjs/common' | |
const {ConfigurableModuleClass, MODULE_OPTIONS_TOKEN} = new ConfigurableModuleBuilder<unknown>().build() | |
@Injectable() | |
class DropperService<T> { | |
constructor(@Inject(MODULE_OPTIONS_TOKEN) private readonly value: T) {} | |
drop(): T { | |
return this.value |
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
@font-face { | |
font-family: 'Inter Fallback'; | |
src: local('Arial'); | |
ascent-override: 90%; | |
descent-override: 22.43%; | |
line-gap-override: 0%; | |
size-adjust: 107.64%; | |
} | |
@font-face { |
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
import 'dart:async'; | |
import 'dart:convert'; | |
import 'dart:io' as io; | |
/// Reads a single line from [stdin] asynchronously. | |
Future<String> readLine() async { | |
final c = Completer<String>(); // completer | |
final l = io.stdin // stdin | |
.transform(utf8.decoder) // decode | |
.transform(const LineSplitter()) // split line |
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
// difference between and_then vs map for `Option` | |
fn increment(n: i32) -> Option<i32> { | |
Some(n).map(|x| x + 1) | |
} | |
fn main() { | |
let one = Some(1); | |
let four = one | |
.map(|one| one + 1) |
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
{ | |
"react functional component": { | |
"prefix": "rfc", | |
"body": [ | |
"export const ${TM_FILENAME_BASE/(\\w)/${1:/upcase}/}: React.FC = () => {", | |
" return <>$0</>", | |
"}" | |
], | |
"description": "react functional component" | |
}, |
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
Iterable<int> inner() sync* { | |
for (final i in [4, 5, 6]) { | |
yield i; | |
} | |
} | |
Iterable<int> outer() sync* { | |
for (final i in [1, 2, 3]) { | |
yield i; | |
} |
NewerOlder