Help > Install New Software > Find the source url from http://www.eclipse.org/ajdt/downloads/ corresponding your eclipse version
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 java.util.*; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Map; | |
import java.util.TreeMap; | |
public class Main { | |
static class MEdge { | |
int x, y; |
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 <vector> | |
using namespace std; | |
vector<int> A; | |
int func() { | |
A.push_back(3); | |
A.push_back(4); | |
return 5; | |
} |
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 <bits/stdc++.h> | |
using namespace std; | |
const int MAXN = 30005; | |
struct Edge { | |
int to, d, l; | |
Edge(int to=0, int d=0, int l=0): | |
to(to), d(d), l(l) {} | |
}; | |
vector<Edge> g[MAXN]; | |
int64_t ret = 0; |
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
apt-get update | |
apt-get install openssh-server | |
mkdir /var/run/sshd | |
chmod 0755 /var/run/sshd | |
/usr/sbin/sshd | |
useradd --create-home --shell /bin/bash --groups sudo username ## includes 'sudo' | |
passwd username ## Enter a password |
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
/* | |
给出一个tree, 每一个node都有一个value, 问tree里面相同value的node连接成最长路径的大小(edge的数量). | |
tree是要自己建的, 输入是两个array, 第一个array表示每个node的value, 第二个array表示所有的边 | |
例如[1,1,1], [1,2,1,3] -> 2, 说明这个tree有3个node, value都是1, 然后node1和node2有边, node1和node3也有边, 最长的路径是2 -> 1 -> 3或者反过来, 总共两条边, 输出2 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <map> | |
#include <vector> | |
#include <algorithm> |
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
1. 針對匈牙利智能障礙者選舉投票案例,以下哪些敘述是正確的? | |
c. 限制智能障礙者之投票權,違反公約第二十九條參與政治與公共生活 | |
d. 匈牙利政府因其未提供身障者在行使權利能力時可能需要之協助,故違反公約第十二條在法律之前獲得平等承認 | |
2. 身心障礙者權利公約,是二十一世紀第一個國際人權條約,將影響全球六億身心障礙者的權利保障, 可說是國際人權的重要發展。 | |
O | |
3. 在匈牙利智能障礙者選舉投票案例中,我們可以知道,若身障者因為智能問題,是可以依照國家的法律來禁止他們投票的。 | |
X | |
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
#!/usr/bin/python3 | |
import threading | |
import time | |
import queue | |
import random | |
def work(wid, wlock, wset, q): | |
while True: | |
if not q.empty(): |
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 | |
IFS= read -s -p "Please Enter Password of the Change Permissions: " pwd | |
pdftk thesis.pdf output thesis-security.pdf \ | |
owner_pw $(pwd) \ | |
allow printing ScreenReaders \ | |
encrypt_128bit |
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
INPUT=main.c | |
# inplace format `-i` | |
clang-format-3.8 -i -style="{BasedOnStyle: llvm, IndentWidth: 4}" main.c | |
# output the result on the screen | |
clang-format-3.8 -style="{BasedOnStyle: llvm, IndentWidth: 4}" main.c | |
# more detail config | |
clang-format-3.8 -style="{BasedOnStyle: llvm, IndentWidth: 4}" -dump-config |