This endpoint works:
https://www.binance.com/api/v3/klines?symbol=BTCUSDT&interval=1h&limit=2
This endpoint will return an error:
https://www.binance.com/api/v3/klines?symbol=BTCUSDT%7CETHUSDT&interval=1h&limit=2
This file contains 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 { Injectable } from '@angular/core'; | |
import { Subject } from 'rxjs'; | |
import { | |
// eslint-disable-next-line @typescript-eslint/no-unused-vars | |
KLINE_CRYPTOS, | |
KLINE_CRYPTOS_BTC, | |
// eslint-disable-next-line @typescript-eslint/no-unused-vars | |
KLINE_CRYPTOS_QUICK, | |
} from '../../../../../data/assets.data'; | |
import { LoggingService } from '../logging/logging.service'; |
This file contains 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
// Get dependency: `ng add @angular/material` | |
// Save to `src/app/material/material.module.ts` | |
// June 2024 | |
import { NgModule } from '@angular/core'; | |
/* ================================ MATERIAL ================================ */ | |
// Importing Angular Material modules individually | |
// Each import provides a specific UI component from Angular Material |
This file contains 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
#!/bin/bash | |
# I wrote a shell script that takes a project name and then configures an Angular project with a prefix and all my preferences, | |
# which include eslint, prettier, and the Airbnb styles guide for Angular using pnpm (instead of npm). | |
# | |
# Download it to the parent directory where you want to create a new project ( I have them all in a directory called wdd430) | |
# and then make it executable with this command. | |
# | |
# chmod +x create-angular-project.sh | |
# |
This file contains 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
/** 1 */ | |
// Inside build method, in form widget | |
void toggleDropdownEnabled(bool val) { | |
ref | |
.read(providerTrackerDrowndownIndustrialDegree.notifier) | |
.update((state) => val); | |
} | |
/** 2 */ | |
// Inside form |
Term | Tool | Explanation | Use | Docs |
---|---|---|---|---|
🔦 Linter | ESLint |
- Runs a set of discrete rules - Slower - Explicit logic for edge cases |
Code quality (bug catching) | 📑 |
🧹 Formatter | Prettier |
- Reformats in one pass - Faster - Can't find and fix bugs |
Code Formatting | 📑 |
- eslintconfigprettier -> Prettier -> Lint
Linters have two categories of rules:
This file contains 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:collection'; | |
import 'dart:math'; | |
class IndexableSkipList<K, V> { | |
static const _maxHeight = 12; | |
final _Node<K, V> _head = _Node( | |
null, | |
null, | |
List.filled(_maxHeight, null), |
NewerOlder