- IdeaVim
- Lombok
- google-java-format
Base on MacOS X 10.5+
shortcuts | usage |
---|
// https://stackoverflow.com/questions/75387792/javascript-equivalent-of-javas-uuid-class/76967385#76967385 | |
// assume x under range of signed long value | |
function unsignedBitShiftRight(x, n) { | |
if (n === 0) { return x; } | |
else if (x >= 0) { return x >> n; } | |
// convert to two's complement and then do the shifting | |
else { return (((1n << 64n) - 1n) ^ (- (x + 1n))) >> n; } | |
} |
(ns camel-snake-kebab-rexport | |
(:require | |
[camel-snake-kebab.core :as csk] | |
[camel-snake-kebab.internals.string-separator | |
:refer [split classify-char StringSeparator]])) | |
;;; kebab patch | |
;;; https://gist.github.com/lotuc/fba421f74ea8610494118bc899f9f1b5#file-camel_snake_kebab_utils-clj | |
(defn generic-split [ss] |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Seven Implementations of Incremental ;; | |
;; https://www.youtube.com/watch?v=G6a5G5i4gQU ;; | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
0:03: so I want to give you guys a talk about a library that we use internally | |
here called incremental and only some of you | |
0:12: have actually used incremental so I'll talk a little bit about what | |
incremental |
;; Go to video. | |
;; Click the three dot menu below the video. | |
;; Click open transcript. | |
;; Click and drag to highlight the whole transcript. | |
;; Save to /tmp/a.txt | |
;; Run this with clj/babashka | |
(require '[clojure.string :as str]) | |
(->> (iterate (fn [[r lines]] |
(ns etaoin.dev-patch | |
(:require [etaoin.dev :refer [get-performance-logs]] | |
[clojure.string :as str])) | |
(defn- try-parse-int | |
[line] | |
(try (Integer/parseInt line) | |
(catch Exception _e | |
line))) |
#!/usr/bin/env bash | |
# namespace you want to create | |
NAMESPACE=<namespace> | |
# cluster configuration | |
CLUSTER_SERVER=https://<your-cluster-endpoint> | |
CLUSTER_NAME=<your-cluster-name> | |
# customize these names as needed |
#!/usr/bin/env expect | |
spawn some command ... | |
expect 'some string' | |
send 'sth...\n' | |
# Interaction (eg, for a shell) | |
interact |
" vim-plug {{{ | |
call plug#begin() | |
Plug 'jiangmiao/auto-pairs' | |
call plug#end() | |
" }}} vim-plug | |
" Spaces & Tabs {{{ | |
set tabstop=4 " number of visual spaces per TAB | |
set softtabstop=4 " number of spaces in tab when editing | |
set shiftwidth=4 " number of spaces to use for autoindent |
#!/usr/bin/env python3 | |
''' | |
pip install pdfminer3k | |
''' | |
from pdfminer.pdfparser import PDFParser, PDFDocument | |
from pdfminer.pdfinterp import PDFTextExtractionNotAllowed | |
from pdfminer.layout import LAParams, LTTextContainer | |
from pdfminer.converter import PDFPageAggregator | |
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter |