- emphasis
- boldface
code samples- Subscript: H2O
- Superscript: E = mc2
Resize selfie.jpg so that its width becomes 800px. Ratio is preserved.
convert selfie.jpg -resize 800 resized_selfie.jpg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import Image, ImageDraw | |
| length = 100 | |
| columns = 4 | |
| colors = """ | |
| whitesmoke gainsboro gray black | |
| indianred lightpink tomato lemonchiffon | |
| plum palegreen paleturquoise burlywood | |
| peachpuff khaki slateblue teal |
Find all files named .DS_Store:
find . -name '.DS_Store'
Find all files containing the string 'feihong', then replace occurrences of 'feihong.pythonanywhere' with 'chicktech.pythonanywhere'.
grep -rli 'feihong' * | xargs -i@ sed -i 's/feihong\.pythonanywhere/chicktech\.pythonanywhere/g' @
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| from flask import Flask, request | |
| app = Flask(__name__) | |
| db = {} | |
| @app.route('/') | |
| def hello_world(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import FontAwesome | |
| class MainViewController: UITabBarController { | |
| override func viewWillAppear(animated: Bool) { | |
| addViewControllers( | |
| ("Phrases", PhrasesViewController()), | |
| ("Voices", VoicesViewController()), |
Reattach: tmux a
Kill session: prefix kill-session
Create window: prefix c
Rename window: prefix ,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Extract source and translation texts from a given Crowdin page. The output file | |
| generated by this script is suitable for doing translation work on a mobile | |
| device that is occasionally offline. | |
| This script assumes that you've created a custom Firefox profile that is | |
| already logged into your Crowdin account, and that you've provided the path for | |
| it below. | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Copy Crowdin text to clipboard | |
| // @namespace https://github.com/feihong/ | |
| // @description Copies the source and translation phrase to the clipboard. | |
| // @include https://crowdin.com/translate/* | |
| // @version 1 | |
| // @grant GM_setClipboard | |
| // ==/UserScript== | |
| var menu = document.querySelector('#editor-menu'); |