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
#!/usr/bin/env python3 | |
from urllib.request import urlopen | |
#!/usr/bin/env python2 | |
# from urllib2 import urlopen | |
import re,sys,os,html | |
URLBASE="http://bbs.sjtu.edu.cn/" | |
URLTHREAD=URLBASE+"bbstfind0?" | |
URLARTICLE=URLBASE+"bbscon?" |
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
from urllib.request import urlopen | |
from os import fork | |
from re import findall | |
accounts={ | |
('[email protected]','password1'), | |
('[email protected]','password2') | |
} | |
def login(accounts): |
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
#!/usr/bin/python2 | |
def fibs1(i): | |
fibs=[1,1] | |
for j in xrange(2,i): | |
fibs.append(fibs[j-1]+fibs[j-2]) | |
return fibs | |
def fib2(): | |
yield (1,1); |
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
(define (empty? list) | |
(eq? list '())) | |
(define (len list) | |
(cond ((empty? list) 0) | |
(else (+ 1 (len (cdr list)))))) | |
(define (append list num) | |
(cond ((empty? num) list) | |
((empty? list) (cons num '())) |
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
farseer ~ $ cat inner.sh | |
#!/bin/sh | |
echo $@ | |
farseer ~ $ cat month_props.sh | |
#!/bin/sh | |
./inner.sh $@ | |
echo `date` | |
farseer ~ $ cat try.sh | |
#!/bin/bash |
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 <algorithm> | |
#include <functional> | |
#include <boost/mpl/placeholders.hpp> | |
#include <boost/accumulators/accumulators.hpp> | |
#include <boost/accumulators/statistics/count.hpp> | |
#include <boost/foreach.hpp> | |
#include <boost/parameter/keyword.hpp> | |
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
# Molokai theme | |
[colors] | |
background= #101010 | |
foreground= #d0d0d0 | |
#foreground= #66ff66 | |
#highlight = #505050 | |
cursor = #66ff66 | |
color0= #101010 | |
color1= #960050 | |
color2= #66aa11 |
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
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
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
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
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
package sample; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
public class TestGeneric{ | |
private HashMap<String, Object> hashMap=new HashMap<>(); | |
public Object get(String key){ |
OlderNewer