Your repository has two commits:
$ git log --oneline
957fbfb No, I am your father.
9bb71ff A long time ago in a galaxy far, far away....
| import requests | |
| def doi2bib(doi): | |
| """ | |
| Return a bibTeX string of metadata for a given DOI. | |
| """ | |
| url = "http://dx.doi.org/" + doi | |
| headers = {"accept": "application/x-bibtex"} |
| from __future__ import print_function | |
| import libsbml | |
| import argparse | |
| def _parser(): | |
| parser = argparse.ArgumentParser(description="Parse stoichiometry matrix of SBML file") | |
| parser.add_argument('file', metavar="filename", type=argparse.FileType('r'), | |
| help="Filename of SBML file to parse") |
| // | |
| // Write the mock request payload to a file for checking later... | |
| // newWrite() is the important it to ensure you get a *new* file each time. | |
| // | |
| def filename = "C:\\MyScratchFolder\\soapUI projects\\Testing\\procon\\mock_po_activity_request.xml" | |
| def file = new File(filename) | |
| def w = file.newWriter() | |
| w << mockRequest.requestContent | |
| w.close() |
| // saving from url to a file (append) | |
| new File("output.xml") << new URL ("http://some.url/some/path.xml").getText() |
| /** Within the controller method **/ | |
| // If this is an ajax request, then return a JSON string | |
| if ( $this->input->is_ajax_request() ): | |
| $this->output->set_content_type('application/json'); | |
| $this->output->set_output( json_encode($data) ); | |
| endif; |
| /** Within the controller method **/ | |
| // If this is an ajax request, then return a JSON string | |
| if ( $this->input->is_ajax_request() ): | |
| $this->output->set_content_type('application/json'); | |
| $this->output->set_output( json_encode($data) ); | |
| endif; |
| #!/bin/bash | |
| # successful "mvn clean install" or a variant thereof (e.g. -DskipTests) | |
| # is typically required before running this script | |
| REPOSITORY_ID=... | |
| REPOSITORY_URL=... | |
| mvn clean source:jar |
Javascript has two kinds of scope:
var keywords creates the variable in the current scope
var is unnecessary (see below)var, then Javascript goes up the “scope chain” to see if it’s already been declared| [user] | |
| name = Pavan Kumar Sunkara | |
| email = [email protected] | |
| username = pksunkara | |
| [core] | |
| editor = vim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| excludesfile = ~/.gitignore | |
| [sendemail] | |
| smtpencryption = tls |