| command | description |
|---|---|
| ctrl + a | Goto BEGINNING of command line |
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
| #!/usr/bin/env python | |
| def curry(func): | |
| """ | |
| Decorator to curry a function, typical usage: | |
| >>> @curry | |
| ... def foo(a, b, c): | |
| ... return a + b + c |
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
| ''' | |
| testing celery progress reporting/polling | |
| * start server | |
| python tempserver.py | |
| * start worker | |
| celery -A tempserver worker -c 1 --loglevel=DEBUG |
So basically FlowType doesn't know about CSS Modules, a really handy way of dealing with the plagues of CSS in codebases (global variables and dependency wackiness mainly).
What WebPack allows us to do is "require" CSS files and use their class names:
import styles from "my_styles.css";
import React from "react";
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
| #!/usr/bin/expect | |
| set timeout -1; | |
| spawn {{django_dir}}/venv/bin/python manage.py changepassword {{admin_user}}; | |
| expect { | |
| "Password:" { exp_send "{{admin_pass}}\r" ; exp_continue } | |
| "Password (again):" { exp_send "{{admin_pass}}\r" ; exp_continue } | |
| eof | |
| } |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
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
| export default { | |
| 'dictDefaultMessage': 'Legen Sie Dateien hier ab um Sie hochzuladen', | |
| 'dictFallbackMessage': 'Ihr Browser unterstützt Drag&Drop Dateiuploads nicht', | |
| 'dictFallbackText': 'Benutzen Sie das Formular um Ihre Dateien hochzuladen', | |
| 'dictFileTooBig': 'Die Datei ist zu groß. Die maximale Dateigröße beträgt {{maxFileSize}}MB', | |
| 'dictInvalidFileType': 'Eine Datei dieses Typs kann nicht hochgeladen werden', | |
| 'dictResponseError': 'Der Server hat ihre Anfrage mit Status {{statusCode}} abgelehnt', | |
| 'dictCancelUpload': 'Hochladen abbrechen', | |
| 'dictCancelUploadConfirmation': null, | |
| 'dictRemoveFile': 'Datei entfernen', |
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO
defaults -currentHost write -globalDomain AppleFontSmoothing -int 1
Light font smoothing defaults command (my selection):
defaults -currentHost write -globalDomain AppleFontSmoothing -int 1
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
| Rank | Type | Prefix/Suffix | Length | |
|---|---|---|---|---|
| 1 | Prefix | my+ | 2 | |
| 2 | Suffix | +online | 6 | |
| 3 | Prefix | the+ | 3 | |
| 4 | Suffix | +web | 3 | |
| 5 | Suffix | +media | 5 | |
| 6 | Prefix | web+ | 3 | |
| 7 | Suffix | +world | 5 | |
| 8 | Suffix | +net | 3 | |
| 9 | Prefix | go+ | 2 |
OlderNewer
