Skip to content

Instantly share code, notes, and snippets.

Avatar

weakish weakish

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

https://pan.icu/2

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

https://crazy.capital/2

  1. 美图秀秀用户的男女比例没有大家想象的那么悬殊,大概是 1:2.
  2. SASS 面向大型企业销售比较困难(销售流程长、公关成本高),面向中小型企业销售的问题是流失率天然会很高,因为中国中小企业平均寿命只有 3 年(这一意味着获客成本必须要低)。
View sars-2.md
@weakish
weakish / dump-to-pretty-json-file.py
Created Jan 11, 2020
Fast dump to pretty formatted JSON file.
View dump-to-pretty-json-file.py
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 Dec 6, 2018
IDEs and editors for swift on Linux
View swift-ide-editor-on-linux.md

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 Nov 14, 2018
Keras_LSTM_TPU.ipynb (rerun)
View keras_lstm_tpu.ipynb
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 Nov 14, 2018
Keras_LSTM_TPU.ipynb (train on k80)
View keras_lstm_tpu.ipynb
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 Nov 14, 2018
Keras_LSTM_TPU.ipynb (single core)
View keras_lstm_tpu.ipynb
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 Nov 14, 2018
Keras_LSTM_TPU.ipynb (change mini batch size from 128 to 128/8=16)
View keras_lstm_tpu.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.