Skip to content

Instantly share code, notes, and snippets.

View guicho271828's full-sized avatar
🤣
Lemonodor fame is but a hack away!

Masataro Asai guicho271828

🤣
Lemonodor fame is but a hack away!
View GitHub Profile
(defpackage aligned-structure
(:use :cl :alexandria :iterate :trivia))
(in-package :aligned-structure)
(defvar *default-allocation-size* 1024)
(defmacro define-aligned-structure (name-and-options &body slots)
(setf name-and-options (ensure-list name-and-options))
`(progn (defstruct ,name-and-options
,@(iter (for s in slots)
these are not what I am looking for
https://github.com/blindglobe/lisp-matrix
https://github.com/tpapp/array-operations
https://github.com/melisgl/mgl-mat
https://github.com/slyrus/clem
@guicho271828
guicho271828 / log
Created February 23, 2017 08:55
clasp build
Extracting archive:/home/guicho/.roswell/archives/externals-clasp-cb00dd0edc7e698162aa176a7d51b9d704bd2596.tar.gz
externals-clasp+/cb00dd0edc7e698162aa176a7d51b9d704bd2596 is already installed. add 'install.force=t' option for the forced re-installation.
building dump:roswell
up to date. stop
git clone clasp
git checkout 3f6ffecc31f8d0cc835fe0f87cb88402c95c9519
chdir /home/guicho/.roswell/src/clasp/
0 ...Unhandled UIOP/RUN-PROGRAM:SUBPROCESS-ERROR in thread #<SB-THREAD:THREAD "main thread" RUNNING
{1001BBF4C3}>:
Subprocess (:PROCESS #<SB-IMPL::PROCESS :EXITED 2>)
[guicho latent-planner2]$ ros -v dynamic-space-size=15000 lisp/msdd.ros -s 2017 -t -k 200 -n 1000 samples/mnist_puzzle33p_model/augmented.csv
opt:verbose:1
dispatch:dynamic-space-size=15000,name=top
set_opt(dynamic-space-size)='15000'
dispatch:lisp/msdd.ros,name=top
proc_cmd:
cmd_script_frontend:0
frontend:script_*:argc=9 argv[0]=lisp/msdd.ros
ros_script_cmd=exec ros dynamic-space-size=8000 -Q -L sbcl -- $0 "$@"
dispatch:dynamic-space-size=8000,name=top
@guicho271828
guicho271828 / attributes.org
Last active June 27, 2020 19:56
Fun-info attributes in SBCL
namedxcomvopfldflsuflsmovpredicatecalluwimprecany
*yyyyy
+yyyyy
-yyyy
/yyy
/=yyyy
1+yyyy
@guicho271828
guicho271828 / fail.py
Last active April 3, 2017 10:27
minimal failure cases, only on tensorflow backend
from keras.layers import Input, Dense
from keras.models import Model, Sequential
from keras.datasets import mnist
from keras.layers.normalization import BatchNormalization as BN
autoencoder1 = Sequential([
Dense(128, activation='relu',input_shape=(784,)),
BN(),
Dense(784, activation='relu'),
])
@guicho271828
guicho271828 / gist:5d025e2aff770a0042356b54fe75e0f5
Created October 23, 2016 19:39
Maybe undefined behavior?
(lisp-implementation-type)
"SBCL"
(lisp-implementation-version)
"1.3.9"
(defparameter a (make-hash-table :test 'equalp))
(defstruct b c d)
@guicho271828
guicho271828 / playgroud.lisp
Created September 16, 2016 23:11
static-type-check + inlined-generic-function
(in-package :cl-user)
(defpackage :inlined-generic-function.playground
(:use ;; :cl
:closer-common-lisp
:introspect-environment
:inlined-generic-function
:inlined-generic-function.impl
:trivia :alexandria :iterate))
@guicho271828
guicho271828 / cfn-init.log
Created May 27, 2016 04:17
python example
2016-05-27 04:01:55,119 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-west-2.amazonaws.com
2016-05-27 04:01:55,120 [DEBUG] Describing resource MasterServer in stack cfncluster-pepper
2016-05-27 04:01:55,543 [INFO] -----------------------Starting build-----------------------
2016-05-27 04:01:55,734 [DEBUG] Not setting a reboot trigger as scheduling support is not available
2016-05-27 04:01:55,737 [INFO] Running configSets: default
2016-05-27 04:01:55,738 [INFO] Running configSet default
2016-05-27 04:01:55,740 [INFO] Running config deployConfigFiles
2016-05-27 04:01:55,740 [DEBUG] No packages specified
2016-05-27 04:01:55,741 [DEBUG] No groups specified
2016-05-27 04:01:55,741 [DEBUG] No users specified
@guicho271828
guicho271828 / cfn-init.log
Created May 27, 2016 00:56
/var/log/cfn-init.log
ubuntu@ip-172-31-31-195:~$ cat /var/log/cfn-init.log
2016-05-27 00:45:50,926 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-west-2.amazonaws.com
2016-05-27 00:45:50,926 [DEBUG] Describing resource MasterServer in stack cfncluster-wasabi
2016-05-27 00:45:51,768 [INFO] -----------------------Starting build-----------------------
2016-05-27 00:45:52,014 [DEBUG] Not setting a reboot trigger as scheduling support is not available
2016-05-27 00:45:52,018 [INFO] Running configSets: default
2016-05-27 00:45:52,018 [INFO] Running configSet default
2016-05-27 00:45:52,021 [INFO] Running config deployConfigFiles
2016-05-27 00:45:52,021 [DEBUG] No packages specified
2016-05-27 00:45:52,021 [DEBUG] No groups specified