create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| *.acn | |
| *.acr | |
| *.alg | |
| *.aux | |
| *.bak | |
| *.bbl | |
| *.bcf | |
| *.blg | |
| *.brf | |
| *.bst |
| #!/bin/sh | |
| # Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
| # CREATE block and create them in separate commands _after_ all the INSERTs. | |
| # Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
| # The mysqldump file is traversed only once. | |
| # Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
| # Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
| Cscript webservicetest.js | |
| pause |
| from collections import namedtuple | |
| def convert(dictionary): | |
| return namedtuple('GenericDict', dictionary.keys())(**dictionary) | |
| """ | |
| >>> d = dictionary(a=1, b='b', c=[3]) | |
| >>> named = convert(d) | |
| >>> named.a == d.a | |
| True | |
| >>> named.b == d.b |
| plugins = {} | |
| def get_input_plugins(): | |
| return plugins['input'].items() | |
| class Plugin(object): | |
| plugin_class = None | |
| @classmethod | |
| def register(cls, name): | |
| plugins[cls.plugin_class][name] = cls |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| # use with: logging.config.dictConfig(yaml.load(open('logging.yaml', 'r'))) | |
| # Formatters detailed here: http://docs.python.org/2/library/logging.html#logrecord-attributes | |
| version: 1 | |
| formatters: | |
| simple: | |
| format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s' | |
| detail: | |
| format: '%(asctime)s - %(levelname)s - File: %(filename)s - %(funcName)s() - Line: %(lineno)d - %(message)s' |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #'% Using Dates and Times in R | |
| #'% Bonnie Dixon | |
| #'% 14-02-10 15:09:57 | |
| #' | |
| #' *Today at the [Davis R Users' | |
| #' Group](http://www.noamross.net/davis-r-users-group.html), [Bonnie | |
| #' Dixon](http://ffhi.ucdavis.edu/people/directory/bmdixon) gave a tutorial on the | |
| #' various ways to handle dates and times in R. Bonnie provided this great script | |
| #' which walks through essential classes, functions, and packages. Here it is piped through | |
| #' `knitr::spin`. The original R script can be found as a gist |