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 | |
auth='--ntlm --user xxmu\xxyxy:1234567' | |
host="http://www.xxmu.edu.cn" | |
dir=$host"/tpxz/2012%E5%B1%8A%E6%9C%AC%E7%A7%91%E6%AF%95%E4%B8%9A%E7%94%9F%E6%AF%95%E4%B8%9A%E5%85%B8%E7%A4%BC%E7%85%A7%E7%89%87/" | |
function get_href { | |
grep -io 'href="[^"]*"' | sed -r 's/href="([^"]*)"/\1/i' |
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/python2.6 | |
# -*- coding: utf-8 -*- | |
import sys, os, re, unittest | |
test = re.compile("test\.py$", re.IGNORECASE) | |
def get_test_files(dir, files): | |
""" recursion search test module | |
Args: dir: search root directory, files: result container """ | |
for file in os.listdir(dir): |
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
<!DOCTYPE html> | |
<html> | |
<style> | |
div.progressbar { | |
background-color: #6188F5; background-repeat: repeat-x; | |
background-position: 0 0; background-size: 16px 9px; | |
background-image: -webkit-linear-gradient(315deg,transparent,transparent 33%, | |
rgba(0, 0, 0, 0.12) 33%, rgba(0, 0, 0, 0.12) 66%, transparent 66%, | |
transparent); | |
background-image: -moz-linear-gradient(315deg,transparent,transparent 33%, |
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 <stdlib.h> | |
#define true 1 | |
#define false 0 | |
typedef struct { | |
unsigned long long buff[65535]; | |
int size; | |
} collection; |
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
def loop_f(n) | |
collect_div_2 = [] | |
collect_div_3 = [] | |
collect_div_5 = [] | |
collect_div_7 = [] | |
div_r = n | |
while true | |
div_r /= 2 | |
if div_r == 0 || div_r == 1 |
NewerOlder