Headings from h1
through h6
are constructed with a #
for each level:
# h1 Heading
## h2 Heading
### h3 Heading
import sys | |
import csv | |
import httplib, urllib, base64 | |
def main(): | |
# set the name of your repository, username and password | |
username = "test" | |
password = "test" | |
repo = "user/repo" | |
/** | |
* Correct version of a wysihtml5 binding for KnockoutJS that is safe for multiple inclusion on a single page | |
*/ | |
ko.bindingHandlers.wysihtml5 = { | |
init: function (element, valueAccessor, allBindingsAccessor, viewModel) { | |
var control = $(element).wysihtml5({ | |
"events": { | |
"change" : function() { | |
var observable = valueAccessor(); | |
observable(control.getValue()); |
<html> | |
<!-- | |
This is an example of how to make browsers | |
offer to remember password and later fill in those passwords | |
for dynamic login forms. | |
To make the browser offer to remember passwords the form should be actually submitted. | |
Since we are handling login with AJAX we don't want the form to submit, so we are still submitting it | |
into a dummmy iframe with dummy URL. | |
It's good idea to actually create empty dummy.html file, otherwise you'll flood you error.log with 404s |