Skip to content

Instantly share code, notes, and snippets.

View zhhailon's full-sized avatar

zhhailon zhhailon

View GitHub Profile
# -DoutputDirectory=lib indicates the output directory.
# -Dmdep.useRepositoryLayout=true indicates that the directory layout should be kept during the process.
mvn dependency:copy-dependencies [-DoutputDirectory=lib] [-Dmdep.useRepositoryLayout=true]
《孤独与不努力》
我们所说的孤独,有时并不是孤独,类似的表达是无助。
无助又可能是社交障碍,这种障碍反映出自卑,自卑带来
了社交上的怯懦,这种怯懦又会带来自己无能的感觉。
无能是未能改善现状。
这种无能反映出行动力的不足,不够努力而无法改善现状。
《失恋就是一段爱情死亡了》
失恋也就是和ex的那段爱情去世了,你可能很悲伤,但是你阻止不了,
最好的方法就是接受此段爱情不能复生的事实和过去,对,已过去了。
然后笑笑,迎接接下来的日子。
至于接下来的日子,过的更珍惜还是更颓废,也只是你自己的选择而已。
所以选择,才是影响你未来人生的关键转折。
/*
2 Given a binary tree, print out all of its root-to-leaf
3 paths, one per line. Uses a recursive helper to do the work.
4 */
void printPaths(struct node* node) {
int path[1000];
printPathsRecur(node, path, 0);
}
/*
import java.net.*;
import java.io.*;
/**
* A very simple web server.
* @author zhhailon
*/
public class MiniWebServer {
protected void start() {
#!/usr/bin/env python
import argparse
from os import chdir, getcwd, listdir
from os.path import realpath
from shutil import move
class PushdContext:
cwd = None
original_dir = None
@zhhailon
zhhailon / android-hotfix.md
Last active March 28, 2017 15:58
Android Hotfix
sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update
sudo apt-get install dnsmasq hostapd
sudo systemctl stop dnsmasq
sudo systemctl stop hostapd
# /etc/dhcpcd.conf
interface wlan0
static ip_address=192.168.4.1/24
#include <iostream>
class IntList {
public:
int first;
IntList *rest;
IntList(int f, IntList *r = nullptr) {
first = f;
rest = r;
@zhhailon
zhhailon / SLList.cpp
Last active September 17, 2021 15:28
#include <iostream>
class IntNode {
public:
int item;
IntNode *next;
IntNode(int i, IntNode *n) {
item = i;
next = n;