Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <?php | |
| namespace Camp\CarRegisterBundle\Lib; | |
| use Symfony\Component\HttpFoundation\Session\Session; | |
| class Cart { | |
| public function __construct() { |
| namespace SearchViewSample | |
| { | |
| public class Chemical | |
| { | |
| public string Name { get; set; } | |
| public int DrawableId { get; set; } | |
| } | |
| } |
| using System; | |
| public class JavaHolder : Java.Lang.Object | |
| { | |
| public readonly object Instance; | |
| public JavaHolder(object instance) | |
| { | |
| Instance = instance; | |
| } |
| /* | |
| This is to allow unsigned certificates in cordova. | |
| As of cordova 5 and 6, this is located in | |
| project/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewClient.java | |
| */ | |
| public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { | |
| final String packageName = this.cordova.getActivity().getPackageName(); |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| javascript: (function () { | |
| function c() { | |
| var e = document.createElement("link"); | |
| e.setAttribute("type", "text/css"); | |
| e.setAttribute("rel", "stylesheet"); | |
| e.setAttribute("href", f); | |
| e.setAttribute("class", l); | |
| document.body.appendChild(e) | |
| } | |
| function h() { |
| #!/bin/bash | |
| kivyBaseBuildDir=/tmp | |
| myKivyInstallAlias="kivyDev" | |
| #Build and install Kivy on Ubuntu - http://kivy.org/docs/installation/installation.html#development-version | |
| #Modify the PYTHONPATH to point at our Kivy install - see http://docs.python.org/2/tutorial/modules.html#the-module-search-path AND http://docs.python.org/2/tutorial/modules.html#standard-modules | |
| sudo apt-get install python-setuptools python-pygame python-opengl python-gst0.10 python-enchant gstreamer0.10-plugins-good python-dev build-essential libgl1-mesa-dev libgles2-mesa-dev python-pip | |
| if [ ! `pip freeze | grep -i cython` ]; then |
| Currently, Qt Creator allows you to create Python files (not projects) and run them. It also has syntax highlighting, but it lacks more complex features such as autocomplete. | |
| Running scripts requires some configuration (I used this tutorial). Open Qt Creator and go to Tools->Options->Environment->External Tools. Click Add->Add category and create a new category (for example, Python). Then, select the created category and click Add->Add Tool to create a new tool - RunPy for example. Select the created tool and fill the fields on the right: | |
| Description - any value | |
| Executable - path to python.exe | |
| Arguments - %{CurrentDocument:FilePath} | |
| Working directory - %{CurrentDocument:Path} | |
| Environment - QT_LOGGING_TO_CONSOLE=1 | |
| You get something like this: |