[ create a new paste ] login | about

crazyhack

Name: 疯狂骇客
Email:
Site/Blog: http://www.icrazyhack.cn
Location: Fuzhou
Default language: C++
Favorite languages: C、C++、JAVA
About: 这里主要存放一些由本人编写或收藏的复用性较强的代码

Saved pastes by crazyhack:

PHP, pasted on Jan 9:
1
2
3
4
5
<br/>
<p>
<a href="http://validator.w3.org/check/referer" target="_blank"><img alt="XHTML 1.0 Transitional" src="http://127.0.0.100/web/buttons/xhtml.png" border="0" /></a> 

<a href="http://jigsaw.w3.org/css-validator/validator-uri.html" target="_blank"><img alt="Css Validator" src="http://127.0.0.100/web/buttons/css.gif" border="0" /></a> 
...
view (25 lines)
C, pasted on Dec 24:
1
2
3
4
5
#include <stdio.h>
int main()
{
	char buffer[200];
	int i, ret;
...
view (21 lines, 1 line of output)
C++, pasted on Mar 23:
1
2
3
4
5
//opencv使用camerads打开摄像头

     //打开该摄像头之前,因先检查之前是否在进行图像捕捉,若有,关闭
        ReleaseCapture();
      //打开摄像头
...
view (54 lines)
C, pasted on Mar 5:
1
2
3
4
//mfc 退出程序 函数

//这个试过,好用
SendMessage(WM_CLOSE);
...
view (16 lines)
PHP, pasted on Feb 25:
1
2
3
4
5
//404.php

<?php
$qs = $_SERVER['QUERY_STRING'];
$pos = strrpos($qs, '://');
...
view (10 lines)
C++, pasted on Oct 3:
1
2
3
4
5
%离散一维卷积
%file:Convolution.m
%author:crazyhack
%date:2010-10-03
%输入函数fg
...
view (35 lines)
PHP, pasted on Jun 25:
1
2
3
4
5
<!--上传图片后实时显示图片缩略图-->
<!--preview.js-->
var allowExt = ['jpg', 'gif', 'bmp', 'png', 'jpeg'];
var preivew = function(file, container){		 
	try{			
...
view (59 lines, 59 lines of output)
PHP, pasted on Jun 6:
1
2
3
4
5
<!--页面跳转倒计时-->
<!--javascript-->
	<span id="countdown"></span>
	<script type="text/javascript">
	t = -1;   //   计数器 
...
view (14 lines, 14 lines of output)
PHP, pasted on Jun 5:
1
2
3
4
5
<!--L-System Tree.html-->
<html>
<head>
	<script language="javascript">
		function submit()
...
view (47 lines, 47 lines of output)
C++, pasted on Jun 5:
1
2
3
4
5
/*   L-System Tree
     author:crazyhack
     date:2010-06-05
*/
import java.awt.Graphics;
...
view (143 lines, 2 lines of output)
PHP, pasted on Jun 5:
1
2
3
4
5
<!--Hibernate 实现分页查询-->

<!--Source:http://topic.csdn.net/t/20060520/22/4766816.html-->

public   ListPage   get(int   start,int   len){ 
...
view (28 lines, 28 lines of output)
PHP, pasted on Jun 4:
1
2
3
4
5
<!--javascript与applet通信-->

//AppletTest.java
import java.applet.*;
import java.awt.*;
...
view (65 lines, 65 lines of output)
PHP, pasted on Jun 3:
1
2
3
4
5
<!--点击相应结点展开其子节点-->
<script>
    function showInfo(str){
    for(var i=1;i<3;i++)
      document.getElementById("tr"+i).style.display="none";//先隐藏所有结点
...
view (14 lines, 14 lines of output)
PHP, pasted on Jun 3:
1
2
3
4
5
<!--隐藏指定id的结点-->
<script>
function hideAll()
{
     getElementById("Layer1").style.display="none";
...
view (10 lines, 10 lines of output)
PHP, pasted on Jun 3:
1
2
3
4
5
<!--js跳转到指定页面-->
<script type="text/javascript">
	function register()
	{
		window.navigate("register.jsp");			
...
view (7 lines, 7 lines of output)
C++, pasted on May 28:
1
2
3
4
5
/*
   基于QT4的屏幕截图代码
   author:anonymous

*/
...
view (179 lines, 5 lines of output)
Plain Text, pasted on May 27:
1
2
3
4
5
%BP Algorithm
%author:crazyhack
%language:matlab
%date:2010-5-27
P=[0 0 1 1;0 1 0 1];
...
view (17 lines)
C++, pasted on May 27:
1
2
3
4
5
/*
        *单链表尾插法
         *author:crazyhack
        *date:2010-5-27
*/
...
view (65 lines, 2 lines of output)
C++, pasted on May 26:
1
2
3
4
5
/*
 *FIFO调度算法
 *author:crazyhack
 *date:09-11-12
 */
...
view (112 lines, 1 line of output)