./src/
src/cli.ts
src/index.ts
./vite.config.ts
vite.config.ts
import { resolve } from "node:path"
./src/
src/cli.ts
src/index.ts
./vite.config.ts
vite.config.ts
import { resolve } from "node:path"
<span [innerHTML]="svgContent" (click)="onClick($event)" [ngClass]="(fill.length > 0 || stroke.length > 0) ? '' : 'icon-bg'" #element></span> |
This article describes how to quickly and easily remap your MacOS keyboard to better suit your needs using only the command line (i.e., without needing to install any additional applications).
TL;DR: Enter the following command in a terminal on your Mac to remap Caps-Lock as Delete, and remap Delete as Escape:
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x70000002A,"HIDKeyboardModifierMappingDst":0x700000029},{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x70000002A}]}'
But why would you want to do this? A couple of quick examples targeted at writers or developers: If you are using a modern IDE or code editor (versus 'vim' or 'emacs'), then you may wish to map the very convenient but seldom-used Caps-Lock to the oft-used Delete function. Or if you are editing using vim or emacs, then you may wish to map the Caps-Lock to a commonly-used modifier key such as Ctrl. Or maybe you are just a normal person that tends to not type many acronyms
Index: client/angular.json | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- client/angular.json (revision fcfaf7440d0eaed6baa841b2b4d9eca231b002f6) | |
+++ client/angular.json (date 1603593891228) | |
@@ -39,7 +39,7 @@ | |
"prefix": "app", | |
"architect": { |
# ZSH | |
autoload -U add-zsh-hook | |
# place default node version under $HOME/.node-version | |
load-nvmrc() { | |
DEFAULT_NODE_VERSION=`cat $HOME/.node-version` | |
if [[ -f .nvmrc && -r .nvmrc ]] || [[ -f .node-version && -r .node-version ]]; then | |
fnm use | |
elif | |
[[ `node -v` != $DEFAULT_NODE_VERSION ]]; then |
// This is the code used in video "How To Add Svelte To Your Site?" | |
// Check out the video here: https://www.youtube.com/watch?v=ZL7mKFQHSAY | |
const gulp = require('gulp') | |
const sass = require('gulp-sass') | |
const browsersync = require('browser-sync').create() | |
const webpack = require('webpack') | |
const webpackStream = require('webpack-stream') |
<?php | |
/** | |
* Filter for GravityForms to group select field choices by a special "optgroup" choice. | |
* | |
* Simply add a new choice with a value of 'optgroup' to the dropdown to start a group of options. | |
* All following choices will be grouped under it using its label for the group. | |
* Any number of groups can be created, as each optgroup choice will start a new group. | |
* Supports field placeholder & ungrouped options, but must be before the first group. | |
* | |
* This snippet can be added to your theme's functions.php, or a custom plugin. |
const Moment = require('moment')
const array = [{date:"2018-05-11"},{date:"2018-05-12"},{date:"2018-05-10"}]
const sortedArray = array.sort((a,b) => new Moment(a.date).format('YYYYMMDD') - new Moment(b.date).format('YYYYMMDD'))
console.log(sortedArray)
"workbench.colorCustomizations": { | |
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast. | |
"contrastActiveBorder": "", | |
"contrastBorder": "", | |
// Base Colors | |
"focusBorder": "", | |
"foreground": "", | |
"widget.shadow": "", | |
"selection.background": "", | |
"descriptionForeground": "", |