Skip to content

Instantly share code, notes, and snippets.

Jang Rush weakish

Block or report user

Report or block weakish

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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.
@weakish
weakish / doctest.md
Created Nov 4, 2018
#survey of #Ruby #doctest
View doctest.md

Ruby Doctest

Doctest in Python is a good design. Doctest ensures code, documentation, and tests are in a single place. So readers can understand the logic of code easier, without a lot of navigation.

Unlike Python, Ruby does not have built-in doctest, but there are some third party libraries enabling doctest in Ruby.

@weakish
weakish / cli.md
Created Nov 4, 2018
#survey of #Ruby #cli #ui
View cli.md

Command line UI in Ruby

ruby -s

If you just want some switches, then you can use ruby -s:

Switches will be stored as global variable with true as their value:

#!/usr/bin/env ruby -s
@weakish
weakish / api-doc.md
Created Nov 4, 2018
#survey of #Ruby API #doc
View api-doc.md

Ruby API Doc

docco

docco supports a lot of languages, including Ruby.

RDoc

Ruby's built in.

@weakish
weakish / dnd-5e-basic.md
Created Aug 25, 2018
#DnD 5e basic guide
View dnd-5e-basic.md

DnD 5e basic rules

Features

  1. Free for personal use.
  2. The three pillars of adventure are listed as exploration, social interaction, and combat. The Combat section itself is only 9 pages.
  3. Light rules covering 4 classes and 4 races, with an emphasis on DM (Dungeon Master) discretion. Complex bonus system is replaced with advantages and disadvantages. The PDF has 110 pages.
@weakish
weakish / ceylon-1_3.md
Created Aug 25, 2018
#ceylon 1.3 changes
View ceylon-1_3.md

What is new in Ceylon 1.3

Static members

When to use static members instead of toplevel methods or values:

  • when a function needs to access private members of a class
  • when a class needs to define private state or constants that are shared by all instances
You can’t perform that action at this time.