Skip to content

Instantly share code, notes, and snippets.

View black-black-cat's full-sized avatar

bcatb black-black-cat

View GitHub Profile
@black-black-cat
black-black-cat / workbench.colorCustomizations.json
Last active December 3, 2020 05:36 — forked from jacklorusso/workbench.colorCustomizations.json
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own.
"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": "",
@black-black-cat
black-black-cat / get_relpath.py
Last active June 12, 2020 03:34
get relative path
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import os
import sys, getopt
def get_relpath (target, start):
t = os.path.dirname(target)
s = os.path.dirname(start)
b = os.path.basename(target)
@black-black-cat
black-black-cat / travel.py
Last active June 9, 2020 10:12
directory iterating
import os
import pathlib
import json
maindir = os.path.join(os.getcwd(), '..')
dirs = [os.path.join(maindir, dir) for dir in os.listdir(maindir)]
package_names = []
for dir in dirs:
f = os.path.join(dir, 'package.json')
@black-black-cat
black-black-cat / index.html
Last active July 9, 2021 01:38
arith 四则运算
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Hello world!</h1>
<input id="in" type="text">
@black-black-cat
black-black-cat / index.html
Created December 5, 2019 16:14
deep merge deepMerge
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Hello world!</h1>
<script src="script.js"></script>
@black-black-cat
black-black-cat / index.html
Last active November 11, 2019 09:22
get rotated corners
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Hello world!</h1>
<script src="script.js"></script>
@black-black-cat
black-black-cat / index.html
Last active November 8, 2019 09:17
getCursors Cursors
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Hello world!</h1>
<script src="script.js"></script>
@black-black-cat
black-black-cat / index.html
Last active November 7, 2019 02:35
parseCSV csv
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Hello world!</h1>
<script src="script.js"></script>
@black-black-cat
black-black-cat / README.md
Last active November 5, 2019 07:36 — forked from joyrexus/README.md
Drag rotation of a div

Demonstrating drag rotation of an element around its center point.

@black-black-cat
black-black-cat / index.html
Last active October 30, 2019 09:25
convert base
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Hello world!</h1>
<script src="script.js"></script>