こちらはStyled-componentsの使い方、ユースケースを集めた端的なページです。
なにかの問題解決、参考になりましたらスターを押してくださいませ。励みになります。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; *** 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 () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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 |
- 日時
2019-09-26
- 作
時雨堂
- バージョン
19.09.0
- URL
言語
- 日時
2019-09-26
- 作
時雨堂
- バージョン
19.09.0
- URL
言語
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math'; | |
void main() { | |
print('--データ型--'); | |
num n1 = pow(2, 63); | |
int n2 = 2; | |
double n3 = 1.23; | |
bool b1 = true; | |
String s1 = "string"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// クラスの継承関係でうまくいかないとき Mixin で継承をする | |
mixin M { | |
int intM = 111; | |
String methodM() => "M's method"; | |
} | |
mixin N { | |
int intN = 111; | |
String methodN() => "N's method"; |
OlderNewer