Visual Studio Code
-
global
- visual studio intellicode
- live server
- git lens -- git supercharged
- bracket pair colorizer
- remote - wsl
-
path intellisense
| #include <sys/socket.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include "./sender.h" | |
| #include "../macros.h" | |
| #include "../utils.h" | |
| #include "../tools/addr.h" | |
| #include "../access.h" |
| "use strict"; | |
| const User = use("App/Models/User"); | |
| class AuthController { | |
| static get defaultRoute(){ | |
| return "tab.search"; | |
| } | |
| static get userRoute(){ |
| @use "~@scss/theme" as *; | |
| @use "~@scss/mixins/margin" as *; | |
| @use "~@scss/mixins/flex" as *; | |
| @use "~@scss/mixins/border" as *; | |
| @use "~@scss/mixins/colors" as *; | |
| @use "~@scss/modules/error" as *; | |
| $bwidth: 3px; | |
| $radius: 1em; |
| <template> | |
| <CmsForm | |
| ref="form" | |
| class="tap-form" | |
| :title="title" | |
| :cancelText="cancelText" | |
| :submitText="submitText" | |
| :canDelete="canDelete" | |
| entityDesignator="ce taraud" | |
| @cancel="onCancel" |
Visual Studio Code
global
path intellisense
| @use "sass:selector"; | |
| @mixin darkMode($applySelf: false) { | |
| $selector: &; | |
| @if ($applySelf) { | |
| @content; | |
| } | |
| @at-root { |
| const DeepProxy = require("proxy-deep") | |
| const _ = new DeepProxy({}, { | |
| _pushOp(op) { | |
| }, | |
| get(target, path, receiver){ | |
| return this.nest(function() {}); | |
| }, | |
| apply(target, thisArg, [obj]){ |
| import { useState, useMemo, useCallback, Dispatch, SetStateAction } from "react"; | |
| type InitialState<S> = (() => S) | S; | |
| type Nullable<T> = T|null|undefined; | |
| type Lens<Store = unknown, Value = unknown> = (store: Nullable<Store>) => ({ | |
| get(): Nullable<Value>; | |
| set(newValue: Nullable<Value>): Nullable<Store>; |
| export type ArrayPartitionResult<T> = [left: T[], right: T[]]; | |
| const partitionArr = function<T>(this: T[], predicate: (item: T, i: number, arr: T[]) => boolean): ArrayPartitionResult<T> { | |
| return this.reduce((partitions: ArrayPartitionResult<T>, item: T, i: number): ArrayPartitionResult<T> => { | |
| const partitionIndex = predicate(item, i, this) ? 0 : 1; | |
| partitions[partitionIndex].push(item); | |
| return partitions; | |
| }, [[], []] as ArrayPartitionResult<T>); | |
| }; |
| export interface Semigroup<T, Self> { | |
| concat(b: Semigroup<T, Self>): Semigroup<T, Self>; | |
| sconcat(b: Semigroup<T, Self>): Semigroup<T, Self>; | |
| stimes(n: number): Semigroup<T, Self>; | |
| } | |
| const decorateSemigroup = <T, Self>(sg: Partial<Semigroup<T, Self>>): Semigroup<T, Self> => { | |
| sg.stimes = function(this: Semigroup<T, Self>, n: number): Semigroup<T, Self> { | |
| let ret = this; |