- 博客(415)
- 资源 (35)
- 收藏
- 关注
原创 Docker 常用命令
查看container#查看正在运行的container[root@lydcentos7 centos6]# docker ps#查看所有的container[root@lydcentos7 centos6]# docker ps -a#查看所有的container 的id[root@lydcentos7 centos6]# docker ps -a -q删除 container#删除一个
2016-04-09 15:41:05
724
原创 配置docker centos tomcat
环境主机环境 MBP macos 虚拟机主机环境 centos7 (virtualbox中的一个vm) centos7中安装docker安装配置pull centos image[root@lydcentos7 centos6]# docker pull centos:centos6 download jdk and tomcat[root@lydcentos7 centos6]# wget -
2016-04-09 15:26:43
2829
原创 Java 单例模式
使用静态内部类实现单例模式public class SingletonClass { private static class SingletonClassInstance {// inner static class private static final SingletonClass instance = new SingletonClass(); } pu
2016-03-03 15:48:19
622
原创 java exception test
test1: 调用者main抛出异常public class ExceptionTest { public void method() throws Exception { // 将异常抛出,由调用这个方法的方法去处理这个异常,如果main方法也将异常抛出,则交给Java虚拟机来处理 System.out.println("Hello World");
2016-03-01 17:03:17
781
原创 JavaScript 抽奖
test.html<html> <head> <title>我的摇奖程序</title> <script src="myjs.js"></script> <style> #name{ color:red; font-size:36px;
2015-11-20 18:55:33
864
原创 [leetcode]Valid Sudoku
class Solution {public: bool isValidSudoku(vector<vector<char> > &board) { int row,col,block; char ch; vector<int> flags(9,0); //rows for(row=0;row<9;row++){
2015-11-18 17:09:47
470
原创 [leetcode]Binary Tree Maximum Path Sum
Binary Tree Maximum Path Sum leetcode 递归
2015-10-31 17:35:12
623
原创 [leetcode]Find Minimum in Rotated Sorted Array II
leetcode Find Minimum in Rotated Sorted Array II
2015-10-14 13:26:34
729
原创 [leetcode]Find Minimum in Rotated Sorted Array
leetcode find mininum in rotated sorted array
2015-10-14 12:58:26
507
原创 [leetcode]Median of Two Sorted Arrays
leetcode Median of Two Sorted Arrays
2015-10-12 11:13:07
695
原创 POJ2676
#include<iostream>#include<vector>#include<algorithm>#include<cstring>using namespace std;short rowFlags[9][10];//rowFlags[i][num]=1表示在第i行已经放了数字numshort colFlags[9][10];//colFlags[j][num]=1表示在第j列已
2015-10-05 15:03:15
533
原创 POJ1164
#include<iostream>#include<stack>#include<cstring>using namespace std;int R,C;//行列数int rooms[60][60];int color[60][60];//房间染色标记int maxRoomArea=0,roomNum=0;int roomArea;void Dfs(int i,int k){
2015-09-30 17:32:46
1136
原创 [leetcode]Trips and Users
select Request_at as Day,round((max(counter)*1.0/count(Request_at)),2) as 'Cancellation Rate'from ( select Id,Client_Id,Driver_Id,City_Id,Status,Request_at,Users_Id,Banned,Role, @counter:=if(
2015-09-11 13:26:44
1065
原创 [leetcode]Delete Duplicate Emails
language:mysqldelete from Person where Id not in (select * from (select min(Id) from Person group by Email) t);
2015-09-11 09:42:16
572
原创 [leetcode]Word Frequency
awk '{for(i=1;i<=NF;i++){a[$i]++;count++}} END{for(j in a){print j,a[j]}}' words.txt | sort -k 2 -nr
2015-09-10 19:38:47
1042
原创 [leetcode] Transpose File
NF:列数 NR:行数awk '{for(i=1;i<=NF;i++){a[NR,i]=$i}} END{for(j=1;j<=NF;j++){str=a[1,j];for(i=2;i<=NR;i++){str=str" "a[i,j]} print str;}}' file.txt
2015-09-10 18:43:30
635
原创 ER 图
Entity–relationship model Two related entities shown using Crow’s Foot notation. In this example, an optional relationship is shown between Artist and Song; the symbols closest to the song entity repr
2015-09-06 14:16:57
1721
原创 jQuery 学习笔记
jQuery 学习笔记//standard version$(document).ready(function(){ alert("jQuery hello World");});//short version$(function(){ alert("jQuery hello World");});解决不同库之间的冲突//jQuery conflictjQuery.noCo
2015-07-29 19:30:49
451
原创 [leetcode]Remove Linked List Elements
(https://leetcode.com/problems/remove-linked-list-elements/%20https://leetcode.com/problems/remove-linked-list-elements/)
2015-04-28 23:14:34
611
原创 [leetcode]Valid Phone Numbers
Valid Phone Numbersgrep -E '^(\d{3}-|\(\d{3}\) )\d{3}-\d{4}$' file.txtgrep -P '^(\d{3}-|\(\d{3}\) )\d{3}-\d{4}$' file.txtawk '/^([0-9]{3}-|\([0-9]{3}\) )[0-9]{3}-[0-9]{4}$/' file.txt s
2015-03-29 21:03:22
1851
原创 [lydstar]建站笔记
以前一直用免费的,一是感觉网站主题可选的太少,没有自己喜欢的;二是空间容量太小,而且服务器太不稳定,经常访问不到,很郁闷。故重新申请域名、购买空间来建设新的网站。必须品:域名和IP地址,主机空间、网站注册godaddy账户(http://www.godaddy.com/)购买DOMAINS和WEB HOSTING设置cPanel设置FTP、USER和Email注册D
2015-02-27 14:15:03
544
原创 [lydstar]专利整理总结
T老板让整理国外的一些专利,包括专利名称、专利号、申请日期、摘要等信息,还需要进行简单分类统计,顺便记录一下操作流程留作后用。目标链接:http://www.freepatentsonline.com/result.html?p=1&srch=ezsrch&pn=&apn=&all=&ttl=&abst=internet+of+thing+search&aclm=&spec=&ap
2015-02-27 14:14:38
831
原创 [lydstar]去哪吃
去哪吃真是个纠结的问题,交个计算机来决定吧:var num=Math.floor(Math.random()*3);if(num==0){console.log("大拇指")}else if(num==1){console.log("沙县")}else{console.log("食堂")}
2015-02-27 14:12:22
569
原创 [lydstar]android开发中配置github使用的.gitignore
#忽略gitignore文件.gitignore # Java class files*.class # Mobile Tools for Java (J2ME).mtj.tmp/ #Package Files#*.jar*.war*.ear # virtual machine crash logs, see http://www.java.com/en/downloa
2015-02-27 14:11:44
1245
ArcGIS10破解
2013-10-26
eclipse html 插件
2013-04-15
weka 连数据库使用的jar包
2013-04-13
Windows 2003(XP)下安装配置Apache2.2.17+PHP5.2.17+mysql5.5.11服务器
2011-04-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人