This file contains hidden or 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
| Pastebin.com is a website where you can store text for a certain period of time. The website is mainly used by programmers to store pieces of sources code or configuration information, but anyone is more than welcome to paste any type of text. The idea behind the site is to make it more convenient for people to share large amounts of text online |
This file contains hidden or 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
| #------------------------------------------------------------------------------- | |
| # Name: module1 | |
| # Purpose: | |
| # | |
| # Author: Vincent | |
| # | |
| # Created: 23/04/2015 | |
| # Copyright: (c) Vincent 2015 | |
| # Licence: <your licence> | |
| #------------------------------------------------------------------------------- |
This file contains hidden or 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
| """ | |
| Settings for root logger. | |
| Log messages will be printed to console and also to log file (rotated, with | |
| specified size). All log messages from used libraries will be also handled. | |
| Three approaches for defining logging settings are used: | |
| 1. using logging classes directly (py25+, py30+) | |
| 2. using fileConfig (py26+, py30+) | |
| 3. using dictConfig (py27+, py32+) | |
| Choose any variant as you like, but keep in mind python versions, that |
This file contains hidden or 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
| START "converting RAWs to JPEG" "C:\Program Files (x86)\GIMP-2.0\bin\ufraw-batch.exe" --out-type=jpg %* | |
| E:\Personal\Photos\Unix_Outing_17022013>”E:\Programs\GIMP 2\bin\ufraw-batch.exe” | |
| –out-type=jpg –compression=95 * | |
| Picasa |
This file contains hidden or 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
| #http://stackoverflow.com/questions/25212986/how-to-set-some-xlim-and-ylim-in-seaborn-lmplot-facetgrid | |
| import pandas as pd | |
| import seaborn as sns | |
| import random | |
| n = 200 | |
| random.seed(2014) | |
| base_x = [random.random() for i in range(n)] | |
| base_y = [2*i for i in base_x] | |
| errors = [random.uniform(0,1) for i in range(n)] |
This file contains hidden or 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
| #http://josechristian.com/category/python/page/2/ | |
| How to make quick directory lists in python. | |
| All of these will use listdir in the os module. | |
| so we need to import it first | |
| from os import listdir | |
| Now we want to list all the files in a directory called my_folder. |
This file contains hidden or 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
| Hey GitHub |
This file contains hidden or 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
| Hey GitHub |
This file contains hidden or 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
| Hey GitHub |
This file contains hidden or 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
| ''' | |
| Basic tail command implementation | |
| Usage: | |
| tail.py filename numlines | |
| ''' | |
| import sys | |
| import linecache |
OlderNewer