Skip to content

Instantly share code, notes, and snippets.

View you06's full-sized avatar
🌙
月、美味しかったね

you06 you06

🌙
月、美味しかったね
View GitHub Profile
@you06
you06 / log-parser.py
Last active March 24, 2020 17:12
Parse log for pocket, seperate them into files.
#!/usr/bin/python
import sys, re, os
from time import gmtime, strftime
if __name__ == '__main__':
writers = {}
dirname = strftime("log-%Y-%m-%d-%H:%M:%S", gmtime())
os.mkdir(dirname)
@you06
you06 / clojure-and.clj
Last active January 31, 2020 09:25
clojure "and" with variable will not calc lazy
(let [a (do (println "calc a") false)
b (do (println "calc b") false)]
(and a b)
(and (do (println "calc c") false) (do (println "calc d") false))
)
; will print
; calc a
; calc b