prettier-eslint |
eslint-plugin-prettier |
eslint-config-prettier |
|
---|---|---|---|
What it is | A JavaScript module exporting a single function. | An ESLint plugin. | An ESLint configuration. |
What it does | Runs the code (string) through prettier then eslint --fix . The output is also a string. |
Plugins usually contain implementations for additional rules that ESLint will check for. This plugin uses Prettier under the hood and will raise ESLint errors when your code differs from Prettier's expected output. | This config turns off formatting-related rules that might conflict with Prettier, allowing you to use Prettier with other ESLint configs like eslint-config-airbnb . |
How to use it | Either calling the function in your code or via [prettier-eslint-cli ](https://github.co |
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 | |
# CUSTOM {{{ | |
shopt -s nocasematch | |
# }}} | |
set -o noclobber -o noglob -o nounset -o pipefail | |
IFS=$'\n' | |
# If the option `use_preview_script` is set to `true`, |
Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
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
/* Better styles for embedding GitHub Gists */ | |
.gist{font-size:13px;line-height:18px;margin-bottom:20px;width:100%} | |
.gist pre{font-family:Menlo,Monaco,'Bitstream Vera Sans Mono','Courier New',monospace !important} | |
.gist-meta{font-family:Helvetica,Arial,sans-serif;font-size:13px !important} | |
.gist-meta a{color:#26a !important;text-decoration:none} | |
.gist-meta a:hover{color:#0e4071 !important} |
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
//ES6 syntax: | |
const packIt = (...args) => console.log(args) | |
packIt(1,2,3,5,5); | |
// ES5 syntax | |
var packIt = function(n1,n2,n3,n4,n5) { | |
return console.log(n1,n2,n3,n4,n5); | |
} |
- If Termux is closed in the background by Android, the cron service will stop updating your repository and you must open Termux again. Refer to instructions for your device model to disable the killing of certain background applications.
- This may negatively affect your devices battery life. I'm not entirely sure yet.
- Install Termux – Apps on Google Play
Block computer for input, but remain graphical output as usual. Can be used for example to watch a movie on your laptop but forbid any input during that.
Not tested thouroughly yet, and only tested on Debian 9
Custom checkboxes for Obsidian! It's like deathau's snippet except updated to work really well in Live Preview mode in Obsidian 1.0.
Simply edit the x
inside checkboxes to >
, ?
, etc. to see styling like below!
Editing | Live Preview | Viewing |
---|---|---|
Installation:
- Download the
checkbox.css
file on this page
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
<div style="font-size:20px;color:#F2E48E;font-family:Times; | |
font-style:italic;letter-spacing:-2px;position:fixed;bottom:50px; | |
left:5px;opacity:.9;"> | |
<div class="editcloze"> | |
Ease: {{info-Factor:}} | |
</div> | |
<span id="countdown2"></span> | |
<script> | |
// ###### CUSTOMIZE DATE HERE ###### | |
var dateText= 'June 18 2022'; |