Skip to content

Instantly share code, notes, and snippets.

<?php
function p ($s) {
echo $s . "\n";
}
$str = 'a:b:c:d:e\:f\\\\:g';
function spl ($str, $delim, $escape='\\') {
if (strlen ($delim) != 1) {
return;
}
@msztolcman
msztolcman / export_github_issues.py
Created December 11, 2011 02:02 — forked from jj0hns0n/export_github_issues.py
Export GitHub issues and comments to a csv files
#!/usr/bin/env python -tt
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import os, os.path
import sys
import re
import time
from pprint import pprint
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Terse = 1;
$Data::Dumper::Indent = 1;
#!/usr/bin/env python -tt
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import os, os.path
import sys
import re
from pprint import pprint, pformat
#!/usr/bin/env perl
use strict;
use warnings;
use 5.016;
# via: http://www.linuxquestions.org/questions/programming-9/perl-vs-python-which-is-easier-to-learn-857758/#post4233698
# s="a string"
# s = s[1:-1].replace("s","S")[0:-2]
#!/usr/bin/env python -tt
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import os, os.path
import sys
import re
from pprint import pprint, pformat
import json
#!/usr/bin/env python -tt
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import os, os.path
import sys
import re
from pprint import pprint, pformat
import json
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Terse = 1;
$Data::Dumper::Indent = 1;
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Terse = 1;
$Data::Dumper::Indent = 1;
package Rot13;
use 5.010;
use Filter::Simple;
FILTER {
if ($_ =~ s/^!//mg) {
$_ =~ tr/a-zA-Z/n-za-mN-ZA-N/;
}
};