Skip to content

Instantly share code, notes, and snippets.

View oinume's full-sized avatar
🏠
Working from home

oinume oinume

🏠
Working from home
View GitHub Profile
@oinume
oinume / StringBuilder_VS_StringFormat.java
Created September 4, 2011 13:40
Benchmark to concat strings with StringBuilder#append() and String.format()
package net.lampetty.samples;
/**
* StringBulder V.S. String.format to concat strings.
*/
public class StringBuilder_VS_StringFormat {
public static void main(String[] args) {
new StringBuilder_VS_StringFormat().run(args);
}
@oinume
oinume / to_innodb.py
Created February 21, 2011 11:02
Convert all tables to InnoDB
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# INSTALL ====================
# $ sudo easy_install argparse
# $ sudo easy_install mysql-python
import argparse
import MySQLdb
import os
#!/usr/bin/env perl
use strict;
use warnings;
use Getopt::Compact;
use Data::Dumper;
my $getopt = Getopt::Compact->new(
name => 'mygzip',
modes => [ qw(verbose) ],