# Put this function to your .bashrc file. | |
# Usage: mv oldfilename | |
# If you call mv without the second parameter it will prompt you to edit the filename on command line. | |
# Original mv is called when it's called with more than one argument. | |
# It's useful when you want to change just a few letters in a long name. | |
# | |
# Also see: | |
# - imv from renameutils | |
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste) |
Filter | Description | Example |
---|---|---|
allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |
echo 'export PATH="${HOME}/.local/bin:$PATH"' >> ~/.bashrc
import os | |
import configparser as cp | |
import shutil | |
import pysftp | |
import paramiko | |
from paramiko.py3compat import decodebytes | |
# credentials file name | |
CREDENTIALS_FILE = 'sftp_sync_credentials.properties' |
- Video: Andrew Clark: What's Next for React — ReactNext 2016 - YouTube
- Video: Scalable React app architecture [React Bangkok 2.0.0] - YouTube
- Building an Enterprise React Application, Part 1 | Lullabot
- How to avoid refactoring in your first React.js application | Andrej Gajdos
- React Best Practices & Patterns - Sean Saranga Amarasinghe
- React Best Practices and Useful Functions – Nessim Btesh – Medium
- 11 lessons learned as a React contractor – Hacker Noon
- [Characteristics of an
import argparse | |
from django.core.management.base import BaseCommand | |
from django.db import connection | |
class Command(BaseCommand): | |
help = 'Renames app. Usage rename_app [old_name] [new_name] [classes ...]' | |
def add_arguments(self, parser): |
Mobile Safari does not support position: fixed
when an input focused and virtual keyboard displayed.
To force it work the same way as Mobile Chrome, you have to use position: absolute
, height: 100%
for the whole page or a container for your pseudo-fixed elements, intercept scroll
, touchend
, focus
, and blur
events.
The trick is to put the tapped input control to the bottom of screen before it activates focus. In that case iOS Safari always scrolls viewport predictably and window.innerHeight
becomes exactly visible height.
Open https://avesus.github.io/docs/ios-keep-fixed-on-input-focus.html in Mobile Safari to see how it works.
Please avoid forms where you have several focusable elements because more tricks to fix position will be necessary, those were added just for demonstration purposes.