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| (advice-add 'org-clock-select-task :override #'aj/helm-org-clock-select-task) | |
| (defun aj/helm-org-clock-select-task (&optional prompt) | |
| "Select a task that was recently associated with clocking." | |
| (interactive) | |
| ;; TODO sources for these | |
| ;; (when (marker-buffer org-clock-default-task) | |
| ;; (insert (org-add-props "Default Task\n" nil 'face 'bold)) | |
| ;; (setq s (org-clock-insert-selection-line ?d org-clock-default-task)) |
| /** | |
| * Verifies that a HTML content is valid. | |
| * @param htmlContent the HTML content | |
| * @return true if it is valid, false otherwise | |
| * @throws Exception | |
| */ | |
| public boolean validateHtml( String htmlContent ) throws Exception { | |
| InputStream in = new ByteArrayInputStream( htmlContent.getBytes( "UTF-8" )); | |
| ByteArrayOutputStream out = new ByteArrayOutputStream(); |
| import org.scalatest._ | |
| import prop._ | |
| import org.scalacheck.Arbitrary._ | |
| import org.scalacheck.Gen | |
| /** | |
| * Solutions to the ScalaCheck problem that shrinking failing values may generate | |
| * invalid values, because the constraints of the generator are not respected. | |
| * | |
| * See also http://stackoverflow.com/questions/20037900/scalacheck-wont-properly-report-the-failing-case |
| (defproject semantic-gs "0.1.0-SNAPSHOT" | |
| :dependencies [[org.clojure/clojure "1.5.1"] | |
| [compojure "1.1.5"] | |
| [garden "0.1.0-beta5"] | |
| [hiccup "1.0.3"]] | |
| :plugins [[lein-ring "0.8.5"]] | |
| :ring {:handler semantic-gs.handler/app} | |
| :profiles | |
| {:dev {:dependencies [[ring-mock "0.1.5"]]}}) |
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| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ; Copyright (c) Rich Hickey. All rights reserved. | |
| ; The use and distribution terms for this software are covered by the | |
| ; Common Public License 1.0 (http://opensource.org/licenses/cpl.php) | |
| ; which can be found in the file CPL.TXT at the root of this distribution. | |
| ; By using this software in any fashion, you are agreeing to be bound by | |
| ; the terms of this license. | |
| ; You must not remove this notice, or any other, from this software. | |
| ;dimensions of square world |