Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
vim -c ':put =strftime(\"%Y/%m/%d %H:%M:%S %a\")' -c ':put _' -c 'star' __notes.txt |
/systeml_project | |
/.git | |
.gitignore | |
Procfile | |
/requirements | |
base.txt | |
requirements.txt | |
/systeml | |
manage.py | |
/forecast |
#get rid of anything from a mis-installed version | |
sudo apt-get --purge remove postgres* | |
sudo rm -rf /var/lib/postgresql | |
sudo deluser -remove-all-files postgres | |
#install the packages | |
sudo apt-get install postgresql-9.1 | |
sudo apt-get install pgadmin3 phppgadmin | |
#shutdown postgres database server |
##### | |
# | |
# After VM is created, before startup | |
# | |
##### | |
### | |
# Port forwarding for windows host | |
### |
/* Url Finder by Daniel Fehrenbach August 2009 | |
* | |
* Notes | |
* | |
* regular expression "\\b((https?)://|(www))\\S+" does not handle urls enclosed in parentheses (ie "(http....") used a find+replace in text editor to remove them | |
* | |
* | |
* | |
* */ |
My app.py has a section like this… | |
``` | |
@app.route(‘new/<collector_choice>’) | |
def create_new_collector(collector_choice): | |
identification_template = render_template(‘identify_template.html’) | |
return render_template(collector_choice + “.html”, bldg_ident=identification_template | |
``` | |
The identify_template.html looks like… |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |