夫道、德、仁、义、礼,五者一体也。
道者,人之所蹈,使万物不知其所由。
德者,人之所得,使万物各得其所欲。
仁者,人之所亲,有慈惠恻隐之心,以遂其生成。
义者,人之所宜,赏善罚恶,以立功立事。
礼者,人之所履,夙兴夜寐,以成人伦之序。\
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.commons.io.IOUtils; | |
import javax.servlet.ReadListener; | |
import javax.servlet.ServletInputStream; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletRequestWrapper; | |
import java.io.*; | |
import java.net.URLDecoder; | |
import java.net.URLEncoder; | |
import java.util.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root = true | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
[*.java] | |
indent_style = space |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.vamdt.fox.fox.of; | |
import java.util.HashMap; | |
import java.util.Map; | |
/** | |
* pre arr + in arr => tree | |
* in arr + post arr => tree | |
* pre arr + post arr => tree | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
complete -W "$(echo `cat ~/.ssh/config | grep 'Host '| cut -f 2 -d ' '|uniq`;)" ssh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true | |
do | |
if [[ $(($RANDOM % 2)) -eq 0 ]] | |
then | |
echo "000" | |
else | |
echo "111" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CompletableFutureTest { | |
static class User { | |
private String nickname; | |
public String getNickname() { | |
return nickname; | |
} | |
public void setNickname(String nickname) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main(): | |
result = edit_distance("fox", "fab") | |
print(result) | |
def edit_distance(str1, str2): | |
len1 = len(str1) | |
len2 = len(str2) | |
maxtrix = [[i for j in range(len2 +1)] for i in range(len1 + 1)] | |
maxtrix[0] = [i for i in range(len1 + 1)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AutomateProcessor { | |
private UserExceptionAnalysisListener userExceptionAnalysisListener = new UserExceptionAnalysisListener(); | |
private UserModelingListener userModelingListener = new UserModelingListener(); | |
private HardRuleFilterListener hardRuleFilterListener = new HardRuleFilterListener(); | |
private AntiRubbishListener antiRubbishListener = new AntiRubbishListener(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/epoll.h> | |
#include <string.h> | |
int main() { | |
int epoll_fd = epoll_create1(0); | |
struct epoll_event event, events[5]; | |
char read_buffer[11]; | |
int running = 1, event_count, i; |
NewerOlder