#!/bin/bash #remove the MER.*_ in file name for all the files in a dir function getdir(){ for element in `ls $1` do dir_or_file=$1"/"$element if [ -d $dir_or_file ] then getdir $dir_or_file else #deal with each file in dir mv $dir_or_file `echo…
1. Class Variable/Static Variable: Class variable is also known as static variable with "static" keyword inside the class but outside the methods. There is only one copy of class variable is no matter how many objects are initiated from this cla…
以下内容主要摘自[1,2] (1)In javascript, functions are first-class objects, which means functions can be used in a first-class manner like objects, since they are in fact objects themselves: They can be “stored in variables, passed as arguments to functions,…
数据类型 日期时间类型 DATE(日期) DATE 数据类型由年.月.日信息组成,表示一个日期值. DATA 类型的默认格式为‘YYYY-MM-DD’. YYYY 表示年, MM 表示月而 DD 表示日.时间值的范围从 0001-01-01 至 9999-12-31. 数据类型扩展 除了内置的SQL数据类型,在SQLScript里用户可以自定义一些表类型的数据类型 标准数据类型 SQLScript类型系统是基于SQL-92类型系统的,它支持以下基础数据类型: Numeric types: TIN…
Background C++ is one of the main development languages used by many of Google's open-source projects. As every C++ programmer knows, the language has many powerful features, but this power brings with it complexity, which in turn can make code more…
视频抓取原理:获取所有的知识类别id->然后获取其子项->根据子项链接分析获取该类课程数->循环获取链接指向的视频.需要安装python库:requestspython解析xml使用了网上找的代码. 本来可以再优化.但是懒! # coding: UTF-8 import os import sys import requests import urllib.request,io from html.parser import HTMLParser #全局变量 id_list = set(…
原文:http://mp.weixin.qq.com/s?__biz=MzAxMzgwNDU3Mg==&mid=401571467&idx=1&sn=08cb00963e6efd3881d3397903e84752&scene=1&srcid=0125cT8n9FJMI1u2faaQgjcS&from=singlemessage&isappinstalled=0#wechat_redirect 英文原文链接:http://www.queness.co…
理解和使用 JavaScript 中的回调函数 标签: 回调函数指针js 2014-11-25 01:20 11506人阅读 评论(4) 收藏 举报  分类: JavaScript(4)    目录(?)[+]  实质: 函数作为参数传入解决回调. 原文:http://javascriptissexy.com/   在JavaScrip中,function是内置的类对象,也就是说它是一种类型的对象,可以和其它String.Array.Number.Object类的对象一样用于内置对象的管理.因为…
一.需求: 自己在github上搭建一个基于Jekyll的博客(http://beginman.cn/),每次写完博客后就要push上去,博客写的再好,基本上没人访问,为了增加访问量,就想利用起来微博,于是就想法写个脚本同步到微博,选取最新的博客链接发送上去. 二.问题与条件: 1.注册新浪微博 2.注册成新浪微博api开发者,这可以获取"恭喜!我们已经验证了您对网站的管理权!并成功获取 App Key 和 App Secret" 3.最好有自己的小站点,或者基于github的,这里利…
Learn Perl in about 2 hours 30 minutes By Sam Hughes Perl is a dynamic, dynamically-typed, high-level, scripting (interpreted) language most comparable with PHP and Python. Perl's syntax owes a lot to ancient shell scripting tools, and it is famed fo…