Instantly share code, notes, and snippets.

⌨️
obiviously have no idea

Jang Rush weakish

View GitHub Profile
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.
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.
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.
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.
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.
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.

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
View api-doc.md

Ruby API Doc

docco

docco supports a lot of languages, including Ruby.

RDoc

Ruby's built in.

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.
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