I hereby claim:
- I am t1anchen on github.
- I am tianchen (https://keybase.io/tianchen) on keybase.
- I have a public key ASCK4l9DOItIvwAUnsQgSrGuOeGvR-F4qgMFSn6r2rSNOwo
To claim this, I am signing this object:
| ;; when clangd is launched, add ./include to CPATH for include path | |
| ;; search so that eglot can do completion and definition navigation | |
| ;; | |
| ;; See https://clang.llvm.org/docs/CommandGuide/clang.html#envvar-CPATH | |
| ;; for details | |
| (let | |
| ((current-proj-incl (file-name-concat (projectile-project-root ".") "include"))) | |
| (utils:env-append "CPATH" current-proj-incl)) |
| (add-hook | |
| 'geiser-repl-mode-hook | |
| #'(lambda () | |
| (paredit-mode 1) | |
| ;; RET is bound to geiser-repl-maybe-send in geiser mode | |
| (define-key paredit-mode-map (kbd "RET") nil)) |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/python | |
| import sys | |
| import yaml | |
| def main(): | |
| """check.py: a simple tool to check yaml format | |
| Usage: check.py <yaml_filename> | |
| """ | |
| mode = 'piped' |
| val fs = (new java.io.File(".")).listFiles.filter(x => x.getName.contains("asc")) | |
| val ctx = fs.map(x => (x.getName.replace(".asc",""),scala.io.Source.fromFile(x).getLines.next)) | |
| ctx.map(i => { | |
| val x = i._1 | |
| val y = i._2 | |
| val orig = new java.io.File(x) | |
| val suffix = orig.getName.split('.').last | |
| val newf = new java.io.File(y+"."+suffix) | |
| orig.renameTo(newf) |
| #!/bin/sh | |
| read -p "Play? " op | |
| while [ "$op" != "n" ] | |
| do | |
| touch timerflag1 | |
| echo "Started ..." |
| import org.junit.Assert; | |
| import org.junit.Before; | |
| import org.junit.Test; | |
| import java.util.*; | |
| /** | |
| * Dummy Interview 1: Sorting | |
| * -------------------------- |
| // ==UserScript== | |
| // @name mathjax for douban | |
| // @namespace jiangzuoyan@gmail.com | |
| // @author Changsheng Jiang<jiangzuoyan@gmail.com> // 感谢原作者,并且我把math_jax_src改回原来的mathjax.org了 | |
| // @include http://*.douban.com/* | |
| // @description texify formula using mathjax | |
| // @date 2011-07-12 | |
| // @version 20110712 | |
| // ==/UserScript== |
| import scala.collection.mutable.BitSet | |
| import scala.collection.mutable.Map | |
| // Don't learn this code! | |
| // Ugly implementation! | |
| object GetLines { | |
| def main(args: Array[String]) { | |
| if (args.length < 1) { | |
| println("Please specify the file to count") | |
| return |