If you have a community to suggest, this is a growing list, & we'd love to add more.
Discover gists
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
void main() | |
{ | |
gl_FragColor = vec4(0,0.7,1.0, 1.0); | |
} |
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
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
// .prettierrc.js | |
module.exports = { | |
// 一行最多 80 字符 | |
printWidth: 80, | |
// 使用 2 个空格缩进 | |
tabWidth: 2, | |
// 不使用缩进符,而使用空格 | |
useTabs: false, | |
// 行尾需要有分号 | |
semi: true, |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
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
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) |
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
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; |
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
[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>)* |
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
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/" */ |
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
/* ヒラギノ角ゴ */ | |
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 | |
*/ | |
NewerOlder