Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Slack Tech Communities

If you have a community to suggest, this is a growing list, & we'd love to add more.

General Tech

All Roles

@rootv890
rootv890 / Fragment Shader
Last active April 23, 2024 05:57
Shader Starters (ShaderMaterial)
void main()
{
gl_FragColor = vec4(0,0.7,1.0, 1.0);
}
@yashika51
yashika51 / nb-viewer.md
Last active April 23, 2024 05:55
Share your jupyter notebooks with nbviewer and Gist

How to share .ipynb files from your computer without using Colab or Binder?

The most easiest way to share the .ipynb files without using Colab or Binder is by using Gist+nbviewer.

nbviewer helps you to share your jupyter notebooks as static sites. Follow these steps to share notebooks as url:

  • Find the notebook you want to share and open it with notepad.
  • Copy the raw code from there

image

@julyL
julyL / .prettierrc.js
Created March 9, 2020 06:17
.prettierrc.js配置文件
// .prettierrc.js
module.exports = {
// 一行最多 80 字符
printWidth: 80,
// 使用 2 个空格缩进
tabWidth: 2,
// 不使用缩进符,而使用空格
useTabs: false,
// 行尾需要有分号
semi: true,
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active April 23, 2024 05:50
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@y56
y56 / How to install Japanese Input in Linux (tutorial)
Created April 9, 2020 20:52
How to install Japanese Input in Linux (tutorial)
https://www.reddit.com/r/linux/comments/byugan/how_to_install_japanese_input_in_linux_tutorial/
==
How to install Japanese Input in Linux (tutorial)
Introduction:
Hello, my name is Eitan. I am new to linux but i am learning rapidly.
I want to contribute to the community by writing a tutorials for things that might sound easy and unnecessary but for some it might help a lot. if you see that i wrote something wrong please be sure that your write in the comments so i will fix myself.
(This tutorial was tested on debian based oses)
@lukas-h
lukas-h / formatRfc822.dart
Last active April 23, 2024 05:47
Dart DateTime DateFormat to RFC-822 String
import 'package:intl/intl.dart';
import 'package:test/test.dart';
formatRfc822(DateTime d) {
var template = "EEE, dd MMM yyyy HH:mm:ss";
var out = DateFormat(template).format(d);
if (d.isUtc) {
out += ' GMT';
} else {
var offset = d.toLocal().timeZoneOffset.inHours * 100;
[bool]
syntax = t|true|f|false
[field]
syntax = <fvalue>
[field-and-value]
syntax = <field>/s*=/s*<fvalue>
[field-and-value-list]
syntax = (?:<field-and-value>)+
[field-list]
syntax = <field>(?:[ ,]+<field>)*
@kepano
kepano / obsidian-web-clipper.js
Last active April 23, 2024 05:47
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@kyontan
kyontan / gist:7678042
Last active April 23, 2024 05:46
游書体を加えたCSS font-family
/* ヒラギノ角ゴ */
font-family: "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
/* ヒラギノ明朝 */
font-family: "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
/* From: 游明朝体・游ゴシック体のCSSでの利用 - Qiita [キータ]
* http://qiita.com/shinnn/items/5be7e8106189311559c1
*/