Skip to content

Instantly share code, notes, and snippets.

@dgeibi
dgeibi / note-on-osx-pingfang.md
Last active May 1, 2024 21:03 — forked from bitinn/note-on-osx-pingfang.md
A few notes on using OS X 10.11 (El Capitan)'s new Chinese font: PingFang (苹方/萍方).

What's this about?

OS X 10.11, aka El Capitan, comes with a new system font for Chinese users, named PingFang, it includes 6 weights for both Simplified and Traditional Chinese. The same font also appear on iOS 9 as the default UI font, though Apple didn't mention it explicitly.

How to get it?

If you are in Apple Developer Program (costs 99 USD a year), then you can get them now at their developer resource site, otherwise you can wait for their public beta to come out in July or wait for the public release this fall (a free upgrade like previous release).

Or you can get PingFang.ttc from your developer friends, though you are probably violating its font license one way or another, but I am not a lawyer so freedom to you.

@ArtemZip
ArtemZip / store.js.diff
Last active May 1, 2024 21:02
vuex-chrome-storage/chrome-storage
import { createStore } from 'vuex'
+++import VuexPersistence from 'vuex-persist'
+++import { ChromeSyncStorage } from '@/store/chrome-storage'
+++const storage = new VuexPersistence({
+++ asyncStorage: true,
+++ storage: ChromeSyncStorage
+++})
// Create a new store instance.
@Christmom3
Christmom3 / Chrome-thief
Created December 25, 2022 13:45
Chrome-thief@chrome-thief.com
https://u19307177.ct.sendgrid.net/ls/click?upn=Yd-2B7DEQTwrhOH-2FMDcY51qqzukAJ0NB4OzL0ySBC0gACKy3-2BVK2yIt0GYj6UEFinmfxNHtwnhMy-2F2hOGTn7BM2pZROAEgcgNTIemBYNiJ56P-2FxItC-2B5QDABFjC4tNzB3p6fvixyGtJZexhFSKEmX8J9E-2BvumprPkcPRggoZZahpwdekRhsOI3ELs2ajPeKWPl0hyr-2BOGFoOA-2F1KPkI49GTV-2BJ7uJp3HZag6hp5aSq20LPmiG9N4KgMBT-2B6qc4yOe7RdbhCciyadKwz0Dq5ms-2Bn5C-2FywKf08CoNaXjPcTji9vJ9rvheWHpMWjxiQ3i1QExNQOGHYCuEWYRlSQWQmOxxowVr0aShY0dAD-2BBePg8c44yeGUwpJds0LBVvK5apdQ8muwCGMxu1PK5IeDIm3SKMILmFvDBnhyvfD-2FHxiTUYHDKbJcb3jL0Wxptf1IbT8Oftrs3aUjAnEnjPwro0P8jYw-3D-3DVeS3_TfWycX5MQoSP8Dvbyfpcyu5KnNp-2B2GpW1CqOMPp1B0N7gJBOdb8JnFg71lHWerS-2BWj720GTK9rXTzamUBUMcmGLeP0rEAflkNOZweCSKum3V8ALufwbdfrTAS7fwo27cBBENsAYZjsbbJCGHeZ2Er3tRCR7-2BIJrKcmaSn0WO6abXZ-2BekT-2Bcb9HgXfUIyl3bnUXEgdZ25-2F-2FvZM2myoaznd1QuuXTuwvvVblYyp7oQOcA-3D
@zchee
zchee / chrome-developer-setting.md
Created August 1, 2014 20:13
chrome developer setting(chrome:flags)
  • ソフトウェア レンダリング リストを上書き
  • タブ/ウィンドウを高速に閉じる機能を有効にする
  • ハイパーリンク監査の無効化
  • 自動入力の予測候補を表示
  • SPDY/4 を有効にする
  • デベロッパー ツールのテストを有効にする
  • スクロール予測を有効にする
  • HTTP 用のシンプル キャシュ。
  • Google クラウド デバイスを有効にする
  • シンプルな全画面表示を有効にする。
@ouyangxuanyun
ouyangxuanyun / chrome 快捷键
Last active May 1, 2024 21:00
chrome chrome 快捷键
CHROME 快捷键
标签页和窗口快捷键
1. Ctrl + n 打开新窗口
2. Ctrl + t 打开新的标签页,并跳转到该标签页
3. Ctrl + w 关闭当前标签页
4. Ctrl + Tab 跳转到下一个打开的标签页
5. Ctrl + Shift + Tab 跳转到上一个打开的标签页
6. Alt + ← 历史记录上一页
7. Alt + → 历史记录下一页
@MoisesTedeschi
MoisesTedeschi / Lista de comandos do Git
Last active May 1, 2024 20:59
Lista dos principais comandos do Git que vivo esqucendo - Lembrete.
Comandos do git
git commit -m"contaúdo da mensagem de commit": Gravação de arquivo no git. Esse comando serve para commitar os arquivos no git.
O "-m" é referete ao termo "mensseger". Ou seja, mensagem que será gravada no commit.
ctrl + l = É o comando que limpa a tela do terminal do git.
git log: Comando para visualizar os logs dos arquivos gravados no repositório.
git remote add origin + endereço da pasta no github: Esse comando permite apontar para o repositório no github.
@mw866
mw866 / headless_chrome.sh
Created January 24, 2022 01:15
#chrome
#!/bin/zsh
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless --disable-gpu --remote-debugging-port=9222 https://www.example.com
echo "Connec to the remote target at chrome://inspect/#devices`
read -p "Press Return to Close..."
@Boswellcvac
Boswellcvac / Chrome
Created June 30, 2023 20:26
Chrome
Numbers, RFC 4250, January 2006.
T. Ylonen and C. Lonvick, The Secure Shell (SSH) Protocol
Architecture, RFC 4251, January 2006.
T. Ylonen and C. Lonvick, The Secure Shell (SSH) Authentication
Protocol, RFC 4252, January 2006.
T. Ylonen and C. Lonvick, The Secure Shell (SSH) Transport Layer
Protocol, RFC 4253, January 2006.
@Coly010
Coly010 / run-interactive-command.impl.ts
Created April 14, 2023 11:47
Run Interactive Commands Executor for Nx
import { exec } from 'child_process';
import * as path from 'path';
import * as yargsParser from 'yargs-parser';
import { env as appendLocalEnv } from 'npm-run-path';
import { ExecutorContext } from '@nrwl/devkit';
import * as chalk from 'chalk';
export const LARGE_BUFFER = 1024 * 1000000;
async function loadEnvVars(path?: string) {
@marcelojunior
marcelojunior / gist:3708804
Created September 12, 2012 18:19
Inflections PT-BR Rails
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )
# end