Skip to content

Instantly share code, notes, and snippets.

@alexggordon
alexggordon / @farcepestpost.txt
Last active October 14, 2015 00:57
Farpest Post
** Text of the post on Sourceforge by Andy Dustman (@farcepest) for redundancy**
** http://sourceforge.net/p/mysql-python/discussion/70460/thread/9ae42ab5/ **
There have been questions about the license for MySQLdb, so here's my official position.
Originally MySQLdb had a license based on the old Python license, i.e. the CNRI license, which is essentially BSD-ish. Later, because MySQL uses a GPL license, GPL v2 was added. However, it's up to you which license to use on MySQLdb-1.2.
Licensing is not an issue for end-users. The GPL only applies to people who distribute the package. If you just download MySQLdb and use it in your own code, you do not have to accept any license. See section 0 of the GPL. http://www.gnu.org/licenses/gpl-2.0.html
"""Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on th
@alexggordon
alexggordon / test.txt
Created October 16, 2015 20:40
Package Control Channel Test Results
Running Default Channel Tests
Fetching remote repositories:
https://bitbucket.org/jjones028/p4sublime/raw/tip/packages.json ... skipping (schema version 1.2)
https://bitbucket.org/klorenz/sublime_packages/raw/tip/packages.json ... skipping (schema version 2.0)
https://csch1.triangulum.uberspace.de/release/packages.json ... done
https://eberstarkgroup.com/releases/packages.json ... done
https://packagecontrol.io/packages_2.json ... skipping (schema version 2.0)
https://raw.githubusercontent.com/20Tauri/DoxyDoxygen/master/DoxyDoxygen.json ... done
https://raw.githubusercontent.com/accerqueira/sublime/master/packages.json ... skipping (schema version 2.0)
#! /usr/env/bin/ruby
# Convert a string into an array of arrays with the word and number
# of occurances of that word.
#
# @param [text] : String
# @return [array] : [[word, count], [word2, count2]]
def analyze_paragraph(text)
# we don't need anything except spaces and lower case letters
text = text.to_s.downcase.gsub(/[^0-9A-Za-z\s]/, '')