Skip to content

Instantly share code, notes, and snippets.

View atempcode1's full-sized avatar

Michael He atempcode1

  • Shanghai, China
View GitHub Profile
@atempcode1
atempcode1 / gist:2263205
Created March 31, 2012 12:16
svplayer unit test sample
TEST(SvpToolsBoxTest, getVideoFileBasename)
{
TCHAR szName[] = _T("c:\\folder\\name.ext");
CSVPToolBox toolbox;
CStringArray retArray;
CString strRet = toolbox.getVideoFileBasename(szName, &retArray);
ASSERT_TRUE(retArray[0]==_T("c:\\folder\\name"));
ASSERT_TRUE(retArray[1]==_T(".ext"));
ASSERT_TRUE(retArray[2]==_T("c:\\folder\\"));
ASSERT_TRUE(retArray[3]==_T("name"));
curl http://www.google.com/notebook/feeds/userID/notebooks/notebookID?updated-max=2010-06-04T17:40:00-07:00&updated-min=2003-01-01T17:40:00-07:00&max-results=100
# -*- coding: utf8 -*-
# 下载速度很慢,
import urllib2, urllib
import sys
import os
import socket
import re
import socks
@atempcode1
atempcode1 / gist:e8f7e4d05d620b793bdd
Created December 22, 2014 00:15
sublime user settings
// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by file type specific settings.
{
"draw_white_space": "all",
"translate_tabs_to_spaces": true,
// Set to true to removing trailing white space on save
"trim_trailing_white_space_on_save": true,
// Set to true to ensure the last line of the file ends in a newline
// character when saving