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
| # Function variable x | |
| x = var('x'); | |
| # Function f(x) | |
| f(x) = (x-3)*ln(x)-1; | |
| # Derivative f'(x) | |
| df = diff(f,x); | |
| # Newton's Iterative 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
| #import "uYouItem.h" | |
| @interface DownloadItem : NSObject <NSCoding> | |
| @property (nonatomic, readwrite, strong) NSString *downloadIdentifier; | |
| @property (nonatomic, readwrite, strong) NSString *videoID; | |
| @property (nonatomic, readwrite, strong) NSString *filePath; | |
| @property (nonatomic, readwrite, strong) NSURL *remoteURL; | |
| @property (nonatomic, readwrite, strong) uYouItem *uYouItem; | |
| @property (nonatomic, readwrite, assign) int type; | |
| @property (nonatomic, readwrite, strong) NSURLSessionDownloadTask *downloadTask; |
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
| export const $ = s => s.startsWith("#") && ![".", " ", ">"].some(c => s.includes(c)) | |
| ? document.getElementById(s.substring(1)) | |
| : document.querySelector(s); | |
| export const $$ = s => document.querySelectorAll(s); |
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 { useState } from 'react'; | |
| import Select, { components } from 'react-select'; | |
| export default function CustomSelect() { | |
| const [filteredOptions, setFilteredOptions] = useState<Options<{ value: string | number; label: string }>>([]); | |
| const currentFilteredOptions = useRef<Options<{ value: string | number; label: string }>>([]); | |
| useEffect(() => { | |
| const newOptions = currentFilteredOptions.current; | |
| if (JSON.stringify(newOptions) !== JSON.stringify(filteredOptions)) { |
OlderNewer