#CS193P#
##Lecture01##
Scripts|⇒ python -v | |
# installing zipimport hook | |
import zipimport # builtin | |
# installed zipimport hook | |
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py | |
import site # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc | |
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py | |
import os # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.pyc | |
import errno # builtin | |
import posix # builtin |
directory_name() { | |
PROMPT_PATH="" | |
CURRENT=`dirname ${PWD}` | |
if [[ $CURRENT = / ]]; then | |
PROMPT_PATH="" | |
elif [[ $PWD = $HOME ]]; then | |
PROMPT_PATH="" | |
else | |
if [[ -d $(git rev-parse --show-toplevel 2>/dev/null) ]]; then |
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
from xml.dom import minidom | |
from urllib import request | |
#代理设置 | |
#request.install_opener(request.build_opener(request.ProxyHandler( | |
# {"http" : "http://192.168.60.250:8080"} | |
#))); |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct link_tag | |
{ | |
int no; | |
struct link_tag *next; | |
}Link; | |
void createJoseph(Link *&L, int n) | |
{ |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char **argv) | |
{ | |
int m,n,i,j; | |
printf("输入人数:"); | |
scanf("%d",&n); | |
scanf("%*[^\n]"); | |
int *a = (int *)malloc(sizeof(int) * n); |
#include "bintree.h" | |
extern p_btree_t btree_create(void){ | |
p_btree_t bintree; | |
if((bintree=(p_btree_t)malloc(sizeof(btree_t)))==NULL){ | |
errno=ENOMEM; | |
return NULL; | |
} | |
bintree->count=0; | |
if((bintree->root=(p_btnode_t)malloc(sizeof(btnode_t)))==NULL){ |
[Solarized Dark] | |
text(bold)=839496 | |
magenta(bold)=6c71c4 | |
text=839496 | |
white(bold)=fdf6e3 | |
green=859900 | |
red(bold)=cb4b16 | |
green(bold)=586e75 | |
black(bold)=073642 | |
red=dc322f |
#!/bin/bash | |
downloads_dir=~/downloads | |
#>>>>>>>>>>linux系统相关 | |
#>>>>>>>>>>scm配置管理相关 | |
#>>>>>>>>>>分布式编译相关 | |
#>>>>>>>>>>linux系统相关 | |
#>>>>>>>>>>字符串处理相关 | |
function unset_color() | |
{ | |
unset GREP_OPTIONS |
TCTicketScript是一段浏览器脚本,帮你自动查询火车票余票。
TCTicketScript.js
中的代码;