Skip to content

Instantly share code, notes, and snippets.

View sarai2525's full-sized avatar
🌴
On vacation

sarai sarai2525

🌴
On vacation
  • has shiped
View GitHub Profile
@sarai2525
sarai2525 / zenkaku_hankaku.js
Created January 11, 2023 09:31 — forked from tricknotes/zenkaku_hankaku.js
JavaScript での全角・半角の正規表現
// see: http://gimite.net/gimite/rubymess/moji.html
var zenkaku = /(?:[ _])|(?:[´¨±×÷°§])|(?:[-])|(?:[-])|(?:[-])|(?:[-])|(?:[-])|(?:[Α-Ωα-ω])|(?:[А-Яа-я])|(?:[\u2570-\u25ff])|(?:[\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff])/;
var hankaku = /(?:[\x00-\x1f\x7f])|(?:[ !"#$%&'()*+,\-.\/:;<=>?@\[\\\]\^_`{|}~])|(?:[\uFF61\uFF62\uFF63\uFF64\uFF70\uFF9E\uFF9F\uFF65])|(?:[0-9])|(?:[A-Z])|(?:[a-z])|(?:[\uFF66-\uFF6F\uFF71-\uFF9D])/;
@sarai2525
sarai2525 / extensions.md
Created December 23, 2021 06:13 — forked from chrisvfritz/extensions.md
VSCode Config
  • Annotator: Display the annotation view (git blame) of the current file.
  • beutify: Beautify javascript, JSON, CSS, Sass, and HTML in Visual Studio Code.
  • Can I Use: Compatibility check for HTML5, CSS3, SVG, New JS API based on http://caniuse.com/ directly from Visual Studio Code.
  • Code SpellChecker: A basic spell checker that works well with camelCase code.
  • Custom CSS and JS: Custom CSS to your VS Code.
  • Debugger for Chrome: A VS Code extension to debug your JavaScript code in the Google Chrome browser, or other targets that support the Chrome Debugging Protocol.
  • EditorConfig for VSCode: EditorConfig support for Visual Studio Code.
  • ESLint: Integrates ESLint into VS Code.
  • File Utils: A convenient way of creating, duplicating, moving, renaming, deleting files and directories.
  • Flow Language Support: This extension adds Flow support for VS Code. Flow is a static type checker, designed to find type errors in JavaScript programs.