I hereby claim:
- I am patrick-russell on github.
- I am patrickrussell (https://keybase.io/patrickrussell) on keybase.
- I have a public key ASB9sMXazvNVtcPIjJ_VVQw70rsDFTAMRSNgynHe-r0kxAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
### MATPLOTLIBRC FORMAT | |
# This is a sample matplotlib configuration file - you can find a copy | |
# of it on your system in | |
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it | |
# there, please note that it will be overridden in your next install. | |
# If you want to keep a permanent local copy that will not be | |
# over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux | |
# like systems) and C:\Documents and Settings\yourname\.matplotlib | |
# (win32 systems). |
#!/bin/bash | |
if [ -z $1 ] | |
then echo Need a file name | |
exit 1 | |
fi | |
file="$1" | |
if [ -z $2 ] |
Zedshaw’s Learn C the Hardway Windows Setup | |
=========================================== | |
If you are a fan of Zedshaw’s `Learn the Hardway books`_ and have | |
checked out the C book, you may have noticed that the Windows setup is a | |
TODO. So here are steps to get Ubuntu working on a virtual machine on | |
Windows 7 or Vista. Whole process takes about 20-30 minutes. | |
What You Need | |
------------- |
-- ROUTINE Init cap | |
DELIMITER $$ | |
CREATE DEFINER=`user`@`%` FUNCTION `initcap`(cap char(50)) RETURNS char(50) CHARSET utf8 | |
BEGIN | |
SET @str=''; | |
SET @l_str=''; | |
WHILE cap REGEXP ' ' DO | |
SELECT SUBSTRING_INDEX(cap, ' ', 1) INTO @l_str; |
import csv | |
from sys import argv | |
from sys import exit | |
import re | |
if argv[1] == '-p': | |
sfile = raw_input("\nWelcome to csv to mysql import!\nPlease enter your csv source file, including path> ") | |
table = raw_input("\nWhat table are you inserting into?> ") | |
elif argv[1] == '-np': |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |