Skip to content

Instantly share code, notes, and snippets.

View pokk's full-sized avatar
🌀

Jieyi pokk

🌀
View GitHub Profile
@pokk
pokk / README.md
Last active January 18, 2017 04:21
Simple Timer

Introduction

How to use the NSTimer in Swift.

Note

  1. parameter repeats: true -> repeat, false -> no repeat.
  2. We don't have to call 'timer.fire()' before NSTimer of the method of scheduledTimerWithTimeInterval. Those will fire automatically.
@pokk
pokk / Math symbols.md
Last active February 9, 2017 16:14
Math symbols

Introduction

There are many math symbols for creating a math formula.

Usually using math symbol

+ ± - × ‧÷ ± = ≠ ≒ ≡ ≦ ≧ ≌ ∞ ∝ Σ π ㎡ % ℃ ℉ √ ‱ ‰ № ℀ ℁ ℅ ℆ ⅍

@pokk
pokk / README.md
Last active July 23, 2018 06:59
Redirect file stdin in PyCharm

Introduction

For Pycharm IDE, we want to use redirect input file while running the code.

How to Use

  1. You can make a file for a input data as like *.in.
  2. Typing auto_redirect_input_file.py in top of code.
  3. Click the "Edit Configuration".
  4. Put the file name *.in in "Script parameters".
This is atom setting.