元記事
A Road to Common Lisp
Steve Losh
http://stevelosh.com/blog/2018/08/a-road-to-common-lisp/
;; *** REPL *** | |
(defun game-repl () | |
(let ((cmd (game-read))) | |
(unless (eq (car cmd) 'quit) | |
(game-print (game-eval cmd)) | |
(game-repl)))) | |
;; 入力に対して()を補い第二引数以降をシンボルとする | |
;; ex. walk east far => (WALK 'EAST 'FAR) | |
(defun game-read () |
;; CL-PDF Hello World | |
;; | |
;; Use ASDF to load the CL-PDF library | |
;; | |
(asdf:operate 'asdf:load-op 'cl-pdf) | |
;; | |
;; Function to generate a Hello World pdf file. | |
;; On calling this function, you should see a pdf file |
(defparameter image-width 256) | |
(defparameter image-height 256) | |
(defparameter nsubsamples 2) | |
(defparameter nao-samples 8) | |
;; vector | |
(defmacro vx (v) `(svref ,v 0)) | |
(defmacro vy (v) `(svref ,v 1)) | |
(defmacro vz (v) `(svref ,v 2)) | |
(ql:quickload :parenscript) | |
(ql:quickload :cl-who) | |
(ql:quickload :clack) | |
(in-package :ps) | |
(defvar *canvas-id* "alien-canvas") | |
(clack:clackup | |
(lambda (env) | |
(list 200 | |
'(:content-type "text/html") | |
(list |
元記事
A Road to Common Lisp
Steve Losh
http://stevelosh.com/blog/2018/08/a-road-to-common-lisp/
こちらはStyled-componentsの使い方、ユースケースを集めた端的なページです。
なにかの問題解決、参考になりましたらスターを押してくださいませ。励みになります。
日時: | 2019-09-26 |
---|---|
作: | 時雨堂 |
バージョン: | 19.09.0 |
URL: | https://shiguredo.jp/ |
言語
日時: | 2019-09-26 |
---|---|
作: | 時雨堂 |
バージョン: | 19.09.0 |
URL: | https://shiguredo.jp/ |
言語
This gist is an ES module which provides functions to import and export data from an IndexedDB database as JSON. It's based on Justin Emery's indexeddb-export-import
package, but applies some adjustments that reflect better on the current browser landscape (i.e. better developer ergonomics but no support for Internet Explorer).
For each of the provided functionalities, you need a connected IDBDatabase
instance.
import { idb } from 'some-database'