To check, use Roswell to build the script:
ros build foo.ros
and run it
./foo
| #+cocoa | |
| (defun current-language () | |
| (let ((lang (objc:with-autorelease-pool () | |
| (objc:invoke-into | |
| 'string | |
| (objc:invoke | |
| (objc:invoke "NSUserDefaults" "standardUserDefaults") | |
| "objectForKey:" "AppleLanguages") | |
| "objectAtIndex:" 0)))) | |
| ;; 2019-04-29 |
| (ql:quickload '(:weblocks :weblocks-lass :weblocks-navigation-widget :weblocks-ui :find-port)) | |
| (defpackage app-package | |
| (:use #:cl | |
| #:weblocks-ui/form | |
| #:weblocks/html) | |
| (:import-from #:parenscript #:ps #:chain) | |
| (:import-from #:weblocks-navigation-widget #:defroutes) | |
| (:import-from #:weblocks/routes #:reset-routes) | |
| (:import-from #:weblocks/session #:*session*) |
| ;; Run (ql:quickload :cl-yaml) before loading this script | |
| (defpackage #:travis-badges | |
| (:use #:cl) | |
| (:import-from #:cl-yaml) | |
| (:export | |
| #:make-badges)) | |
| (in-package travis-badges) | |
| (defpackage #:blame-stats | |
| (:use #:cl)) | |
| (in-package blame-stats) | |
| (ql:quickload '(alexandria cl-fad str lparallel) | |
| :silent t) | |
| (defun merge-hash-table-into (left right) | |
| "Merges values from right hash map into the left" |
To check, use Roswell to build the script:
ros build foo.ros
and run it
./foo
| (defmacro do-rows ((row sql &key params) &body body) | |
| (with-gensyms (prepared cursor-name) | |
| (let ((cursor-sql (fmt "DECLARE ~A CURSOR FOR ~A" | |
| cursor-name | |
| sql)) | |
| (fetch-sql (fmt "FETCH FROM ~A" | |
| cursor-name))) | |
| `(progn | |
| (dbi:do-sql *connection* ,cursor-sql ,params) |
| ;; License BSD | |
| (defpackage #:histogram | |
| (:use #:cl) | |
| (:export | |
| #:print-histogram)) | |
| (in-package histogram) | |
| (defun min-value (values) |
| fossil clone https://tumbleweed.nu/r/usim /Users/art/tmp/l/usim.fossil | |
| Round-trips: 5 Artifacts sent: 0 received: 3193 | |
| Clone done, wire bytes sent: 1326 received: 22819371 ip: 46.23.94.31 | |
| Rebuilding repository meta-data... | |
| 100.0% complete... | |
| Extra delta compression... | |
| Vacuuming the database... | |
| project-id: 7e9f9fd6c8f1267e4a87a4fc69bf425acba15339 | |
| server-id: f91e714aaf26b8d2b6e61d49c7751b304c10d095 | |
| admin-user: art (password is "CohXS3R9d4") |
| ;; License: MIT | |
| (uiop:define-package #:ningle-upload | |
| (:use #:cl) | |
| (:import-from #:cl-fad) | |
| (:import-from #:ningle) | |
| (:import-from #:spinneret) | |
| (:import-from #:log4cl)) | |
| (in-package #:ningle-upload) |
| (uiop:define-package #:ningle-defroute | |
| (:use #:cl)) | |
| (in-package #:ningle-defroute) | |
| (defmacro defroute (app path-or-path-with-options (&rest view-arguments) &body view-body) | |
| (let* ((path-with-options (uiop:ensure-list path-or-path-with-options)) | |
| (params (gensym "PARAMS")) | |
| (bindings (loop for arg-name in view-arguments |