View Regexp.swift
import Foundation
class Regexp {
let internalRegexp: NSRegularExpression
let pattern: String
init(_ pattern: String) {
self.pattern = pattern
var error: NSError?
self.internalRegexp = NSRegularExpression( pattern: pattern, options: NSRegularExpressionOptions.CaseInsensitive, error: &error)!
View blog_search_bookmarklet.js
View 404.php
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php get_template_part( 'analytics' ); // create analytics.php template file or delete this line. ?>
View create_todo_formated_file.rb
#!/usr/bin/env ruby
require "date"
def this_year
( ARGV[0] || ).to_i
def leap_year?
View twitpic_downloader.rb
# Twitpic downloader with Ruby
# This tool enables you to save all your twitpic full-size images.
# Confirmed this tool working with Ruby 2.1.2.
# Usage
# $ mkdir work_dir
# $ ruby twitpic_downloader.rb user_name work_dir
# MIT License