Skip to content

Instantly share code, notes, and snippets.

# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
public class Main {
String variable;
public static void main(String[] args) {
System.out.println("Hello World!");
B b = new B();
}
public Main(){
printVariable();
}
There is no applicable method for the generic function
#<STANDARD-GENERIC-FUNCTION YASON:ENCODE (12)>
when called with arguments
(:NULL).
[Condition of type SIMPLE-ERROR]
Restarts:
0: [RETRY] Retry calling the generic function.
1: [RETRY] Retry SLIME REPL evaluation request.
2: [*ABORT] Return to SLIME's top level.
CL-USER> (ql:quickload "yason")
To load "yason":
Load 1 ASDF system:
yason
; Loading "yason"
("yason")
CL-USER> (setf yason:*parse-json-null-as-keyword* t)
T
CL-USER> (yason:parse "null")
CL-USER> (ql:quickload "cl-json")
To load "cl-json":
Load 1 ASDF system:
cl-json
; Loading "cl-json"
("cl-json")
CL-USER> (json:decode-json-from-string
"{\"a\":{\"b\":{\"c\":{\"d\":\"test\"}}}}")
((:A (:B (:C (:D . "test")))))
CL-USER> (ql:quickload "jsown")
To load "jsown":
Load 1 ASDF system:
jsown
; Loading "jsown"
("jsown")
CL-USER> (jsown:to-json
(jsown:parse "{\"b\": null}"))
"{\"b\":[]}"
; SLIME - ChangeLog file not found
CL-USER> (ql:quickload "cl-json")
To load "cl-json":
Load 1 ASDF system:
cl-json
; Loading "cl-json"
("cl-json")
CL-USER> (use-package :json)
T
CL-USER> (ql:quickload "cl-json")
To load "cl-json":
Load 1 ASDF system:
cl-json
; Loading "cl-json"
("cl-json")
CL-USER> (use-package :json)
T
CL-USER> (encode-json-to-string '((:a (:b . "test"))))
@anton0xf
anton0xf / inv-opt
Created November 13, 2012 13:01
inverted optional
(defun test(&rest ab)
(let ((len (length ab))
(a 2) b)
(cond ((< 2 len) (error "Too many args"))
((= 2 len)
(setf a (first ab)
b (second ab)))
((= 1 len) (setf b (first ab)))
(t (error "B arg is mandatory")))
(format t "a: ~W, b: ~W~%" a b)))
<!-- =================================
target: load-ivy
this target is not necessary if you put ivy.jar in your ant lib directory
if you already have ivy 1.4 in your ant lib, you can simply remove this
target
================================= -->
<target name="load-ivy">
<!-- try to load ivy here from home ivy dir, in case the user has not already dropped
it into ant's lib dir (note that the latter copy will always take precedence).
We will not fail as long as ivy home lib dir exists (it may be empty) and