This file contains 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 | |
PASSWD=pw | |
ruijie_dir="/Applications/Ruijie Supplicant.app/Contents/MacOS" | |
cmd=Supplicant | |
cd "$ruijie_dir" | |
echo "$PASSWD" | sudo -S "./$cmd" &> /dev/null & |
This file contains 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
\documentclass{article} | |
\title{Hello World} | |
\author{yangjing} | |
\usepackage{amsmath} | |
\usepackage{amssymb} | |
\usepackage{graphicx} | |
\begin{document} | |
\tableofcontents | |
\maketitle |
This file contains 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
%!TEX program = xelatex | |
\documentclass{article} | |
\usepackage{fontspec, xunicode, xltxtra} | |
\setmainfont{Hiragino Sans GB} | |
\title{Title} | |
\author{} | |
\begin{document} | |
\maketitle{} | |
\section{Introduction} | |
This is where you will write your content. 完成中文支持 |
This file contains 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
tell application "System Preferences" | |
quit | |
end tell | |
delay 1 | |
tell application "System Preferences" | |
activate | |
end tell | |
tell application "System Events" | |
tell process "System Preferences" |
This file contains 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 <iostream> | |
#include <iomanip> | |
using namespace std; | |
int main() | |
{ | |
int a=0,i; | |
for(i=1;i<5;i++){ |
This file contains 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 <iostream> | |
using namespace std; | |
int main() | |
{ | |
char ch[3][5] = {"AAAA", "BBB", "CC"};//C语言中二维数组默认按行存储,ch[3]表示数组有3个元素,ch[3][5]表示ch[3]数组中的每个元素又是一个含有5个元素的数组 | |
cout << ch[1] << endl; //ch[3]数组的第二个元素(数组下标从0开始) | |
for(int i=0;i<3;i++){ | |
for(int j=0;j<5;j++){ |
This file contains 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 <iostream> | |
#include <iomanip> | |
using namespace std; | |
typedef struct BTNode{ | |
char data; | |
struct BTNode *lchild; | |
struct BTNode *rchild; | |
}BTNode, *BinTree; |
This file contains 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 <iostream> | |
#include <iomanip> | |
using namespace std; | |
#define SORT_NUM 4 | |
int my_count=0;//全局变量 | |
void create_array_with_random_numbers(int myArray[], int len){ |
This file contains 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 <iostream> | |
#include <complex> | |
using namespace std; | |
int HowMuchBit(int elem){ | |
int bit = 1; | |
int p = 10; | |
while(elem >= p){ | |
p *= 10; |
This file contains 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
#coding=utf-8 | |
import random | |
# 解密模块 | |
def RSA_Decrypy(d,n,c): | |
result_m = pow(c,d,n) | |
return result_m | |
# 加密模块 |