I hereby claim:
- I am rberenguel on github.
- I am rberenguel (https://keybase.io/rberenguel) on keybase.
- I have a public key ASDoKc_uTbL4lQBaJ4bNh9G-5OkiK2gSxIFF6h0xvuMy8wo
To claim this, I am signing this object:
| (setq mu4e-bookmarks | |
| '( ("flag:unread AND NOT flag:trashed AND date:today..now AND maildir:/INBOX" "Today's inbox" ?i) | |
| ("date:today..now AND NOT maildir:/INBOX.Sent" "Today's messages" ?t) | |
| ("date:30d..now AND maildir:/INBOX.Sent" "Sent last 30 days" ?s) | |
| ("date:7d..now" "Last 7 days" ?w) | |
| ("mime:image/*" "Messages with images" ?p) | |
| ("size:1M..500M" "Big messages" ?b)) | |
| ) | |
| (add-to-list 'mu4e-header-info-custom |
| csvfix find -e 'Videos' -f 4 ~/Downloads/instapaper-export.csv | csvfix edit -e "s/[ ,.|:'\?]/_/g" -f 2 | csvfix order -f 2,1,3,4 | csvfix printf -fmt "wget --directory-prefix='./%s/' -T 60 -q -p -k %s" > x;cat x;chmod +x x;./x;rm ./x |
| function $(s){ | |
| z="getElement";n="Name"; | |
| a={"#" : z+"ById", | |
| "." : z+"sByClass"+n, | |
| }[s[0]]; | |
| a=typeof a==="undefined"?[z+"sByTag"+n,0]:[a,1]; | |
| return document[a[0]](s.slice(a[1])); | |
| } | |
| function $$(s){return S="slice",d=document,t=s[0],g="getElement",n="Name",t=="#"?d[g+"ById"](s[S](1)):t=="."?d[g+"sByClass"+n](s[S](1)):d[g+"sByTag"+n](s)} |
| (defun my-gnus-summary-view-html-alternative () | |
| "Display the HTML part of the current multipart/alternative MIME message | |
| in current default browser." | |
| (interactive) | |
| (save-current-buffer | |
| (gnus-summary-show-article) | |
| (set-buffer gnus-article-buffer) | |
| (let ((file (make-temp-file "html-message-" nil ".html")) | |
| (handle (nth 3 (assq 1 gnus-article-mime-handle-alist)))) | |
| (mm-save-part-to-file handle file) |
| (evil-define-operator evil-capitalise (beg end type) | |
| "Convert text to lower case." | |
| (if (eq type 'block) | |
| (evil-apply-on-block #'evil-capitalise beg end nil) | |
| (capitalize-region beg end))) | |
| (define-key evil-normal-state-map "gc" 'evil-capitalise) |
| from __future__ import print_function | |
| import ast | |
| """ | |
| Save the following in test.py, then execute fun_with_ast.py. | |
| You can paste the output in a Scala interpreter | |
| class something(object): | |
| def __init__(self, value1, value2): |
| _fzf_complete_git() { | |
| ARGS="$@" | |
| local branches | |
| branches=$(git branch -vv --all | sed "s/remotes\/origin\///g" | sed "s/\*/ /g") | |
| if [[ $ARGS == 'git co'* ]]; then | |
| _fzf_complete "--reverse --multi" "$@" < <( | |
| echo $branches | |
| ) | |
| else | |
| eval "zle ${fzf_default_completion:-expand-or-complete}" |
| import org.apache.spark.sql.types._ // You'll need this to evaluate its output | |
| object StructFmt { | |
| def asScala(field: StructField): String = field.dataType match { | |
| case struct: StructType => s"""StructField("${field.name}",""" + asScala(struct) + s", ${field.nullable})" | |
| case _ => s"""StructField("${field.name}", ${field.dataType}, ${field.nullable})""" | |
| } | |
| def asScala(struct: StructType): String = "StructType(Seq(" + (for(field <- struct) yield asScala(field)).mkString(",") + "))" | |
| } |
I hereby claim:
To claim this, I am signing this object: