Mapping abstract values to visual representations is what data visualization is all about, and that’s exactly what D3 scales do. This is usually done ...
分类:
其他好文 时间:
2016-12-03 01:23:08
阅读次数:
225
linux编写猜数字游戏:#!/bin/bash
n=1
while[$n-le3]
do
a=`expr$RANDOM%10`
b=0
echo"caijiagedi$nlun"
while[$b-le4]
do
read-p"shurujiage:"c
letb++
if[$c-eq$a]
then
echo"caiduile"
echo"caile$bci"
break
elif[$c-lt$a]
then
echo"dile"
else
echo"gaole"
fi
done
if[$..
分类:
其他好文 时间:
2016-12-02 03:46:31
阅读次数:
166
create procedure delWord_activety()BEGIN DECLARE Done INT DEFAULT 0; DECLARE v_id VARCHAR(50); DECLARE v_content text; DECLARE f_content text; /*声明游标* ...
分类:
数据库 时间:
2016-12-02 01:11:37
阅读次数:
217
1服务端:ssh-keygen-trsassh-copy-id-i/root/.ssh/id_rsa.pub192.168.57.135[root@192sh]#morersa.sh
#!/bin/sh
#byauthorschy2016
foriin$(cattest.txt)
do
ssh-copy-id-i/root/.ssh/id_rsa.pub$i
echo$i"设置密码登录成功"
done
注:可以将IP写在test.txt文件中2for循环批量..
分类:
系统相关 时间:
2016-11-29 23:26:50
阅读次数:
215
原语句: #!/bin/bash for test in I don't know if this'll work do echo "work:$test" done 结果: work:I work:dont know if thisll work:work 改成后语句: #!/bin/bash f ...
分类:
系统相关 时间:
2016-11-27 23:58:35
阅读次数:
357
传统的ajax写法: jquery 1.7以后的新写法, 我就纳闷了.$.ajax()返回的是XMLHttpRequest对象. 我们都知道XMLHttpRequest是ajax的一个核心对象,用于和服务器交互的,可是XMLHttpRequest对象根本就没有什么done,fail方法,这里的方法是 ...
分类:
Web程序 时间:
2016-11-27 07:05:26
阅读次数:
178
把文件名中的空格删掉[root@rsync01shell]#lltotal0-rw-r--r--1rootroot0Nov2515:19967.sh[root@rsync01shell]#ls-1|whilereada;domv"$a"`echo$a|sed-e‘s/\//g‘`;done[root@rsync01shell]#lltotal0-rw-r--r--1rootroot0Nov2515:19967.sh按访问时间列出sh文件[root@rsync01shell..
分类:
其他好文 时间:
2016-11-26 00:22:40
阅读次数:
168
#!/bin/bash
#
a_sub(){
sleep5
}
Multi_Thread(){
THREAD=5#此处定义线程数
TMP_FIFO="/tmp/$.fifo"
/usr/bin/mkfifo$TMP_FIFO#新建一个fifo类型的文件
exec6<>$TMP_FIFO
/bin/rm-f$TMP_FIFO#将fd6指向fifo类型
for((i=0;i<$THREAD;i++));do
/bin/echo
done>&..
分类:
编程语言 时间:
2016-11-24 22:08:50
阅读次数:
155
find/opt-regextype"posix-egrep"-regex".*properties|.*js|.*jsg|.*vm|.*html"|whilereadL;dosed-i"s/www.baidu.com/www.qq.com/g"$L;done把/opt下所有propertiesjsjsgvmhtml文件中的baidu替换成qq
分类:
其他好文 时间:
2016-11-24 16:16:34
阅读次数:
211
在日常工作中使用shell时,有时候命令只有满足某些条件或是某种外部事件,操作才能够成功执行,这种情况下,你可能系统重复执行命令,直至成功为止。 1、按照以下方式定义函数: repeat() { while true do $@ && return done } 或者把它放入shell的rc文件,更 ...
分类:
其他好文 时间:
2016-11-24 14:37:38
阅读次数:
122