Skip to content

Instantly share code, notes, and snippets.

View zuzhi's full-sized avatar

zuzhi hu zuzhi

View GitHub Profile
@zuzhi
zuzhi / Emacs_starter.pl
Created February 17, 2023 10:04 — forked from railwaycat/Emacs_starter.pl
Start Emacs.app from CLI
#!/usr/bin/perl
# Emacs starter for Emacs mac port
# Thanks to Aquamacs Project and David Reitter
my $args = "";
my $tmpfiles = "";
for my $f (@ARGV) {
;; if `ctrl-g` does not perform quit (may be accidently hit `ctrl-shift-z`)
;; try hit `ctrl-shift-z` again
;; set lsp java path
(setq lsp-java-java-path "/usr/lib/jvm/java-11-openjdk/bin/java")
(setq lsp-java-java-path "/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/java")
;; set jdtls download url
(setq lsp-java-jdt-download-url "https://zuzhi-demo-public.oss-cn-chengdu.aliyuncs.com/jdt-language-server-1.6.0-202111261512.tar.gz")
@zuzhi
zuzhi / doom.txt
Created June 25, 2021 02:50 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
0
@zuzhi
zuzhi / _base.html
Created February 25, 2018 16:46
Styling active element menu in flask
<li class="nav-item {% if request.path == '/register/' %} active {% endif %}">
<a class="nav-link" href="{{ url_for('users.register') }}">Signup</a>
</li>
@zuzhi
zuzhi / API.md
Last active September 18, 2017 00:38 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@zuzhi
zuzhi / mongoimport.md
Last active June 13, 2017 02:11
[mongoimport] mongoimport #mongodb
$ mongoimport --db dbName --collection collectionName < fileName.json
# example
$ mongoimport --db foo --collection myCollections < /Users/file.json
@zuzhi
zuzhi / FileTreeMaker.py
Last active September 17, 2017 05:29 — forked from legendmohe/FileTreeMaker.py
FileTreeMaker
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""FileTreeMaker.py: ..."""
__author__ = "legendmohe"
import os
import argparse
import time