Skip to content

Instantly share code, notes, and snippets.

View joulev's full-sized avatar

Vũ Văn Dũng joulev

View GitHub Profile
@ixahmedxi
ixahmedxi / settings.json
Created January 2, 2024 08:05
My settings.json
{
"workbench.startupEditor": "none",
"workbench.iconTheme": "moxer-icons",
"workbench.colorTheme": "Aura Dark",
"workbench.settings.editor": "json",
"breadcrumbs.enabled": false,
"explorer.compactFolders": false,
"editor.wordWrap": "bounded",
"editor.tabSize": 2,
"editor.inlineSuggest.enabled": true,
@kamilogorek
kamilogorek / _screenshot.md
Last active May 2, 2024 13:48
Clutter-free VS Code Setup
image
import {
ElementRef,
ForwardRefExoticComponent,
createElement,
forwardRef,
} from "react";
import { cn } from "./utils";
export function extend<T extends { className?: string }>(
Component: ForwardRefExoticComponent<T>,
@ihatecsv
ihatecsv / README.md
Last active March 1, 2023 14:14
RGB VSCode
  1. Follow the instructions to install Custom CSS and JS Loader for VSCode

  2. Make a file with the rgbcode.css content, and follow the instructions in the above link to add the file path to the settings.json. For example, mine is:

"vscode_custom_css.imports": ["file:///C:/Users/drake/Documents/rgbcode/rgbcode.css"]
@ckcr4lyf
ckcr4lyf / node_ipc_malware.md
Last active May 26, 2022 00:12
Explanation of the malware in node-ipc
@LeviSnoot
LeviSnoot / discord-timestamps.md
Last active May 14, 2024 10:42
Discord Timestamp Syntax

Discord Timestamps

Discord timestamps can be useful for specifying a date/time across multiple users time zones. They work with the Unix Timestamp format and can be posted by regular users as well as bots and applications.

The Epoch Unix Time Stamp Converter is a good way to quickly generate a timestamp. For the examples below I will be using the Time Stamp of 1543392060, which represents November 28th, 2018 at 09:01:00 hours for my local time zone (GMT+0100 Central European Standard Time).

Formatting

Style Input Output (12-hour clock) Output (24-hour clock)
Default <t:1543392060> November 28, 2018 9:01 AM 28 November 2018 09:01
@rainyroads
rainyroads / Analya_20.csv
Last active July 9, 2021 11:40
Sauce mappings of accounts blocked by @saucenaopls
pixiv_id authors_twitter link
665980 @necocoya https://twitter.com/Analya_20/status/1389309367720284165
4546023 @Vert_320 https://twitter.com/Analya_20/status/1389244245375135744
5375435 @boris_noborhys https://twitter.com/Analya_20/status/1389008657841594371
5375435 @boris_noborhys https://twitter.com/Analya_20/status/1381423107022467076
5375435 @boris_noborhys https://twitter.com/Analya_20/status/1373078835579785221
5375435 @boris_noborhys https://twitter.com/Analya_20/status/1372232770399899651
5375435 @boris_noborhys https://twitter.com/Analya_20/status/1367122344259575812
5375435 @boris_noborhys https://twitter.com/Analya_20/status/1359280126991740933
5375435 @boris_noborhys https://twitter.com/Analya_20/status/1345563714947309568
@sindresorhus
sindresorhus / esm-package.md
Last active May 17, 2024 14:07
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@stla
stla / DuoprismStereo_ASY.md
Created December 13, 2019 21:49
Stereographic duoprism with Asymptote

gfycat

@wybiral
wybiral / noscript-tracking.go
Last active September 11, 2023 08:53
Tracking cursor position in real-time with remote monitoring (without JavaScript)
// Tracking cursor position in real-time without JavaScript
// Demo: https://twitter.com/davywtf/status/1124146339259002881
package main
import (
"fmt"
"net/http"
"strings"
)