Skip to content

Instantly share code, notes, and snippets.

@justino
justino / csv_manip.pl
Last active August 29, 2015 14:19
Quick and dirty CSV manipulator based on what I have to commonly do
#!/usr/bin/env perl
use strict;
use warnings;
use Text::CSV;
use Getopt::Long;
use Data::Dumper;
GetOptions(
@justino
justino / generator_example.py
Created January 26, 2015 14:18
Python Generators Example
#!/usr/bin/python
import time
def f():
print "f(): Function 'f' has been called"
print "f(): I can do a bunch of junk here"
print "f(): Maybe start reading in a file line by line"
print "f(): Going to sleep for 2 seconds\n"
time.sleep(2)
diff --git a/Safe.pm b/Safe.pm-patched
index c9ae0de..ea5770e 100644
--- a/Safe.pm
+++ b/Safe.pm-patched
@@ -18,37 +18,69 @@
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
# MA 02110-1301 USA.
-# wrapper around Safe to return pre-inited Safe compartments which are utf-8 friendly.
+# 2013 update by Peter Motschmann <pnm3@optonline.com>:
@justino
justino / fetch_session.pl
Created May 24, 2012 21:24
Quick and dirty interchange session viewer
#!/bin/env perl
use strict;
use warnings;
use DBI;
use Storable qw( thaw );
use Data::Dumper;
my $dsn = 'dbi:mysql:[DB NAME];host=[HOST NAME];';