Skip to content

Instantly share code, notes, and snippets.

View weakish's full-sized avatar

weakish weakish

View GitHub Profile
@weakish
weakish / 02-keywoard-panic.md
Last active January 6, 2021 17:24
内核恐慌笔记 #podcast

https://pan.icu/2

  1. 法语键盘数字区默认输入符号,如果需要输入数字,需要按 shift 键。
@weakish
weakish / 02-sass.md
Last active February 8, 2021 03:40
疯投圈笔记 #podcast

https://crazy.capital/2

  1. 美图秀秀用户的男女比例没有大家想象的那么悬殊,大概是 1:2.
  2. SASS 面向大型企业销售比较困难(销售流程长、公关成本高),面向中小型企业销售的问题是流失率天然会很高,因为中国中小企业平均寿命只有 3 年(这一意味着获客成本必须要低)。
@weakish
weakish / sars-2.md
Created March 8, 2020 16:01
SARS 2.0 list
@weakish
weakish / frappe-hello-world.markdown
Created February 20, 2020 14:59
Frappe Hello World
@weakish
weakish / dump-to-pretty-json-file.py
Created January 11, 2020 11:54
Fast dump to pretty formatted JSON file.
def dump_to_pretty_json_file(thing: Any, file: TextIO) -> None:
"""Fast dump to pretty formatted JSON file."""
json.dump(thing, file,
check_circular=False, allow_nan=False,
indent=2, separators=(',', ': '))
@weakish
weakish / swift-ide-editor-on-linux.md
Last active December 6, 2018 08:31
IDEs and editors for swift on Linux

I wrote this notes in the era of Swift 2, so it is very outdated. So this is for history interest only.

CLion

Tested on Linux.

  • No code highlight if code has not been compiled once.
  • Code completion does [not work on import modules][CPP-5325], including Foundation.
@weakish
weakish / keras_lstm_tpu.ipynb
Created November 14, 2018 09:04
Keras_LSTM_TPU.ipynb (rerun)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@weakish
weakish / keras_lstm_tpu.ipynb
Last active November 14, 2018 09:03
Keras_LSTM_TPU.ipynb (train on k80)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@weakish
weakish / keras_lstm_tpu.ipynb
Created November 14, 2018 05:55
Keras_LSTM_TPU.ipynb (single core)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@weakish
weakish / keras_lstm_tpu.ipynb
Last active November 14, 2018 04:17
Keras_LSTM_TPU.ipynb (change mini batch size from 128 to 128/8=16)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.