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/python | |
# -*- coding: utf-8 -*- | |
''' | |
Created on 2014年12月7日 | |
@author: reed | |
''' | |
import thread | |
import time |
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 python | |
# -*- coding:utf-8 -*- | |
def fab(max): | |
n, a, b = 0, 0, 1 | |
while n < max: | |
yield b | |
a, b = b, a + b | |
n = n + 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
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
from multiprocessing import Process | |
from multiprocessing import Queue | |
from multiprocessing import Pool | |
import multiprocessing | |
path_list = range(10) | |
bad_path_list = [] |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you under the Apache License, Version 2.0 (the | |
"License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at |
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 unittest import TestCase | |
from unittest.mock import patch | |
from unittest import main | |
class Person(object): | |
def __init__(self, name): | |
self.name = name |
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 com.ibm.robot.web.testrules; | |
import java.io.File; | |
import java.io.IOException; | |
import org.apache.commons.io.FileUtils; | |
import org.junit.rules.TestWatcher; | |
import org.junit.runner.Description; | |
import org.openqa.selenium.OutputType; |
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
import copy | |
import os | |
from importlib import import_module | |
from importlib.util import find_spec as importlib_find | |
import inspect | |
def import_string(dotted_path): | |
""" | |
Import a dotted module path and return the attribute/class designated by the |
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
{ | |
"explorer.confirmDelete": false, | |
"workbench.iconTheme": "vscode-great-icons", | |
"editor.minimap.enabled": true, | |
"terminal.integrated.rendererType": "dom", | |
"editor.renderWhitespace": "none", | |
"files.autoSave": "afterDelay", | |
"editor.wrappingIndent": "none", | |
"window.zoomLevel": 0, | |
"vsicons.dontShowNewVersionMessage": true, |
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
{ | |
"explorer.confirmDelete": false, | |
"workbench.iconTheme": "vscode-great-icons", | |
"editor.minimap.enabled": false, | |
"terminal.integrated.rendererType": "dom", | |
"editor.renderWhitespace": "none", | |
"files.autoSave": "afterDelay", | |
"editor.wrappingIndent": "none", | |
"window.zoomLevel": 0, | |
"vsicons.dontShowNewVersionMessage": true, |
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
#coding: utf-8 | |
import smtplib | |
import config | |
import urllib.request as urllib2 | |
import time | |
import base64 | |
last_email_sent_time = None | |
error_info = None |
OlderNewer